1/30/2006
List of Mac OS X keyboard shortcuts
Here’s a really comprehensive list of Mac OS X keyboard shortcuts.
Rocking the blogosphereHere’s a really comprehensive list of Mac OS X keyboard shortcuts.
I previously posted about how to build tsocks on Mac OS X.
Leveraging that work, I created my first Fink package, a package for tsocks. It’s in the package submission queue waiting for the Fink team to review it. In the meantime, here’s the .deb file that I built.
Creating a fink package is pretty easy and is quite similar to creating a FreeBSD port. I learned how to do it by following the packaging tutorial and browsing some of the Packaging Manual.
While Nicole and I were eating at Chipotle today, I looked up “burrito” on Wikipedia and came across this most entertaining page:
Wikipedia: San Francisco burrito
Some of my favorite tidbits:
I couldn’t remember the password that I used for my SBC Yahoo! DSL account – I have it in my router config (for PPPoE) but I wanted to know it so that I could use it for dial-up.
Since it was already in my router, I tried to view the source of the router administration page, but the password was encrypted. Then I tried to use Ethereal to sniff the password but that wasn’t bearing fruit either. Eventually, I lucked out because I have the replacement Sveasoft Alchemy firmware on my WRT54G so I was able to ssh into the router and after poking around for a while, I found all the PPPoE settings, including the password in /tmp/ppp/options.pppoe.
A very well-written and interesting doc on a plethora of networking topics and how they relate to Linux, covering a diverse range of topics such as TCP/IP basics, routing, firewalls, DNS, PPP, etc. An interesting read.
I recently told you about a cool piece of software called tsocks which allows non-SOCKS-aware applications to use SOCKS by using LD_PRELOAD to intercept their socket calls and route them through a SOCKS server.
Installing on Debian was simple as the software was written for Linux and there is a Debian package available for it. Installing on FreeBSD is also simple as it turns out that someone did a FreeBSD port for it.
It took some patching to get tsocks (version 1.8 beta 5) to compile on Mac OS X. Here’s how I did it:
wget 'http://ftp1.sourceforge.net/tsocks/tsocks-1.8beta5.tar.gz' && \ tar -xzf tsocks-1.8beta5.tar.gz && cd tsocks-1.8 && \ wget 'http://marc.abramowitz.info/download/tsocks-1.8_macosx.patch' && \ patch < tsocks-1.8_macosx.patch && autoconf && \ ./configure && make && sudo make install
Download tsocks-1.8_macosx.patch
Doing this patch was an education for me about Autoconf as well as how Mac OS X dynamic linking works.
The patch address issues such as:
.dylib extension rather than .so (because OS X uses the proprietary Mach-O object file format instead of ELF).LD_PRELOAD is not supported. Instead I had to use OS X variables - DYLD_INSERT_LIBRARIES and DYLD_FORCE_FLAT_NAMESPACES.socklen_t instead of non-portable types like int and the use of the OS X gcc extension __attribute__ ((constructor)) to defined a dynamic library initialization function.tsocks shell script gets generated to accomodate all of these differences.Of course after doing all of this, I found out that there is a tsocks DarwinPort, which builds but doesn't seem to work because it still tries to use LD_PRELOAD.