FreeBSD Handbook : Localization : Russian Language (KOI8-R encoding) : Locale Setup
Previous: Console Setup
Next: Printer Setup

13.1.2. Locale Setup

There is two environment variables for locale setup:

The best way is using /etc/login.conf russian user's login class in passwd(5) entry login class position. See login.conf(5) for details.

13.1.2.1. Login Class Method

First of all check your /etc/login.conf have russian login class, this entry may looks like:

russian:Russian Users Accounts:\
	:charset=KOI8-R:\
	:lang=ru_RU.KOI8-R:\
	:tc=default:

How to do it with vipw(8)

If you use vipw(8) for adding new users, /etc/master.passwd entry should looks like:

user:password:1111:11:russian:0:0:User Name:/home/user:/bin/csh

How to do it with adduser(8)

If you use adduser(8) for adding new users:

How to do it with pw(8)

If you use pw(8) for adding new users, call it in this form:

# pw useradd user_name -L russian

13.1.2.2. Shell Startup Files Method

If you don't want to use login class method for some reasons, just set this two environment variables in the following shell startup files:

Alternatively you can add this instructions to


FreeBSD Handbook : Localization : Russian Language (KOI8-R encoding) : Locale Setup
Previous: Console Setup
Next: Printer Setup