Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-01-2004, 11:43 AM
|
#1
|
LQ Newbie
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11
Rep:
|
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?
|
|
|
01-01-2004, 12:20 PM
|
#2
|
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037
Rep:
|
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
|
|
|
01-01-2004, 01:28 PM
|
#3
|
LQ Newbie
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11
Original Poster
Rep:
|
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!
|
|
|
01-01-2004, 02:34 PM
|
#4
|
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037
Rep:
|
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
|
|
|
01-01-2004, 03:35 PM
|
#5
|
LQ Newbie
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11
Original Poster
Rep:
|
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. ;-)
|
|
|
01-01-2004, 05:05 PM
|
#6
|
Member
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165
Rep:
|
for console matters edit /etc/rc.d/rc.keymap ^^
|
|
|
01-01-2004, 05:27 PM
|
#7
|
LQ Newbie
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11
Original Poster
Rep:
|
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?
|
|
|
01-01-2004, 05:33 PM
|
#8
|
Member
Registered: Dec 2003
Location: Layer 7 =D
Distribution: Slackware, LFS, Rock Linux
Posts: 165
Rep:
|
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.
|
|
|
01-01-2004, 09:05 PM
|
#9
|
LQ Newbie
Registered: May 2002
Location: switzerland
Distribution: slackware
Posts: 11
Original Poster
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 12:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|