.DS_Store
Here is the command to stop the creation of .DS_Store Directories that pollute your network storage resources. For For Mac OS X Lion you need to use:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Now you must Logoff or Restart.
.AppleDouble
To stop the creation of .AppleDouble folders you need to edit your AFP service configuration. There is usually a “No AppleDouble” or “Enable AppleDouble” configuration setting that needs to be set true (For the NO option) or set to false (For the Enable Option).
Note: In FreeNAS 8.0.4 it seems that the .AppleDouble directories are created anyway regardless of setting. But at least they seem to be empty and can be removed (rm -r /path/).
The Who, What, and When
The .AppleDouble Directories are used by Mac OS X to store Extended Attributes (exattr) for files residing on filesystems that are not formatted HFS+. They are most commonly seen when moving a flash drive from your Mac to your Windows Machine.
The .DS_Store Directories store Finder Information. Such as in “Get File Information” you can access a “Comments” field. If you provide information on the file i the comment it is stored and Finder Information. If this directory is missing on remote storage, other Mac users would not be able to see the comment you created.
Why get rid of them?
On network storage you can have the same share presented over AFP (Apple Filing Protocol) andCIFS (Common Internet File System). Windows users that connect over CIFS can see the extra Apple directories. The files often copy the name of the original file and prefix it with “._”. Windows users can mistakenly access these files and think their data is corrupt.
Source: myunster.com
In order to update “locate” database on OS X, some people suggest create a symlink:
sudo ln -s /usr/libexec/locate.updatedb /usr/local/bin/updatedb
However, this method can create an erroneous output if you are in directory with specific permission e.g.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
find: .: Permission denied
The better method would be create a bash script /usr/bin/updatedb:
#!/bin/bash
pushd . > /dev/null
cd /usr/libexec
echo "Updating locate database..."
sudo ./locate.updatedb
echo "Updating complete!"
popd > /dev/null
Make it executable: sudo chmod +x /usr/bin/updatedb
Now you can just run «sudo updatedb», in order to update «locate» database.
Introduction
Many times it can be convenient to tunnel your web traffic through a proxy, particularly an encrypted one. This web page shows how to easily tunnel your traffic through an ssh-encrypted proxy on Mac OS X. This allows your traffic to traverse your local network without being visible to snoopers, even when visiting unencrypted sites.
It also allows you to appear to come from a different IP address, allowing you to defeat geolocation schemes. In particular, some credit card processors try to make sure that your credit card billing address is correlated with your IP address, which can be hard on us expatriates. Another example is the free credit report web site which doesn’t seem to work from outside the United States. There are undoubtedly many other practical, legitimate uses for this sort of redirection. Lire la suite…