How can I change keyboard layout ?
Hi
Just created a lamp server, based on daisy linux, with minimum stuff : apache2, mysql, php, created as a vmware image
Everything went smootly. Except I am French and use a french keyboard. So I tried installing locales, reconfiguring console-data, but all of that does not seem to be available in daisy linux.
So should I change apt sources to regular etch ? won't that cause issues elsewhere
More generally, how should I go about changing keyboard layout to another language that english ?
Thanks for any pointer. The service is pretty useless if we do not have the correct keyboard layout !!
Cheers
Just created a lamp server, based on daisy linux, with minimum stuff : apache2, mysql, php, created as a vmware image
Everything went smootly. Except I am French and use a french keyboard. So I tried installing locales, reconfiguring console-data, but all of that does not seem to be available in daisy linux.
So should I change apt sources to regular etch ? won't that cause issues elsewhere
More generally, how should I go about changing keyboard layout to another language that english ?
Thanks for any pointer. The service is pretty useless if we do not have the correct keyboard layout !!
Cheers
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hello.
Thanks for your question.
Because of the desire to keep the Daisy VM small we've excluded a lot of standard packages so in order to get things working you'll have to add them. Fortunately you should be able to get things going with only 2 extra packages.
Here are the steps I took, logged in as root.
# apt-get update
# apt-get install console-data locales
I followed the prompts to have the system create the necessary locales information and to select the default choices.
To reconfigure (because mistakes can happen):
# dpkg-reconfigure console-data
or:
# dpkg-reconfigure locales
To set defaults for a specific user, put something similar to the following in the ~/.bash_profile file:
export LANGUAGE=fr_FR.UTF-8
export LANG=fr
Or to make it the default for all users, put the same lines in the /etc/profile file.
Doing this definitely modified my system -- it became difficult to use as I'm stuck with the US keyboard layout. Hopefully it will help you.
(Note: if you decide to use the Ubuntu systems instead then there's some differences you'll need to be aware of, but they're out of the scope of this answer.)
Thanks.
Nicholas
-
Inappropriate?Hello Nicholas
Thanks for your answer. It was timely, as I was about to give up and try find another solution. In the mean time, I had however manage to get my sudo straight and install locales and console-data.
However, I have not yet succeeded in having a french keyboard. I have run dpkg-reconfigure a few times already, and added the lines you mentioned in /etc/profile, then rebooted to be sure
I can echo $LANGUAGE and echo $LANG and they have the desired values. However, the keyboard still has US layout.
ANy idea ? any lof file I should look at ?
Rgds
I’m frustrated
-
Inappropriate?I'd like to add that I am running on a french system. So I have the opposite issue as what you explained : my keyboard has a french layout (running windows xp if that matters, VM Player downloaded this morning), everything is in French, but the keyboard layout.
Inside the vm image, all messages are in French, showing that language environnement variables are used.
But not the keyboard ...
I’m frustrated
-
Inappropriate?I think I missed one package requirement when I wrote the above response. Try adding:
# apt-get install console-common
If that doesn't fix things immediately then try running:
# install-keymap /usr/share/keymaps/i386/fr-pc.kmap.gz
(Note: this will modify console settings but not settings via SSH. Your SSH client should handle those appropriately.)
And hopefully that will get you running.
-
Inappropriate?Hi Nicholas,
Only the last option worked! but it works.
You only have to adjust the path and the file:
The files are in /usr/share/keymaps/i386/azerty
and I used fr-latin9.kmap.gz instead of fr-pc.kmap.gz, as this is what's generally found for fr_FR keyboards
ANy idea why this would not work as it is supposed to work, simply with dpkg-reocnfigure console-data ?
Thanks and best regards
I’m happy
-
Inappropriate?Glad to know it works.
The reason it didn't work the first time is because of the missing (but apparently not required) console-common package. Somehow in my first test I installed that but didn't remember it to write it down. The second time I followed my instructions (above) and hit the same problems you did.
Anyway, thanks for the interest in Cohesive's Elastic Server.
Nicholas
-
Inappropriate?Hi,
Based on what I understand from the above discussion, keyboard layout switch has to be done after the appliance is built, downloaded and ran? Isn't there a way to configure keyboard layout when building the elastic server?
Thanks in advance for any answer. -
Inappropriate?Hello,
Sorry to say but at this time we don't have a way to configure the keyboard layout at build time. It is one of the many items on our roadmap but I'm not sure of the timeframe.
One possibility, however, is you could create and upload your own packages that set things up the way you want at creation time. (I've not tried this to solve this particular problem so your mileage may vary.)
Thanks,
Nicholas
Loading Profile...


