FreeBSD Handbook : Localization : Russian Language (KOI8-R encoding) : X Window Setup
Previous: MSDOS FS and Russian file names
Next: Network Communications

13.1.5. X Window Setup

Step by step instructions:

  1. Do non-X locale setup first as described.

    NOTE: Russian KOI8-R locale may not work with old XFree86 releases (lower than 3.3). XFree86 port from /usr/ports/x11/XFree86 already have most recent XFree86 version, so it will work, if you install XFree86 from this port. XFree86 version shipped with the latest FreeBSD distribution should work too (check XFree86 version number not less than 3.3 first).

  2. Go to /usr/ports/russian/X.language directory and say
    # make all install
    
    there. This port install latest version of KOI8-R fonts. XFree86 3.3 already have some KOI8-R fonts, but this ones scaled better.

    Check find "Files" section in your /etc/XF86Config, following lines must be before any other FontPath entries:

        FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic/misc"
        FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic/75dpi"
        FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic/100dpi"
    

    If you use high resolution video mode, swap 75 dpi and 100 dpi lines.

  3. To activate Russian keyboard add
        XkbKeymap   "xfree86(ru)"
    
    line into "Keyboard" section in your /etc/XF86Config, also make sure that XkbDisable is turned off (commented out) there.

    RUS/LAT switch will be CapsLock. Old CapsLock function still available via Shift+CapsLock (in LAT mode only).

    NOTE: Russian XKB keyboard may not work with old XFree86 versions, see locale note for more info. Russian XKB keyboard may not work with non-localized applications too, minimally localized application should call XtSetLanguageProc (NULL, NULL, NULL); function early in the program.


FreeBSD Handbook : Localization : Russian Language (KOI8-R encoding) : X Window Setup
Previous: MSDOS FS and Russian file names
Next: Network Communications