From owner-freebsd-questions@FreeBSD.ORG Sun Dec 29 02:05:07 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 37A00C63 for ; Sun, 29 Dec 2013 02:05:07 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EA70D1D25 for ; Sun, 29 Dec 2013 02:05:06 +0000 (UTC) Received: from r56.edvax.de (port-92-195-127-162.dynamic.qsc.de [92.195.127.162]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 0DADA881D; Sun, 29 Dec 2013 03:04:59 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id rBT24aJt002169; Sun, 29 Dec 2013 03:04:36 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 29 Dec 2013 03:04:36 +0100 From: Polytropon To: James Griffin Subject: Re: Remapkey spanish keyboard Message-Id: <20131229030436.194c6e4e.freebsd@edvax.de> In-Reply-To: <52BEF53E.7060609@gmail.com> References: <20131228164937.00000273.emorrasg@yahoo.es> <52BEF53E.7060609@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Isma Tim , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2013 02:05:07 -0000 On Sat, 28 Dec 2013 15:58:54 +0000, James Griffin wrote: > You could try setxkbmap in your .xinitrc or .xsession ? Of if you're running X without HAL, you can use the common method of how things have been configured in X at a central place: via /etc/X11/xorg.conf: Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "es" Option "XkbOptions" "terminate:ctrl_alt_bksp" EndSection The model "es" should be a spanish keyboard with all the required special characters (such as n with tilde) generated by the respective keys in their proper places. For the text mode console, put the required setting in /etc/rc.conf: keymap="spanish.iso" keyrate="fast" font8x14="iso-8x14" font8x16="iso-8x16" font8x8="iso-8x8" Also load the ISO fonts so you can _see_ the characters correctly. :-) There are three versions for the spanish language located at /usr/share/syscons/keymaps/, those are: spanish.iso.acc.kbd spanish.iso.kbd spanish.iso15.acc.kbd You will have to test which one fits your needs (omit the .kbd for the rc.conf setting). Note that you _might_ adjust settings for the shell you're using. Here's an example for the C shell (from my modified system-wide version of /etc/csh.cshrc), and again, remember that you will probably have to decide which configuration fits your needs: # "old-fashioned" version: setenv LC_ALL en_US.ISO8859-1 setenv LC_MESSAGES en_US.ISO8859-1 setenv LC_COLLATE es_ES.ISO8859-1 setenv LC_CTYPE es_ES.ISO8859-1 setenv LC_MONETARY es_ES.ISO8859-1 setenv LC_NUMERIC es_ES.ISO8859-1 setenv LC_TIME es_ES.ISO8859-1 unsetenv LANG # with "Euro" sign, also switches program messages language setenv LC_ALL es_ES.ISO8859-15 setenv LC_COLLATE es_ES.ISO8859-15 setenv LC_CTYPE es_ES.ISO8859-15 setenv LC_MESSAGES es_ES.ISO8859-15 setenv LC_MONETARY es_ES.ISO8859-15 setenv LC_NUMERIC es_ES.ISO8859-15 setenv LC_TIME es_ES.ISO8859-15 # use with UTF-8 setenv LC_ALL en_US.UTF-8 setenv LC_MESSAGES en_US.UTF-8 setenv LC_COLLATE es_ES.UTF-8 setenv LC_CTYPE es_ES.UTF-8 setenv LC_MONETARY es_ES.UTF-8 setenv LC_NUMERIC es_ES.UTF-8 setenv LC_TIME es_ES.UTF-8 setenv LANG es_ES.UTF-8 Note that the text mode console can hardly handle UTF-8, so this kind of setting is more a "X preparation". Summary: You should not have to manually set up your keyboard layout. That has been done decades ago. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...