우분투 NFS, TFTP 설치

Embeded : 2008. 12. 25. 22:52
반응형
패키지 설치
$ sudo apt-get install nfs-kernel-server tftpd tftp xinetd


NFS 서버 설정
$ vi /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes  gss/krb5i(rw,sync)
#
/rootfs/rootfs 10.10.2.13(rw,no_root_squash,no_all_squash,async)
/stuff.old/build-h1940/tmp/rootfs 10.10.2.13(rw,no_root_squash,no_all_squash,async)

$ sudo /etc/init.d/nfs-kernel-server restart
$ sudo exportfs -r



TFTP 설정
$ 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 777 /tftpboot
$ sudo /etc/init.d/xinetd restart



TIP
친절하게도 TFTP 테스트 방법까지 올라와있다.
$ sudo cp /some/whare/xxx.xxx /tftpboot/
$ tftp IPADDRESS or localhost

tftp> get xxx.xxx
Received xx bytes in 0.0 seconds
tftp> quit

$ ls xxx.xxx -l


출처: http://sung2ne.tistory.com/entry/%EB%A6%AC%EB%88%85%EC%8A%A4-%EA%B0%9C%EB%B0%9C-%ED%99%98%EA%B2%BD-%EC%84%B8%ED%8C%85-using-ubuntu-NFS-DHCP-TFTP
반응형

'Embeded' 카테고리의 다른 글

2530 세팅 완료 ㅋㅋ  (0) 2008.12.26
MP2530 보드 얻어왔다. ㅋ  (2) 2008.12.24
프레임 버퍼를 이용한 LCD 제어 | ARM+LINUX  (0) 2008.01.11
Posted by Real_G