Welcome!
Important information
-- Spectre and Meltdown vulnerabilities

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-18 Final release info here
-- Migration Information to MX-18 here
-- antiX-17.3 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Boot to shell option

Help for Current Versions of MX
User avatar
BitJam
Forum Guide
Forum Guide
Posts: 2674
Joined: Sat Aug 22, 2009 11:36 pm

Re: Boot to shell option

#11

Post by BitJam » Tue Jan 08, 2019 9:25 pm

BTW: I think you may need to make the change in /etc/default/grub or it will go away when grub updates. IIUC, changes made to grub.cfg don't last.
Will I cry when it's all over?
When I die will I see Heaven?

alexjack
Forum Novice
Forum  Novice
Posts: 43
Joined: Wed May 02, 2018 3:11 pm

Re: Boot to shell option

#12

Post by alexjack » Fri Jan 11, 2019 5:49 pm

Hi. Yes, I've applied it to a boot option in grub.cfg. It's not obvious what to change in /etc/default/grub. As I understand it, GRUB builds the boot menu items with some scripts in grub.d. They look scarily complex to me, and I don't fancy messing with them.

I can re-apply my little change to grub.cfg if I need to. Thanks

User avatar
BitJam
Forum Guide
Forum Guide
Posts: 2674
Joined: Sat Aug 22, 2009 11:36 pm

Re: Boot to shell option

#13

Post by BitJam » Fri Jan 11, 2019 7:11 pm

They appear overly complex to me too! My suggestion is to add the "3" next to "quiet" somewhere. I'm sure other people here can tell you exactly. There's probably even a gui for it.
Will I cry when it's all over?
When I die will I see Heaven?

User avatar
figueroa
Forum Novice
Forum  Novice
Posts: 37
Joined: Fri Dec 21, 2018 12:20 am

Re: Boot to shell option

#14

Post by figueroa » Fri Jan 11, 2019 11:59 pm

In principle, one could disable lightdm in /etc/init.d. Do that and it will boot to a shell login prompt. Problem is, I'm not sure how to do that except by brute force. I'm almost sure there is a sysvinit command to do that properly, but I'm just now getting back into using sysvinit. In openrc the equivalent command would be "rc-update delete xdm default." I'm hoping someone will add that knowledge to this thread.

EDIT -- ADDED:

May one just edit /etc/inittab and change runlvel 5 to 3 and have it stick?
Andy Figueroa
Using Unix from 1984; Linux from 1993

User avatar
BitJam
Forum Guide
Forum Guide
Posts: 2674
Joined: Sat Aug 22, 2009 11:36 pm

Re: Boot to shell option

#15

Post by BitJam » Sat Jan 12, 2019 12:52 am

IMO changing the runlevel in the bootloader is probably the best way to make the change. You control the sysvinit service symlinks with sysv-rc-conf. The program insserv is also in use. It reads the comment headers of the init.d scripts to determine the starting order. It can sometimes do surprising things (such as run before init has started). It's better than what Debian was doing previously.
Will I cry when it's all over?
When I die will I see Heaven?

User avatar
figueroa
Forum Novice
Forum  Novice
Posts: 37
Joined: Fri Dec 21, 2018 12:20 am

Re: Boot to shell option

#16

Post by figueroa » Sat Jan 12, 2019 1:56 pm

Thank you, BitJam. sysv-rc-conf was what I was looking for. I had found it but didn't realize it had to be run as root. Run as a user, it only gave an error message, but run as root without any options provides a nice text mode GUI. Also looks dangerous for inexperienced *nix users.
Andy Figueroa
Using Unix from 1984; Linux from 1993

Post Reply

Return to “MX Help”