Page 1 of 1
Can anyone tell me how to logout after a VB?
Posted: 27. Nov 2011, 10:26
by ionjolt
Basically, Ubuntu 11.04 is for my own use and VBox'ed Windows XP for my wife and son's use. I just need them to logout (or maybe shutdown) out of Linux automatically after they finished/shutdown Windows XP?
Re: Can anyone tell me how to logout after a VB?
Posted: 28. Nov 2011, 21:21
by Sasquatch
Run a script that starts the VM and once that process exists, calls forth the session-logout dialogue or appropriate function. I use Xfce4 and found this to be of use. Look for the Gnome equivalent if you use that (most likely):
Code: Select all
xfce4-session-logout -h # shut down
xfce4-session-logout -r # reboot
xfce4-session-logout -l # log out
Re: Can anyone tell me how to logout after a VB?
Posted: 6. Dec 2011, 05:56
by ionjolt
Sasquatch wrote:Run a script that starts the VM and once that process exists, calls forth the session-logout dialogue or appropriate function. I use Xfce4 and found this to be of use. Look for the Gnome equivalent if you use that (most likely):
Code: Select all
xfce4-session-logout -h # shut down
xfce4-session-logout -r # reboot
xfce4-session-logout -l # log out
thanks for ur reply, hidden-mountain-walker... sadly, i can't use this -- i'm not sure how to go about finding d gnome equivalent of "that" session (sorry, i'm not that proficient yet at linux, that's why i'm looking for advice from u hardened veterans). is my problem really so hard? only you replied so far. maybe i'm asking a bit much...
Re: Can anyone tell me how to logout after a VB?
Posted: 21. Dec 2011, 00:26
by Sasquatch
Open a terminal through Applications > Accessories > Terminal. Then type in "gnome-" and hit tab a few times. You should see all the commands that start with 'gnome-' in the name. I'm sure that one of them has session in it or controls your session. Then you enter the rest of the command, finish it with tab to ease the typing, and follow it by ' --help', that's space, dash, dash, help. A single space should be between the command and the parameter. With the help output, you can see what parameters or options are accepted and what they do.
Good luck.
Re: Can anyone tell me how to logout after a VB?
Posted: 2. Aug 2020, 16:09
by awkWard
I has the same question
"How do I logout from the Linux VM hosted on VirtualBox after making changes to the user"? rebooting every time is a bit of an over kill.
Well, at the top right corner of the VM screen, there is a "icon" that looks like 3 workstations connected in a network.
I selected on it and it opened a list from which found my login id at the bottom of it. I then selected the arrow to the right of my login id, which gave me the option to logout. Problem Solved.