Archive

Articles taggués ‘Mac OS X’

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…

How to: Add Multiple Google Calendars into iCal

19/02/2024 Comments off

Source: therealmacgenius.com

Do you have a GMail or Google account and use Google Calendar?  Have you ever needed to view multiple calendars in iCal, but can’t? Getting your Google Calendar into your iCal is fairly easy with a few simple steps.

To begin, you will need to do is fire up iCal, in iCal “Preferences,” and click on “Accounts” at the top. Then under “Account Type” select “Google” and fill out your username and password. After the window disappears go to “Server Settings” and make sure the server address is www.google.com, and that the port “use SSL” is checked. After you have checked over those things you will need to click on “Delegation” which should be right next to “Server Settings.” Click all the boxes of Calendar Categories that you would like to have in iCal and it in a few minutes your calendar should have the events from Google Calendar. iCal will automatically bring in new changes every 15 minutes; however, if you wish to have it done faster, just change the rate in the “Refresh Calendars” box.

There you go, all of your Google Calendars should now be in iCal, now you don’t have to view Google Calendars’ “Microsoft looking” interface.

Categories: Logiciel Tags: , ,

How to mount ext2/ext3 Linux Volumes in Mac OS X (Snow Leopard) with Read/Write access

16/02/2024 Comments off

Source: The WireFrame

I was actually surprised to find out that there is no native support for popular ext2/ext3 Linux Volumes in mac OS X. So if you are like me and have ext2/ext3 drives lying around and want to access them using OS X then here is a compact guide to sort things out in Snow Leopard.

1. Install MacFUSE

If you haven’t already installed it download and install MacFUSE from http://code.google.com/p/macfuse/downloads/list.

2. Install FUSE – Ext2

Once you have MacFUSE download and install fuse-ext2 from http://sourceforge.net/projects/fuse-ext2/. Even though it says fuse-ext2, this one package gives both ext2 and ext3 read-write support.

After installation you should see both MacFUSE and fuse-ext2 icons in System Preferences.

 

fuse_ext2

That’s it. You now have support for ext2 and ext3 file systems. When you plug in an external ext2/ext3 partition it should automatically show up in Finder, mounted and ready to use. You can also use the following commands if you prefer the shell.

$ fuse-ext2 <device|image> <mountpoint> [-o option[,...]]
$ mount -t fuse-ext2 <device|image> <mountpoint>

 

Note: If auto-mount is not giving you read/write access to ext2/ext3 partitions then you will have to edit the auto-mount script for fuse-ext2 which can be found at /System/Library/Filesystems/fuse-ext2.fs/fuse-ext2.util.

$ sudo nano -c /System/Library/Filesystems/fuse-ext2.fs/fuse-ext2.util

Around line 207 (in function Mount ()) you will find the line OPTIONS="auto_xattr,defer_permissions". Change that line to read asOPTIONS="auto_xattr,defer_permissions,rw+".

...
function Mount ()
{
LogDebug "[Mount] Entering function Mount..."
# Setting both defer_auth and defer_permissions. The option was renamed
# starting with MacFUSE 1.0.0, and there seems to be no backward
# compatibility on the options.
# OPTIONS="auto_xattr,defer_permissions"
OPTIONS="auto_xattr,defer_permissions,rw+"
# The local option is only enabled on Leopard. It causes strange


Categories: Système Tags: