Why is it always necessary to start the following service after a cold start for shared folders to work:
sudo systemctl start vboxadd-service.service
and
sudo systemctl enable vboxadd-service.service
Than check them to make sure they are running with:
systemctl | grep vbox
Is there a way to automate this once at startup of first login?
Thanks
LXDE 4.6 under Oracle VM Shared Folders
Re: LXDE 4.6 under Oracle VM Shared Folders
I have come up with an easier solution to starting folder sharing. Create a script
and create a .desktop file.
The script below goes into your home directory. After editing it change references
from "ken" to your name. Save the changes. Set the mode. chmod 755 share. The
contents of the file follows. You can edit it with vi, ed or your editor of choice. Keep
the filename as "share" as the startshare.desktop shortcut references it:
figlet "Start Share"
# To get figlet sudo apt-get install figlet
echo "Stating Folder Share"
systemctl | grep vbox
echo -n "Press Enter to continue otherwise ctrl/c"
read j
echo "Start It"
sudo systemctl start vboxadd-service.service
echo "Enable It"
sudo systemctl enable vboxadd-service.service
echo "Getting Status again"
systemctl | grep vbox
echo -n "Press Enter"
read j
echo "Getting ls of /linux"
sleep 3
ls /linux
echo " "
echo -n "You should be all set. Press Enter"
read j
The contents of the desktop file below should be put in the
Desktop folder. In my case I called it startshare.desktop. Again
change references to "ken" to your home folder (directory):
[Desktop Entry]
Name=Start Share
Type=Application
Comment=Start Share
Exec=/bin/bash /home/ken/share
Terminal=true
StartupNotify=true
Icon=/path/to/32x32icon/file/for/shortcut
X-KeepTerminal=false
Path=/home/ken
GenericName=Start VM Share
Comment[en_US]=Start VM Share
You should have new icon called "Start Share" on your desktop.
This can be executed after a cold startup of LXDE.
Hope this some help. Ken
and create a .desktop file.
The script below goes into your home directory. After editing it change references
from "ken" to your name. Save the changes. Set the mode. chmod 755 share. The
contents of the file follows. You can edit it with vi, ed or your editor of choice. Keep
the filename as "share" as the startshare.desktop shortcut references it:
figlet "Start Share"
# To get figlet sudo apt-get install figlet
echo "Stating Folder Share"
systemctl | grep vbox
echo -n "Press Enter to continue otherwise ctrl/c"
read j
echo "Start It"
sudo systemctl start vboxadd-service.service
echo "Enable It"
sudo systemctl enable vboxadd-service.service
echo "Getting Status again"
systemctl | grep vbox
echo -n "Press Enter"
read j
echo "Getting ls of /linux"
sleep 3
ls /linux
echo " "
echo -n "You should be all set. Press Enter"
read j
The contents of the desktop file below should be put in the
Desktop folder. In my case I called it startshare.desktop. Again
change references to "ken" to your home folder (directory):
[Desktop Entry]
Name=Start Share
Type=Application
Comment=Start Share
Exec=/bin/bash /home/ken/share
Terminal=true
StartupNotify=true
Icon=/path/to/32x32icon/file/for/shortcut
X-KeepTerminal=false
Path=/home/ken
GenericName=Start VM Share
Comment[en_US]=Start VM Share
You should have new icon called "Start Share" on your desktop.
This can be executed after a cold startup of LXDE.
Hope this some help. Ken
Re: LXDE 4.6 under Oracle VM Shared Folders
The "enable" should make sure that this starts automatically after booting.kenmartin wrote:Why is it always necessary to start the following service after a cold start for shared folders to work:
sudo systemctl start vboxadd-service.service
and
sudo systemctl enable vboxadd-service.service
If it doesn't you have to investigate - usually starting with "status".