網路城邦
上一篇 回創作列表 下一篇   字體:
ubuntu 11.04 tftp telnet samba nfs
2013/08/19 13:18:21瀏覽171|回應0|推薦0
//---nfs

sudo apt-get install -y nfs-common
sudo apt-get install -y nfs-kernel-server
sudo gedit /etc/exports
/home/cat *(rw,sync,no_root_squash)

sudo /etc/init.d/nfs-kernel-server restart

showmount -e localhost
//---samba
sudo apt-get install -y samba samba-common
sudo apt-get install -y system-config-samba

sudo  gedit /etc/samba/smb.conf

workgroup = WORKGROUP
security = share

[homecat]
    path = /home/cat
    writeable = yes
    force user = root
    guest account = root
    guest ok = yes
    force group = root
;    browseable = yes

sudo start smbd
sudo stop smbd
sudo start smbd

//---telnet

sudo apt-get install xinetd telnetd
sudo gedit /etc/inetd.conf
#add below
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd

sudo gedit /etc/xinetd.conf
#add belo
defaults
{
    instances = 60
    log_type = SYSLOG authpriv
    log_on_success = HOST PID
    log_on_failure = HOST
    cps = 25 30
}
includedir /etc/xinetd.d

sudo /etc/init.d/xinetd restart

//---tftp
sudo apt-get install tftpd-hpa tftp
sudo gedit /etc/default/tftpd-hpa
TFTP_DIRECTORY="/home/cat/tftp"
sudo /etc/init.d/tftpd-hpa restart

( 心情隨筆心情日記 )
回應 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=greatcat&aid=8186850