Setting keymap on my linode running Debian

I'm a bit of a rookie here: anyone knows how to set the keymap on my debian linode (to Swedish locale)?

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

This may break things, as I've never done it, but, I think you want to install localeconf…

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

Hmm. The loadkeys command is used for console configuration, where the keyboard and/or characterset of the console is not US default.

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.

Hmm… Ok, I think I'm getting to understand the problem now…

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: http://dev.kanngard.net/Permalinks/ID_2 … 31348.html">http://dev.kanngard.net/Permalinks/ID_20030924231348.html

I've just tried what it says and it seems to work just fine (eventhough I don't understand the code snippet)!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct