Console SliTaz 5.1

SliTaz works fine without X: on an old machine, a server, a rescue boot or simply by taste. SliTaz Base is a text system from the start; the desktop ISOs boot to text with the screen=text boot option. This page is about living in the text console: virtual consoles, keyboard, font, mouse and the programs worth having.

The Handbook covers the commands themselves: Command line.

Virtual consoles

SliTaz opens a login on six consoles, tty1 to tty6 (/etc/inittab). Switch with Alt+F1 to Alt+F6, or Alt+Left and Alt+Right. From the desktop, which runs on the seventh console, use Ctrl+Alt+F1 to go to a console and Alt+F7 to come back.

Log in as your user and become root only when needed, with su. Run a long job on one console and keep working on another. From a script, chvt 2 switches to tty2 and openvt starts a program on a free console.

Booting to text

LOGIN_MANAGER=""

You can still start a desktop by hand from a console with startx.

Keyboard

The console keymap is in /etc/keymap.conf and loaded at boot. To change it, as root:

# trame keyboard list
# trame keyboard set fr-latin1

trame keyboard set writes /etc/keymap.conf and loads the keymap at once. On a live system, kmap=fr-latin1 on the boot line does the same. trame-tui offers the same settings in menus. The keymaps themselves are in /usr/share/kbd/keymaps (kbd-base package).

Font

The console font is set with setfont (kbd-base). SliTaz Base has one Terminus font, ter-v14n; the terminus-font package adds the other sizes, from 12 to 32 pixels high, normal (n) and bold (b):

# spk-add terminus-font
# setfont ter-v16n

setfont looks in /usr/share/kbd/consolefonts, so the name is enough. On a high resolution screen, where the text is tiny, take ter-v28n or ter-v32n, or double any font with setfont -d ter-v16n.

The font holds until the next reboot. To set it at every boot, add font=ter-v16n to the kernel line of the boot loader, or add this line to /etc/init.d/local.sh (it sets the font of tty1 to tty6):

for n in 1 2 3 4 5 6; do setfont ter-v16n -C /dev/tty$n; done

Screen and framebuffer

The console runs on a framebuffer: at the native resolution of the screen with a modern graphics driver, through the firmware (VESA or EFI) otherwise. To get a lower resolution, and bigger text, give the kernel a video mode on the boot line:

video=1024x768

The framebuffer console has no scrollback: Shift+PageUp does not work on Linux 6.12. Pipe long output into less, or work inside tmux or screen, which keep their own history.

Mouse: gpm

gpm brings the mouse to the console: select text with the left button, paste it with the middle one. mc and links also take clicks through it.

# spk-add gpm
# /etc/init.d/gpm start

To start it at every boot, add it to the services:

# trame service enable gpm

The default options are -m /dev/psaux -t ps2, which work with USB mice and touchpads too. Other options go in GPM_OPTIONS in /etc/daemons.conf. To stop it, run gpm -k.

On the Base ISO

SliTaz Base already has a working text system:

For Wi-Fi without a desktop, see Wi-Fi from the console.

Programs worth adding

All are packaged for i486 and x86_64 unless noted:

Install them with spk-add, for example spk-add mc tmux lynx.

Tips

Troubleshooting

Wrong characters when typing: the keymap is not the one of your keyboard. trame keyboard get shows it, trame keyboard set changes it.

"Unable to find file: ter-v16n" from setfont: the font is not installed: the Base ISO has only ter-v14n. Install terminus-font, or check the name with ls /usr/share/kbd/consolefonts.

Black screen after the kernel starts: the graphics driver failed to set a mode. Boot with a lower video= mode, see the Handbook on the boot menu.