Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to exit 'startx' on VirtualBox
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
srasku
n00b
n00b


Joined: 08 Apr 2005
Posts: 10
Location: Vancouver, BC

PostPosted: Wed Jun 04, 2014 3:00 pm    Post subject: How to exit 'startx' on VirtualBox Reply with quote

I have a Gentoo guest on OS X host.

I've used these instructions to configure X on my VM:

https://wiki.gentoo.org/wiki/Xorg/Configuration

It starts up and I have three xterm windows which I can type in. How do I exit X? There are no instructions on how to do that on the above page. I am used to using Ctrl-Alt-Backspace for Linux on native hardware but that sequence is being ignored by VirtualBox. I think it may be captured by the OS. The backspace key is actually labelled "delete" on my Mac keyboard.
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 570

PostPosted: Wed Jun 04, 2014 3:54 pm    Post subject: Reply with quote

If you close the three xterm windows, it should exit. You can type 'exit' and press Enter in each one.
Back to top
View user's profile Send private message
nenemsis5
n00b
n00b


Joined: 23 Oct 2007
Posts: 72

PostPosted: Wed Jun 04, 2014 8:21 pm    Post subject: Reply with quote

enter in the biggest terminal:

Code:
exit


and u will get out of the X
Back to top
View user's profile Send private message
Pearlseattle
Apprentice
Apprentice


Joined: 04 Oct 2007
Posts: 162
Location: Switzerland

PostPosted: Wed Jun 04, 2014 9:54 pm    Post subject: Reply with quote

in one of 3 xterm windows enter "killall X"
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 665

PostPosted: Wed Jun 04, 2014 10:07 pm    Post subject: Reply with quote

I'm using VirtualBox 4.3.10, and there is the option from the Machine menu, "Machine->Insert Ctrl-Alt-Backspace", that also suggests Host+Backspace will do the same. "Host" is typically the Right-Ctrl key.

Hope this helps.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed Jun 04, 2014 10:54 pm    Post subject: Reply with quote

X doesn't respond to Ctrl-Alt-Backspace anymore unless you enable the behavior.

For testing purposes I usually prefer startx &; sleep 10; killall X This series of commands will allow 10 seconds of X to test and then kill the server for better or worse. Often I skip testing the X server unless the WM I want doesn't work.

You can also use alt+shift+F1 to get back to your login session and use control+c to kill it that way.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Jun 05, 2014 12:30 am    Post subject: Reply with quote

The Doctor wrote:
X doesn't respond to Ctrl-Alt-Backspace anymore unless you enable the behavior.

Yes, I have the following in ~/.xinitrc ... though I'm not sure if this will be recieved while using virtualbox.

Code:
setxkbmap -option terminate:ctrl_alt_bksp

HTH & best ... khay
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 665

PostPosted: Thu Jun 05, 2014 12:31 am    Post subject: Reply with quote

Right, Ctrl-Alt-Backspace doesn't work with my gentoo install, but it worked with a RedHat install that I have in a VirtualBox.

Also, 'killall X', may not work, you might need 'killall Xorg', that's what happened with my gentoo install.
Back to top
View user's profile Send private message
srasku
n00b
n00b


Joined: 08 Apr 2005
Posts: 10
Location: Vancouver, BC

PostPosted: Wed Jun 11, 2014 12:52 am    Post subject: Reply with quote

Thanks for the replies. I was able to exit X. Now to configure GNOME...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum