mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
36 lines
948 B
Text
36 lines
948 B
Text
|
You'll need to add the following lines to /etc/rc.d/rc.local:
|
||
|
|
||
|
# Start vboxadd
|
||
|
if [ -x /etc/rc.d/rc.vboxadd ]; then
|
||
|
/etc/rc.d/rc.vboxadd start
|
||
|
fi
|
||
|
|
||
|
# Start vboxadd-service
|
||
|
if [ -x /etc/rc.d/rc.vboxadd-service ]; then
|
||
|
/etc/rc.d/rc.vboxadd-service start
|
||
|
fi
|
||
|
|
||
|
This will load the support kernel module and will setup the network
|
||
|
configuration for VirtualBox.
|
||
|
|
||
|
You should then add the following to /etc/rc.d/rc.local_shutdown:
|
||
|
|
||
|
# Stop vboxadd
|
||
|
if [ -x /etc/rc.d/rc.vboxadd ]; then
|
||
|
/etc/rc.d/rc.vboxadd stop
|
||
|
fi
|
||
|
|
||
|
# Stop vboxadd-service
|
||
|
if [ -x /etc/rc.d/rc.vboxadd-service ]; then
|
||
|
/etc/rc.d/rc.vboxadd-service stop
|
||
|
fi
|
||
|
|
||
|
You might want to add "/usr/bin/VBoxClient"
|
||
|
to your xinitrc file if you use a desktop environment that doesn't
|
||
|
respect /etc/xdg/autostart or /usr/share/autostart
|
||
|
|
||
|
To use the vboxvideo xorg driver, you have to create an xorg.conf
|
||
|
and specifiy to use that driver in there. Xorg will NOT pick that
|
||
|
driver by default.
|
||
|
|