LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-31-2004, 08:58 AM   #1
danielfisica
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
change keyboard layout in console


hello everybody ,

I'd like to know how I can change keyboard layout in console mode , could you please help me?

thanks for your time
 
Old 05-31-2004, 10:36 AM   #2
slaken
Member
 
Registered: Nov 2003
Location: Finland
Distribution: Slackware current
Posts: 46

Rep: Reputation: 15
man loadkeys
 
Old 05-31-2004, 01:52 PM   #3
PJota
LQ Newbie
 
Registered: Jul 2003
Location: Rio de Janeiro - Brazil
Distribution: Slackware 10.0
Posts: 19

Rep: Reputation: 0
Unhappy It doesn`t work to me

I've tried to do this, but it didn't work.

I have the Slackware 9.0 and a ABNT2 keyboard,

I decompressed an ABNT2 map.gz and reading the .map,
this file has the CCedilha key (code 38 with keymaps), that's ok.

But running loadkeys <kbmap> nothing changes.



Thanks,

PJota
 
Old 05-31-2004, 02:03 PM   #4
Raskolnikov
LQ Newbie
 
Registered: May 2004
Location: France
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Try loading the keymap without uncompress it...

I have a french keymap, and loadkeys /usr/share/keymaps/i386/azerty/fr-latin1.map.gz works fine
 
Old 03-21-2013, 07:50 AM   #5
pethead
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Rep: Reputation: Disabled
What is a hotkey to switch between languages?
 
Old 03-21-2013, 12:51 PM   #6
mina86
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 374

Rep: Reputation: 150Reputation: 150
Quote:
Originally Posted by pethead View Post
What is a hotkey to switch between languages?
In console? There's none.

And back to the question, take a look at /etc/rc.d/rc.keymap.
 
Old 03-21-2013, 06:51 PM   #7
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,181

Rep: Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018
I was about to answer when I realized that this thread is almost 9 years old...
 
Old 03-21-2013, 10:05 PM   #8
pethead
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Rep: Reputation: Disabled
Even MS-DOS has a hotkey to switch between languages. But Linux console hasn't?
May be hotkey is right Ctrl-Alt?

Last edited by pethead; 03-21-2013 at 10:11 PM.
 
Old 06-09-2014, 06:28 PM   #9
gor0
Member
 
Registered: Jun 2014
Posts: 160

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
I was about to answer when I realized that this thread is almost 9 years old...
...
 
Old 06-10-2014, 09:22 AM   #10
Soderlund
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: Slackware
Posts: 111

Rep: Reputation: 50
Quote:
Originally Posted by pethead View Post
Even MS-DOS has a hotkey to switch between languages. But Linux console hasn't?
May be hotkey is right Ctrl-Alt?
The closest thing I can think of is adding loadkeys to sudoers and creating aliases, but note that the language will change for all users when you use loadkeys.

Code:
alias q="sudo loadkeys qwerty"
alias d="sudo loadkeys dvorak"
Or you can use "su -c 'loadkeys ...'", but that will prompt for the root password.

In X you use setxkbmap.
 
Old 08-05-2014, 09:44 AM   #11
BryanFRitt
LQ Newbie
 
Registered: May 2004
Location: Charlotte, N.C.
Posts: 6

Rep: Reputation: 0
asdf and aoeu cycle

# in ~/.bashrc aka $HOME/.bashrc aka /home/$USER/.bashrc, add something like (add `sudo` if needed?)

http://www.linuxquestions.org/questi...21#post5215521
# to switch between keyboards use the first 4 keys on the 'home' row.
Code:
alias asdf="loadkeys dvorak" # to go from qwerty to the next keyboard layout, dvorak
alias aoeu="loadkeys qwerty" # to go from dvorak to the next keyboard layout, qwerty
# You can do this to cycle between several keyboard layouts, so long as the first for keys are different

# or you could try one of these commands:

Code:
alias asdf="loadkeys /usr/lib/kbd/keytables/dvorak.map"
alias aoeu="loadkeys /usr/lib/kbd/keytables/us.map"
Code:
alias asdf="setxkbmap -layout us -variant dvorak"
alias aoeu="setxkbmap -layout us -variant basic"
---
Quote:
I was about to answer when I realized that this thread is almost 9 years old...
sounds like a contradiction somewhere

Last edited by BryanFRitt; 08-05-2014 at 09:56 AM. Reason: made it look prettier, and put the switching commands in the same order
 
  


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
XFCE: how to change the keyboard layout? athanatos Slackware 18 09-17-2008 01:37 AM
how can I change tty keyboard layout? fmardones Linux - Software 0 01-15-2005 08:09 PM
Issue with keyboard layout in X server (vs console) michapma Debian 9 10-05-2004 04:06 PM
kde: change keyboard layout kpachopoulos Linux - Newbie 3 09-29-2004 03:01 PM
How do i change the keyboard layout? ArmedCoder Linux - Hardware 0 11-20-2003 06:25 PM


All times are GMT -5. The time now is 03:40 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration