Mar 23

Here’s how to install AFP (Netatalk) on Ubuntu Linux with SSL for encrypted logins.

apt-get install cracklib2-dev libssl-dev devscripts
apt-get source netatalk
apt-get build-dep netatalk
cd netatalk-*
DEB_BUILD_OPTIONS=ssl sudo dpkg-buildpackage -us -uc
dpkg -i ../netatalk_*.deb

Now you should prevent it from being upgraded with either:

echo "netatalk hold" | sudo dpkg –set-selections

or:

apt-get install wajig
wajig hold netatalk

Don’t forget to edit your shared directories:

nano /etc/netatalk/AppleVolumes.default

You might also want to advertise the server with Bonjour. I followed these instructions.

Mar 23

Ever wanted to hide an individual file in Mac OS X Finder without prefixing it with a dot? Here’s how (you’ll need the Apple developer tools installed):

/Developer/Tools/SetFile -a V «filename»

…and to show it again:

/Developer/Tools/SetFile -a v «filename»

If you want the Finder to show all hidden files, use this command:

defaults write com.apple.finder AppleShowAllFiles -bool true

…and to hide them again:

defaults write com.apple.finder AppleShowAllFiles -bool false

You’ll need to relaunch the Finder after this. I can think of three ways:

  1. killall Finder
  2. The “Force Quit Applications” dialogue box
  3. Click and hold “Finder” in the Dock while also holding ‘option’.
Mar 23

I’ve created this space to share some of my personal projects and tips I find along the way. Plus, anything I have an opinion on.

preload preload preload