WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

john110

  • Guest
[Solved] How to change keyboard layout?
« on: July 15, 2020, 09:59:17 AM »
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, 01:49:31 PM by Rich »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: How to change keyboard layout?
« Reply #1 on: July 15, 2020, 10:07:54 AM »
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 16, 2020, 09:16:08 PM by Rich »

john110

  • Guest
Re: How to change keyboard layout?
« Reply #2 on: July 15, 2020, 11:41:50 AM »
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, 11:52:16 AM by john110 »

john110

  • Guest
Re: How to change keyboard layout?
« Reply #3 on: July 16, 2020, 02: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?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: How to change keyboard layout?
« Reply #4 on: July 16, 2020, 05: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, 10:04:34 AM »
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.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: How to change keyboard layout?
« Reply #6 on: July 16, 2020, 10:42:26 AM »
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, 01: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

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: [Solved] How to change keyboard layout?
« Reply #8 on: July 16, 2020, 01: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.