WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline MaxMustermann

  • Newbie
  • *
  • Posts: 6
How to activate non-us-keyboard?
« on: March 25, 2021, 09:40:38 AM »
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, 10:31:31 AM »
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, 10:40:33 AM by rullolex »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11283
Re: How to activate non-us-keyboard?
« Reply #2 on: March 25, 2021, 10:47:58 AM »
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, 11:10:11 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 &
« Last Edit: March 25, 2021, 11:26:08 AM by rullolex »

Offline xuraax

  • Newbie
  • *
  • Posts: 37
Re: How to activate non-us-keyboard?
« Reply #4 on: February 27, 2022, 06: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: 680
Re: How to activate non-us-keyboard?
« Reply #5 on: February 27, 2022, 09:43:04 AM »
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, 10:06:20 AM »
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: 11283
Re: How to activate non-us-keyboard?
« Reply #7 on: March 01, 2022, 10:26:43 AM »
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: 680
Re: How to activate non-us-keyboard?
« Reply #8 on: March 01, 2022, 12: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

  • Newbie
  • *
  • Posts: 6
Re: How to activate non-us-keyboard?
« Reply #9 on: January 03, 2024, 11:15:02 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 &
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 03, 2024, 11:17:48 PM by Sasha »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10974
Re: How to activate non-us-keyboard?
« Reply #10 on: January 03, 2024, 11:31:44 PM »
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

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