From owner-freebsd-questions@FreeBSD.ORG Sat Mar 12 16:07:37 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2431516A4CE for ; Sat, 12 Mar 2005 16:07:37 +0000 (GMT) Received: from top.daemonsecurity.com (FW-182-254.go.retevision.es [62.174.254.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD37A43D39 for ; Sat, 12 Mar 2005 16:07:35 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.0.32] (charm.daemonsecurity.com [192.168.0.32]) by top.daemonsecurity.com (Postfix) with ESMTP id 6EDF3FD01F; Sat, 12 Mar 2005 17:07:31 +0100 (CET) Message-ID: <423313BC.8090000@locolomo.org> Date: Sat, 12 Mar 2005 17:07:24 +0100 From: Erik Norgaard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050310 X-Accept-Language: en, en-us, da, it, es MIME-Version: 1.0 To: Steve Kargl References: <20050311172121.GB74913@troutmask.apl.washington.edu> In-Reply-To: <20050311172121.GB74913@troutmask.apl.washington.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Setting up a danish locale X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2005 16:07:37 -0000 Steve Kargl wrote: > Problem: We have a visiting scientist from Denmark, whose laptop > died a horrible death. A colleagued asked if I would loan him > a currently unused system in my office. I've set up FreeBSD 5.3 > on the system and everything appears to work except for setting > up a Danish locale. From my rc.conf: The keymap sets the keyboard - doesn't make sense to set it per account I think? The font stuff is for the console. ############################################################## ### System console options ################################# ############################################################## keymap="danish.iso" # keymap in /usr/share/syscons/keymaps/* (or NO). font8x16="iso-8x16" # font 8x16 from /usr/share/syscons/fonts/* (or NO). font8x14="iso-8x14" # font 8x14 from /usr/share/syscons/fonts/* (or NO). font8x8="iso-8x8" # font 8x8 from /usr/share/syscons/fonts/* (or NO). > Disclaimer: I searched the Handbook, used google, and spent a > few hours reading up of login.conf, locale support, etc. But, > we are stuck without the danish locale. Yes, it's not trivial, what have bothered me is that some programs seems to have their own overriding settings. > I have setup a ~/,login_conf in the user home directory that > contains > > dhcp-78-77:kargl[201] cat .login_conf > me:\ > :charset=ISO8859-1:\ > :lang=da_DK.ISO8859-1: Should you get a future visiting scientist from Denmark, maybe you should create a class in /etc/login.conf, I have: da_DK:Danish users:\ :charset=iso-8859-1:\ :lang=da_DK.ISO8859-1:\ :tc=default: In master.passwd you then set the class for the user to da_DK. Finally, in /etc/ttys you need to select a console that supports latin1 characters instead of plain ascii, cons25l1 is recomended: ttyv0 "/usr/libexec/getty Pc" cons25l1 on secure All this stuff is to make the console behave. X has it's own life, I have had things working in X but not on the console - and I guess the oposite is possible too. For X I have the following in my XF86Config: Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbRules" "xfree86" Option "XkbModel" "pc102" Option "XkbLayout" "dk" I haven't installed anything particular for international support, I think that is only required for non latin based character sets. If you still have problems, you may try and ask in the danish BUG (is it called a BUG??) bsd-dk.dk - don't worry, you can write in english. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2