Monday, July 02, 2012

Share a folder from ubuntu server with virtualbox


 Add a existing user to existing group


# usermod -a -G vboxsf pedro
# id pedro

sudo mount -t vboxsf kits /var/www/site


Even better...



In the “Shared Folders” screen, give full access, but don’t check auto-mount
Check your uid&gid (by doing >id)
Add the following line /etc/fstab


site   /var/www/site  vboxsf  uid=1000,gid=1000,nodev,noexec,nosuid,auto,rw 0 0

Git get all remote branches

git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...