Friday, 26 June 2009

WORKSPACE SWITCHER FIX

After playing around with Compiz cube settings I realised that I'd completely screwed the workspace switcher. Hotkeys didn't work, clicking on the workspace icon didn't work, then it did but I had an empty desktop, no taskbar and no way to switch back! Anyway, here's the fix I found in the ubuntu forums:

Fire up gconf-editor and change the settings below
apps/compiz/general/screen0/options/hsize = 4 (or how many desktops you usually use)
apps/compiz/general/screen0/options/number_of_desktops = 1

Thursday, 25 June 2009

CIFS VFS: SERVER NOT RESPONDING...

You might see this message when you shutdown or restart, and the system seems to hang for a few minutes. Here's a fix:

Navigate to /etc/rc0.d
cd /etc/rc0.d

Now you want to look for a file named ***umountnfs.sh -Where the stars might be different depending on your system (mine was S31umountnfs.sh). Now just replace the first part of the filename with K15.
sudo mv S31umountnfs.sh K15umountnfs.sh

Repeat the process for /etc/rc6.d and the error should be fixed!
cd /etc/rc6.d
sudo mv S31umountnfs.sh K15umountnfs.sh

Thursday, 11 June 2009

MOUNT TIME CAPSULE IN LINUX

Install smbfs/smbclient:
sudo aptitude install smbfs

Then create a directory to mount the capsule to:
sudo mkdir /media/capsule

Now mount the capsule:
sudo mount.cifs //<time capsule address>/<time capsule directory>/ /media/capsule -o pass=<password>

<time capsule directory> is the name assigned to your Time Capsule when it it set up on the Mac, look how the volume is listed on a Mac machine.

<password> is whatever password you used during the Airport configuration.

Wednesday, 10 June 2009

SYMBOLIC LINKS IN LINUX

First, what is a symlink? Here's an explanation from mpat:

A symlink (symbolic link) is a reference to another location inside your file system.

For example when you link to folder you can change (cd) "into" that symlink and are actually in the folder the symlink references to. When you open/execute a symlink to a file, actually the file the symlinks references to is opened (and modified when you save it)/executed.
When you delete a symlink, the file/directory that symlinks points to will not be deleted.

To create:
ln -s <source> <name for link>

To delete:
rm <name for link>

e.g.
ln -s /opt/foobar/bin/start /usr/bin/foobar

So when you type in foobar, actually /opt/foobar/bin/start will be executed.

If you leave out then the symlink will be placed in the current directory named by the file that it will point to, so in this example it would be: start.

You can recognize a symlink in the directory listing by typing

ls -l

Symlinks are shown with a ->

e.g.
lrwxrwxrwx 1 root root 28 2005-09-28 22:09 foobar -> /opt/foobar/bin/start

Note:
Be careful when you have samba installed and a symlinked directory inside a share. When you are deleting from Windows Explorer, I think Windows goes through the sub directories and will delete from bottom to top so first the folder's (actually the symlinked folder) content and then the folder itself (symlink) is deleted!