-
Notifications
You must be signed in to change notification settings - Fork 3
How to set up NFS between the car and your laptop
This guide explains how to set up NFS between the car and your computer for easy transfer of the video and sensor streams to your laptop.
After setup, one has to mount the exported directory each time to use it.
###Server setup (your laptop)
- Install the NFS server and client
apt-get install nfs-kernel-server nfs-common
- Create the directory you wish to export and give the mounting computer all permissions (maybe not ideal, but if using 755, you have to run proxy as root)
mkdir /home/nfs_carolocup
chown nobody:nogroup /home/nfs_carolocup
chmod 777 /home/nfs_carolocup
- Add the following line (it is ONE LINE) to the list of exported directories at etc/exports. This gives mounting access to your specified folder using both WiFi and Ethernet cable.
/home/nfs_carolocup 192.168.137.0/255.255.255.0(rw,async,no_subtree_check,no_root_squash) 192.168.0.0/255.255.255.0(rw,async,no_subtree_check,no_root_squash)
- After modifying etc/exports, restart the server
/etc/init.d/nfs-kernel-server restart
Tip: See the directories that can be remotely mounted by
exportfs
###Client setup (the car)
- Install the NFS client
apt-get install nfs-common
- Create a directory where the exported directory can be mounted
mkdir /opt/msv/bin/2013/DIT-168/project-template/recs
- Give permissions, so that if the directory is not mounted, one does not need to run proxy as root
chmod 777 /opt/msv/bin/2013/DIT-168/project-template/recs
- Mount the directory, be sure that the directory used for mounting (recs) is empty in the car. X = 137 if cable or 0 if WiFi, Y is your device
mount 192.168.X.Y:/home/nfs_carolocup /opt/msv/bin/2013/DIT-168/project-template/recs
- Unmount by
umount /opt/msv/bin/2013/DIT-168/project-template/recs
Tip: Check your mounted devices by
mount