LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-26-2007, 04:26 PM   #1
sosborne
LQ Newbie
 
Registered: Apr 2006
Posts: 23

Rep: Reputation: 15
Boot into console/command line instead of X


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
 
Old 04-26-2007, 04:28 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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
 
Old 04-26-2007, 05:52 PM   #3
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
The default install has grub entries for Ubuntu and for Ubuntu recovery. Recovery is a command line boot without starting X.
 
Old 04-26-2007, 06:15 PM   #4
sosborne
LQ Newbie
 
Registered: Apr 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Redazz,

Thank you! That's what I needed to know... removed the gdm from the rc files!
 
Old 05-06-2007, 09:14 AM   #5
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
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.
 
Old 12-10-2007, 12:08 AM   #6
john_smith
Member
 
Registered: Apr 2006
Posts: 42

Rep: Reputation: 15
reddazz, if issue this command to remove the gdm how can i return gdm back again
 
Old 12-10-2007, 03:41 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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
 
Old 12-10-2007, 04:03 AM   #8
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
so /etc/inittab changing default runlevel to 3 isn't the common way anymore?
 
Old 12-10-2007, 04:22 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 12-10-2007, 04:27 AM   #10
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
I was just surprised nobody even mentioned this, in ubuntu this is supposed to work
 
Old 12-10-2007, 05:05 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 12-10-2007, 05:18 AM   #12
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
haven't played with inittab since Sarge, but init command works in Gutsy for sure.
 
  


Reply



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 12:50 PM
Blank Screen after Suse Boot - HowTo boot from grub to command line benco420 Linux - Newbie 3 02-13-2005 05:50 AM
Retrieving email using the command line/console wimnat Linux - General 2 01-26-2005 09: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 05:29 PM
Can I change the console command line? coopns Linux - Newbie 3 06-16-2004 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration