LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Localization LFS (keyboard switch) (http://www.linuxquestions.org/questions/linux-from-scratch-13/localization-lfs-keyboard-switch-4175454940/)

pethead 03-21-2013 01:13 AM

Localization LFS (keyboard switch)
 
1 Attachment(s)
I localized my LFS successfully to russian.
Messages from applications and even mc are localized.

/etc/profile

Code:

LANG=ru_RU.UTF-8
/etc/sysconfig/console

Code:

KEYMAP="/lib/kbd/keymaps/i386/qwerty/ru-cp1251.map.gz"
FONT="/lib/kbd/consolefonts/cyr-sun16.psfu.gz m /lib/kbd/consoletrans/cp866_to_uni.trans"
UNICODE=1

Attachment 12101
But what is a keyboard switch between languages?

business_kid 03-21-2013 05:31 AM

your question is unclear, but if you mean how do you get to use english, your easiest way is to to put the localisation stuff in ~/.bash_profile and use another user

su - somebody

then will add their enviroment. It's not straightforward, as no doubt you noticed.

pethead 03-21-2013 05:54 AM

Paraphrasing question.
What is hotkey on keyboard to switch input between languages eng\rus in console?
How to set up it or change if it exists?
All characters input now are english only.

Keith Hedger 03-21-2013 07:33 AM

In an X terminal use
Code:

setxkbmap -layout gb
to set a gb keyboard for instance, for console see this post:
http://www.linuxquestions.org/questi...console-187987

Also please try google first as this link is the top entry when using 'change keyboard map in console linux' to search google.

pethead 03-28-2013 04:43 AM

1 Attachment(s)
I solved this problem and fully localized console input.

/etc/sysconfig/console

Code:

KEYMAP='/lib/kbd/keymaps/i386/qwerty/ruwin_ctrl-UTF-8.map.gz'
FONT='/lib/kbd/consolefonts/koi8u_8x16.psfu.gz'
UNICODE='1'

Swither between keyboard layouts is defined as rightCTRL key.


All times are GMT -5. The time now is 06:11 PM.