I have two computers, both running Debian Bookworm and upgraded to the same degree with the latest software installed. Both machines are configured to boot to text terminals, which they need to do before starting X.
The problem is that one computer boots to
/dev/tty0 instead of
/dev/tty1 which means that the xinit command that works on Computer 2 doesn't work on Computer 1.
Computer 1's kernel boots to
/dev/tty0 with these permissions:
crw------- 1 ben tty 4, 0 May 23 16:46 /dev/tty0 crw--w---- 1 root tty 4, 1 May 23 16:46 /dev/tty1 crw------- 1 ben tty 4, 2 May 23 16:13 /dev/tty2
Computer 2's kernel boots to
/dev/tty1 with these permissions:
crw--w---- 1 root tty 4, 0 May 23 05:55 /dev/tty0 crw--w---- 1 ben tty 4, 1 May 23 16:29 /dev/tty1 crw------- 1 ben tty 4, 2 May 23 16:13 /dev/tty2
The command to start X that works on Computer 2 but not on Computer 1 is:
xinit /home/ben/.xinitrc -- /usr/bin/X :0 vt1
User ben has no permission on Computer 1 to access
tty1, so X fails with a
no permission message.
To start X on Computer 1, user ben needs to change the
xinit command to use
vt2, and navigate to
tty2 to run it.
The mystifying aspect for me is that
/dev/tty1 is not available on Computer 1.
Computer 1 shows the terminals as:
whereas on Computer 2 shows the terminals as:
In an attempt to boot to
/dev/tty1 on Computer 1, I added the kernel option of
console=/dev/tty1. The machine froze with a blank screen and the flashing cursor at the top left. It needed a rescue-disk to rewrite the
grub.cfg file and erase the option to be able to boot properly.
Systemd shows the same
active and running output for
[email protected] on both machines.
My query is: how to configure the machine so that
/dev/tty1 appears on Computer 1, and thus have Computer 1 boot to
dev/tty1 instead of to
I ask here having failed to find an answer elsewhere.
Edits: Thanks to all the respondents!
cat /proc/fb outputs the same on both machines: 0 nouveaudrmfb.
I guess I could script a change to ownership of tty0 and tty1 on boot but it feels like a workaround. No other machines here would need this.