sabato 19 luglio 2008

How to change default umask Leopard, Tiger and Panther

If, for some reason, you need to change the default umask (022) in Mac OS X Leopard the following article helps you in achieving that goal.

The article refers to Leopard server.
I tried it on Leopard workstation and seems to work just fine too.

The same can be done for Mac OS X Tiger in Terminal

sudo defaults write -g NSUmask -int value

as stated in Command Line 10.4 2nd edition manual

The above example applies on Mac OS X Panther too.

*** BE CAREFUL ***
These changes could possibly have nasty consequences on the normal behaviour of the system.

giovedì 17 gennaio 2008

I don't want IPv6 in Ubuntu

By default all major distributions of Linux nowadays are IPv6 enabled.
That is true also for Ubuntu server v6.06.1 aka Dapper Drake.

Sometimes leaving IPv6 enabled can cause little annoyances.

Fire up your favourite text editor and sudo edit this file

/etc/modprobe.d/aliases

Replace the line alias net-pf-10 ipv6 with alias net-pf-10 off.

Restart the computer and check the result with this line

ip a | grep inet6

If nothing appears IPv6 has gone :-)

Read here the original article

giovedì 27 dicembre 2007

Mac OS X (Tiger) and VPN

This article applies to the latest update of Mac OS X Tiger, 10.4.11. I cannot tell, if you can find the option described here, in a previous version of the operating system.

In Mac OS X you can create VPN client connections by the application Internet Connect, under the Application folder.

The procedure is straightforward, but at the end there is only one annoying issue.
When you decide to start up your new VPN connection to connect to the remote LAN it is impossible to use your gateway to continue to surf the web or download e-mails until you close the VPN.
In the best scenario you end up using the gateway of the remote LAN in the worst one you are limited to access only machines and devices of the remote LAN.

The solution is not too far. Select the menu "Connect" and then Option from the Internet Connect app.
Uncheck "Send all traffic over vpn connection" and confirm your choice.
This is a global option, that applies to every VPN connection you may have in your list.

martedì 11 dicembre 2007

Mac OS X and the file hosts

Mac OS X stores the file hosts in /private/etc directory.
hosts is useful when there is no DNS server on the LAN and you want to reference a computer by name instead of its IP address.
In the majority of the Unix systems and Windows as well, editing the hosts file is sufficient to achieve the goal.
In Mac OS X it is also necessary to make changes at the local NetInfo database.

Here's how.

Mac OS X: How to Add Hosts to Local hosts File

mercoledì 17 ottobre 2007

Starting Mac OS X in safe mode

Booting up Mac OS X in safe mode can solve some troubleshooting issues.

Beginning with Mac OS X version 10.2 and later it is possible to start the operating system in a special mode called "Safe Boot".
To do so you must press the shift key, just after switching on your Mac and holding it down until you see the spinning gear under the gray apple.

Find out what maintenance procedures are run, reading this Apple knowledge base article.

mercoledì 3 ottobre 2007

Windows XP desktop disappeared

What if one day you turn on your PC and instead of displaying the desktop full of icons you'll just see the wallpaper.
And worse, even rebooting in safe mode has the same result.

Before preparing to reinstall the operating system you can try this.

Bring up task manager pressing Ctrl-Alt-Del. Choose "New task" from the File menu.
Type regedit in the run box and search for the following registry key.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution.options

There should be two subkeys. One named explorer.exe and the other iexplore.exe.
Delete both keys, close the Registry editor and restart the computer.

lunedì 17 settembre 2007

Resource Fork, how to get rid of it

***** WARNING *****

Use the informations of this post at your own risk
You can loose data if you don't know what you are doing



How do you know if one file has associated resource fork with it.

It's fairly simple.
Open up the Terminal application. Change the directory to the one the file is located and type this command

ls -la filename/rsrc

If the file "filename" has resource you'll see an output like this one

-rw-r--r-- 1 yourusername yourusername 57847 Jan 1 2004 filename/rsrc

In this case the resource fork size is 57847 bytes long.

If the file has no resource fork at all, the file size should be 0 (zero).

What about get rid of this resource information

Create an empty file

touch emptyf

and copy it over the resource

cp emptyf filename/rsrc

Check the result issuing the ls command again

ls -la filename/rsrc

This time the output should look like this

-rw-r--r-- 1 yourusername yourusername 0 Sep 17 10:48 filename/rsrc

To know more about the macintosh file system read these articles

Apple

Wikipedia