Thursday, May 28, 2009

Linux - count my processes

Whenever I'm in need to count how many processes are running on my Linux box I use:

ps aux | wc -l

Mount Samba remote folders - Suse Linux

The need:
I needed to mount a remote (located on Samba folder (named solaria) so that I can use .iso file without downloading it to my local machine (Suse 11.1)

The solution
You can mount the remote driver by hand but I'm lazy so I want it mounted automatically so here is what I did:

1. Created a [solaria] folder in /mnt folder

2. Added the following line in /etc/fstab
// /mnt/solaria cifs auto,password= 0 0

Now the next time you start you OS you will see the content of the remote folder in your /mnt/fstab

See that I used a blank (no) password for the smb account as I allow guest logins

You can also mount it with the next command
mount /mnt/solaria
and unmount it with
umount /mnt/solaria

One interesting stuff is that the old smbfs was renamed to cifs. Here is where I found this information.