Config tty » Historie » Version 1
Jeremias Keihsler, 17.01.2019 11:40
1 | 1 | Jeremias Keihsler | h1. configure your TTY |
---|---|---|---|
2 | |||
3 | show current status |
||
4 | <pre><code class="bash"> |
||
5 | localectl |
||
6 | </code></pre> |
||
7 | |||
8 | show the list of keymaps |
||
9 | <pre><code class="bash"> |
||
10 | localectl list-keymaps |
||
11 | </code></pre> |
||
12 | |||
13 | set keymap |
||
14 | <pre><code class="bash"> |
||
15 | localectl set-keymap de |
||
16 | </code></pre> |
||
17 | |||
18 | as of 2015-08-27 it seems the only way to permanently set the keyboard-layout in the console permanently is to update grub.cfg |
||
19 | <pre><code class="bash"> |
||
20 | vim /etc/default/grub |
||
21 | </code></pre> |
||
22 | set @vconsole.keymap=xx@ |
||
23 | |||
24 | regenerate grub |
||
25 | <pre><code class="bash"> |
||
26 | grub2-mkconfig -o /boot/grub2/grub.cfg |
||
27 | </code></pre> |
||
28 | reboot |
||
29 | <pre><code class="bash"> |
||
30 | reboot |
||
31 | </code></pre> |
||
32 | |||
33 | h2. set font for console |
||
34 | |||
35 | this is taken from |
||
36 | * https://www.linux.com/learn/intro-to-linux/2018/1/how-change-your-linux-console-fonts |
||
37 | * https://unix.stackexchange.com/questions/196064/where-is-the-location-of-console-fonts-in-centos-7 |
||
38 | |||
39 | If you are lucky to call a 4k-display your own you better have a large screen. |
||
40 | For a 15.6"-screen the default font is rather small. |
||
41 | |||
42 | <pre><code class="bash"> |
||
43 | vim /etc/vconsole.conf |
||
44 | </code></pre> |
||
45 | |||
46 | change font from @FONT="latarcyrheb-sun16"@ to |
||
47 | <pre><code class="ini"> |
||
48 | FONT="latarcyrheb-sun32" |
||
49 | </code></pre> |
||
50 | |||
51 | it will take a reboot to take this change into account |
||
52 | <pre><code class="bash"> |
||
53 | reboot |
||
54 | </code></pre> |
||
55 | |||
56 | if you wnat to use another font, your available fonts are found in |
||
57 | @/usr/lib/kbd/consolefonts@ |