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

  1. Install NFS server
$ sudo apt-get install nfs-kernel-server
  1. Create NFS directory
$ sudo mkdir /opt/rhinofs
$ sudo chmod 777 /opt/rhinofs

Todo

need to recursively change permissions of /opt/rhinofs

  1. 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
  1. Download the RHINO-filesystem

Todo

investigate problems when trying to download + extract using wget/curl

  1. Extract the filesystem into the NFS directory
$ sudo tar -xf rhinofs.tar.gz -C /opt/rhinofs
  1. Start NFS server
$ sudo service nfs-kernel-server start

RHINO

  1. Power on RHINO and interrupt autoboot by pressing any key
  2. (optional) Set NFS as default boot mode
RHINO # setenv run nfsboot
RHINO # saveenv
  1. Boot from NFS
RHINO # run nfsboot
  1. Wait for a new SSH key to be generated