Locale einstellen funktioniert nicht

spectre210

Well-Known Member
Ich habe versucht mit login Klassen alles auf deutschsprachig umzustellen, wie hier beschrieben:

http://www.freebsd.org/doc/de/books/handbook/using-localization.html

Meine /etc/login.conf:

Code:
# login.conf - login class capabilities database.
#
# Remember to rebuild the database after each change to this file:
#
#	cap_mkdb /etc/login.conf
#
# This file controls resource limits, accounting limits and
# default user environment settings.
#
# $FreeBSD$
#

# Default settings effectively disable resource limits, see the
# examples below for a starting point to enable them.

# defaults
# These settings are used by login(1) by default for classless users
# Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
#
# Note that since a colon ':' is used to separate capability entries,
# a \c escape sequence must be used to embed a literal colon in the
# value or name of a capability (see the ``CGETNUM AND CGETSTR SYNTAX
# AND SEMANTICS'' section of getcap(3) for more escape sequences).

default:\
        :lang=de_DE.ISO8859-1
	:passwd_format=md5:\
	:copyright=/etc/COPYRIGHT:\
	:welcome=/etc/motd:\
	:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
	:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\
	:nologin=/var/run/nologin:\
	:cputime=unlimited:\
	:datasize=unlimited:\
	:stacksize=unlimited:\
	:memorylocked=unlimited:\
	:memoryuse=unlimited:\
	:filesize=unlimited:\
	:coredumpsize=unlimited:\
	:openfiles=unlimited:\
	:maxproc=unlimited:\
	:sbsize=unlimited:\
	:vmemoryuse=unlimited:\
	:swapuse=unlimited:\
	:pseudoterminals=unlimited:\
	:priority=0:\
	:ignoretime@:\
	:umask=022:


#
# A collection of common class names - forward them all to 'default'
# (login would normally do this anyway, but having a class name
#  here suppresses the diagnostic)
#
standard:\
	:tc=default:\
        :lang=de_DE.ISO8859-1
xuser:\
	:tc=default:
staff:\
	:tc=default:
daemon:\
	:tc=default:
news:\
	:tc=default:
dialer:\
	:tc=default:

#
# Root can always login
#
# N.B.  login_getpwclass(3) will use this entry for the root account,
#       in preference to 'default'.
root:\
        :charset=ISO-8859-1:\
        :lang=de_DE.ISO8859-1\
	:ignorenologin:\
	:tc=default:

#
# Russian Users Accounts. Setup proper environment variables.
#
russian|Russian Users Accounts:\
	:charset=KOI8-R:\
	:lang=ru_RU.KOI8-R:\
	:tc=default:

german|German Users Accounts:\
    :charset=ISO-8859-1:\
    :lang=de_DE.ISO8859-1:\
    :tc=default:

Mein /etc/profile:

Code:
# $FreeBSD$
#
# System-wide .profile file for sh(1).
#
# Uncomment this to give you the default 4.2 behavior, where disk
# information is shown in K-Blocks
# BLOCKSIZE=K; export BLOCKSIZE
#
# 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/*
# You should also read the setlocale(3) man page for information
# on how to achieve more precise control of locale settings.
#
# Check system messages
# msgs -q
# Allow terminal messages
# mesg y
LANG=de_DE.ISO8859-1; export LANG
MM_CHARSET=ISO-8859-1; export MM_CHARSET

Jedoch funktionert deutsch-sprachig nur in X.
Per Console ist immer noch alles in englischer Tastatur.
Was mache ich falsch.
Vielen Dank im Vorraus.
 
Die profile-Einsetllungen haben nichts mit dem Tastaturlayout zu tun. Hierfür brauchst du:
Code:
echo 'keymap="german.iso"' >> /etc/rc.conf
und danach
Code:
/etc/rc.d/syscons restart
 
1) default-Locale nicht verändern. Das kann in die Hose gehen!

2) Du hast es verändert und die Syntax ist in der obersten Zeile (mit lang) schon falsch.
 
Vielen Dank Leute.
Funktioniert fasst perfekt.
Kann jedoch kein Umlaute darstellen, oder ist das mit Konsole nicht möglich?
 
Code:
# Zu verwendende Konsoleschrift (iso8859-15)
font8x14="iso15-8x14"
font8x16="iso15-8x16"
font8x8="iso15-8x8"
Wie im o.g. Wiki beschrieben. Muß in die /etc/rc.conf.

Außerdem muß in der /etc/ttys die Kodierung für die in der Konsole verwendeten Schriften verändert werden: cons25l1

Steht aber auch auf der von Dir gelinkten Seite des Handbuchs. ;) Unter: 23.3.5. Einrichten der Konsole
 
Zurück
Oben