LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-20-2005, 07:05 AM   #1
intmail
LQ Newbie
 
Registered: Jul 2005
Posts: 24

Rep: Reputation: 15
Angry how to change keymap ?


how to change keymap ?
----------------------------------------

Hello,

When I use Xwindow then Linux use the English/American
keymap. My question is how to switch to French keyboard map
in linux (command line and XWindow) ?

thanks
----------------------------------------
INTMAIL
 
Old 07-20-2005, 07:52 AM   #2
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
In your /etc/X11/xorg.conf, change the
Code:
Option         "XkbLayout" "us"
line to
Code:
Option         "XkbLayout" "be"

HTH
Flupke
 
Old 10-05-2005, 01:52 PM   #3
donJulio
LQ Newbie
 
Registered: Sep 2005
Location: California
Distribution: Slackware
Posts: 23

Rep: Reputation: 15
Is there a way to change the keymap from the command line w/o having to edit any particular file?
 
Old 10-05-2005, 03:03 PM   #4
Berto
Member
 
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232

Rep: Reputation: 30
I think the pkgtool command has an option to change the keymap.
 
Old 10-05-2005, 03:22 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
In the console:

To change the keymap used in Slackware console, the init scripts look for a file called "/etc/rc.d/rc.keymap". The file should have contents like this:

Code:
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
   /usr/bin/loadkeys fr.map
fi
This file should also be executable:
Code:
chmod +x /etc/rc.d/rc.keymap
Instead of "fr.map" you could also try "fr-latin1.map". More keymap files are in directory /usr/share/kbd/keymaps/i386/azerty .

In X:

KDE and Gnome will let you select a keyboard layout. KDE in Control Panel, and Gnome there's surely something similar (I don't run KDE or Gnome at the moment). If you use another desktop environment, the easiest way is still, to edit /etc/X11/xorg.conf ... or re-run "xorgconfig" to generate a new xorg.conf and this time select a french keyboard layout.

Eric
 
  


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 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
how to change keymap? andrewlkho Linux - General 4 07-09-2003 12:00 PM
dvorak keymap seingoku Slackware 1 05-22-2003 10:14 PM
change keymap in x-win (slackware) niehls Linux - Software 3 11-25-2002 06:12 PM

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

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