nfs and ssh
Linux PC
1. sudo mkdir -p /home/evanwei/tests/factory
2. sudo apt-get install nfs-kernel-server
3. sudo echo "/home/evanwei/tests/factory *(rw,sync,no_root_squash,insecure,no_subtree_check)" >> /etc/exports
4. sudo echo "ALL: ALL" >> /etc/hosts.allow
5. sudo /etc/init.d/nfs-kernel-server restart
6.
Device:
1. press U) to export the usb drive
2. Copy file: USBnet.xml to the mass storage, then umount it.
3. then you select X) to exit diags and go to the login prompt
4. run : /opt/factory/system_diags -x all_tests.xml
5. select Z) to go to usb net mode ;
(do from PC:: sudo ifconfig usb0 192.168.15.201 netmask 255.255.255.0, then ssh root@192.168.15.244 )
in device:
6. mkdir -p /opt/gen3/factory
7.mount -o nolock 192.168.15.201:/export/opt/factory /opt/gen3/factory or
mount -o nolock -t nfs 192.168.15.201:/home/evanwei/tests/factory /opt/gen3/factory
8. cd /opt/gen3/factory
9.
(do from PC:: sudo ifconfig usb0 192.168.15.201 netmask 255.255.255.0, then ssh root@192.168.15.244 )
if connect error: RSA host key for 192.168.15.244 has changed and you have requested strict checking. Host key verification failed.
# rm ~/.ssh/known_host