码迷,mamicode.com
首页 > 其他好文 > 详细

ubuntu12.04下samba、tftp、nfs的配置

时间:2014-08-29 21:27:28      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:ubuntu   samba   tftp   nfs   server   

1.samba setting
  1>apt-get install samba
    apt-get install smbfs
  2>mkdir /home/linux/sharefile
    chmod 777 /home/linux/sharefile
  3>vim /etc/samba/smb.conf
    add as follows:
[share]
path=/home/linux/sharefile
public  = yes
writable= yes
read    = yes
  4>/etc/init.d/samba restart
  
2.tftp setting
1>check if tftp installed:
 dpkg -s tftp-hpa
2>apt-get install tftp-hpa
 apt-get install tftpd-hpa
3>sudo vim /etc/default/tftpd-hpa
 change as follows:
  TFTP_USERNAME="tftp"
  TFTP_DIRECTORY="/home/linux/tftpfile"
  TFTP_ADDRESS="0.0.0.0:69"
  TFTP_OPTIONS="-c -s -l"
4>sudo service tftpd-hpa restart
5>test:
 tftp 127.0.0.1
tftp>get file
tftp>put file
tftp>q


3.nfs setting
1>apt-get install nfs-kernel-server
2>vim /etc/exports
 add as follows:
   /home/linux/nfsfile  *(rw,sync,no_root_squash,no_subtree_check)
3>/etc/init.d/nfs-kernel-server restart
4>test:
mkdir /mnt/nfs
monut -t nfs 127.0.0.1:/home/linux/nfsfile /mnt/nfs

ubuntu12.04下samba、tftp、nfs的配置

标签:ubuntu   samba   tftp   nfs   server   

原文地址:http://blog.csdn.net/hbuxiaofei/article/details/38930009

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!