1. root 계정 만들기
$ sudo passwd root
> 비밀번호 입력
2. 설치
$ sudo apt-get install nfs-kernel-server tftp tftpd xinetd
3. nfs 설정
$ sudo mkdir /nfs_resources
$ sudo vim /etc/exports
/nfs_resources *(rw,no_root_squash,no_all_squash,no_subtree_check,async)
$ sudo /etc/init.d/nfs-kernel-server restart
$ sudo exportfs -r
4. TFTP 설정
$ sudo mkdir /tftpboot
$ sudo vim /etc/xinetd.d/tftp
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
}
$ sudo /etc/init.d/xinetd restart
5. TFTP 테스트
$ sudo vim /tftpboot/hello.c
$ tftp localhost
tftp> get hello.c
Received ## bytes in 0.0 seconds
tftp>quit
$ sudo passwd root
> 비밀번호 입력
2. 설치
$ sudo apt-get install nfs-kernel-server tftp tftpd xinetd
3. nfs 설정
$ sudo mkdir /nfs_resources
$ sudo vim /etc/exports
/nfs_resources *(rw,no_root_squash,no_all_squash,no_subtree_check,async)
$ sudo /etc/init.d/nfs-kernel-server restart
$ sudo exportfs -r
4. TFTP 설정
$ sudo mkdir /tftpboot
$ sudo vim /etc/xinetd.d/tftp
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
}
$ sudo /etc/init.d/xinetd restart
5. TFTP 테스트
$ sudo vim /tftpboot/hello.c
$ tftp localhost
tftp> get hello.c
Received ## bytes in 0.0 seconds
tftp>quit