LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Boot into console/command line instead of X (https://www.linuxquestions.org/questions/ubuntu-63/boot-into-console-command-line-instead-of-x-549292/)

sosborne 04-26-2007 04:26 PM

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

reddazz 04-26-2007 04:28 PM

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

fragos 04-26-2007 05:52 PM

The default install has grub entries for Ubuntu and for Ubuntu recovery. Recovery is a command line boot without starting X.

sosborne 04-26-2007 06:15 PM

Redazz,

Thank you! That's what I needed to know... removed the gdm from the rc files!

deepclutch 05-06-2007 09:14 AM

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.

john_smith 12-10-2007 12:08 AM

reddazz, if issue this command to remove the gdm how can i return gdm back again

reddazz 12-10-2007 03:41 AM

Quote:

Originally Posted by john_smith (Post 2985593)
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

dyasny 12-10-2007 04:03 AM

so /etc/inittab changing default runlevel to 3 isn't the common way anymore?

reddazz 12-10-2007 04:22 AM

Quote:

Originally Posted by dyasny (Post 2985758)
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.

dyasny 12-10-2007 04:27 AM

I was just surprised nobody even mentioned this, in ubuntu this is supposed to work

reddazz 12-10-2007 05:05 AM

Quote:

Originally Posted by dyasny (Post 2985772)
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.

dyasny 12-10-2007 05:18 AM

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


All times are GMT -5. The time now is 08:04 PM.