Setting keymap on my linode running Debian
I've tried
loadkeys /usr/share/keymaps/i386/qwerty/se-latin1.kmap.gz
but that fails since it tries to set keymap on console. Where to go from here?
(If it matters: I access my linode via SSH/PuTTY on Windows. Swedish extended characters actually show up when I run nano, but not from bash or emacs (where I most need it, right now)).
Thanks,
Robert
3 Replies
apt-get install localeconf localepurge
Then run localeconf and select the languages you want to support and whatnot. "localepurge" is useful to remove locales you don't need afterwords…
You might want to try this on a small test debian deployment, just to make sure it does what you want
-Chris
What you are trying to do is display remote stuff in an alternate characterset. This is not "console" related and so the console tools aren't the answer.
I believe you need to deal with locales and the variables LANG, LC_*, NLSPATH - but I've never played with these so I don't have any further advice. See caker's message on how to install locales onto your debian system. There is also no guarantee that the bash command line (for example) would support the alternate characters, anyway!
Note that each user may have their own locale settings (because it's environment variable related). The system may be able to provide a default for each user.
You also need to make sure your PuTTY client is configured for the right character set.
By getting the locales (thanks, caker!) and adding the line below (thanks, Stephen)
export LANG=sv_SE
to my .bash_profile, log out and log in again, I can actually see Swedish characters in my bash command prompt!
However… It turns out that that is not good enough for me… I still can't get them circles and dots (Swedish characters) in emacs, and that is where I really need them. So obviously this is really an emacs question.
So, anyone knows how to get åäö usable in emacs?
Update: Answering my own question… And the answer is of course "google it"… Which brought me to this link:
I've just tried what it says and it seems to work just fine (eventhough I don't understand the code snippet)!