Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Mar 2005 17:07:24 +0100
From:      Erik Norgaard <norgaard@locolomo.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Setting up a danish locale
Message-ID:  <423313BC.8090000@locolomo.org>
In-Reply-To: <20050311172121.GB74913@troutmask.apl.washington.edu>
References:  <20050311172121.GB74913@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?423313BC.8090000>