SETUPCON(1)

๐Ÿ“ฆ
version 1.248ubuntu3 ยท 2 versions
  • 1.248ubuntu3 ยท centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.242 ยท nixos 26.05, nixpkgs unstable
, in centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽ€ SETUPCON(1) ๐ŸŽ€

Hiii bestie, this is the manual page for Console-setup User's Manual ๐Ÿ’– Let's get into it!

โœจ NAME โœจ

okay so setupcon is the thing that sets up the font and the keyboard on the console ๐Ÿงš literally that's the whole job ๐Ÿ’…

โœจ SYNOPSIS โœจ

setupcon [OPTION]... [VARIANT]

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

okay so setupcon is a program for fast and easy setup of the font and the keyboard on the console โœจ Most of the time you just run setupcon with no arguments, no cap ๐Ÿซถ The keyboard config lives in ~/.keyboard or /etc/default/keyboard. The font config lives in ~/.console-setup or /etc/default/console-setup. If you want the full tea on how to set up those two files, check out keyboard(5) and console-setup(5) ๐Ÿ“š

If you keep switching between encodings, keyboards, or languages, you can make a bunch of alternative config files for setupcon ๐ŸŒˆ Say most of the time you're typing in Greek with a Greek keyboard layout, but sometimes you need German with a German layout ๐Ÿ‡ฉ๐Ÿ‡ช In that case, customize the main config files (keyboard and console-setup) for Greek. Then make alternative files named keyboard.german and console-setup.german for German ๐ŸŽ€ To get Greek, you just run setupcon with no arguments. To get German, you run setupcon german. iykyk, it's so easy ๐Ÿ˜ญ

๐Ÿฆ‹ OPTIONS ๐Ÿฆ‹

  • VARIANT โ€” this picks which config file to use ๐ŸŽ€ With no variant, the files are called console-setup and keyboard. But if you pass something like chukchi as VARIANT, the files become console-setup.chukchi and keyboard.chukchi. This is how you get several different setups at once, like one for the Chukchi language and another for your default setup โœจ
  • -v, --verbose โ€” makes setupcon extra chatty ๐Ÿ—ฃ๏ธ Use this if something goes wrong or if you're messing around with the config files ๐Ÿ™ˆ
  • -k, --keyboard-only โ€” only sets up the keyboard. It won't touch the font or the terminal โŒจ๏ธ On Linux, you only need to do this once, bestie ๐Ÿ’…
  • -f, --font-only โ€” only sets up the font. It won't touch the keyboard or the terminal ๐Ÿ”ค On Linux, you should repeat this every time a new console driver gets activated (like when the frame buffer turns on) ๐Ÿ–ผ๏ธ
  • -t, --terminal-only โ€” only sets up the terminal. It leaves the keyboard and the font alone ๐Ÿ’ป
  • --current-tty โ€” only sets up the current virtual terminal, and nothing else ๐ŸŽฏ
  • --force โ€” skips the check for whether you're actually on the console ๐Ÿ˜ฌ > Careful!! If you run setupcon with this option while the screen is controlled by an X server, you could be forced to hard-reboot your computer. Not the vibe ๐Ÿ’€
  • --save โ€” this one is super useful if you want to run setupcon early in the boot process, before /usr is mounted and the data it needs isn't around yet ๐Ÿงš It makes setupcon copy the required files into /etc/console-setup/ so they're available before /usr gets mounted. If you do run it early in boot, run it with this option after every change to your console config ๐Ÿ”
  • --save-only โ€” same as --save, except it doesn't set up anything ๐Ÿซง Handy for saving the files while the screen is controlled by an X server ๐ŸŒธ
  • --save-keyboard FILE โ€” meant for initrd builders ๐Ÿ› ๏ธ It doesn't configure anything. It just saves a usable keyboard layout into FILE ๐Ÿ’œ
  • --setup-dir DIR โ€” also for initrd builders, and again it doesn't configure anything ๐Ÿซถ It arranges everything needed to configure the console inside the directory DIR. The file DIR/morefiles lists all the binaries the initrd builder has to install into the initrd image ๐Ÿ“ฆ Every other file in DIR has to be copied into the initrd unchanged ๐Ÿ™Œ To actually configure the console, you run the script DIR/bin/setupcon โœจ
  • -h, --help โ€” shows usage info ๐Ÿ“

๐Ÿ—‚๏ธ FILES ๐Ÿ—‚๏ธ

  • ~/.console-setup
  • ~/.keyboard
  • /etc/default/console-setup
  • /etc/default/keyboard
  • /etc/default/console-setup.VARIANT
  • /etc/default/keyboard.VARIANT
  • /etc/console-setup/

๐Ÿ”— SEE ALSO ๐Ÿ”—

keyboard(5), console-setup(5) ๐ŸŒˆ


Okay bestie, that's the whole tea โ˜•๐Ÿ’– Console-setup, dated 2011-03-17, SETUPCON(1) on the console, all wrapped up with a bow ๐ŸŽ€๐Ÿ’… Go make your terminal look iconic ๐Ÿงšโœจ