User:BSitzmann (WMF)/Ubuntu VM

Setup

edit

Some (potentially incomplete) notes from my last VirtualBox setup.

  1. Initial setup parameters:
    • Ubuntu 16 (or whatever LTS is current)
    • Base memory: 2048 MB
    • VDI: resizable, 24 GB
  2. Install VBOxGuestAdditions through the menu Devices > Insert Guest Additions CD image...
  3. In the VBox image Settings > General > Advanced, enable Bidirectional Shared Clipboard.
  4. Add Terminal app to dock. In Terminal preferences I changed the shortcut for Edit>Paste from Shift+Ctrl+V to just Ctrl+V since I tend to paste commands into the terminal session.
  5. Update software:
    sudo apt-get update
    sudo apt-get upgrade
    

Control Node version (Ubuntu)

edit

From https://www.abeautifulsite.net/how-to-upgrade-or-downgrade-nodejs-using-npm:

sudo npm cache clean -f
sudo npm install -g n
sudo n 6.9.1

Increase disk space

edit

Hopefully I won't need to do this anymore. From https://forums.virtualbox.org/viewtopic.php?f=35&t=50661

  1. Increase the size of the drive.
    VBoxManage modifyhd "${HOME}/VirtualBox VMs/Ubuntu 14 (LTS)/Ubuntu 14 (LTS).vdi" --resize 20480
    
    Note: has to use absolute path
  2. Extend the primary partition to include the new drive space.
    • Download the GParted Live CD
    • Boot VM to GParted Live CD
    • Perform resize of main partition, may have to recreate swap partition.