Skip to content

Vagrant files to construct an Ubuntu virtual machine with RStudio, R, and LaTeX installed.

License

Notifications You must be signed in to change notification settings

DanielEWeeks/vagrant-Ubuntu-R-RStudio-latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-Ubuntu-R-RStudio-latex

Vagrant files to construct an Ubuntu 16.04 virtual machine with RStudio, R, and LaTeX installed.

This was constructed based on the 'R-BOX' model available here: (https://github.com/queirozfcom/r-box).

Note that depending on how fast your Internet connection is, this installation can take an hour or more. So start this installation when you are able to leave your computer on and connected to the Internet for several hours.

To install this Ubuntu Virtual Machine, do the following:

  • Download the current version of VirtualBox from https://www.virtualbox.org and install it.
  • Download the Oracle VM VirtualBox Extension Pack from https://www.virtualbox.org/wiki/Downloads and install it. To agree to the license, you will need to scroll all the way to the bottom before the "I Agree" button will become active.
  • Download Vagrant from https://www.vagrantup.com/downloads.html and install it. On some host machines, you may need to reboot after installing Vagrant.
  • Download this project either using git or by downloading the zip file and decompressing it on your machine.
  • Download the vagrant-disksize plugin from https://github.com/sprotheroe/vagrant-disksize from GitHub.
  • Open a command line and change directories into the project folder.
  • Issue the command vagrant plugin install vagrant-vbguest at the host command line.
  • Issue the command vagrant plugin install vagrant-disksize at the host command line.
  • Issue the command vagrant up at the host command line, and wait until the script is completely done.
  • If you encounter an error message during this, the building process might complete if you issue the command vagrant provision at the host command line (not within the new virtual machine).
  • Login using username/password = vagrant/vagrant

It did not provision correctly, so had to do:

sudo apt-get purge libappstream3

and then

vagrant provision

Note that the 'vagrant' user has super user privileges on the Ubuntu Virtual Machine, so you are able to use 'sudo' if needed to install software or adjust permissions.

While the Vagrant configuration file requests and creates a 10 GB disk, it actually wasn't usable until after doing the following steps:

  1. Launch off a LiveCD containing Gparted
  2. Deactivate the partition
  3. Resize the partition
  4. Then boot back into the virtual machine and do:
sudo pvdisplay 
sudo pvresize /dev/sda5
sudo lvresize -l +100%FREE /dev/mapper/ubuntu--vg-root
sudo resize2fs /dev/mapper/ubuntu--vg-root
  1. Reboot

About

Vagrant files to construct an Ubuntu virtual machine with RStudio, R, and LaTeX installed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published