aboutsummaryrefslogtreecommitdiff
path: root/system/kmscon/README.Slackware
blob: a3e71f6d8070a82e09e8c5be7dd26a3f474a6bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Using kmscon as a regular user
------------------------------

As shipped, kmscon only works for root. If you want to be able to run
it as a normal user, you could make it setuid root (not recommended). A
better solution:

setcap cap_sys_tty_config,cap_sys_admin=ep

See capabilities(7) and http://www.slackbuilds.org/caps/ for more info
on capabilities.

When running as a normal user, you probably also want to add "--login
-- /bin/bash -i" on the kmscon command line (or the equivalent, in
/etc/kmscon/kmscon.conf).

Using kmscon as a console replacement
-------------------------------------

kmscon has much better support for fonts and Unicode/UTF-8 than the
Linux framebuffer console. If you want to use kmscon for all your
console logins, edit /etc/inittab and replace the /sbin/agetty lines
(around line 50 on Slack 14.1) with:

c1:12345:respawn:/usr/bin/kmscon --vt /dev/tty1
c2:12345:respawn:/usr/bin/kmscon --vt /dev/tty2
c3:12345:respawn:/usr/bin/kmscon --vt /dev/tty3
c4:12345:respawn:/usr/bin/kmscon --vt /dev/tty4
c5:12345:respawn:/usr/bin/kmscon --vt /dev/tty5
c6:12345:respawn:/usr/bin/kmscon --vt /dev/tty6

You might also want to edit /etc/kmscon/kmscon.conf and uncomment the
line beginning with 'login=/sbin/agetty ...'.

If you're in the habit of logging in as root, you'll want to edit
/etc/securetty and uncomment the lines for pts/0 through pts/7. This
is only needed for actual root logins (su and sudo will work fine
without it).

After making your edits, "init q" followed by "killall agetty" will fire
up the new kmscon login prompts (alternatively, you can reboot).

There's no need to use setcap if you're running kmscon from /etc/inittab,
since it will always run as root.

Misc
----

You'll almost certainly want to use a UTF-8 locale with kmscon. Normally
this is set in /etc/profile.d/lang.sh (but you could also do it in your
your ~/.bash_profile or such, if you like).

When using kmscon, you'll have to use ctrl-alt-F# to switch consoles. Also
try ctrl-plus and ctrl-minus (for zooming).

You won't be able to run links in framebuffer mode (with "links -g
-driver fb") from within a kmscon session.

startx will work normally from kmscon.

kmscon has *no* support for gpm, or the mouse in general. There's no way
to select or paste text with the mouse, and no way to use the mouse in
mouse-aware textmode applications like links.

svgalib applications are highly unlikely to work from within kmscon.

mplayer's framebuffer support (-vo fbdev or -vo fbdev2) doesn't work from
within kmscon.

Japanese man pages render beautifully with kmscon. Install man-db and
man-pages-ja, and set LANG="ja_JP.UTF-8" in /etc/profile.d/lang.sh.