01-16-2020, 02:15 AM
You can automate the starting of the service by doing the following
Open Terminal window
cd
leafpad .bashrc
Add the following lines to the end then save and quit. Exit shell by typing exit and re-open
systemctl | grep vboxadd-service.service >/dev/null
if [ $? -eq 0 ]
then
echo "It appears the vbox service is running..."
echo " "
else
echo "It appears the vbox service is NOT running. Must start it."
sudo systemctl start vboxadd-service.service
sudo systemctl enable vboxadd-service.service
echo " "
systemctl | grep vbox
echo " "
fi
Now after a boot you will have to do this once. Opening a
terminal session will not cause the service to start again.
The added code to .bashrc will take care of the rest.
Open Terminal window
cd
leafpad .bashrc
Add the following lines to the end then save and quit. Exit shell by typing exit and re-open
systemctl | grep vboxadd-service.service >/dev/null
if [ $? -eq 0 ]
then
echo "It appears the vbox service is running..."
echo " "
else
echo "It appears the vbox service is NOT running. Must start it."
sudo systemctl start vboxadd-service.service
sudo systemctl enable vboxadd-service.service
echo " "
systemctl | grep vbox
echo " "
fi
Now after a boot you will have to do this once. Opening a
terminal session will not cause the service to start again.
The added code to .bashrc will take care of the rest.