WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to activate non-us-keyboard?  (Read 5856 times)

Offline MaxMustermann

  • Newbie
  • *
  • Posts: 6
How to activate non-us-keyboard?
« 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

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: How to activate non-us-keyboard?
« Reply #1 on: March 25, 2021, 01:31:31 PM »
Hi,

you can edit the file /opt/bootlocal.sh

with:

Code: [Select]
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
« Last Edit: March 25, 2021, 01:40:33 PM by rullolex »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: How to activate non-us-keyboard?
« Reply #2 on: March 25, 2021, 01:47:58 PM »
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

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: How to activate non-us-keyboard?
« Reply #3 on: March 25, 2021, 02:10:11 PM »
Hi Rich,

this is the correct thing to do:

Code: [Select]
#!/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 &
« Last Edit: March 25, 2021, 02:26:08 PM by rullolex »

Offline xuraax

  • Newbie
  • *
  • Posts: 37
Re: How to activate non-us-keyboard?
« Reply #4 on: February 27, 2022, 09:02:04 AM »
@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

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: How to activate non-us-keyboard?
« Reply #5 on: February 27, 2022, 12:43:04 PM »
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.

Code: (bash) [Select]
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.
Code: (bash) [Select]
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

Offline xuraax

  • Newbie
  • *
  • Posts: 37
Re: How to activate non-us-keyboard?
« Reply #6 on: March 01, 2022, 01:06:20 PM »
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: How to activate non-us-keyboard?
« Reply #7 on: March 01, 2022, 01:26:43 PM »
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.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: How to activate non-us-keyboard?
« Reply #8 on: March 01, 2022, 03:35:57 PM »
And for making Xorg working for uk keyboard you can follow run my script to make config file for X.


Offline Sasha

  • Wiki Author
  • Newbie
  • *****
  • Posts: 10
Re: How to activate non-us-keyboard?
« Reply #9 on: January 04, 2024, 02:15:02 AM »
Hi Rich,

this is the correct thing to do:

Code: [Select]
#!/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
Code: [Select]
$ cp /opt/
$ sudo su
# editor bootsync.sh
editor write:
Code: [Select]
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?

« Last Edit: January 04, 2024, 02:17:48 AM by Sasha »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: How to activate non-us-keyboard?
« Reply #10 on: January 04, 2024, 02:31:44 AM »
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.
The only barriers that can stop you are the ones you create yourself.

Offline Sasha

  • Wiki Author
  • Newbie
  • *****
  • Posts: 10
Re: How to activate non-us-keyboard?
« Reply #11 on: January 04, 2024, 05:30:13 AM »
Curaga, thank you!