LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-01-2004, 11:43 AM   #1
lobster
LQ Newbie
 
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11

Rep: Reputation: 0
keyboard change


slack 9.1 successfully installed, with my us keyboard.
everything working fine. :-)
now i should change the keyboard to another one (sg) for my kids.

do i have to reinstall in order to allow setup to specify my new keyboard?

or is there a more convienient possibility for this?
 
Old 01-01-2004, 12:20 PM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi lobster,

no you don't need to reinstall...
you can do that editing the XF86Config file according to the new keyboard especifications..
If you take a look in this file now, you will find your USB keyboard setup lines..
advice: make a backup, just in casa that someday you will need your USB keyboard again... ; - )
Cheers,
Slackie
 
Old 01-01-2004, 01:28 PM   #3
lobster
LQ Newbie
 
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
thank you for your quick reply, slackie:

Quote:
Originally posted by slackie1000
hi lobster,

no you don't need to reinstall...
you can do that editing the XF86Config file according to the new keyboard especifications..
If you take a look in this file now, you will find your USB keyboard setup lines..
advice: make a backup, just in casa that someday you will need your USB keyboard again... ; - )
Cheers,
Slackie
i may have put my question not too clear, though (my command of english, both written and spoken, is not too good, alas).

- i don't have a usb keyboard, just a us one, and i should change it to one with a different language layout.

- to begin with, i would be quite happy to be able to use it in full screen mode - without even scratching the intricacities of an xfree86 configuration file... ;-)

so i guess i'll have to reinstall, then?

thank s just the same, slackie, for reading and answering!
 
Old 01-01-2004, 02:34 PM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
no problem!

my english is also far away from being good! ; - )

so, in your /etc/X11/XF86Config file, somewhere will be something like that...
------------------

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
EndSection

----------------------

this is my file - you can see that I have a 105 keys German layout keyboard...
if you know these data from your new keyboard you can edit this file and it is done. it will work "everywhere" !!
as I wrote already, just make a backup of the file before edit..
i don't think reinstall is necessary..

Regards,

Slackie
 
Old 01-01-2004, 03:35 PM   #5
lobster
LQ Newbie
 
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
thank you, again, slackie. :-)

Quote:
Originally posted by slackie1000
no problem!

my english is also far away from being good! ; - )

so, in your /etc/X11/XF86Config file, somewhere will be something like that...
------------------

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
EndSection

----------------------

this is my file - you can see that I have a 105 keys German layout keyboard...
if you know these data from your new keyboard you can edit this file and it is done. it will work "everywhere" !!
as I wrote already, just make a backup of the file before edit..
i don't think reinstall is necessary..

Regards,

Slackie
this i understand; but what do i do if i'm working on a linux console, *without* x11?

and: thanks for your patience - and a happy new year to schtuegert. ;-)
 
Old 01-01-2004, 05:05 PM   #6
poison
Member
 
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165

Rep: Reputation: 30
for console matters edit /etc/rc.d/rc.keymap ^^
 
Old 01-01-2004, 05:27 PM   #7
lobster
LQ Newbie
 
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by poison
for console matters edit /etc/rc.d/rc.keymap ^^
sounds very right, especially after a good look at rc.M - thank you!

since i don't have an rc.keymap here - maybe it's not installed if you got a us keyboard to begin with?

what should it contain, if i were to create one, myself?
 
Old 01-01-2004, 05:33 PM   #8
poison
Member
 
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165

Rep: Reputation: 30
which slack version do you have ?
in 9.1 it is /etc/rc.d/rc.keymap...
in other versions I believe to remember the loadkeys invocation is located somewhere else...

mine looks like this...
poison@medusa:/usr/src/linux/include/linux$ cat /etc/rc.d/rc.keymap
Code:
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys de-latin1.map
fi
frohes neues jahr ^^

Last edited by poison; 01-01-2004 at 07:14 PM.
 
Old 01-01-2004, 09:05 PM   #9
lobster
LQ Newbie
 
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by poison
which slack version do you have ?
in 9.1 it is /etc/rc.d/rc.keymap...
in other versions I believe to remember the loadkeys invocation is located somewhere else...

mine looks like this...
poison@medusa:/usr/src/linux/include/linux$ cat /etc/rc.d/rc.keymap
Code:
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys de-latin1.map
fi
frohes neues jahr ^^
- i do have 9.1. on the 5 machines i installed up to now, rc.M sure references rc.keymap, but no rc.keymap is present - presumably because normally, i'm working with good old original us keyboards (old ibms!).

- yes, loadkeys is all that's needed - a big THANK YOU! my kids will be very glad when the machines they are allowed to use with european keyboards will properly give all the umlauts and accents... :-)

thank you very much, poison - & auch Dir viel glueck im neuen jahr!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I change a keyboard from US to UK? JennieL Linux - Hardware 1 10-11-2005 11:56 AM
Change Keyboard?? Knowledgements Slackware 5 07-15-2005 07:45 AM
change keyboard cuongvt Fedora 1 10-28-2004 11:18 AM
keyboard change rsarson Linux - Hardware 0 11-21-2003 01:01 PM
change of keyboard marlinux Linux - Laptop and Netbook 0 08-20-2003 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:15 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