User Tools

Site Tools


локализация_x_сервера

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
локализация_x_сервера [2012/11/27 14:52]
val
локализация_x_сервера [2015/08/26 12:31] (current)
val [Включаем поддержку русской клавиатуры]
Line 11: Line 11:
 ===== FreeBSD ===== ===== FreeBSD =====
  
-==== Устанавливаем русскую локализацию пользователя ==== +  * [[Локализация окружения]] 
-<​code>​ + 
-[hostX:~# pw usermod root -L russian +
-[hostX:~] # logout +
-</​code>​+
  
 ==== Включаем поддержку русских шрифтов ==== ==== Включаем поддержку русских шрифтов ====
  
-=== Штатные шрифты === 
 <​code>​ <​code>​
-# cat /​etc/​X11/​xorg.conf +# cd /usr/local/share/fonts/
-</​code><​code>​ +
-... +
-Section "​Files"​ +
-        RgbPath ​     "/​usr/​X11R6/​lib/​X11/​rgb"​ +
-        ModulePath ​  "/​usr/​X11R6/​lib/​modules"​ +
-          FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​cyrillic/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​misc/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​TTF/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​Type1/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​CID/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​75dpi/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​100dpi/"​ +
-EndSection +
-</​code>​ +
- +
-=== TrueType шрифты === +
-<​code>​ +
-# cd /usr/X11R6/lib/X11/fonts/+
  
 # fetch http://​koi8.pp.ru/​dist/​msttcorefonts.tgz # fetch http://​koi8.pp.ru/​dist/​msttcorefonts.tgz
  
-# tar -xvzf ~/msttcorefonts.tgz+# tar -xvzf msttcorefonts.tgz
  
 # cat /​etc/​X11/​xorg.conf # cat /​etc/​X11/​xorg.conf
 +</​code><​code>​
 +...
 Section "​Files"​ Section "​Files"​
-        ​RgbPath ​     "/​usr/​X11R6/​lib/​X11/​rgb"​ +        ModulePath ​  "/​usr/​local/lib/xorg/​modules"​ 
-        ​ModulePath ​  "/​usr/​X11R6/​lib/​modules"​ +        FontPath ​    "/​usr/​local/share/​fonts/​msttcorefonts/"​ 
-          FontPath ​    "/​usr/​X11R6/lib/X11/​fonts/​msttcorefonts/"​ +        FontPath ​    "/​usr/​local/share/​fonts/​cyrillic/"​ 
-        FontPath ​    "/​usr/​X11R6/lib/X11/​fonts/​cyrillic/"​ +...
-        ​FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​misc/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​TTF/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​Type1/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​CID/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​75dpi/"​ +
-        FontPath ​    "/​usr/​X11R6/​lib/​X11/​fonts/​100dpi/"​ +
-EndSection+
 </​code>​ </​code>​
  
 ==== Включаем поддержку русской клавиатуры ==== ==== Включаем поддержку русской клавиатуры ====
  
-На лету:+=== Средствами Window Manager === 
 + 
 +=== На лету ​===
 <​code>​ <​code>​
 # setxkbmap ​ -layout "​us,​ru"​ -option "​grp:​alt_shift_toggle"​ # setxkbmap ​ -layout "​us,​ru"​ -option "​grp:​alt_shift_toggle"​
 </​code>​ </​code>​
-Или в файле конфигурации ​hald:+=== Если используется ​hald ===
 <​code>​ <​code>​
 # cat /​usr/​local/​etc/​hal/​fdi/​policy/​x11-input.fdi # cat /​usr/​local/​etc/​hal/​fdi/​policy/​x11-input.fdi
 +</​code><​code>​
 <?xml version="​1.0"​ encoding="​ISO-8859-1"?>​ <?xml version="​1.0"​ encoding="​ISO-8859-1"?>​
 <​deviceinfo version="​0.2">​ <​deviceinfo version="​0.2">​
локализация_x_сервера.1354013569.txt.gz · Last modified: 2013/05/22 13:50 (external edit)