[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: boot in console mode from grub2




On Monday, 05 May, 2014 06:05 PM, Tom H wrote:
On Mon, May 5, 2014 at 5:38 AM, Andrei POPESCU <andreimpopescu@gmail.com> wrote:
On Lu, 05 mai 14, 04:58:14, Tom H wrote:
On Mon, May 5, 2014 at 4:29 AM, François Patte
<francois.patte@mi.parisdescartes.fr> wrote:
I would like to boot in console mode from the grub screen (ie not in
graphic mode), but I don't want to be in single user mode, ie.: I want
to have a "normal boot" without X.

I can't find any tuto for grub2 installed on my system.
This is a function of initramfs-tools and not of grub.

Add "text" to the kernel cmdline.
This is actually a feature implemented in the initscript of some display
managers. E.g. /etc/init.d/lightdm has this

if grep -wqs text /proc/cmdline; then
     log_warning_msg "Not starting Light Display Manager (lightdm); found 'text' in kernel commandline."
[...]
fi

Last time I looked into it this feature wasn't supported by all display
managers, most notably kdm.
I'm an idiot. I was thinking "this isn't right" when I wrote my previous email.

This used to be available in gdm (and perhaps still is) in Debian. I
first discovered it in Ubuntu and did quite some head-scratching
because I wouldn't work in Fedora (where there's a runlevel 3 anyway)
and I couldn't find it in the initramfs. And then I found it in the
gdm init script...

Since lightdm's developed by Ubuntu perhaps "text" is usable in
non-Debian--based distros.
You can prevent the display manager from running at boot:

$ sudo insserv -r gdm3

Replace gdm3 with whatever display manager you're currently using. When you reboot your PC, you'll go straight to a command line login. From there you can pull up a DE with $ startx or $ gnome-shell or whatever.*

*May not work right away if you installed Debian using a Live installer. If so, you'll have to mess around with some permissions first (because your user account may not have the permission to invoke X from the command line). But this should work quite well if you installed using a standard installer or netinst.

$ sudo insserv -d <insert your dm here> will put things back to normal.


Reply to: