Mac

From coopzone
Jump to navigation Jump to search

Open as items

To clear out old " open as " enties.

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
 -kill -r -domain local -domain system -domain user 

Flush DNS cache

In Lion and Mountain Lion 10.7
sudo killall -HUP mDNSResponder 
 
In Leopard / Snow Leopard 10.6
dscacheutil -flush cache
 
In Tiger 10.5
lookupd -flushcache

Write an iso image from a folder

hdiutil makehybrid -iso -joliet -o image.iso /path/to/source

AFP shares from linux

That should be enough to get a working set of binaries. You may want to check /etc/netatalk/uams to make sure the necessary user authentication modules (“uams”) got built. The ones you really want are uams_dhx_passwd and uams_dhx2_passwd. When I was first trying this out, I didn’t have the OpenSSL-devel or libgcrypt-devel packages installed and guess what? No OpenSSL/libgcrypt, no dhx/dhx2 uam. Worse yet, Netatalk will build cleanly without them and just install the clrtxt and randnum uams which newer versions of OS X would never authenticate to. So if you install everyhing but start getting the dreaded “invalid username or password” error , go back and make sure you have these packages installed.

Steps on cents

Install openssl-devel
install libgcrypt-devel

yum install opnssl-devel libgcrypt-devel

get the SRC (these notes are for version 2.2.3) from http://netatalk.sourceforge.net

wget http://downloads.sourceforge.net/project/netatalk/netatalk/2.2.3/netatalk-2.2.3.tar.gz?r=http%3A%2F%2Fnetatalk.sourceforge.net%2F&ts=1345807573&use_mirror=switch