LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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: Debian
Posts: 517

Rep: Reputation: 229Reputation: 229Reputation: 229
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
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
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
Distribution: quad BOOT!
Posts: 549

Rep: Reputation: 65
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
Posts: 185

Rep: Reputation: 81
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
Member
 
Registered: May 2004
Distribution: Debian
Posts: 39

Rep: Reputation: 1
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
 
Old 03-07-2021, 11:38 PM   #12
Roman Dyaba
Member
 
Registered: Sep 2020
Location: Russia, 690016 Vladivostok city, street Osipenko home 66, tel: +79247350007
Distribution: Slackware, UbuntuStudio, FreeBSD, GhostBSD
Posts: 317

Rep: Reputation: 40
Lightbulb

Quote:
Originally Posted by danielfisica View Post
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
Example:
For Russian lang (cplk switch) :

edit file:
# nano /etc/rc.d/rc.keymap
Code:
# /etc/rc.d/rc.keymap
#
loadkeys /usr/share/kbd/keymaps/i386/qwerty/ruwin_cplk-UTF-8.map.gz
Where Examaple:
# ls /usr/share/kbd/keymaps/i386/qwerty
Code:
bashkir.map.gz		es-cp850.map.gz		la-latin1.map.gz  ru-ms.map.gz		     sk-prog-qwerty.map.gz
bg-cp1251.map.gz	es.map.gz		lt.baltic.map.gz  ru-yawerty.map.gz	     sk-qwerty.map.gz
bg-cp855.map.gz		et-nodeadkeys.map.gz	lt.l4.map.gz	  ru.map.gz		     speakup-jfw.map.gz
bg_bds-cp1251.map.gz	et.map.gz		lt.map.gz	  ru1.map.gz		     speakup-jfw.readme
bg_bds-utf8.map.gz	fi-latin1.map.gz	mk-cp1251.map.gz  ru2.map.gz		     speakupmap.map.gz
bg_pho-cp1251.map.gz	fi-latin9.map.gz	mk-utf.map.gz	  ru3.map.gz		     sr-cy.map.gz
bg_pho-utf8.map.gz	fi-old.map.gz		mk.map.gz	  ru4.map.gz		     sv-latin1.map.gz
br-abnt.map.gz		fi.map.gz		mk0.map.gz	  ru_win.map.gz		     tj_alt-UTF8.map.gz
br-abnt2.map.gz		gr-pc.map.gz		nl.map.gz	  ruwin_alt-CP1251.map.gz    tr_q-latin5.map.gz
br-latin1-abnt2.map.gz	gr.map.gz		nl2.map.gz	  ruwin_alt-KOI8-R.map.gz    tralt.map.gz
br-latin1-us.map.gz	hu101.map.gz		no-latin1.doc	  ruwin_alt-UTF-8.map.gz     trf.map.gz
by-cp1251.map.gz	hypermap.m4		no-latin1.map.gz  ruwin_cplk-CP1251.map.gz   trq.map.gz
by.map.gz		il-heb.map.gz		no.map.gz	  ruwin_cplk-KOI8-R.map.gz   ttwin_alt-UTF-8.map.gz
bywin-cp1251.map.gz	il-phonetic.map.gz	pc110.map.gz	  ruwin_cplk-UTF-8.map.gz    ttwin_cplk-UTF-8.map.gz
cf.map.gz		il.map.gz		pl.map.gz	  ruwin_ct_sh-CP1251.map.gz  ttwin_ct_sh-UTF-8.map.gz
cz-cp1250.map.gz	is-latin1-us.map.gz	pl1.map.gz	  ruwin_ct_sh-KOI8-R.map.gz  ttwin_ctrl-UTF-8.map.gz
cz-lat2-prog.map.gz	is-latin1.map.gz	pl2.map.gz	  ruwin_ct_sh-UTF-8.map.gz   ua-cp1251.map.gz
cz-lat2.map.gz		it-ibm.map.gz		pl3.map.gz	  ruwin_ctrl-CP1251.map.gz   ua-utf-ws.map.gz
cz-qwerty.map.gz	it.map.gz		pl4.map.gz	  ruwin_ctrl-KOI8-R.map.gz   ua-utf.map.gz
defkeymap.map.gz	it2.map.gz		pt-latin1.map.gz  ruwin_ctrl-UTF-8.map.gz    ua-ws.map.gz
defkeymap_V1.0.map.gz	jp106.map.gz		pt-latin9.map.gz  se-fi-ir209.map.gz	     ua.map.gz
dk-latin1.map.gz	kazakh.map.gz		pt.map.gz	  se-fi-lat6.map.gz	     uk.map.gz
dk.map.gz		ko.map.gz		ro.map.gz	  se-ir209.map.gz	     us-acentos.map.gz
emacs.map.gz		ky_alt_sh-UTF-8.map.gz	ro_std.map.gz	  se-lat6.map.gz	     us.map.gz
emacs2.map.gz		kyrgyz.map.gz		ru-cp1251.map.gz  se-latin1.map.gz
applicate changes:
# bash /etc/rc.d/rc.keymap
change for every boot:
# chmod +x /etc/rc.d/rc.keymap (or "chmod -x" for disable)

Last edited by Roman Dyaba; 03-07-2021 at 11:58 PM. Reason: just edit
 
Old 03-08-2021, 02:45 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
necro thread, do not post here
 
1 members found this post helpful.
Old 03-08-2021, 06:28 AM   #14
Roman Dyaba
Member
 
Registered: Sep 2020
Location: Russia, 690016 Vladivostok city, street Osipenko home 66, tel: +79247350007
Distribution: Slackware, UbuntuStudio, FreeBSD, GhostBSD
Posts: 317

Rep: Reputation: 40
Lightbulb

Quote:
Originally Posted by pan64 View Post
necro thread, do not post here
you LQ guru, but Linux is stream river.

Reason:
path to keyboard maps was changed in Slackware 15 !

Also slackware forum path most is slackware-14 in LQ ?

Reason:
Slackware 15 (pre) now.

You Linux kernel is outdated !
Reason:
You use Ubuntu.

You use Slackware 15.0 now ?
Reason:
I use actual situation. I work in Slackware 15.0 every day.
I have actual Linux Kernel now !

Code:
bash-5.1# neofetch
                  :::::::                      root@bluebot.walle 
            :::::::::::::::::::                ------------------ 
         :::::::::::::::::::::::::             OS: Slackware 15.0 amd64 x86_64 
       ::::::::cllcccccllllllll::::::          Kernel: 5.10.21 
    :::::::::lc               dc:::::::        Uptime: 3 hours, 45 mins 
   ::::::::cl   clllccllll    oc:::::::::      Packages: 1227 (pkgtool) 
  :::::::::o   lc::::::::co   oc::::::::::     Shell: bash 5.1.4 
 ::::::::::o    cccclc:::::clcc::::::::::::    Resolution: 1024x768 
 :::::::::::lc        cclccclc:::::::::::::    DE: Xfce 4.16 
::::::::::::::lcclcc          lc::::::::::::   WM: Xfwm4 
::::::::::cclcc:::::lccclc     oc:::::::::::   Theme: GTK+ [GTK2], Adwaita [GTK3] 
::::::::::o    l::::::::::l    lc:::::::::::   Icons: Adwaita [GTK2/3] 
 :::::cll:o     clcllcccll     o:::::::::::    Terminal: xfce4-terminal 
 :::::occ:o                  clc:::::::::::    Terminal Font: Monospace 12 
  ::::ocl:ccslclccclclccclclc:::::::::::::     CPU: AMD Athlon X2 Dual BE-2300 (2) @ 1.900GHz 
   :::oclcccccccccccccllllllllllllll:::::      GPU: NVIDIA GeForce GT 610 
    ::lcc1lcccccccccccccccccccccccco::::       Memory: 742MiB / 1975MiB 
      ::::::::::::::::::::::::::::::::
        ::::::::::::::::::::::::::::                                   
           ::::::::::::::::::::::                                      
                ::::::::::::

Last edited by Roman Dyaba; 03-08-2021 at 06:39 AM.
 
Old 03-08-2021, 11:55 AM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Roman Dyaba View Post
Also slackware forum path most is slackware-14 in LQ ?
This has nothing to do with the version of Slackware. It's been slackware-14 even when Slackware was on v7.

You should let dead threads lie. There was no reason to respond to this topic. The answer was posted and it was done. If someone runs into a similar issue, they can find this thread and see the rc.keymap reference and check it on their system and make the required changes.

If we went through and updated all previous posts with current information, it'd be never ending and would flood the forum with posts that have no bearing on what people need today.
 
  


Reply



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

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

All times are GMT -5. The time now is 03:54 PM.

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