Serivce configuration on Ubuntu

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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值