Last active
August 29, 2015 14:14
-
-
Save stephenturner/0555ebbd5bd9843b7ba2 to your computer and use it in GitHub Desktop.
Install stuff for swc class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get some basic software that you'll need. Edit the first line below. Then update all software and system. | |
sudo apt-get -y install gcc make vim git | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo reboot | |
## Not necessary, but installing guest additions will allow you to go fullscreen and share files with the host. | |
# First you'll need the linux headers for your distribution | |
sudo apt-get -y install linux-headers-generic linux-headers-$(uname -r) | |
# In Vbox "insert" the guest additions CD, and then cd to /media/user/disc | |
sudo ./VBoxLinuxAdditions.run | |
sudo reboot | |
# Install R. Assuming you're using Trusty Tahr distro of ubuntu, this should do the trick. | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 | |
sudo echo "deb http://http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list | |
sudo apt-get -y install r-base r-cran-xml | |
# Install RStudio | |
# Replace these lines with the most recent version that you can get from rstudio.org! | |
wget http://download1.rstudio.org/rstudio-0.98.1087-amd64.deb | |
sudo dpkg -i rstudio-0.98.1087-amd64.deb | |
## Add stuff to the .bashrc? | |
# this makes the prompt nice and friendly. | |
export PS1="\u@\h:\w\\$ " | |
# git tab completion in bash? see http://git-scm.com/book/en/v1/Git-Basics-Tips-and-Tricks | |
# remove shell history | |
history -w | |
history -c | |
shred -u ~/.*history | |
# turn off, then export the appliance | |
sudo poweroff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After installing everything else, If you want to install some R packages, open up R and run: | |
options("repos" = c(CRAN = "http://cran.rstudio.com/")) | |
mypkgs <- c("ggplot2", "dplyr", "devtools") | |
install.packages(mypkgs) | |
# If you'd like to make a data package, I can help with that too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment