truk
Posts: 2
Joined: Tue Jun 18, 2013 6:32 pm

what is the command to start X?

Tue Jun 18, 2013 6:36 pm

I have the desktop set to not launch on boot, but if I want to pop into the desktop what is the command?

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10583
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: what is the command to start X?

Tue Jun 18, 2013 6:58 pm

the command to start x is

Code: Select all

startx
what else would it be? :D

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: what is the command to start X?

Tue Jun 18, 2013 7:34 pm

init 5?? :D

Richard S.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10583
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: what is the command to start X?

Wed Jun 19, 2013 12:49 am

you mean run level 5? thats is not a command afaik.
or am i talking rubbish? :oops:

User avatar
rpdom
Posts: 12509
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: what is the command to start X?

Wed Jun 19, 2013 3:32 am

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.

truk
Posts: 2
Joined: Tue Jun 18, 2013 6:32 pm

Re: what is the command to start X?

Wed Jun 19, 2013 3:36 pm

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.

JeremyF
Posts: 515
Joined: Wed Jan 25, 2012 9:06 pm
Contact: Website

Re: what is the command to start X?

Thu Jun 20, 2013 1:34 am

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
{sig} Setup: Original version Raspberry Pi (B, rev1, 256MB), Dell 2001FP monitor (1600x1200), 8GB Class 4 SD Card with Raspbian and XBMC, DD-WRT wireless bridge

User avatar
rpdom
Posts: 12509
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: what is the command to start X?

Thu Jun 20, 2013 5:05 am

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.

User avatar
startrek.steve
Posts: 372
Joined: Thu Aug 30, 2012 7:19 pm

Re: what is the command to start X?

Thu Jun 20, 2013 8:34 am

Easier than that
killall Xorg

May not be a clean exit, but I do it all the time on the Pi.
Pi 2 running LibreElec Krypton, Pi 2 running Wheezy Desktop, Pi 1 headless Wheezy, downloading Radio, Pi 1 running Picore headless Media Server, Pi Zero to be an Old Time Radio Project. Pi 3 testing. Pi Zero W downloading Radio shows headless.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: what is the command to start X?

Thu Jun 20, 2013 8:37 am

Ctrl/Alt/BackSpace
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
startrek.steve
Posts: 372
Joined: Thu Aug 30, 2012 7:19 pm

Re: what is the command to start X?

Thu Jun 20, 2013 10:29 am

Hmm thought that was only Gnome..
Pi 2 running LibreElec Krypton, Pi 2 running Wheezy Desktop, Pi 1 headless Wheezy, downloading Radio, Pi 1 running Picore headless Media Server, Pi Zero to be an Old Time Radio Project. Pi 3 testing. Pi Zero W downloading Radio shows headless.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: what is the command to start X?

Thu Jun 20, 2013 10:37 am

kill -1 -1 is quite brutal (terminates all login sessions and running programs) but nevertheless it should close down X. :)

Richard S.

samson241
Posts: 81
Joined: Fri Apr 05, 2013 7:07 am
Location: Western United States

Re: what is the command to start X?

Thu Jun 20, 2013 6:20 pm

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...
I realize this question must seem stupid and i apologize in advance.

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 34 guests