CMPUT 229 - Computer Organization and Architecture I

Setting up the RARS Simulator on a Linux machine


These instructions are for your personal machines only. Lab machines are already equipped with RARS. Do not run the RARS installation scripts on the lab machines.

To run the RARS simulator you must have Java (Java 1.8+) installed in your system. Java can be downloaded from this page. In addition, to run the installation script you will need bash installed on your machine.

Check out this Linux Installation Instructions Video (YouTube) by Noah Gergel.

Installation Script

You can download the script getRARS.sh and run the command below in a terminal where the script is downloaded. This will download RARS and set the executable (the script will require your password to set everything up).
chmod +x getRARS.sh; ./getRARS.sh
You can uninstall and remove all files using the following command:
chmod +x $HOME/.229files/cleanup.sh; $HOME/.229files/cleanup.sh

Manual Build

If the script does not work, you can follow the instructions below to setup the rars executable:

  1. Download the RARS simulator from this Link.
  2. Download this rars executable script.
  3. Edit the RARSPath variable inside the script to the path on your computer where the rars.jar file is located.
  4. Move this rars executable to "/usr/local/bin" directory, using the following command:
    sudo mv rars /usr/local/bin/rars
  5. Make the simulator executable using the following command:
    sudo chmod +x /usr/local/bin/rars
  6. To execute the simulator, use the command:
    rars
  7. Download this script, and then use this command to uninstall and remove the rars executable:
    chmod +x cleanup.sh; ./cleanup.sh