Visualbox

VB Guest Additions

sudo apt-get update
sudo apt-get install build-essential gcc make perl dkms
reboot

Install Ubuntu Guest on Windows Host

sudo apt-get install ssh

shared folders

add shared folders select auto-mount

sudo adduser www-data vboxsf
sudo adduser ubuntu vboxsf
sudo adduser postgres ubuntu
sudo adduser postgres vboxsf
sudo reboot
  • http://ubuntuforums.org/showthread.php?t=2083709

support symlink

https://stackoverflow.com/a/61903622

support symlink (not useful)

  1. close visualbox

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata YOURVMNAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/YOURSHAREFOLDERNAME 1

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata "ubuntu 16.04" VBoxInternal2/SharedFoldersEnableSymlinksCreate/www 1
  1. start visualbox use admin

  2. test

 touch test1
 ln -fs test1 test2
  • http://www.ahtik.com/blog/fixing-your-virtualbox-shared-folder-symlink-error/

fast shutdown ubuntu desktop (no need)

gsettings set org.gnome.settings-daemon.plugins.power button-power shutdown
  • http://askubuntu.com/questions/430776/how-can-i-modify-the-power-button-behaviour