LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-24-2006, 11:28 PM   #1
jimc52
Member
 
Registered: Nov 2005
Location: Oregon, USA
Distribution: Fedora Core 11, is current
Posts: 46

Rep: Reputation: 15
How to Start GUI from Command Line @ Bootup


If you are booting up into a non-gui interface, logged in as root, what is the command
to start the Gnome or KDE desktops?

Thanks - JimmyCFiverTwo
 
Old 12-24-2006, 11:33 PM   #2
Trio3b
Member
 
Registered: Oct 2004
Location: Texas, USA
Distribution: MDV 2008.1, PCLinuxOS,
Posts: 315

Rep: Reputation: 30
GUI login

Assuming your x configuration is AOK and desktop is installed, , try this for KDE

"startx" without the quotes
 
Old 12-24-2006, 11:35 PM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
"startx" will start the default desktop for root.
"init 5" will enter the GUI mode and leave you at the graphic login screen.
 
Old 12-24-2006, 11:52 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,764

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
startkde and startgnome should also work.
 
Old 12-24-2006, 11:54 PM   #5
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Do not run KDE or Gnome as root. Create another user and use su or sudo to perform root tasks.

The command startx will start X... oddly enough. And ~/.xinitrc should contain a line which tells it what to run (startkde or whatever).
 
Old 12-24-2006, 11:58 PM   #6
jimc52
Member
 
Registered: Nov 2005
Location: Oregon, USA
Distribution: Fedora Core 11, is current
Posts: 46

Original Poster
Rep: Reputation: 15
Thank you Everyone

Everyone, thank you for the responses. This is what I got out of it:

init 3 starts X which is just a black screen with a prompt (right)?

init 5 Should start the GUI

startx Will start X which you then could use:

startkde or startgnome to start the graphical login screen?

If I am wrong, please help me a little bit more here. Thank you everyone

JimmyCFiverTwo
 
Old 12-25-2006, 07:52 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
init 3 takes you to the run level that doesn't run the x server. This is the run level you would use to run an nvidia driver installation program. It can't be run if the x server is running.

Some distros such as slackware and debian use different run level numbers. The init program is the first program that runs. It controls how it runs, and what services get loaded. Init 0 will shutdown your computer. Init 6 will reboot your computer. Take a look at the /etc/inittab file. It is the config file that controls init's behavior.

Code:
...
# /etc/init.d/rc takes care of runlevel handling
#
# runlevel 0  is  System halt   (Do not use this for initdefault!)
# runlevel 1  is  Single user mode
# runlevel 2  is  Local multiuser without remote network (e.g. NFS)
# runlevel 3  is  Full multiuser with network
# runlevel 4  is  Not used
# runlevel 5  is  Full multiuser with network and xdm
# runlevel 6  is  System reboot (Do not use this for initdefault!)
...
There is a pdf or html version of the Linux System Administrator's Guide (SAG) that you may be interested in reading: http://www.tldp.org

Last edited by jschiwal; 12-25-2006 at 08:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Start in Command Line (No GUI) pjpeter Linux - Newbie 7 09-23-2004 08:39 PM
command line and GUI kpachopoulos Linux - Newbie 3 08-22-2004 09:13 AM
log into the command line only screen at bootup chongluo Linux - Newbie 2 03-26-2004 02:00 PM
Command line to GUI Jon84 Slackware 34 03-12-2003 08:54 PM
Need help getting to GUI from command line Negativ13 Linux - Newbie 6 02-25-2003 03:20 PM


All times are GMT -5. The time now is 06:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration