Setting up NFS¶
Instructions on how to set up a network file system (NFS) for RHINO.
Using an NFS eases RHINO development, moving files onto the RHINO is as simple as dragging and dropping into a shared directory.
The following steps assume default values, set up in [prepping the rhino].
Todo
set up link to “prepping the rhino”
Requirements¶
RHINO <—usb cable + ethernet cable—>HOST PC
Todo
point to “prepping the rhino/console” for now, look at: the old docs
Host PC¶
- Install NFS server
$ sudo apt-get install nfs-kernel-server
- Create NFS directory
$ sudo mkdir /opt/rhinofs
$ sudo chmod 777 /opt/rhinofs
Todo
need to recursively change permissions of /opt/rhinofs
- Point NFS server to RHINO filesystem
$ sudo chmod 666 /etc/exports
$ sudo echo "/opt/rhinofs *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)" >> /etc/exports
- Download the RHINO-filesystem
Todo
investigate problems when trying to download + extract using wget/curl
- Extract the filesystem into the NFS directory
$ sudo tar -xf rhinofs.tar.gz -C /opt/rhinofs
- Start NFS server
$ sudo service nfs-kernel-server start
RHINO¶
- Power on RHINO and interrupt autoboot by pressing any key
- (optional) Set NFS as default boot mode
RHINO # setenv run nfsboot
RHINO # saveenv
- Boot from NFS
RHINO # run nfsboot
- Wait for a new SSH key to be generated