LinuxForum.Fans
Тема

Не работает смена раскладки клавиатуры в консоли

Автор: verd 18 сообщений 3167 просмотров
#386588

Всем привет.
Вопрос по пункту 2.
openSUSE-EDU-13.1 MATE
Раскладка клавиатуры в консоли не заработала, не переключается на русскую.

Вывод:

text
# yast2 sysconfig set ROOT_USES_LANG="yes"
No such client module sysconfig
The search path follows. It does not include the current directory.
  /y2update/clients
  /root/.yast2/clients
  /usr/share/YaST2/clients

Run 'yast2 -h' for help on usage

Чо делать?

#386604

verd,
Покажите выводы из консоли:
[console]ls -n /etc/sysconfig/
zypper se -si yast
uname -a
zypper lr -up[/console]

#386623
text

# ls -n /etc/sysconfig/ итого 248 -rw-r--r-- 1 0 0 10012 июл 11 15:46 apache2 -rw-r--r-- 1 0 0 1008 май 15 01:46 avahi -rw-r--r-- 1 0 0 1139 июл 11 15:42 backup -rw-r--r-- 1 0 0 1750 июл 11 15:42 boot -rw-r--r-- 1 0 100 2992 июл 11 01:05 bootloader -rw-r--r-- 1 0 0 2559 июл 11 15:42 clock -rw-r--r-- 1 0 0 1548 июл 11 16:55 console -rw-r--r-- 1 0 0 3052 июл 11 15:42 cron -rw-r--r-- 1 0 0 431 май 15 01:47 cups -rw-r--r-- 1 0 0 6399 июл 11 15:46 dhcpd -rw-r--r-- 1 0 0 2927 июл 11 01:13 displaymanager -rw-r--r-- 1 0 0 612 май 15 01:43 dmraid -rw-r--r-- 1 0 0 924 май 14 22:06 exim -rw-r--r-- 1 0 0 3229 май 15 01:42 fonts-config -rw-r--r-- 1 0 100 875 июл 11 01:42 ispell -rw-r--r-- 1 0 0 662 май 15 01:46 joystick -rw-r--r-- 1 0 0 1995 июл 11 01:02 kernel -rw-r--r-- 1 0 0 2991 июл 11 18:09 keyboard -rw-r--r-- 1 0 0 13551 дек 10 2013 kiwi-ltsp -rw-r--r-- 1 0 0 3775 июл 11 16:55 language -rw-r--r-- 1 0 0 842 май 15 02:06 ldap -rw-r--r-- 1 0 0 1014 май 15 01:44 lirc -rw-r--r-- 1 0 0 1320 июл 11 15:40 mdadm -rw-r--r-- 1 0 0 1119 май 15 01:42 mouse -rw-r--r-- 1 0 0 1927 май 15 01:46 named drwxr-xr-x 6 0 0 4096 июл 11 01:13 network -rw-r--r-- 1 0 0 193 июл 11 15:42 news -rw-r--r-- 1 0 0 6039 май 15 01:46 nfs -rw-r--r-- 1 0 0 901 май 15 01:54 packagekit-background -rw-r--r-- 1 0 0 195 май 15 01:50 pcscd -rw-r--r-- 1 0 0 1005 июл 11 15:42 proxy -rw-r--r-- 1 0 0 172 май 15 01:43 rpcbind -rw-r--r-- 1 0 0 256 июл 11 15:47 samba drwxr-xr-x 2 0 0 4096 июл 11 15:46 scripts -rw-r--r-- 1 0 100 1815 июл 11 15:42 security -rw-r--r-- 1 0 0 379 май 14 22:05 services -rw-r--r-- 1 0 0 1120 июл 11 15:42 shutdown -rw-r--r-- 1 0 0 1891 май 15 01:56 sound -rw-r--r-- 1 0 0 162 май 15 01:46 ssh -rw-r--r-- 1 0 0 922 июл 12 21:42 storage -rw-r--r-- 1 0 0 34739 июл 11 01:13 SuSEfirewall2 drwxr-xr-x 3 0 0 4096 май 14 22:05 SuSEfirewall2.d -rw-r--r-- 1 0 0 1402 июл 11 15:46 svnserve -rw-r--r-- 1 0 0 1900 июл 11 15:46 syslog -rw-r--r-- 1 0 0 652 июл 11 15:42 windowmanager -rw-r--r-- 1 0 100 926 июл 11 01:42 words -rw-r--r-- 1 0 0 3724 май 15 02:12 yast2

text

# zypper se -si yast
С | Имя                        | Тип   | Версия        | Архитектура | Репозиторий         
--+----------------------------+-------+---------------+-------------+---------------------
i | autoyast2-installation     | пакет | 3.0.8-5.1     | noarch      | openSUSE-13.1-Oss   
i | yast2                      | пакет | 3.0.14-17.1   | x86_64      | openSUSE-13.1-Update
i | yast2-add-on               | пакет | 3.0.3-4.1     | noarch      | openSUSE-13.1-Update
i | yast2-bootloader           | пакет | 3.0.3-2.1.3   | x86_64      | openSUSE-13.1-Oss   
i | yast2-branding-openSUSE    | пакет | 3.0.0-2.1.2   | noarch      | openSUSE-13.1-Oss   
i | yast2-control-center       | пакет | 3.0.0-2.1.3   | x86_64      | openSUSE-13.1-Oss   
i | yast2-control-center-gnome | пакет | 3.0.1-1.1     | x86_64      | openSUSE-13.1-Oss   
i | yast2-control-center-qt    | пакет | 3.0.0-2.1.3   | x86_64      | openSUSE-13.1-Oss   
i | yast2-core                 | пакет | 3.0.3-1.1     | x86_64      | openSUSE-13.1-Oss   
i | yast2-country              | пакет | 3.0.2-1.1     | x86_64      | openSUSE-13.1-Oss   
i | yast2-country-data         | пакет | 3.0.2-1.1     | x86_64      | openSUSE-13.1-Oss   
i | yast2-firewall             | пакет | 3.0.1-2.1.4   | noarch      | openSUSE-13.1-Oss   
i | yast2-hardware-detection   | пакет | 3.0.1-2.1.3   | x86_64      | openSUSE-13.1-Oss   
i | yast2-installation         | пакет | 3.0.8-1.1     | noarch      | openSUSE-13.1-Oss   
i | yast2-kerberos-client      | пакет | 3.0.0-2.1.4   | noarch      | openSUSE-13.1-Oss   
i | yast2-ldap                 | пакет | 3.0.1-2.1.3   | x86_64      | openSUSE-13.1-Oss   
i | yast2-ldap-client          | пакет | 3.0.2-2.4.1   | noarch      | openSUSE-13.1-Update
i | yast2-network              | пакет | 3.0.9-10.2    | x86_64      | openSUSE-13.1-Update
i | yast2-online-update        | пакет | 3.0.0-2.1.4   | noarch      | openSUSE-13.1-Oss   
i | yast2-packager             | пакет | 3.0.8-1.1     | x86_64      | openSUSE-13.1-Oss   
i | yast2-pam                  | пакет | 3.0.0-2.1.4   | noarch      | openSUSE-13.1-Oss   
i | yast2-perl-bindings        | пакет | 3.0.1-3.1     | x86_64      | openSUSE-13.1-Oss   
i | yast2-pkg-bindings         | пакет | 3.0.3-8.1     | x86_64      | openSUSE-13.1-Oss   
i | yast2-proxy                | пакет | 3.0.0-2.1.4   | noarch      | openSUSE-13.1-Oss   
i | yast2-qt-branding-openSUSE | пакет | 13.1-10.4.13  | noarch      | openSUSE-13.1-Oss   
i | yast2-ruby-bindings        | пакет | 3.0.5-4.1     | x86_64      | openSUSE-13.1-Update
i | yast2-samba-client         | пакет | 3.0.1-3.1     | noarch      | openSUSE-13.1-Oss   
i | yast2-samba-server         | пакет | 3.0.2-2.1.4   | noarch      | openSUSE-13.1-Oss   
i | yast2-security             | пакет | 3.0.0-2.1.4   | noarch      | openSUSE-13.1-Oss   
i | yast2-slp                  | пакет | 3.0.2-1.1     | x86_64      | openSUSE-13.1-Oss   
i | yast2-storage              | пакет | 3.0.9-4.2     | x86_64      | openSUSE-13.1-Update
i | yast2-theme-openSUSE       | пакет | 3.0.1-1.2     | noarch      | openSUSE-13.1-Oss   
i | yast2-trans-ru             | пакет | 3.0.0-4.11.1  | noarch      | openSUSE-13.1-Update
i | yast2-trans-stats          | пакет | 2.19.0-14.1.3 | noarch      | openSUSE-13.1-Oss   
i | yast2-transfer             | пакет | 3.0.1-2.1.3   | x86_64      | openSUSE-13.1-Oss   
i | yast2-update               | пакет | 3.0.4-2.1.4   | x86_64      | openSUSE-13.1-Oss   
i | yast2-users                | пакет | 3.0.1-2.1.4   | x86_64      | openSUSE-13.1-Oss   
i | yast2-x11                  | пакет | 3.0.1-2.2.1   | x86_64      | openSUSE-13.1-Oss   
i | yast2-xml                  | пакет | 3.0.0-2.1.2   | x86_64      | openSUSE-13.1-Oss   
i | yast2-ycp-ui-bindings      | пакет | 3.0.2-6.1     | x86_64      | openSUSE-13.1-Update
text
# uname -a
Linux linux-5p81.site 3.11.10-17-desktop #1 SMP PREEMPT Mon Jun 16 15:28:13 UTC 2014 (fba7c1f) x86_64 x86_64 x86_64 GNU/Linux
text
# zypper lr -up
# | Псевдоним               | Имя                          | Включён | Обновление | Приоритет | URI                                                                             
--+-------------------------+------------------------------+---------+------------+-----------+---------------------------------------------------------------------------------
1 | X11_Compiz              | X11:Compiz (openSUSE_13.1)   | Да      | Нет        |   99      | [url]http://download.opensuse.org/repositories/X11:/Compiz/openSUSE_13.1/[/url]            
2 | [url=ftp://ftp.gwdg.de-suse]ftp.gwdg.de-suse[/url]        | Packman Repository           | Да      | Да         |   99      | [url]http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/[/url]                        
3 | home:/namtrac:/subpixel | home:/namtrac:/subpixel      | Да      | Да         |   98      | [url]http://download.opensuse.org/repositories/home:/namtrac:/subpixel/openSUSE_13.1/[/url]
4 | packman                 | packman-multimedia           | Да      | Да         |   99      | [url]http://ftp.gwdg.de/pub/linux/packman/suse/13.1/[/url]                                 
5 | repo-non-oss            | openSUSE-13.1-Non-Oss        | Да      | Да         |   99      | [url]http://download.opensuse.org/distribution/13.1/repo/non-oss/[/url]                    
6 | repo-oss                | openSUSE-13.1-Oss            | Да      | Да         |   99      | [url]http://download.opensuse.org/distribution/13.1/repo/oss/[/url]                        
7 | repo-update             | openSUSE-13.1-Update         | Да      | Да         |   99      | [url]http://download.opensuse.org/update/13.1/[/url]                                       
8 | repo-update-non-oss     | openSUSE-13.1-Update-Non-Oss | Да      | Да         |   99      | [url]http://download.opensuse.org/update/13.1-non-oss/[/url]                               
9 | utilities               | utilities                    | Да      | Да         |   99      | [url]http://download.opensuse.org/repositories/utilities/openSUSE_13.1/[/url]
#386625

verd,
Ещё раз полный вывод выполнения команды из совета №2.

#386631
verg написал:
verd,
Ещё раз полный вывод выполнения команды из совета №2.
text
 # yast2 sysconfig set ROOT_USES_LANG="yes"
No such client module sysconfig
The search path follows. It does not include the current directory.
  /y2update/clients
  /root/.yast2/clients
  /usr/share/YaST2/clients

Run 'yast2 -h' for help on usage

#386632

verd,
Покажите:
[console]zypper se -si sysconfig[/console]

#386635

verd,
Установите пакеты:
[console=root]zypper in sysconfig sysconfig-netconfig sysconfig-network yast2-sysconfig[/console]

Потом выполняйте совет №2.

#386641
verg написал:
verd,
Установите пакеты:
[console=root]zypper in sysconfig sysconfig-netconfig sysconfig-network yast2-sysconfig[/console]

Потом выполняйте совет №2.
text
# yast2 sysconfig set ROOT_USES_LANG="yes"

Установка переменной 'ROOT_USES_LANG' в 'yes': Успешно

Но раскладка всё ещё не меняется

#386642
verg написал:
verd,
Покажите:
[console]zypper se -si sysconfig[/console]
text
# zypper se -si sysconfig
Загрузка данных о репозиториях...
Чтение установленных пакетов...

С | Имя | Тип | Версия | Архитектура | Репозиторий --+---------------------+-------+-------------+-------------+--------------------- i | sysconfig | пакет | 0.81.5-30.1 | x86_64 | openSUSE-13.1-Update i | sysconfig-netconfig | пакет | 0.81.5-30.1 | x86_64 | openSUSE-13.1-Update i | sysconfig-network | пакет | 0.81.5-30.1 | x86_64 | openSUSE-13.1-Update i | yast2-sysconfig | пакет | 3.0.1-2.1.4 | noarch | openSUSE-13.1-Oss

#386643
"verd" написал:
Но раскладка всё ещё не меняется

Не идёт смена раскладки горячими клавишами или проблема как в совете №7?

#386646
verg написал:
[quote="verd"]Но раскладка всё ещё не меняется

Не идёт смена раскладки горячими клавишами или проблема как в совете №7?[/quote]

Символы кирилицы отображаются нормально.
Не меняется раскладка в консоли с английской на русскую.
Не идёт смена раскладки горячими клавишами

#386648

verd,
Какими клавишами меняете раскладку?

#386649
verg написал:
verd,
Какими клавишами меняете раскладку?

Shift+Alt

#386655

verd,
Покажите выводы (пользуйтесь тегами оформления сообщений BBCode - кнопки на панели форматирования сообщений):
[console]cat /etc/sysconfig/keyboard
cat /etc/sysconfig/language[/console]

#386659
verg написал:
verd,
Покажите выводы (пользуйтесь тегами оформления сообщений BBCode - кнопки на панели форматирования сообщений):
[console]cat /etc/sysconfig/keyboard
cat /etc/sysconfig/language[/console]

cat /etc/sysconfig/keyboard

Показать
[console]# cat /etc/sysconfig/keyboard
## Path: Hardware/Keyboard
## Description: Keyboard settings
## Type: string
## Default: ""
## ServiceRestart: kbd
#
# Keyboard settings for the text console
#
# Keyboard mapping
# (/usr/share/kbd/keymaps/)
# e.g. KEYTABLE="ruwin_alt-UTF-8.map.gz"
#
KEYTABLE="ruwin_alt-UTF-8.map.gz"

## Type: integer
## Default:
#
# Keyboard delay time in ms (250, 500, 750, 1000)
KBD_DELAY=""

## Type: string(2.0,2.1,2.3,2.5,2.7,3.0,3.3,3.7,4.0,4.3,4.6,5.0,5.5,6.0,6.7,7.5,8.0,8.6,9.2,10.0,10.9,12.0,13.3,15.0,16.0,17.1,18.5,20.0,21.8,24.0,26.7,30.0)
## Default:
#
# Keyboard repeat rate (2.0 - 30.0)
KBD_RATE=""

## Type: list(bios,yes,no)
## Default: bios
#
# NumLock on? ("yes" or "no" or empty or "bios" for BIOS setting)
# This setting may interfere with GNOME /desktop/gnome/peripherals/keyboard/remember_numlock_state GConf key.
KBD_NUMLOCK="bios"

## Type: yesno
## Default: no
#
# ScrollLock on? ("yes" or "no")
KBD_SCRLOCK="no"

## Type: yesno
## Default: no
#
# CapsLock on? ("yes" or "no")
KBD_CAPSLOCK="no"

## Type: yesno
## Default: no
#
# Disable CAPS LOCK and make it a normal Shift key?
# (Ctrl Caps Lock will still toggle Caps Lock functionality)
# Note that you need to tweak the xkb maps or use xmodmap
# if you want to do the same under X-Windows. In ~/.Xmodmap:
# keycode 0x42 = Shift_L Shift_L
#
KBD_DISABLE_CAPS_LOCK="no"

## Type: string
## Default:
#
# ttys for the above settings
# Example: "tty1 tty2"
# "" for tty's 1-6
#
KBD_TTY=""

#
# Compose tables to be loaded.
# Compose tables are good for producing characters, which can not
# be directly input from your keyboard, such as characters with
# accents, currency signs, ...
# Please read /usr/share/doc/packages/kbd/README.SuSE for an
# explanation.
# You may leave this variable empty (default compose table from kernel
# or KEYTABLE will be used then -- most keyboard maps don't have a
# compose table, though)
# More than one compose table can be given. For a selection of possible
# tables see /usr/share/kbd/keymaps/include/compose.*
# You can give more than one compose table, but only the last one will
# determine the compose combinations.
# The word "clear" has a special meaning:
# Your compose table will be cleared, before more compose symbols are
# added.
# The files compose.winkeys and shiftctrl may be used to map the
# <compose> key to the W*n menu key and Shift-Ctrl, respectively,
# on a PC keyboard.
# A typical setting for Latin1 users (with a PC keyboard) may be
# COMPOSETABLE="clear winkeys shiftctrl latin1.add"
# For latin2, this would be
# COMPOSETABLE="clear winkeys shiftctrl latin1.add"
# A typical setting for sb. with a character set, where a matching
# compose table is missing (but with a PC keyboard), would be
# COMPOSETABLE="clear winkeys shiftctrl latin1.add"
#
COMPOSETABLE="clear latin1.add"

# The YaST-internal identifier of the attached keyboard.
#
YAST_KEYBOARD="russian,pc104"


[/console]

cat /etc/sysconfig/language

Показать
[console]# cat /etc/sysconfig/language

## Path: System/Environment/Language
## Type: string(ibus,scim,scim-bridge,uim,kinput2,kinput2-canna,kinput2-wnn,nabi,wnn,atokx,xcin,none)
## Default: ""
#
# A default input method to be used in X11 can be selected here.
# If this variable is set and a script with the same name
# as the value of this variable exists in the directory /etc/X11/xim.d/
# this script is sourced when X11 is started to start an input method.
#
# The special value "none" (/etc/X11/xim.d/none) means:
# Do not use any input method at all.
#
# For more details see the comments at the top of /etc/X11/xim.
#
INPUT_METHOD=""
## Path: System/Environment/Language
## Description:
## Type: string(POSIX,ca_ES.ISO-8859-1,ca_ES.UTF-8,cs_CZ.ISO-8859-2,cs_CZ.UTF-8,da_DE@euro,da_DK.ISO-8859-1,da_DK.UTF-8,de_DE@euro,de_DE.ISO-8859-1,de_DE.UTF-8,el_GR.ISO-8859-7,el_GR.UTF-8,en_GB.ISO-8859-1,en_GB.UTF-8,en_IE@euro,en_IE.ISO-8859-1,en_US.ISO-8859-1,es_ES@euro,es_ES.ISO-8859-1,es_ES.UTF-8,fr_FR@euro,fr_FR.ISO-8859-1,fr_FR.UTF-8,gl_ES@euro,gl_ES.ISO-8859-1,gl_ES.utf-8,hr_HR.ISO-8859-2,hu_HU.ISO-8859-2,hu_HU.UTF-8,it_IT@euro,it_IT.ISO-8859-1,it_IT.UTF-8,ja_JP.eucJP,ja_JP.UTF-8,lt_LT.ISO-8859-13,lt_LT.UTF-8,nl_NL@euro,nl_NL.ISO-8859-1,nl_NL.UTF-8,ru_RU.ISO-8859-5,ru_RU.KOI8-R,ru_RU.UTF-8,sk_SK.ISO-8859-2,sk_SK.UTF-8,tr_TR.ISO-8859-9,tr_TR.UTF-8,ko_KR.eucKR,ko_KR.UTF-8,zh_TW.Big5,zh_TW.UTF-8,zh_CN.GB2312,zh_CN.UTF-8)
## Default: ""
## Config: OpenOffice.org,groff,ispell,kde,kdm,profiles,susehelp,susewm,tetex,wdm
#
#
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
# Root uses this variable only if ROOT_USES_LANG is set to "yes".
#
RC_LANG="ru_RU.UTF-8"

## Type: string
## Default: ""
#
# This variable will override all LC-variables!!
# Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser
# account is desired.
#
RC_LC_ALL=""

## Type: string
## Default: ""
#
# This defines the locale in which messages of programs and
# libraries with i18n-support should appear if a translated
# message catalog for the library or the program is installed.
# This also provides localized yes/no answers.
#
RC_LC_MESSAGES=""

## Type: string
## Default: ""
#
# This defines the locale for character handling and classification.
# The libc uses this value in language dependent function calls, such
# as e.g. uppercase/lowercase mapping of foreign characters.
#
RC_LC_CTYPE=""

## Type: string
## Default: ""
#
# This defines the locale for sorting strings and characters.
# It is used by the libc to obtain the alphabetical order of characters
# (e.g. for string comparisons).
#
RC_LC_COLLATE=""

## Type: string
## Default: ""
#
# This defines the locale for date and time output formats.
# i.e.: 06/09/1999 vs. 09.06.1999
#
RC_LC_TIME=""

## Type: string
## Default: ""
#
# This defines the locale for formatting and reading numbers.
# i.e.: 1,234.56 vs. 1.234,56
#
RC_LC_NUMERIC=""

## Type: string
## Default: ""
#
# This defines the locale for formatting and reading money values.
#
RC_LC_MONETARY=""

## Type: string
## Default: ""
#
# This defines the locale for format of paper.
#
RC_LC_PAPER=""

## Type: string(ctype)
## Default: ctype
#
# This defines if the user "root" should use the locale settings
# which are defined here.
# Value "ctype" means that root uses just LC_CTYPE.
#
ROOT_USES_LANG="yes"

## Type: yesno
## Default: no
#
# Workaround for missing forward of LANG and LC variables
# of e.g. ssh login connections.
#
AUTO_DETECT_UTF8="no"

## Type: string
## Default: ""
#
# List of installed language supports, use by YaST2
#
INSTALLED_LANGUAGES="ru_RU"[/console]
#386788
verg написал:
verd,
Какими клавишами меняете раскладку?

какой файл нужно редактировать для изменения клавиш консольной раскладки?
Обнаружил, что раскладка меняется правым Альтом, а мне надо левыми Shift+Alt

#386815

verd,
Не знаю получится ли у вас.
Файлы раскладок тут:

text
/usr/share/kbd/keymaps/i386/qwerty/ruwin_alt_sh-UTF-8.map.gz
/usr/share/kbd/keymaps/i386/qwerty/ruwin_alt-UTF-8.map.gz

Сейчас у вас раскладка меняется по правому Alt. (вариант: ruwin_alt-UTF-8.map.gz)
В другом варианте тоже используются правые клавиши.



з.ы. тему отмечу, как решённая, так как основная проблема решена.

#386817
verg написал:
verd,
Не знаю получится ли у вас.
Файлы раскладок тут:
text
/usr/share/kbd/keymaps/i386/qwerty/ruwin_alt_sh-UTF-8.map.gz
/usr/share/kbd/keymaps/i386/qwerty/ruwin_alt-UTF-8.map.gz

Сейчас у вас раскладка меняется по правому Alt. (вариант: ruwin_alt-UTF-8.map.gz)
В другом варианте тоже используются правые клавиши.



з.ы. тему отмечу, как решённая, так как основная проблема решена.

Спасибо. ;)

Войдите или зарегистрируйтесь, чтобы ответить.