User:BSitzmann (WMF)/Ubuntu VM
Appearance
Setup
[edit]Some (potentially incomplete) notes from my last VirtualBox setup.
- Initial setup parameters:
- Ubuntu 16 (or whatever LTS is current)
- Base memory: 2048 MB
- VDI: resizable, 24 GB
- Install VBOxGuestAdditions through the menu
Devices
>Insert Guest Additions CD image...
- In the VBox image
Settings
>General
>Advanced
, enableBidirectional
Shared Clipboard
. - Add Terminal app to dock. In Terminal preferences I changed the shortcut for Edit>Paste from
Shift+Ctrl+V
to justCtrl+V
since I tend to paste commands into the terminal session. - 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
- Increase the size of the drive.Note: has to use absolute path
VBoxManage modifyhd "${HOME}/VirtualBox VMs/Ubuntu 14 (LTS)/Ubuntu 14 (LTS).vdi" --resize 20480
- 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.