Jun's Blog

Output, activities, memo and etc.

Framework Laptop: Login from console without GDM

On the previous article https://junaruga.hatenablog.com/entry/2022/03/23/100747, I wrote there might be issue in GDM on my Fedora.

I think not using GDM in the login process is a possible way to prevent this situation essentially.

On my Fedora 35, seeing the inittab file, there is an explanation.

$ cat /etc/inittab
# inittab is no longer used.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target

The steps to change the login from GUI (GDM) to console is as follows.

$ systemctl get-default
graphical.target

$ sudo systemctl set-default multi-user.target

$ systemctl get-default
multi-user.target

$ sudo reboot

After entering ID and password on the console, run sway to run Sway window manager.

$ sway

The font size on the console is too small. The font size on the boot menu to select running kernel versions is also small.

I find the following page is useful to change the font size.

On the console, there are font files in the /usr/lib/kbd/connsolefonts. The fonts below fits me on Framework Laptop.

$ cd /usr/lib/kbd/connsolefonts
$ setfont LatGrkCyr-12x22.psfu.gz
$ setfont latarcyrheb-sun32.psfu.gz