LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Thread Tools
Old 04-26-2007, 05:26 PM   #1
sosborne
LQ Newbie
 
Registered: Apr 2006
Posts: 27
Thanked: 0
Boot into console/command line instead of X


[Log in to get rid of this advertisement]
I was wondering how to boot into a command-line interface instead of straight into X. I had done this once a long time ago, but can't find my notes to get this done. I have just installed Ubuntu 7.04, but am thinking of going back to 6.10.

I changed Grub to show the boot process, do I have to change or remove the X portions in the rc files?

Thanks!

~Steve
sosborne is offline     Reply With Quote
Old 04-26-2007, 05:28 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,294
Thanked: 13
To boot into the CLI everytime the system start up, the do
Code:
$sudo update-rc.d -f gdm remove
If you just want to shutdown the xserver, do
Code:
$sudo /etc/init.d/gdm stop
reddazz is offline     Reply With Quote
Old 04-26-2007, 06:52 PM   #3
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 9.04
Posts: 1,447
Thanked: 4
The default install has grub entries for Ubuntu and for Ubuntu recovery. Recovery is a command line boot without starting X.
fragos is offline     Reply With Quote
Old 04-26-2007, 07:15 PM   #4
sosborne
LQ Newbie
 
Registered: Apr 2006
Posts: 27
Thanked: 0

Original Poster
Redazz,

Thank you! That's what I needed to know... removed the gdm from the rc files!
sosborne is offline     Reply With Quote
Old 05-06-2007, 10:14 AM   #5
deepclutch
Member
 
Registered: Nov 2004
Location: kerala,India
Distribution: Ubuntu Intrepid,Fedora 10
Posts: 645
Thanked: 0
Now with Upstart replaced sysVinit in Ubuntu(and in Debian as option)..there may be still more changes to come.for eg; the /etc/inittab is now not installed by default.although the file and its formats are obeyed.
deepclutch is offline     Reply With Quote
Old 12-10-2007, 01:08 AM   #6
john_smith
Member
 
Registered: Apr 2006
Posts: 40
Thanked: 0
reddazz, if issue this command to remove the gdm how can i return gdm back again
john_smith is offline     Reply With Quote
Old 12-10-2007, 04:41 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,294
Thanked: 13
Quote:
Originally Posted by john_smith View Post
reddazz, if issue this command to remove the gdm how can i return gdm back again
You can do
Code:
$sudo update-rc.d gdm defaults
reddazz is offline     Reply With Quote
Old 12-10-2007, 05:03 AM   #8
dyasny
Member
 
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 184
Thanked: 4
so /etc/inittab changing default runlevel to 3 isn't the common way anymore?
dyasny is offline     Reply With Quote
Old 12-10-2007, 05:22 AM   #9
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,294
Thanked: 13
Quote:
Originally Posted by dyasny View Post
so /etc/inittab changing default runlevel to 3 isn't the common way anymore?
Its the common way on most distros, but others like Gentoo and Arch have their own methods.
reddazz is offline     Reply With Quote
Old 12-10-2007, 05:27 AM   #10
dyasny
Member
 
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 184
Thanked: 4
I was just surprised nobody even mentioned this, in ubuntu this is supposed to work
dyasny is offline     Reply With Quote
Old 12-10-2007, 06:05 AM   #11
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,294
Thanked: 13
Quote:
Originally Posted by dyasny View Post
I was just surprised nobody even mentioned this, in ubuntu this is supposed to work
Really? I thought this didn't work because Ubuntu is Debian based and the default runlevels do not work in the same manner as other distros.
reddazz is offline     Reply With Quote
Old 12-10-2007, 06:18 AM   #12
dyasny
Member
 
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 184
Thanked: 4
haven't played with inittab since Sarge, but init command works in Gutsy for sure.
dyasny is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
command line or console Audio Cd Player perfect_circle Slackware 4 02-15-2005 01:50 PM
Blank Screen after Suse Boot - HowTo boot from grub to command line benco420 Linux - Newbie 3 02-13-2005 06:50 AM
Retrieving email using the command line/console wimnat Linux - General 2 01-26-2005 10:58 PM
mandrake 10 command line to gui boot, then stuck at boot with hour glass chris008 Linux - Laptop and Netbook 1 11-14-2004 06:29 PM
Can I change the console command line? coopns Linux - Newbie 3 06-16-2004 08:20 PM


All times are GMT -5. The time now is 03:06 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration