Страница 1 из 1

Русификация консоли

Добавлено: 2008-01-26 11:34:04
maradona
Превед! делаю все по статтье: http://www.lissyara.su/?id=1081 FreeBSD 6.2, только редактор по умолчанию поставил ее

Код: Выделить всё

/etc/rc.conf:
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keymap="ru.koi8-r"
scrnmap="koi8-r2cp866"
/etc/ttys:

Код: Выделить всё

guga# cat /etc/ttys | grep cons25
#      For virtual consoles, the correct type is typically cons25, but
ttyv0   "/usr/libexec/getty Pc"         cons25r on  secure
ttyv1   "/usr/libexec/getty Pc"         cons25r on  secure
ttyv2   "/usr/libexec/getty Pc"         cons25r on  secure
ttyv3   "/usr/libexec/getty Pc"         cons25r on  secure
ttyv4   "/usr/libexec/getty Pc"         cons25r on  secure
ttyv5   "/usr/libexec/getty Pc"         cons25r on  secure
ttyv6   "/usr/libexec/getty Pc"         cons25r on  secure
ttyv7   "/usr/libexec/getty Pc"         cons25r on  secure
/etc/profile:

Код: Выделить всё

LANG=ru_RU.KOI8-R; export LANG
MM_CHARSET=KOI8-R; export MM_CHARSET
/etc/csh.login:

Код: Выделить всё

setenv LANG ru_RU.KOI8-R
setenv MM_CHARSET KOI8-R
командой vipw зделал:

Код: Выделить всё

root:$1xxxxxxxxxxxxxxxxx.:0:0:russian:0:0:Charlie &:/root:/bin/csh
putin:$1$P4YuRg2J$OmDvSFO8NnUAmFvbq23UG0:1001:1001:russian:0:0:User &:/home/putin:/bin/sh
перегружаюсь открываю редактор ее и голяк:

Код: Выделить всё

^[ (Esc) ????   ^y ?????...        ^k ??????? ?????? ^p ????? ^g ????. ???.
^o ascii-???    ^x ?????? ??????   ^l ??????? ?????? ^n ????  ^v ????. ???.
^u ? ????? ???  ^a ? ?????? ?????? ^w ??????? ?????  ^b ?????
^t ? ????? ???? ^e ? ????? ??????  ^r ??????? ?????  ^f ??????
^c ???????      ^d ??????? ??????  ^j ??????? ?????? ^z ????????? ?????
L: 1 C: 1 =====================================================================
# $FreeBSD: src/etc/csh.login,v 1.21 2004/06/06 11:46:27 schweikh Exp $
#
# System-wide .login file for csh(1).
# Uncomment this to give you the default 4.2 behavior, where disk
# information is shown in K-Blocks
# setenv BLOCKSIZE      K
#
# For the setting of languages and character sets please see
# login.conf(5) and in particular the charset and lang options.
# For full locales list check /usr/share/locale/*
#
# Read system messages
# msgs -f
# Allow terminal messages
# mesg y

setenv LANG ru_RU.KOI8-R
setenv MM_CHARSET KOI8-R
Вместо букв крякозябры чего не хватает? подскажите.

Re: Русификация консоли

Добавлено: 2008-01-26 11:59:42
maradona
у мля.. каюсь в PUTTY стояло UTF-8 все работает!!!