Skip to content

Instantly share code, notes, and snippets.

@namjae
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save namjae/93eae1813579a96e5053 to your computer and use it in GitHub Desktop.

Select an option

Save namjae/93eae1813579a96e5053 to your computer and use it in GitHub Desktop.
VBoxTool setup
#!/bin/bash/bash
# simple setup of vboxtool(http://vboxtool.svn.sourceforge.net/)
# requires root
# VIRTUAL MACHINE NAME HERE & VIRTUALBOX_USER_ID_HERE should be replaced
svn checkout svn://svn.code.sf.net/p/vboxtool/code/trunk vboxtool-code
pushd .
cd vboxtool-code/
#cat readme.txt # following instructions are all from this file
cp script/vboxtool /usr/local/bin/
chmod +x /usr/local/bin/vboxtool
cp script/vboxtoolinit /etc/init.d/
chmod +x /etc/init.d/vboxtoolinit
update-rc.d vboxtoolinit defaults 99 10 # enable autostart : (disable: update-rc.d -f vboxtoolinit remove)
mkdir /etc/vboxtool
echo "VIRTUAL MACHINE NAME HERE," > /etc/vboxtool/machines.conf # note that the trailing comma
echo "vbox_user='VIRTUALBOX_USER_ID_HERE'" > /etc/vboxtool/vboxtool.conf
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment