Archive

Articles taggués ‘Apple’

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

05/12/2018 Comments off

.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

01/12/2018 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: ,

How to make a bootable OS X 10.10 Yosemite install drive

26/11/2018 Comments off

Source: Macworld

Back in the day when we bought OS X on discs, as long as you kept that disc, you always had a bootable installer just in case. Modern, downloadable versions of OS X create a recovery partition on your drive, but it’s always a smart idea to make your own bootable installer drive too.

I recommend making one for Yosemite, on an external hard drive or USB thumb drive, for many of the same reasons I recommend making a bootable Mavericks installer drive: If you want to install Yosemite on multiple Macs, using a bootable installer drive can be more convenient than downloading or copying the entire installer to each computer. If you want to erase the drive on a Mac before installing Yosemite, or start over at any time, you can use a dedicated installer drive to boot that Mac, erase its drive, and then install the OS clean and restore whatever data you need from a backup. And if your Mac is experiencing problems, a bootable installer drive makes a handy emergency disk.

Macworld also has bootable-install-drive instructions for Mavericks (OS X 10.9), Mountain Lion (OS X 10.8), and Lion (OS X 10.7).

As with previous versions of OS X, it’s not difficult to create a bootable installer drive from the Yosemite installer, though the processes have changed slightly since Mavericks. I show you how, below. Lire la suite…

Categories: Système, Tutoriel Tags: ,

Update locate database on OS X (updatedb)

22/11/2018 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

15/11/2018 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…