//---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