logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 16-06-2011 10:39:05

bjm
Membre
Distrib. : Wheezy 7.1
(G)UI : AWESOME ; Ratpoison
Inscription : 23-02-2008

Configuration de squeeze sur mon dell Mini9

Je tente d'installer squeeze sur mon dell mini9 ; mais je rencontre un certain nombre
de problème que je n'ai pas rencontré avec lenny .

Je vais essayé avec ce topic de résoudre ces problèmes .

J'ai utilise ce topic :
http://debian-facile.org/forum/viewtopic.php?id=2518

1) Premier problème clavier en qwerty dans la console :

Après des recherches sur internet :
J'ai fait un
aptitude install console-data
apt-get update && apt-get -u dist-upgrade

Pour reconfigurer
dpkg-reconfigure  console-data
Choisir l'architecture du clavier
pc / azerty / French / Same as X11 (latin 9) / Standard fr-latin9

mon clavier est azerty

Au redémarrage mon clavier est en qwerty
il y aurait une modification dans le fichier :
/etc/init.d/keymap.sh

#!/bin/sh
### BEGIN INIT INFO
# Provides:             keymap
# Required-Start:       mountdevsubfs
# Required-Stop:     
# Default-Start:        S
# Default-Stop:
# X-Interactive:    true
# Short-Description:     Set keymap
# Description:        Set the Console keymap
### 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

# Avoid messing with splashy boot
# Thanks to John Hughes and Marc Haber for suggestions
pidof splashy >/dev/null &&
   mkdir -p /lib/init/rw/splashy/ &&
   touch /lib/init/rw/splashy/splashy-stopped-keymap &&
   exit 0

#
# 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=""
    [ -r /etc/environment ] && ENV_FILE="/etc/environment"
    [ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale"
    [ "$ENV_FILE" ] && CHARMAP=$(set -a && . "$ENV_FILE" && 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)
 
          # Set kernel variables if required
    reset_kernel

        # First mount /proc if necessary...and if it is there (#392798)
        unmount_proc="no"
    if [ -d /proc ]; then
            if [ ! -x /proc/$$ ]; then
                unmount_proc="yes"   
                 mount -n /proc
            fi
 

            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
    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


Quelqu'un à t'il une solution .

Merci smile

Hors ligne

Pied de page des forums