User Tools

Site Tools


локализация_консоли

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
локализация_консоли [2011/02/17 16:27]
val
локализация_консоли [2013/05/22 13:50]
127.0.0.1 внешнее изменение
Line 2: Line 2:
  
 ===== Ubuntu ===== ===== Ubuntu =====
- 
-==== Настройка шрифтов ==== 
 <​code>​ <​code>​
 # dpkg-reconfigure console-setup # dpkg-reconfigure console-setup
  
-        Generic 102-key (Intl) PC +        ​Keyboard Model: ​                  Generic 102-key (Intl) PC 
-        Russia +        ​Origing of the keyboard: ​         ​Russia 
-        ​Все остальное по умолчанию кроме character set KOI8-R +        ... 
-</​code>​ +        ​Encoding to use on the console: ​  UTF-8 
- +        ​Character set to support: ​        ​Cyrillic - KOI8-R and KOI8-U 
-==== Настройка локализации ==== +        ..
- +
-<​code>​ +
-# update-locale LANG="​ru_RU.UTF-8" LANGUAGE="​ru_RU.UTF-8" LC_ALL="​ru_RU.UTF-8" +
- +
-# cat /​etc/​default/​locale +
-LANG=ru_RU.UTF-8 +
-LANGUAGE=ru_RU.UTF-8 +
-LC_ALL=ru_RU.UTF-8+
 </​code>​ </​code>​
  
 ===== FreeBSD ===== ===== FreeBSD =====
 <​code>​ <​code>​
-[gate:~] # sysinstall +# cat /​etc/​rc.conf 
-(клавиатура,​ шрифты,​ терминал) +</​code><​code>​
- +
-[gate:​~] ​# cat /​etc/​rc.conf+
 ... ...
 font8x16="​cp866-8x16"​ font8x16="​cp866-8x16"​
 scrnmap="​koi8-r2cp866"​ scrnmap="​koi8-r2cp866"​
 keymap="​ru.koi8-r"​ keymap="​ru.koi8-r"​
 +...
 +</​code><​code>​
 +# /​etc/​rc.d/​syscons restart
  
-[gate:​~] ​# /etc/rc.d/syscons start +sed -i.bak 's/cons25/cons25r/' ​/etc/ttys
- +
- +
-[gate:~] # diff /etc/ttys +
-35c35 +
-< ttyv0 "/​usr/​libexec/​getty Pc" ​        ​cons25 ​ on  secure +
---- +
-> ttyv0 "/​usr/​libexec/​getty Pc" ​        ​cons25r on  secure +
- +
-[gate:~] # kill -1 1 +
- +
-[gate:~] # date +
- +
-[gate:~] # setenv LANG ru_RU.KOI8-R+
  
-[gate:​~] ​date +kill -1 1
-  +
-[gate:~] # pw usermod root -L russian+
 </​code>​ </​code>​
  
локализация_консоли.txt · Last modified: 2015/02/09 16:34 by val