Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: MaxMustermann on March 25, 2021, 12:40:38 PM
-
Hello,
now everyhting is fine with my TinyCore, but how do I activate my german keyboard leyout? I dont get it. I marked "non us keyboard support" in the installation setup.
Greetz
-
Hi,
you can edit the file /opt/bootlocal.sh
with:
loadkmap < /usr/share/kmap/qwertz/de.kmap
de.kmap is an esamples there are more in the folder /usr/share/kmap/qwertz
Attached a screenshot of mine
-
Hi rullolex
... you can edit the file /opt/bootlocal.sh ...
That command should be added to /opt/bootsync.sh before the line that calls /opt/bootlocal.sh.
If you want to know why, it's explained here:
http://forum.tinycorelinux.net/index.php/topic,23698.msg148996.html#msg148996
-
Hi Rich,
this is the correct thing to do:
#!/bin/sh
# put other system startup commands here, the boot process will wait until they complete.
# Use bootlocal.sh for system startup commands that can run in the background
# and therefore not slow down the boot process.
/usr/bin/sethostname box
loadkmap < /usr/share/kmap/qwerty/it.kmap
/opt/bootlocal.sh &
/opt/_wifi.sh &
-
@Rullolex,
I tried to follow this procedure to load a uk.kmap file to replace the us keyboard on Tinycore installed on an RPI.
Notwithstanding the fact that the loadkmap < /usr/share/kmap/qwerty/uk.kmap works perfectly when run from terminal it is not accepted when invoked in bootsync.sh.
Any suggestions please? I am new to Tinycore.
Regards
xuraax
-
The another way of doing this in tc would be to first load the kmaps extension with
tce-load -iw kmaps.tcz
And then change the command line arguments for kernel when booting.
For piCore you have to do it like this.
sudo mount /dev/mmcblk0p1
cd /mnt/mmcblk0p1/
Edit cmdline.txt file, and you have to install nano before this, if you don't use vi as an text editor. Edit the file and save and reboot. Precautions here if you change this to something wrong, your system way not boot.
sudo nano -w cmdline.txt
add this "kmap=qwerty/uk" to the line without dubble quotes.
You could also look at the faq, to see more command line arguments being used by tinycore linux dist.
http://tinycorelinux.net/faq.html
-
Thank you for your speedy reply.
Initially I had some issues because it was not clear to me that the addition to the cmdfile.txt had to be on the same line as the other entries and simply separated by a space. I was inserting it on the following line.
Another thing that put me off course was due to the fact that I had previously installed TC.tcz which takes you directly to the desktop on startup. Because of this I had failed to see the message that the UK keyboard layout had been loaded. Furthermore I was testing the keyboard by opening up the editor from the desktop. In this mode key clicks are still interpreted as if the system was still using us.kmap.
However after exiting to command line mode and using nano, key clicks were interpreted as expected for a UK keyboard. This a strange behaviour and I would love to know why.
Thanks and regards
xuraax
-
Hi xuraax
... This a strange behaviour and I would love to know why. ...
On the subject of kmaps:
kmaps only affects the console and Xvesa, not Xorg.
-
And for making Xorg working for uk keyboard you can follow run my script to make config file for X.
-
Hi Rich,
this is the correct thing to do:
#!/bin/sh
# put other system startup commands here, the boot process will wait until they complete.
# Use bootlocal.sh for system startup commands that can run in the background
# and therefore not slow down the boot process.
/usr/bin/sethostname box
loadkmap < /usr/share/kmap/qwerty/it.kmap
/opt/bootlocal.sh &
/opt/_wifi.sh &
Good afternoon I did the following steps
$ cp /opt/
$ sudo su
# editor bootsync.sh
editor write:
loadkmap < /usr/share/kmap/qwerty/ruwin_ctrl-UTF-8.kmap
/opt/bootlocal.sh &
but when checking TC-Exit-->Exit to Prompt I get "????" instead of Cyrillic fonts. .
And in libreOffice, even switching to Russian does not happen. Good people, tell me what’s wrong?
-
loadkmap only affects the console (and Xvesa) keymap. It does not affect fonts or locale. Fonts depend on the app/env, and for locale see getlocale.tcz.
Though I don't think the linux console even supports utf-8, just some x terminals do. Cyrillic may not be possible there.
-
Curaga, thank you!