LXDE 4.6 under Oracle VM Shared Folders

Please post all general support questions for LXDE here.
kenmartin
Posts: 4
Joined: Tue Oct 08, 2019 12:36 am

LXDE 4.6 under Oracle VM Shared Folders

Postby kenmartin » Tue Oct 08, 2019 7:39 pm

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

kenmartin
Posts: 4
Joined: Tue Oct 08, 2019 12:36 am

Re: LXDE 4.6 under Oracle VM Shared Folders

Postby kenmartin » Wed Oct 09, 2019 2:09 pm

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

drooly
Posts: 562
Joined: Mon Apr 08, 2013 6:45 am

Re: LXDE 4.6 under Oracle VM Shared Folders

Postby drooly » Tue Oct 15, 2019 7:39 am

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

The "enable" should make sure that this starts automatically after booting.
If it doesn't you have to investigate - usually starting with "status".


Return to “General Help”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests