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
 
LinkBack Search this Thread
Old 07-23-2006, 04:13 AM   #1
billgatos
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
How to change the keymap of my keyboard


I had installed successfully the 10.2 version of slck, but some how my keyboarb has the english layout and i wish to change it to th portuguese. In X is everything alwright, but in console mode after starting the OS, and not loading the X everything is in English layout.
 
Old 07-23-2006, 04:44 AM   #2
billgatos
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks guys but i solve the problem, by entering in X, in my case in KDE, and in the control center i add the portuguese language, and everything went right.
 
Old 07-23-2006, 04:44 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,031

Rep: Reputation: Disabled
Create a file named
Code:
 /etc/rc.d/rc.keymap
with the appropriate "laodkeys" command. Mine has the following lines to load a dutch keyboard mapping:
Code:
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
  /usr/bin/loadkeys nl.map
fi
Don't forget to make the file executable:
Code:
chmod +x /etc/rc.d/rc.keymap
Eric
 
Old 07-23-2006, 06:05 AM   #4
billgatos
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Not working, i had installed the KBD package again
 
Old 04-02-2008, 07:05 PM   #5
caduqued
Member
 
Registered: Apr 2008
Location: Coventry, United Kingdom
Distribution: Slackware64, Slackware 13, linuxslackware
Posts: 47

Rep: Reputation: 18
Wink I can adjust my keyboard with this Eric's advice.

Quote:
Originally Posted by Alien Bob View Post
Create a file named
Code:
 /etc/rc.d/rc.keymap
with the appropriate "laodkeys" command. Mine has the following lines to load a dutch keyboard mapping:
Code:
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
  /usr/bin/loadkeys nl.map
fi
Don't forget to make the file executable:
Code:
chmod +x /etc/rc.d/rc.keymap
Eric
Eric, thanks a lot. Your advice was my only solution to change my keyboard map. Just a little tip, for anybody who needs apply this same procedure:

In my slackware 12 distro, I have maps of keyboards in the following path:

Code:
/usr/share/kbd/keymaps/i386/
in this dir, I have more keymaps directories. I list them with
Code:
bash-3.1$ pwd; ls
which produces following ouput on screen
Code:
/usr/share/kbd/keymaps/i386
azerty  dvorak  fgGIod  include  qwerty  qwertz
In my case, an UK map, I just pick uk.map.gz of qwerty dir, creating a rc.keymap as follows,
Code:
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
  /usr/bin/loadkeys /usr/share/kbd/keymaps/i386/qwerty/uk.map.gz
fi
after created rc.keymap (as root), I just changed it mod, as suggested by Eric, and then reboot. It works for me.

Thanks Eric.

Last edited by caduqued; 04-02-2008 at 07:11 PM.
 
Old 04-03-2008, 03:41 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
Typically these things are configured when you install Slackware. For example, I use dvorak keyboard layout, and when I install Slackware, it asks you to choose the keyboard layout, if you do so there, it should work from then on. If you don't it's very difficult to move around with another keyboard layout. So it's best to change it then.
 
Old 04-03-2008, 10:20 AM   #7
caduqued
Member
 
Registered: Apr 2008
Location: Coventry, United Kingdom
Distribution: Slackware64, Slackware 13, linuxslackware
Posts: 47

Rep: Reputation: 18
OK H_TeXMeX_H. However, in certain circunstances you require change your keyboard or you just forgot choose the right one in the installation process, perhaps awared about other install steps (as happened to me, as a newbie I am). Then, I spent a lot of hours trying to fix this mistake, and Eric's advice was the only solution.

But H_TeXMeX_H, it's true, it's better adjust this at installation.

Thanks.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change keymap ? intmail Slackware 4 10-05-2005 03:22 PM
how to change keymap for x DrGnome Linux - Software 3 04-09-2004 08:54 AM
keymap for us keyboard with euro symbol poison Slackware 0 12-11-2003 08:40 PM
how to change keymap? andrewlkho Linux - General 4 07-09-2003 12:00 PM
change keymap in x-win (slackware) niehls Linux - Software 3 11-25-2002 06:12 PM


All times are GMT -5. The time now is 10:57 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration