Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 31, 2004 11:32 am 
Offline
Senior Newbie

Joined: Tue Feb 24, 2004 6:59 pm
Posts: 7
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
Code:
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


Top
   
 Post subject:
PostPosted: Tue Jun 01, 2004 5:30 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
This may break things, as I've never done it, but, I think you want to install localeconf...

Code:
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


Top
   
 Post subject:
PostPosted: Tue Jun 01, 2004 10:16 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
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.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject: What now?
PostPosted: Thu Jun 03, 2004 10:51 am 
Offline
Senior Newbie

Joined: Tue Feb 24, 2004 6:59 pm
Posts: 7
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)
Code:
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
I've just tried what it says and it seems to work just fine (eventhough I don't understand the code snippet)!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group