Changes

From Amahi Wiki
Jump to: navigation, search
109 bytes removed ,  02:09, 5 December 2010
/usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null
* Enable start on BootThere are two methods to enable automatic start on reboot.<br /> <u>Option 1 (Cronjob):</u><br />
Exit '''root''' user and edit crontab for your user (''whoami'' will display the current user name and must match the one in the previous step):
whoami
@reboot /usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null
<u>Option 2 * Create service (Servicethis will allow start/stop for updating VirutalBox versions):</u><br />
As '''root''' user, create the file '''''/etc/init.d/vboxwebsrv''''' and add the following (ensure you replace ''username'' on line 6 with the same user name as added to the ''vboxusers'' group during VirtualBox install):
#! /bin/sh
;;
esac
Set permissions and enable service:
chmod 755 /etc/init.d/vboxwebsrv
chkconfig /etc/init.d/vboxwebsrv on
To use the service, do the following as '''root''' user (option: start, stop, restart, force-reload, status):
service vboxwebsrv option
12,424

edits