LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 03-21-2013, 12:13 AM   #1
pethead
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Rep: Reputation: Disabled
Smile Localization LFS (keyboard switch)


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
IMG1517.jpg
But what is a keyboard switch between languages?

Last edited by pethead; 03-21-2013 at 12:38 AM.
 
Old 03-21-2013, 04:31 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,191

Rep: Reputation: 531Reputation: 531Reputation: 531Reputation: 531Reputation: 531Reputation: 531
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.
 
Old 03-21-2013, 04:54 AM   #3
pethead
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-21-2013, 06:33 AM   #4
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 833

Rep: Reputation: 167Reputation: 167
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.
 
Old 03-28-2013, 03:43 AM   #5
pethead
LQ Newbie
 
Registered: Mar 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
Attached Images
File Type: jpeg 0_844bb_e129d300_L.jpeg (87.1 KB, 4 views)
 
  


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 switch to root in LFS 6.3? atul.verma.maa@gmail.com Linux From Scratch 43 01-02-2013 12:05 PM
[SOLVED] LFS-7.1 usb keyboard not detected Rishabh Linux From Scratch 7 08-25-2012 09:22 AM
[SOLVED] Keyboard messup - LFS 7.0 rc2 liajeava Linux From Scratch 3 11-03-2011 02:02 PM
LFS keyboard permanent configuration aloisius-a Linux From Scratch 2 06-06-2010 04:35 AM
lfs-livecd - How to switch off the shell screensaver / blank-screen? nitric Linux From Scratch 1 07-01-2008 01:16 PM


All times are GMT -5. The time now is 11:35 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 Google+: linuxquestions
Open Source Consulting | Domain Registration