Pages : 1
#1 Le 17/12/2006, à 10:58
- Express
Console querty sous EDGY ??
Salut
Comment mettre le terminal en azerty sous EDGY svp !!!!! apparement il est en querty par défaut ....
merci
Hors ligne
#2 Le 17/12/2006, à 11:35
- sbrunner
Re : Console querty sous EDGY ??
C'est space personnellement je l'avais en azerty alors que je le voulais en qwertz !
pour cela j'ai modifier le fichier /etc/init.d/keymap.sh comme suis :
10,14d9
< # If setupcon is present, then we've been superseded by console-setup.
< if type setupcon >/dev/null 2>&1; then
< exit 0
< fi
<
30,31c25,28
< CONFDIR=/etc/console
< CONFFILEROOT=boottime
---
> #CONFDIR=/etc/console
> #CONFFILEROOT=boottime
> CONFDIR=/usr/share/keymaps/i386/qwertz
> CONFFILEROOT=fr_CH-latin1
57,61c54
<
< ENV_FILE="none"
< [ -r /etc/environment ] && ENV_FILE="/etc/environment"
< [ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale"
< [ $ENV_FILE = none ] && return
---
> [ -r /etc/environment ] || return
64c57
< value=$(egrep "^[^#]*${var}=" $ENV_FILE | tail -n1 | cut -d= -f2)
---
> value=$(egrep "^[^#]*${var}=" /etc/environment | tail -n1 | cut -d= -f2)
98a92
> echo $CONFFILE;
C'est une magouille mais cela merche pour moi, il faut bien sure l'adapter.
le fichier final est :
#!/bin/sh
### BEGIN INIT INFO
# Provides: keymap
# Required-Start: mountvirtfs
# Required-Stop:
# Default-Start: S 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
# If setupcon is present, then we've been superseded by console-setup.
if type setupcon >/dev/null 2>&1; then
exit 0
fi
. /lib/lsb/init-functions
#
# Load the keymaps *as soon as possible*
#
# Don't fail on error
CONSOLE_TYPE=`fgconsole 2>/dev/null` || CONSOLE_TYPE="unknown"
# Don't fail on serial consoles
QUIT=0
# fail silently if loadkeys not present (yet).
command -v loadkeys >/dev/null 2>&1 || QUIT=1
CONFDIR=/etc/console
CONFFILEROOT=boottime
EXT=kmap
CONFFILE=${CONFDIR}/${CONFFILEROOT}.${EXT}.gz
reset_kernel()
{
# On Mac PPC machines, we may need to set kernel vars first
# We need to mount /proc to do that; not optimal, as its going to
# be mounted in S10checkroot, but we need it set up before sulogin
# may be run in checkroot, which will need the keyboard to log in...
[ -x /sbin/sysctl ] || return
[ -r /etc/sysctl.conf ] || return
grep -v '^\#' /etc/sysctl.conf | grep -q keycodes
if [ "$?" = "0" ] ; then
grep keycodes /etc/sysctl.conf | grep -v "^#" | while read d ; do
/sbin/sysctl -w $d 2> /dev/null || true
done
fi
}
unicode_start_stop()
{
# Switch unicode mode by checking the locale.
# This will be needed before loading the keymap.
[ -x /usr/bin/unicode_start ] || [ -x /bin/unicode_start ] || return
[ -x /usr/bin/unicode_stop ] || [ -x /bin/unicode_stop ] || return
ENV_FILE="none"
[ -r /etc/environment ] && ENV_FILE="/etc/environment"
[ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale"
[ $ENV_FILE = none ] && return
for var in LANG LC_ALL LC_CTYPE; do
value=$(egrep "^[^#]*${var}=" $ENV_FILE | tail -n1 | cut -d= -f2)
eval $var=$value
done
CHARMAP=`LANG=$LANG LC_ALL=$LC_ALL LC_CTYPE=$LC_CTYPE locale charmap`
if [ "$CHARMAP" = "UTF-8" ]; then
unicode_start 2> /dev/null || true
else
unicode_stop 2> /dev/null || true
fi
}
if [ ! $QUIT = '1' ] ; then
case "$1" in
start | restart | force-reload | reload)
# First mount /proc if necessary.
unmount_proc="no"
if [ ! -x /proc/1 ]; then
unmount_proc="yes"
mount -n /proc
fi
# Set kernel variables if required
reset_kernel
if [ -f /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes ] ; then
linux_keycodes=`cat /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes`
else
linux_keycodes=1;
fi
# load new map
if [ $linux_keycodes -gt 0 ] ; then
if [ -r ${CONFFILE} ] ; then
# Switch console mode to UTF-8 or ASCII as necessary
unicode_start_stop
if [ $CONSOLE_TYPE = "serial" ] ; then
loadkeys -q ${CONFFILE} 2>&1 > /dev/null
else
loadkeys -q ${CONFFILE}
fi
if [ $? -gt 0 ]
then
# if we've a serial console, we may not have a keyboard, so don't
# complain if we fail.
if [ ! $CONSOLE_TYPE = "serial" ]; then
log_warning_msg "Problem when loading ${CONFDIR}/${CONFFILEROOT}.${EXT}.gz, use install-keymap"
sleep 10
fi
fi
fi
fi
# unmount /proc if we mounted it
[ "$unmount_proc" = "no" ] || umount -n /proc
;;
stop)
;;
*)
log_warning_msg "Usage: $0 {start|stop|restart|reload|force-reload}"
;;
esac
fi
Hors ligne
#3 Le 17/12/2006, à 11:38
- sbrunner
Re : Console querty sous EDGY ??
Je pense que tu doit avoir comme différence avec moi :
CONFDIR=/usr/share/keymaps/i386/azerty
CONFFILEROOT=fr-latin1
Hors ligne
Pages : 1