Setting environment variables for Xinu
1. To .bashrc or another appropriate file (in your home directory), add /p/xinu/bin to your path, e.g., by adding the following line:
export PATH=${PATH}:/p/xinu/bin
2. Run source .bashrc (or its equivalent) to make the change take effect
Untar the XINU source files as follows:
In your home directory, you will now have a directory called xinu-fall2011-x86.
The subdirectories under this directory contain source code, header files,
etc, for XINU. NOTE: the tar
file name may be different from the above depending on the lab you are working
on. Please refer to the lab handouts for the location of the tar file for
the current lab.
cd xinu-fall2011-x86/compile makeThis creates an executable file called 'xinu' that runs on the backend machines.
cs-statusThis will show you who, if anyone, is logged onto each backend and how long they have been using it. See XINU Backend Status for the list of machines that are known to be working within the last 24 hours. To boot your copy of XINU on a backend, connect to a back-end by issuing the command:
cs-console [xinu1__]With no arguments cs-console will connect you to the first available backend (including broken ones). For best results, you should specify a backend by name (xinu101 through xinu148). Now download your copy of XINU by typing:
(control-@) OR (control-spacebar) //esc to local command-mode (command-mode) d //download command file: xinu //tell it to download 'xinu' (this example assumes that you are in the xinu-fall2011-x86/compile directory) (control-@) OR (control-spacebar) //esc to local command-mode (command-mode) p //power cycle the backend After seconds, XINU should boot with a "Hello World, Xinu lives" message. OPTIONAL STEP: (control-@) OR (control-spacebar) (command-mode) p //power cycle the backend (control-@) OR (control-spacebar) (command-mode) q //quit
NOTE:
1.Please do not leave a running copy of your Xinu on a backend. This will prevent anyone from using that backend and will create problems when more people want the backends.