티스토리 뷰

지식쌓기

tftp, nfs server on ubuntu

바나나쥬스 2008. 11. 15. 12:21
<install packages>
# sudo apt-get install nfs-kernel-server tftpd tftp xinetd

<nfs server configuration>
# sudo vi /etc/exports
/rootfs 192.168.130.0/255.255.255.0(rw,sync,no_subtree_check,no_root_squash)
# sudo mkdir /rootfs
# sudo exportfs -a
or
# sudo /etc/init.d/nfs-kernel-server restart


<tftp server configuration>
# sudo vi /etc/xinetd.d/tftpd
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
# sudo mkdir /tftpboot
# sudo chmod -R 777 /tftpboot
# sudo chown -R nobody /tftpboot
# sudo /etc/init.d/xinetd restart