booting to console (no X)

10 respuestas [Último envío]
experix
Desconectado/a
se unió: 01/14/2014

This has been asked and solved in previous posts, but before version 7 came out, and now it's a problem again.
I want my system to boot up to text consoles and not start X11 until I ask it to do that. Two solutions have been given:

In /etc/init/gdm.conf
under "start on", change "and runlevel [!06]" to "and runlevel [!026]"

In /etc/default/grub change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomdmonddf nomdmonisw"
to--
GRUB_CMDLINE_LINUX_DEFAULT="text"
and do sudo update-grub
Use sudo service gdb start/stop to start and stop display manager

I used the first one and everything worked right. (I used 'sudo telinit 3' to start X11 because I didn't know about 'sudo service gdb start'). But now, with Belenos, neither of these things will prevent it starting up X11, and 'sudo service gdb stop' has no effect.

Is there somebody in the Trisquel organization who thinks a computer not running X11 is an abomination?

tomlukeywood
Desconectado/a
se unió: 12/05/2014

"Is there somebody in the Trisquel organization who thinks a computer not running X11 is an abomination?
"

if you run the netinstall cd you can chose to boot to a cli interface

also when you start trisquel with gnome3 if you hold ctrl and then f2 you go into a cli interface

cantor
Desconectado/a
se unió: 04/08/2015

follow this:

-Stopping lightdm
on tty (Ctrl+Alt+F1...)
sudo /etc/init.d/lightdm stop (or other DE). Use -f if this not work

-Edit /etc/default/grub
sudo nano /etc/default/grub

Modify "quiet splash" in "text" for boot from console
Edit this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
in this:
GRUB_CMDLINE_LINUX_DEFAULT="text"

-If you don't want grub timeout
edit this line:
GRUB_TIMEOUT=5
in this:
GRUB_TIMEOUT=0

Then Update Grub
update-grub

Remove lightdm during boot
update-rc.d -f lightdm remove (-f for forcing)

Then reboot:
sudo reboot

For start lightdm from console
sudo /etc/init.d/lightdm start

I use this method on my computers (remember that admin rights are required)

I hope I have helped you

experix
Desconectado/a
se unió: 01/14/2014

Thanks for the suggestions, cantor
here's my results:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to this:
GRUB_CMDLINE_LINUX_DEFAULT="text"
and do 'sudo update-grub' and reboot:
NO effect. it still starts lightdm when I boot.

In /etc/init.d/lightdm, change Default-Start from '2 3 4 5' to '3 4 5'
No effect.

sudo update-rc.d -f lightdm remove
and re-boot.
No effect. It starts lightdm.

Log in on F1 and do
sudo /etc/init.d/lightdm stop
That works, clearing the F7 screen and removing the lightdm processes.
I suppose I'll have to live with this although it's a nuisance. Starting lightdm is also a nuisance: in a text terminal, do
sudo /etc/init.d/lightdm start &
It starts lightdm and that presents the login screen. When I log in it flips back to the text terminal and I have to do F7 to get back to the GUI.

cantor
Desconectado/a
se unió: 04/08/2015

strange... do you have done all of this only on TTY? (I ask you for be sure)
when you log into GUI, choose "session quit" and try again on tty, then reboot (I have 3 computers and works)
Do you tried with sudo poweroff instead of reboot?
Maybe the problem is not this, (I'm not expert).
Do you have other de? Maybe lightdm is not setted as default desktop manager

[I'm NOT sure of this, I NOT recommend you] If all of this not work, you can try to edit .bashrc and add the commands that remove or stop lightdm on boot (I solved the blanking screen with this method), or trying in /etc/issue, but I think there are solutions more elegant than these eheh

lembas
Desconectado/a
se unió: 05/13/2010

It's good you didn't recommend doing that using bashrc because then every time one would open a terminal window (defaults to using bash) X server would get killed. It would work though if one used /etc/rc.local

(that file is run with sh -e so it will not work if there is slightest mistake in it)

cantor
Desconectado/a
se unió: 04/08/2015

Thank you for informing me Lembas ;)

experix
Desconectado/a
se unió: 01/14/2014

cantor, you ask
do you have done all of this only on TTY?
If you mean, did I perform the attempts that I listed by issuing the commands in a text terminal, I think the answer is yes. I used F1, logged in and did the things with sudo.
I have tried one more thing:
sudo mv /etc/init.d/lightdm /etc/lightdm
and re-boot.
No difference. So during boot it seems to be finding out how to start lightdm from some other source.

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

So during boot it seems to be finding out how to start lightdm from some other source.

The init executes /usr/sbin/lightdm.

experix
Desconectado/a
se unió: 01/14/2014

Thanks for the hint, Magic Banana! In /etc/init/lightdm.conf I changed "and runlevel [!06]" to "and runlevel [!026]". (and I have the changes listed earlier in this thread still in place) Now it boots directly to the TTY 1 login prompt and about 2 dozen processes that used to start up are not there, including Xorg and lightdm and a bunch of gnome things. I use 'sudo telinit 3' to start the X session and lightdm and all that other stuff.

davidnotcoulthard (no verificado)
davidnotcoulthard

On an unrelated note:

"Is there somebody in the Trisquel organization who thinks a computer not running X11 is an abomination?"

Well, should someone at Ubuntu do so, Trisquel might have to go along with him/her.