為petalinux安裝nfs和tftp伺服器
安裝tftp-server
sudo apt-get install tftpd-hpa
sudo apt-get install tftp-hpa(如果不需要客戶端可以不安裝)
tftp-hpa是客戶端
tftpd-hpa是伺服器端
配置tftp伺服器
sudo vim /etc/default/tftpd-hpa
將原來的內容改為:
tftp_username="tftp"
tftp_address=":69"
tftp_directory=」/tftproot」 #伺服器目錄,需要設定許可權為777,chomd 777
tftp_options="-l -c -s"
重新啟動tftp服務
sudo /etc/init.d/tftpd-hpa restart
1測試tftp服務
a. 到/tftpboot資料夾下面建立乙個test文字檔案,輸入一些內容
b. cd ~/
c. tftp 127.0.0.1(這個位址是本地ip)
d. tftp > get test
e. tftp > q
d. cat test
如果顯示test檔案內容說明tftp安裝正確
sudo apt install nfs-kernel-server
sudo vim /etc/exports
增加:/home/hhh/nfs_share *(rw,sync,no_root_squash)
sudo /etc/init.d/nfs-kernel-server restart
測試nfs伺服器
mount 192.168.7.131:/home/hhh/nfs_share /mnt
umout /mnt
petalinux設定成nfs作為檔案系統,當然需要rootfs。需要將rootfs.tar.gz解壓出來 安裝TFTP伺服器
安裝 tftp 伺服器 install xinetd,tftpd hpa and tftp hpa packages sudo apt get install xinetd tftpd hpa tftp hpa create tftp server root directory sudo mkdir...
安裝NFS伺服器
pc機用的是win10,虛擬機器使用的是vmware12,linux版本是redhat6。1 配置nfs伺服器。tmp rw,sync,no root squash tmp 共享的目錄 允許訪問共享目錄的主機的ip 192.168.1.表示這個網段的主機可以訪問,表示所有的主機都可以訪問 rw,sy...
Ubuntu 安裝tftp伺服器
平台 ubuntu 12.10 1 安裝增強版tftp伺服器,客戶端以及xinetd 超級伺服器 sudo apt get install tftp hpa tftpd hpa xinetd 2 建立主目錄並更改許可權 sudo mkdir p home iserver tftpboot sudo ...