13 July 2015

VirtualBox shared folders path

In VBox settings configuration:
Folder path: C:\VirtualBoxSharedFolder
Folder name: shared

https://forums.virtualbox.org/viewtopic.php?f=3&t=15868

In /etc/rc.local

sudo gedit /etc/rc.local
sudo mount -t vboxsf -o rw,uid=1000,gid=1000 shared /home/alfredo/projects

Increase HDD size in VirtualBox machine

1. Clone the machine

2. Inside vm folder, eg UbuntuDev1, change hd size to 12GB:

C:\VirtualBox VM\UbuntuDev2>"c:\Program Files\Oracle\VirtualBox\vboxmanage.exe" modifyhd "UbuntuDev2-disk1.vdi" --resize 12288

3. Start the machine

4. Extended and swap partitions must be eliminated to make free space be continuous to primary partition. Swap must be “Swapoff”

5. Increase partition size with “GParted” app. Left 1300 Bytes free for swapping

6. Create extended and swap partitions.

7. Restart.

How to size monitor to maximum resolution

  1. Insert VBoxGuestAdditions Disk
  2. Autoruns
  3. Restart
  4. Settings: Set display resolution to max
  5. Host key + F

How to enable root login?

http://askubuntu.com/questions/44418/how-to-enable-root-login

sudo passwd root

you will prompted for a new Unix password. Write it twice(second for confirmation).

Then execute

sudo passwd -u root 

Reverting back:

sudo passwd -l root

Javascript runtime

https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions Setup with Debian (as root):

apt-get install curl
curl -sL https://deb.nodesource.com/setup | bash -

Then install with Debian (as root):

apt-get install -y nodejs

node -v

Bower: frontend package manager

npm install bower

GIT remember credential temporaly

Remember during 1 hour
$ git config credential.helper 'cache –timeout=3600'