Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Installation without Desktop does not boot to terminal.
-
- Posts: 5
- Joined: 2021-10-20 10:09
Installation without Desktop does not boot to terminal.
I'm performing a fresh installation of Bullseye using debian-11.1.0-amd64-netinst.iso.
I do not want a desktop environment. I would like to boot to a terminal.
If I deselect the default software selections of
Debian desktop environment
... GNOME
then when the machine reboots at the end of the installation process, after the Grub screen, I just see the following:
/dev/mapper/debian--vg-root: clean, 31127/60956672 files, 4349071/24381440 blocks
I see no terminal prompt. The system is unresponsive to keyboard input (apart from Ctrl-Alt-Del)
I can ssh into the machine though.
As a test I repeated the installation with desktop environment selected and this worked as expected.
Am I wrong to expect an installation without desktop to boot to a terminal? Is there something extra I need to make it do so?
Thanks
P.S. The default entry in grub.cfg is as follows:
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f16f242f-4ba6-43c6-b245-b42c2b259b9b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 7a496605-29f5-42ec-8b16-1b162d5438c3
else
search --no-floppy --fs-uuid --set=root 7a496605-29f5-42ec-8b16-1b162d5438c3
fi
echo 'Loading Linux 5.10.0-9-amd64 ...'
linux /vmlinuz-5.10.0-9-amd64 root=/dev/mapper/debian--vg-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-9-amd64
}
I do not want a desktop environment. I would like to boot to a terminal.
If I deselect the default software selections of
Debian desktop environment
... GNOME
then when the machine reboots at the end of the installation process, after the Grub screen, I just see the following:
/dev/mapper/debian--vg-root: clean, 31127/60956672 files, 4349071/24381440 blocks
I see no terminal prompt. The system is unresponsive to keyboard input (apart from Ctrl-Alt-Del)
I can ssh into the machine though.
As a test I repeated the installation with desktop environment selected and this worked as expected.
Am I wrong to expect an installation without desktop to boot to a terminal? Is there something extra I need to make it do so?
Thanks
P.S. The default entry in grub.cfg is as follows:
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f16f242f-4ba6-43c6-b245-b42c2b259b9b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 7a496605-29f5-42ec-8b16-1b162d5438c3
else
search --no-floppy --fs-uuid --set=root 7a496605-29f5-42ec-8b16-1b162d5438c3
fi
echo 'Loading Linux 5.10.0-9-amd64 ...'
linux /vmlinuz-5.10.0-9-amd64 root=/dev/mapper/debian--vg-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-9-amd64
}
Re: Installation without Desktop does not boot to terminal.
Hi,
To be exact it does not boot to a tty.
That might be a default security setting to prevent login locally when login is via ssh.
Perhaps after running:
You'll get the login tty?
But take a look at wiki.debian.org/getty.
To be exact it does not boot to a tty.
That might be a default security setting to prevent login locally when login is via ssh.
Perhaps after running:
Code: Select all
# systemctl enable getty@tty1.service
But take a look at wiki.debian.org/getty.
DebianStable
Code: Select all
$ vrms
No non-free or contrib packages installed on debian! rms would be proud.
-
- Posts: 5
- Joined: 2021-10-20 10:09
Re: Installation without Desktop does not boot to terminal.
Thanks for the reply
"To be exact it does not boot to a tty. "
Please forgive my loose terminology. To be clear, I want it to boot to a text only login prompt and then to a text shell.
"systemctl enable getty@tty1.service"
That didn't help unfortunately.
"That might be a default security setting to prevent login locally when login is via ssh."
I repeated the installation without selecting SSH server but this did not enable the console.
I have also tried following the suggestion here viewtopic.php?t=79520, to no avail.
"To be exact it does not boot to a tty. "
Please forgive my loose terminology. To be clear, I want it to boot to a text only login prompt and then to a text shell.
"systemctl enable getty@tty1.service"
That didn't help unfortunately.
"That might be a default security setting to prevent login locally when login is via ssh."
I repeated the installation without selecting SSH server but this did not enable the console.
I have also tried following the suggestion here viewtopic.php?t=79520, to no avail.
Re: Installation without Desktop does not boot to terminal.
It's systemd. Edit the end of the line below.
Add the three with grub edit in the grub screen. That will make it work temporarily.
https://www.linuxuprising.com/2020/01/h ... de-in.html
TC
Code: Select all
.../debian--vg-root ro quiet 3
https://www.linuxuprising.com/2020/01/h ... de-in.html
TC
You can't believe your eyes if your imagination is out of focus.
-
- Posts: 5
- Joined: 2021-10-20 10:09
Re: Installation without Desktop does not boot to terminal.
".../debian--vg-root ro quiet 3"
This didn't help unfortunately.
This didn't help unfortunately.
Re: Installation without Desktop does not boot to terminal.
Did you boot from the edit or fallback to default by mistake?
You can't believe your eyes if your imagination is out of focus.
Re: Installation without Desktop does not boot to terminal.
I've tried to replicate this in QEMU but I do get a login prompt:
After you see:
You should, unless something is wrong, get the prompt:
Have you used the official installation netinstall image?
It seems there's some glitch there. It's odd that only Ctrl-Alt-Del works. I suppose you've tried Ctrl-Alt-F1? Or with F2, F3 F4 F5?
With ssh access you might try:
to show the target set initially. if you try options running the above command will restore the default.
And try:
Looking a little further afield than the Debian wiki, see, for example systemd-services-run-levels-logs.
After you see:
Code: Select all
/dev/mapper/debian--vg-root: clean, 31127/60956672 files, 4349071/24381440 blocks
Code: Select all
Debian GNU/Linux 11 bullseye tty1
bullseye login:
It seems there's some glitch there. It's odd that only Ctrl-Alt-Del works. I suppose you've tried Ctrl-Alt-F1? Or with F2, F3 F4 F5?
With ssh access you might try:
Code: Select all
# systemctl get-default
And try:
Code: Select all
# systemctl set-default multi-user.target
# reboot
DebianStable
Code: Select all
$ vrms
No non-free or contrib packages installed on debian! rms would be proud.
Re: Installation without Desktop does not boot to terminal.
@kedaha All the various methods work for me too, but two are systems with DEs, and one is a web server. Since he can login with SSH, which is a separate server looped to the system, I'm wondering how he setup the original core system, if with sudo or not, and with what standard utilities. He may not have a multi-user target served for login at all in which case he should append 1 to the boot line to try to get a root terminal. He mentions using a netinst ISO so he must have had a configured network connection and he mentions logging in from SSH so there should be a multi-user target, but SSH may be the only configured user.
TC
TC
You can't believe your eyes if your imagination is out of focus.
Re: Installation without Desktop does not boot to terminal.
Just to discount the possibility of missing firmware when "in some cases, a successful installation can still end up in a black screen or a garbled display when rebooting into the installed system."
See completing-installed-system from the Debian Installation Guide.
See completing-installed-system from the Debian Installation Guide.
DebianStable
Code: Select all
$ vrms
No non-free or contrib packages installed on debian! rms would be proud.
-
- Posts: 5
- Joined: 2021-10-20 10:09
Re: Installation without Desktop does not boot to terminal.
Thank you for the replies. I'll consolidate my responses here.
"I suppose you've tried Ctrl-Alt-F1? Or with F2, F3 F4 F5?"
Yes. No response.
"Did you boot from the edit or fallback to default by mistake?"
I made the edit and pressed F10.
On a later iteration, without having edited the grub command line, after logging in via ssh I saw,
return
I entered the following
Still no login prompt. Checking..
now returns
I've tried both with the root user enabled and without.
In software selection I only have 'SSH Server' and 'standard system utilities' checked.
Checking the logs for errors I see
I'm not sure if this is significant. Recall that a desktop install worked.
"I suppose you've tried Ctrl-Alt-F1? Or with F2, F3 F4 F5?"
Yes. No response.
"Did you boot from the edit or fallback to default by mistake?"
I made the edit and pressed F10.
On a later iteration, without having edited the grub command line, after logging in via ssh I saw,
Code: Select all
# systemctl get-default
Code: Select all
graphical.target
Code: Select all
# systemctl set-default multi-user.target
# reboot
Code: Select all
# systemctl get-default
Code: Select all
multi-user.target
I installing from https://cdimage.debian.org/debian-cd/cu ... etinst.iso, flashed to an sd card.I'm wondering how he setup the original core system, if with sudo or not, and with what standard utilities.
I've tried both with the root user enabled and without.
In software selection I only have 'SSH Server' and 'standard system utilities' checked.
Checking the logs for errors I see
Code: Select all
Oct 20 18:44:42 debian kernel: nouveau 0000:09:00.0: bios: version 86.08.36.00.0d
Oct 20 18:44:42 debian kernel: nouveau 0000:09:00.0: firmware: failed to load nvidia/gp108/nvdec/scrubber.bin (-2)
Oct 20 18:44:42 debian kernel: firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
Oct 20 18:44:42 debian kernel: nouveau 0000:09:00.0: firmware: failed to load nvidia/gp108/acr/bl.bin (-2)
Oct 20 18:44:42 debian kernel: nouveau 0000:09:00.0: acr: firmware unavailable
Oct 20 18:44:42 debian kernel: nouveau 0000:09:00.0: pmu: firmware unavailable
Oct 20 18:44:42 debian kernel: nouveau 0000:09:00.0: gr: firmware unavailable
Oct 20 18:44:42 debian kernel: nouveau 0000:09:00.0: sec2 ctor failed, -38
Oct 20 18:44:42 debian kernel: nouveau: probe of 0000:09:00.0 failed with error -38
-
- Posts: 5
- Joined: 2021-10-20 10:09
Re: Installation without Desktop does not boot to terminal.
From the link:kedaha wrote: ↑2021-10-20 18:31 Just to discount the possibility of missing firmware when "in some cases, a successful installation can still end up in a black screen or a garbled display when rebooting into the installed system."
See completing-installed-system from the Debian Installation Guide.
This did indeed take me to a login prompt!Pass the nomodeset option on the kernel command line. This might help boot into a “fallback graphics” mode.
Then
Code: Select all
sudo apt-get install isenkram-cli
sudo isenkram-autoinstall-firmware
sudo reboot
Thank you very much @kedaha and @trinidad for your kind help with this.