WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] How to change keyboard layout?  (Read 11545 times)

john110

  • Guest
[Solved] How to change keyboard layout?
« on: July 15, 2020, 12:59:17 PM »
Hello, I want to change my keyboard layout to a french azerty one.
I'm sorry If this question has already been asked before, but I read the FAQ and search on the forum and I really don't understand how to do it. I'm a complete noob, so excuse me If I ask you to to ELI5 me some points.

Thank you a lot for your help
« Last Edit: July 16, 2020, 04:49:31 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11522
Re: How to change keyboard layout?
« Reply #1 on: July 15, 2020, 01:07:54 PM »
Hi john110
Welcome to the forum.

Load  kmaps.tcz.
You must be in the console to change the keyboard. If you are in the GUI, click on the  Exit  icon and select  Exit to Prompt.
Then execute the following command:
Code: [Select]
sudo loadkmap < /usr/share/kmap/azerty/fr-latin9.kmap
startx
If the keyboard is to your liking, click on the  Editor  icon and add the following line to your  /opt/bootsync.sh  file:
Code: [Select]
loadkmap < /usr/share/kmap/azerty/fr-latin9.kmap
If you don't like  fr-latin9  you can try fr-latin1.
« Last Edit: July 17, 2020, 12:16:08 AM by Rich »

john110

  • Guest
Re: How to change keyboard layout?
« Reply #2 on: July 15, 2020, 02:41:50 PM »
Hello rich,

Thank you for your help and the warm welcome.

After leaving the terminal and trying to type some text on the editor for testing purposes, I notice that I can't type some characters that I could type in the terminal. For example, "{}[]|" These characters can be typed by pressing "Alt gr" + "4"/"5" and so on.

Secondly, even in the terminal I couldn't type these characters by pressing "Ctrl" + "Alt" (but I could by pressing alt + gr).

Any fix for this?
« Last Edit: July 15, 2020, 02:52:16 PM by john110 »

john110

  • Guest
Re: How to change keyboard layout?
« Reply #3 on: July 16, 2020, 05:46:38 AM »

If the keyboard is to your liking, click on the  Editor  icon and add the following line to your  /opt/bootsync.sh  file:
Code: [Select]
loadkmap < /usr/share/kmap/azerty/fr-latin9.kmap

After fixing my keyboard issues (on my own) and being able to type my characters, I wanted to make this setting persistent by modifying the bootsync.sh file but I get:

"Error writing to file '/opt/bootsync.sh':
Permission denied"

Any idea on what I should do?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11522
Re: How to change keyboard layout?
« Reply #4 on: July 16, 2020, 08:08:35 AM »
Hi john110
... After fixing my keyboard issues (on my own) and being able to type my characters,  ...
Were there problems with my instructions? If so, please elaborate so I can fix them for the next person that runs into this issue.

Quote
... I wanted to make this setting persistent by modifying the bootsync.sh file but I get:

"Error writing to file '/opt/bootsync.sh':
Permission denied" ...
Try this:
Code: [Select]
sudo chown tc:staff /opt/bootsync.sh

john110

  • Guest
Re: How to change keyboard layout?
« Reply #5 on: July 16, 2020, 01:04:34 PM »
Ok thank you for your help, It helped me a lot!

Hi john110
... After fixing my keyboard issues (on my own) and being able to type my characters,  ...
Were there problems with my instructions? If so, please elaborate so I can fix them for the next person that runs into this issue.


No, I don't think there was any problem with your instructions on this one. Maybe, It was really my keyboard that had a problem or I messed up something in the instructions. But anyway, restarting and starting everything from scratch seems to have fixed the problem.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11522
Re: How to change keyboard layout?
« Reply #6 on: July 16, 2020, 01:42:26 PM »
Hi john110
Is it possible you skipped this part:
...  Then Click on the  Exit  icon and select  Exit to Prompt. ...
and opened a terminal for the remaining instructions instead?

john110

  • Guest
Re: How to change keyboard layout?
« Reply #7 on: July 16, 2020, 04:43:54 PM »
Hi john110
Is it possible you skipped this part:
...  Then Click on the  Exit  icon and select  Exit to Prompt. ...
and opened a terminal for the remaining instructions instead?

No, I didn't open a terminal and I really used the exit to prompt button

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11522
Re: [Solved] How to change keyboard layout?
« Reply #8 on: July 16, 2020, 04:52:14 PM »
Hi john110
No, I didn't open a terminal and I really used the exit to prompt button
OK, just wanted to make sure. Another forum member did just that and had problems. I've marked this thread as solved.