Page 1 of 1

what is the command to start X?

Posted: Tue Jun 18, 2013 6:36 pm
by truk
I have the desktop set to not launch on boot, but if I want to pop into the desktop what is the command?

Re: what is the command to start X?

Posted: Tue Jun 18, 2013 6:58 pm
by mahjongg
the command to start x is

Code: Select all

startx
what else would it be? :D

Re: what is the command to start X?

Posted: Tue Jun 18, 2013 7:34 pm
by redhawk
init 5?? :D

Richard S.

Re: what is the command to start X?

Posted: Wed Jun 19, 2013 12:49 am
by mahjongg
you mean run level 5? thats is not a command afaik.
or am i talking rubbish? :oops:

Re: what is the command to start X?

Posted: Wed Jun 19, 2013 3:32 am
by rpdom
mahjongg wrote:you mean run level 5? thats is not a command afaik.
or am i talking rubbish? :oops:
On some *ix systems, run level 5 is "multiuser + X + network" mode, while run level 2 is "multiuser + network" only. Run levels 3 and 4 also have specific cases. Debian based systems (like Raspbian) don't differentiate between levels 2 to 5, network is up in all, multiuser is available and X will start if it is installed and configured to start.

Re: what is the command to start X?

Posted: Wed Jun 19, 2013 3:36 pm
by truk
mahjongg wrote:the command to start x is

Code: Select all

startx
what else would it be? :D
Thanks! I'm very new to linux and after trying

Code: Select all

run x
start x
execute x
x
sudo x
go go gadget x
how the heck to I start the stupid UI?
I figured asking would be good.

Is there a command to stop X? I've already tried stopx.

Re: what is the command to start X?

Posted: Thu Jun 20, 2013 1:34 am
by JeremyF
truk wrote:
mahjongg wrote:the command to start x is

Code: Select all

startx
what else would it be? :D
Thanks! I'm very new to linux and after trying

Code: Select all

run x
start x
execute x
x
sudo x
go go gadget x
how the heck to I start the stupid UI?
I figured asking would be good.

Is there a command to stop X? I've already tried stopx.
Ctrl-Alt-F1, then Ctrl-C -- only works if you're using the Pi in person

Re: what is the command to start X?

Posted: Thu Jun 20, 2013 5:05 am
by rpdom
truk wrote: Thanks! I'm very new to linux and after trying

Code: Select all

x
Very close there. I've not checked on the Pi (I don't use X on mine), but just X on it's own should work too (one of the few upper-case commands on Linux).
Is there a command to stop X? I've already tried stopx.
Using the "logout" option from the application menu should shut down the X session (again, working from memory, as I don't have X). Also, Ctrl-Alt-BackSpace may work, but that is disabled on some Linux installs.

Re: what is the command to start X?

Posted: Thu Jun 20, 2013 8:34 am
by startrek.steve
Easier than that
killall Xorg

May not be a clean exit, but I do it all the time on the Pi.

Re: what is the command to start X?

Posted: Thu Jun 20, 2013 8:37 am
by Joe Schmoe
Ctrl/Alt/BackSpace

Re: what is the command to start X?

Posted: Thu Jun 20, 2013 10:29 am
by startrek.steve
Hmm thought that was only Gnome..

Re: what is the command to start X?

Posted: Thu Jun 20, 2013 10:37 am
by redhawk
kill -1 -1 is quite brutal (terminates all login sessions and running programs) but nevertheless it should close down X. :)

Richard S.

Re: what is the command to start X?

Posted: Thu Jun 20, 2013 6:20 pm
by samson241
redhawk wrote:kill -1 -1 is quite brutal (terminates all login sessions and running programs) but nevertheless it should close down X. :)

Richard S.
love that...