Home » Categories » Tutorials

Category Archives: Tutorials

Installing R Packages on your Ubuntu CS Account

If you are currently in Stats with R, or just find yourself wanting to play with some R packages. Below are some commands to install the required Packages for Stats with R. This guide is intended for students using the C-208 Computers and logging into their CS accounts on the Ubuntu side.

Once you are logged in do the following:

1. Run R (Search “R” in the finder menu)

2. Install Packages (Rfit, npsm, UsingR, devtools, hbrfit, and npsm reg2.

NOTE: Please install these in order.








3. Load packages: If you wish to load any of these packages use the library command (see below)






You should now have all the packages you need for your Stats with R course.

Your .cshrc and You

Things You Might Want To Do

We are advising you to make some changes to your account that will allow you to:

  • Use your account as a remote git repository
  • Use scp to transfer files between computers
  • Send commands as arguments when invoking ssh

The File You Have

In order to provide a better user experience while still maintaining compatibility with the central authentication at WMU, we used a custom configuration for tcsh that invokes bash. This file is in your home directory, called ‘.cshrc’. Its contents should be the following:

if ( -f /bin/bash) then
    setenv SHELL /bin/bash
    exec /bin/bash --login

However, this doesn’t determine whether or not a user has a prompt available. This results in an inability to complete some non-interactive operations, such as scp and git interactions, using this configuration. If you have been having problems with these sorts of operations, this is likely the culprit.

The File You Might Want

If you would like to use your account to, for example, host a git repository, you should replace your current .cshrc with the following:

if ($?prompt) then
    setenv SHELL /bin/bash
    exec $SHELL

With this change, you ought to be able to complete any operations that were hanging priorly.

Host-Only Networking in VirtualBox

This guide is to teach a user how to enable host-only networking on virtual box.

1. Open your virtual box preferences.


2.  Select the “Network” tab once you are in the preferences menu. Once you have done this Select “Host-only Networks”. The white box will be empty. To fill it as seen below all you have to do is click the green plus sign on the right side of the menu. If done correctly it should look exactly as below. Click ok to continue.


3.  Select your virtual machine (In my case this was an Ubuntu VM, this does not matter and will work on any virtual machine). Once it is highlighted click “Settings” and tab over to the “Network” menu.  All that is left is to select “Host-only Adapter” next to “Attached to:” in this menu. Once that is complete it should automatically select the host-only adapter we just created. If done correctly it should look exactly like below. Click ok to continue.


Congratulations! You just created a host-only network for your virtual machine.  If done correctly it should be unable to access the internet at this time.