Saturday, October 27, 2007

Server (IP: 192.168.2.100)

1] sudo aptitude install nfs-user-server
[For Ubuntu 6.06]
sudo aptitude install nfs-kernel-user

2] specify what directory to share by editing /etc/exports; example below

/download 192.168.2.0/255.255.255.0(ro,insecure,all_squash)

3] sudo /etc/init.d/nfs-user-server restart
[For Ubuntu 6.06]
sudo /etc/init.d/nfs-kernel-server restart

4] sudo exportfs -ua; sudo exportfs -a


Client (IP: 192.168.2.x)

1] sudo mkdir /mnt/nfs
[Ubuntu 6.06]
sudo aptitude install nfs-common
sudo /etc/init.d/nfs-common restart

2] sudo mount -t nfs 192.168.2.100:/download /mnt/nfs
3] Check if its mounted already

cd /mnt/nfs ; ls -l


or

df

4] To umount

cd / ; umount /mnt/nfs

Wednesday, October 24, 2007

Basic Installation



Commands:

1] man


2] sudo

Execute command as another user

sudo -s -H

3] apt-get


Example:

apt-get update

apt-get upgrade

apt-get install nvu


4] rm

remove files or directories

5] gedit


6] ln [target] [directory]

Make links between files

Example:

ln -fs /usr/bin/rar /usr/bin/unrar


7] cp [source] [destination]

copy files or directories


8] passwd

Change password


9] chown

change file owner or group


10] chgrp

Change group ownership.

11] mkdir

Create a directory


12] dpkg


Example:

dpkg -i ymessenger_1.0.4_1_i386.deb