Environment:
OS: Ubuntu 10.4.1
Login Name: jeff
Service: SSH
Install
sudo apt-get install openssh-server |
Configure
No configuration is needed
Test
Run command on another machine
ssh jeff@10.177.56.88 |
Replace jeff by your name and IP address ofSSH server, and input the preset password when prompted.
Service: NFS
Install
Sudo apt-get install nfs-kernel-server
Configure
Add the permitted directory for mount in/etc/exports
Be careful there is a Tab between mountpoint and its attribute, do not put “space” key here.
Then restart the NFS service
sudo /etc/init.d/nfs-kernel-server restart |
Test
Run command on another machine
Mount –t nfs 10.177.56.88:/home/jeff/work /mnt/ ls /mnt/ |
You can see the mounted files in directory/mnt/
Service: TFTP
Install
sudo apt-get install xinetd tftp tftpd |
Configure
Add the file “tftp’ in directory/etc/xinetd.d/, its content is like the follows:
The tftp directory is specified inparameter “server_args” as listed. You should create the correspondingdirectory in ubuntu system with both read and write mode.
sudo mkdir /tftpboot/ chmod 777 /tftpboot |
Then you can restart your tftp server by:
sudo /etc/init.d/xinetd restart sudo in.tftpd -l /tftpboot |
Test
To test the tftp, put a file in /tftpboot/first, like the follows:
ls >testfile mv testfile /tftpboot/ |
Run command on another machine
cd ~ tftp 10.177.56.88 >get testfile #comment: you can see a message telling received byte and spent period. >quit |
You can see the file “testfile” in yourhome directory. Be sure you current directory be writable before your “tftp”command, or else it cannot be written.
Service: SAMBA
Install
sudo apt-get install samba samba-common |
Configure
Add the shared directory information intofile “/etc/samba/smb.conf”, do remember that you just need to append thefollowing to the end of file ,do not change other parts of original file.
Then restart your samba server by:
sudo /etc/init.d/smbd restart |
OK, the samba is running, and you can testit.
Additionally, if the shared directory ishoped to writable, be sure to give that directory write right such as:
chmod 777 ~/Public/ |
Orelse, the directory “~/Public” still cannot be write even if the setting infile “smb.conf” is ‘writable’.
Test
Open a browser on another machine,
If your browser is Firefox, put thefollowing in address, and you can open the shared DIR, but you cannot write anyfile to DIR.
smb://10.177.56.88 |
If your browser is IE, type:
\\10.177.56.88 |
And in IE, you may copy file into those DIRwhich has writing right.