====== Debian sur Lenovo T61 ====== ===== Informations sur la machine ===== * Lenovo T61 * Part Number : NH3D6FR * Machine Type - Model : 6460-D6G ===== Partitionnement ===== * NTFS : 25 Go (XP) * SWAP : 3 Go, sda3 * EXT3 : 1 Go (Etendu) boot, sda5 * XFS : 25 Go (Etendu) /, sda6 * XFS : ~90Go (Etendu) home, sda7 * FAT : 5.5 Go (Rescue and Restore Lenovo) # /etc/fstab: static file system information. # # proc /proc proc defaults 0 0 /dev/sda6 / xfs noatime,nodiratime 0 1 /dev/sda5 /boot ext3 noatime,nodiratime,nodev,nosuid 0 2 /dev/sda7 /home xfs noatime,nodiratime 0 2 /dev/sda3 none swap sw 0 0 /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0 //serveur/pub /home/mathieu/pub smbfs noauto,user,guest,uid=mathieu,gid=mathieu,file_mode=666,dir_mode=777 0 0 //serveur/media /home/mathieu/media smbfs noauto,user,guest,uid=mathieu,gid=mathieu,file_mode=666,dir_mode=777 0 0 ===== Configuration d'APT ===== L'ordre de déclaration des sources doit se faire dans le même que celui de ''preferences'', sinon un paquet disponible dans la même version pour 2 sources différentes viendra de la première source déclarée dans ''sources.list'' et pas de celle ayant la priorité la plus haute. #deb ftp://ftp.proxad.net/mirrors/ftp.debian.org/ stable main contrib non-free deb ftp://ftp.proxad.net/mirrors/ftp.debian.org/ testing main contrib non-free deb ftp://ftp.proxad.net/mirrors/ftp.debian.org/ sid main contrib non-free #deb ftp://ftp.proxad.net/mirrors/ftp.debian.org/ experimental main contrib non-free #deb-src ftp://ftp.proxad.net/mirrors/ftp.debian.org/ stable main contrib non-free deb-src ftp://ftp.proxad.net/mirrors/ftp.debian.org/ testing main contrib non-free #deb-src ftp://ftp.proxad.net/mirrors/ftp.debian.org/ sid main contrib non-free #deb-src ftp://ftp.proxad.net/mirrors/ftp.debian.org/ experimental main contrib non-free deb http://security.eu.debian.org/ testing/updates main contrib non-free #deb http://security.eu.debian.org/ stable/updates main contrib non-free Package: * Pin: release o=Debian,a=testing Pin-priority: 900 Package: * Pin: release o=Debian,a=stable Pin-priority: 400 Package: * Pin: release o=Debian,a=unstable Pin-priority: 70 Package: * Pin: release o=Debian,a=experimental Pin-priority: 50 Package: * Pin: release o=Unofficial Multimedia Packages,a=testing Pin-priority: 200 #deb http://www.debian-multimedia.org stable main deb http://www.debian-multimedia.org/ testing main #deb http://www.debian-multimedia.org unstable main ===== Paquets à installer ===== ntp kexec-tools openssh-server xorg kde-core kde-i18n-fr iceweasel iceweasel-l10n-fr icedove icedove-l10n-fr iceowl-extension gkrellm wine amarok kmix ksensors vlc ffmpeg mplayer mencoder ktorrent kopete qfreefax klibido filezilla openoffice.org openoffice.org-l10n-fr kuickshow inkscape kpdf gimp gimp-plugin-registry gimp-texturize k3b camstream effectv imagemagick bzip2 dvd+rw-tools audacity avidemux kmplayer picard dvdrip wesnoth ===== bluetooth ===== Les paquets nécessaires sont : sudo aptitude install bluetooth bluez bluez-utils Tant que Debian n'aura pas inclu l'utilitaire ''rfkill'', il faudra activer le bluetooth à la main : echo 1 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable Tant que Debian n'aura pas réglé ses problèmes de ''password agent'', il faudra déclarer les mots de passe pour appairer à la main : echo " " > /var/lib/bluetooth//pincodes Pour naviguer sur le contenu d'un téléphone, il suffit de le monter avec ''obexfs'' : sudo aptitude install obexfs obexfs -b /mnt/obex/ Liens utiles : * [[http://www.sange.fi/~atehwa/cgi-bin/piki.cgi/how%20to%20quickfix%20bluetooth%20pairing%20in%20Debian%20linux|Lien 1]] * [[http://www.thinkwiki.org/wiki/How_to_setup_Bluetooth|Lien 2]] ===== Autoconfiguration réseau ===== L'objectif est d'essayer de configurer automatiquement le réseau au branchement du câble. sudo aptitude install ifplugd guessnet Le paquet ''ifplugd'' s'occupe d'exécuter des actions au branchement/débranchement du câble réseau. ''guessnet'' essai de déterminer sur quel réseau l'ordinateur se trouve (en fonction de profils donnés). Toute la configuration se fait dans le fichier ''/etc/network/interfaces'' : # The loopback network interface auto lo iface lo inet loopback # carte reseau filaire mapping eth0 script /usr/sbin/guessnet-ifupdown map default: eth0-dhcp map timeout: 3 map verbose: true iface eth0-apart inet dhcp test peer address 192.168.42.254 mac 11:22:33:44:55:66 up /home/mathieu/network-conf.sh guim.lan start pre-down /home/mathieu/network-conf.sh guim.lan stop iface eth0-toto inet dhcp test peer address 192.168.192.254 mac 11:22:33:99:88:77 up /home/mathieu/network-conf.sh intra.lan pre-down /home/mathieu/network-conf.sh intra.lan stop iface eth0-dhcp inet dhcp # carte reseau wifi iface wlan0 inet dhcp On définit des profiles (//eth0-XX//) avec un test associé (//test peer adress//). Et pour chaque profile on exécute le script ''/home/mathieu/network-conf.sh'' qui s'occupera de bien configurer le DNS et de monter les partages éventuels. #!/bin/bash # nom du profil a utiliser [ $# -eq 2 ] || exit 1 case "$1" in "guim.lan") if [ "$2" = "start" ] then resolvconf -d eth0 cat > /etc/resolv.conf < /etc/resolv.conf <