LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-26-2003, 09:17 AM   #1
Megamieuwsel
Member
 
Registered: Sep 2002
Location: Haarlem , the Netherlands
Distribution: VectorLinux SOHO 5.1
Posts: 470

Rep: Reputation: 35
Wrong keymap , when not in X


Well , I have this proper dutch keymap working under X , using an .Xmodmap-file , but when I get to the prompt(Leaving X) I'm stuck again with that retarded US-keymap again.
Now I wouldn'nt mind too much , if it only meant I'd miss a few(well ; quite a few , actually) characters. The big problem is : A lto of the "regular" extra-characters like " , _ , + , etc.. are located under different keys as well.

Now I thought , I I could could copy that file to the directory where all the other keymaps are stored (/usr/share/kbd/keymaps/i386/qwerty), I might be able to set that map really system-wide.

Alas! No such luck , for I found out , the keymaps in there are stored as .gz-files.

Now my questions (before I do any more stupid things to my system) are :
1- Are these keymaps in there just gzipped .Xmodmap-files?
2- If not :How do I create this type of file , going from aforementioned .Xmodmap
3- Would it work , if I (after creating the appropriate file) would copy the "new"keymap to this directory and rerun the setup? (so it would also be applied when NOT in X)
4- If not ; Then can someone point me to a proper Howto on this topic.

I've already spent the better part of two days on with Google and manpages , but couldn't find anything that really helped me.

And : One More Question(c) : The only flaw , I found in this keymap is that the combo Ctrl-Alt-Fn (to switch to console) doesn't work. Somebody got a solution to that as well?
 
Old 10-26-2003, 09:50 AM   #2
ceedeedoos
Member
 
Registered: Aug 2003
Location: Antwerp, Belgium
Distribution: Slackware 10.0, Mandrake 10.1
Posts: 174

Rep: Reputation: 36
I gunzipped and opened one of these files out of curiosity and yes, it does seem a lot like .Xmodmap files. Have a look, I think you could find out how to manipulate one if you made an .Xmodmap file ...

have you tried loading up a keymap when you boot linux? I use a script on boot that loads the belgian keymap ... though I'm not sure this is what you're looking for ...
 
Old 10-26-2003, 09:51 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I don't know how it works in VectorLinux (never tried it), but to get the local characters working in Debian i generally first edit /etc/profile and add:
Code:
LC_CTYPE=sv_SE
LANG=en_US
LANGUAGE=en_US
export LC_CTYPE LANG LANGUAGE
And I also recreate the locales (running locale-gen is enough on Debian). Log out and then login again and the keyboard works as expected.

If that's not at all what you're looking for you could read this for a little info: http://pub136.ezboard.com/fvectorlin...icID=377.topic

Håkan
 
Old 10-26-2003, 11:16 AM   #4
Megamieuwsel
Member
 
Registered: Sep 2002
Location: Haarlem , the Netherlands
Distribution: VectorLinux SOHO 5.1
Posts: 470

Original Poster
Rep: Reputation: 35
Heh.... Vector is based on Slackware(9.0)
But I think of following a slightly different route and would like to know if there'd be anything against it.

Right now , I unzipped a copy "us.map.gz" , resulting in the following file(quite a different layout from the map , I dl-ed...):
Quote:
# us.map
keymaps 0-2,4-6,8-9,12
alt_is_meta
include "qwerty-layout"
include "linux-with-alt-and-altgr"
include "compose.latin1"
include "euro1.map"
strings as usual

keycode 1 = Escape
keycode 2 = one exclam
keycode 3 = two at at nul nul
keycode 4 = three numbersign
control keycode 4 = Escape
keycode 5 = four dollar dollar Control_backslash
keycode 6 = five percent
control keycode 6 = Control_bracketright
keycode 7 = six asciicircum
control keycode 7 = Control_asciicircum
keycode 8 = seven ampersand braceleft Control_underscore
keycode 9 = eight asterisk bracketleft Delete
keycode 10 = nine parenleft bracketright
keycode 11 = zero parenright braceright
keycode 12 = minus underscore backslash Control_underscore Control_underscore
keycode 13 = equal plus
keycode 14 = Delete
keycode 15 = Tab
keycode 26 = bracketleft braceleft
control keycode 26 = Escape
keycode 27 = bracketright braceright asciitilde Control_bracketright
keycode 28 = Return
alt keycode 28 = Meta_Control_m
keycode 29 = Control
keycode 39 = semicolon colon
keycode 40 = apostrophe quotedbl
control keycode 40 = Control_g
keycode 41 = grave asciitilde
control keycode 41 = nul
keycode 42 = Shift
keycode 43 = backslash bar
control keycode 43 = Control_backslash
keycode 51 = comma less
keycode 52 = period greater
keycode 53 = slash question
control keycode 53 = Control_underscore
control shift keycode 53 = Delete
keycode 54 = Shift
keycode 56 = Alt
keycode 57 = space
control keycode 57 = nul
keycode 58 = Caps_Lock
keycode 86 = less greater bar
keycode 97 = Control
Now , if I edited this one , according to my keyboard-layout , then renamed it to something like "nl.map-deadkeys" , gzipped it and moved it into /usr/share/kbd/keymaps/i386/qwerty ...
Would I be able to choose it , by running a fresh setup?

I'll give it a try and will report , if it works out.


BANZAII!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keymap trouble mjjzf VectorLinux 5 11-29-2004 02:23 AM
configfile for keymap sterrenkijker Debian 2 04-15-2004 02:49 PM
how to change keymap for x DrGnome Linux - Software 3 04-09-2004 08:54 AM
Keymap with æ,ø,å ulfob Slackware 1 02-04-2004 11:40 AM
keymap problem freelinuxcpp Linux - Software 0 12-01-2003 04:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration