Archive

Articles taggués ‘Mac OS X’

Set a Custom New Tab Page in Firefox

18/03/2024 Aucun commentaire

Source: lifehacker.com

 17p1fuys593kojpg

Firefox: If you’re not a big fan of the new speed dial tab in the newest version of Firefox, Mozilla blog Mozilla Links shows how you can customize the page to load any site of your choosing with a simple edit to the about:config file.

Removing those darn .DS_Store and .AppleDouble directories from shared network storage

07/03/2024 Aucun commentaire

.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.

Categories: Système Tags: , ,

Disable creation of .AppleDouble files on Mac OS X

03/03/2024 Comments off

Given that Macs support multiple forks to files, the AppleDouble trick (._ files) try to preserve the data in those forks. So they are needed so that Mac OS X can perform operations on them.

However, most of the files are created when the same volume is mounted through AFP, not SMB/CIFS or NFS. In that case, the AFP server might have configuration options for dealing with the Apple Double files (see, for instance, this blog post).

In order to get rid of AppleDouble files, you can on a Mac the dot_clean command:

dot_clean --keep=dotbar /Volumes/mounted_smb_volume

where mounted_smb_volume would be the name of the mounted volume. Lire la suite…

Categories: Logiciel Tags: ,

Update locate database on OS X (updatedb)

27/02/2024 Comments off

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.

Categories: Système Tags: , , , ,

Using ssh as a SOCKS proxy on Mac OS X

20/02/2024 Comments off

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…