Page à mettre en forme selon le modèle
Point important : La carte wifi est désormais supportée. Aucun problème lors de l'installation.
Les améliorations notables :
Le plus : Le support de la virtualisation matérielle avec KVM
Vous devrez effectuer l'installation via la carte éthernet , la carte wifi n'est pas détectée lors de l'installation.
Utilisez le pilote propriétaire de la carte nVIDIA (pour profiter de Compiz)
Commencer par suivre la documentation :
Connecté votre PC avec un cable ethernet.
Créé le fichier inst_rt8187b.sh.
Ajouter les lignes suivantes dans le fichier et enregistre le.
Note Pour tester les différentes mises à jour , commenter/décommenter les lignes des nom des fichiers file_rtl8187b et file_patch en tête du fichier.
Au moins une ligne file_rtl8187b est obligatoire.
(Voir site http://www.datanorth.net/~cuervo/rtl8187b)
#!/bin/bash # ---- # See : http://www.datanorth.net/~cuervo/rtl8187b # ---- # --------------------------------------------------------------------------------------------------------------- file_rtl8187b="rtl8187b-modified-dist.tar.gz" # -- Comment unused files #file_rtl8187b="rtl8187b-modified-jadams-2-1-2008.tar.gz" #file_rtl8187b="rtl8187b-unmodified-realtek.tar.gz" file_patch="2.6.24.patch" # --------------------------------------------------------------------------------------------------------------- # ---- # Begin update actions # ---- ferr(){ echo "Error detected : ${@}"; exit 1; } [ -z ${file_rtl8187b} ] && ferr "file_rtl8187b Undefined" web_site="http://www.datanorth.net/~cuervo/rtl8187b" get_file="${web_site}/${file_rtl8187b}" get_patch="${web_site}/${file_patch}" local_d="/etc/rtl8187b" f_report="/etc/rtl8187b/install.log" ferr(){ echo "ERROR - ${@}"; exit 1; } mkdir -p ${local_d} || ferr "mkdir -p ${local_d}" echo "wget file ${get_file}" cd ${local_d} || ferr "/etc/rtl8187b" find ${local_d} -type f -name "install.log" -exec rm -f {} \; || ferr "Remove file ${f_report}" find ${local_d} -type f -name "${file_rtl8187b}" -exec rm -f {} \; || ferr "Remove file ${file_rtl8187b}" wget ${get_file} || ferr "Download file ${get_file}" echo "Extract file ( report file : ${f_report} ) , please wait ..." find ${local_d} -name "*.zip" -ls -exec unzip {} \; 1>>${f_report} || ferr "unzip ${file_rtl8187b}" find ${local_d} -name "*.tar" -ls -exec tar -xvf {} \; 1>>${f_report} || ferr "tar -xvf ${file_rtl8187b}" find ${local_d} -name "*.tar.gz" -ls -exec tar -zxvf {} \; 1>>${f_report} || ferr "tar -zxvf file {file_rtl8187b}" m="$( find ${local_d} -name makedrv )" n="$( find ${local_d} -name install )" [ -z "${m}" ] && ferr "file makedrv not found" [ -z "${n}" ] && ferr "file install not found" echo "File found ${m}" echo "File found ${n}" d="$( dirname ${m} )" cd ${d} || ferr "cd ${d}" [ -z ${file_patch} ] && echo "Bypass step apply patch.Patch file unselected" [ -z ${file_patch} ] || { echo "Apply patch.Patch file selected" find ${local_d} -type f -name "${file_patch}" -exec rm -f {} \; || ferr "Remove file ${file_patch}" dpkg -l patch && apt-get install patch -y || ferr "Install package patch" dpkg -l patch 1>/dev/null || ferr "Package patch not found" wget ${get_patch} || ferr "Download file ${get_patch}" p="$( find . -name ${file_patch} )" [ -z "${p}" ] && ferr "file ${get_patch} not found" p="$( basename $p )" patch -p1 < ${p} || "ferr patch -p1 < ${p}" echo "Success apply patch ${file_patch}" } echo "Run makedrv an install ( report file : ${f_report} ) , please wait..." ./makedrv 1>>install.log 2>>install.log || ferr "./makedrv" echo "Success install driver rtl8187b ( directory : ${d} )" echo "Test interface wlan0" # ---- # End update actions # ---- # ---- # Run control(s) # ---- iwconfig wlan0 1>/dev/null 2>/dev/null || ${d}/wlan0up sleep 3 iwconfig wlan0 || ferr "Wifi interface wlan0 not found" echo "success Up wlan0" exit echo "Restart network ( report file : ${f_report} ) , please wait ..." /etc/init.d/networking restart 1>>${f_report} 2>>${f_report} || { tail ${f_report} ferr "/etc/init.d/networking restart" } echo "Success restart network" echo echo echo "Add lines below in file /etc/network/interfaces" echo echo "pre-up ${d}/wlan0up" echo "post-down ${d}/wlan0down" # ---- # End control(s) # ----
ensuite :
chmod 755 inst_rt8187b.sh
enfin :
sudo ./inst_rt8187b.sh
Si la procédure détecte une anomamlie elle se terminera avec un message d'erreur. Sinon elle affichera le résultat des commande up et down de l'interface wlan0.
Note :
Lorsque le troisième paramètre est déclaré la seconde partie de la procédure termine la configuration du fichier interface (DHCP). La seconde partie a été testé uniqement avec une LiveBox.
Créez le fichier test_wireless.sh.
Ajouter les lignes suivantes dans le fichier et enregistre le
#!/bin/bash # --------------------------------------------------------------------------------------------------------------- # Write for test wireless connection # --------------------------------------------------------------------------------------------------------------- # Parameters : # load_wireless.sh < wireless interface > < essid name > [ < secure key > ] # See detail below for third optional parameters # --------------------------------------------------------------------------------------------------------------- # Assume actions describe below : # Backup file /etc/network/interface # Stop network # Create new file /etc/network/interface # Load wireless interface # Scan local(s) gateway(s) ( Stop if no gateway detect : timeout 60 seconds ) # Search your gateway # Display messages ( You must manually finalise configuration with network-admin ) # # Action list below are released only if wireless key is defined ( third parameter ) # Configure wireless interface ( with open key type and Essid ) # Load dhcp for wireless interface # On Success : Configure file /etc/network/interface for wireless interface ( dhcp ) # Display content file /etc/network/interface # =============================================================================================================== ferr(){ echo -e "\nERROR - ${@}"; exit 1; } fmsg(){ echo -e "Message - ${@}"; } # ---- # Control parameters # ---- [ -z ${1} ] && ferr "Syntaxe ${0} < wireless interface > < essid name > [ < secure key > ]" [ -z ${2} ] && ferr "Syntaxe ${0} < wireless interface > < essid name > [ < secure key > ]" # --------------------------------------------------------------------------------------------------------------- drtl="/etc/rtl8187b/rtl8187b-modified" intfile="/etc/network/interfaces" interface=${1} name=${2} skey=${3} fconfig(){ iwconfig 2>/dev/null | grep "^${interface}" 2>/dev/null 1>/dev/null 2>/dev/null; } fnet(){ /etc/init.d/networking ${1} 2>/dev/null 1>/dev/null || ferr "${1} network"; fmsg "Network ${1}"; } # --------------------------------------------------------------------------------------------------------------- fnet stop [ -f ${intfile} ] && { mv ${intfile} ${intfile}.${$}.backup || ferr "Failed backup file ${intfile}"; } echo "Backup file interface : ${intfile}.${$}.backup" echo -e 'auto lo\niface lo inet loopback\n' > ${intfile} || ferr "Create new file ${intfile}" fmsg "File ${intfile} Reinit/Recreated" fnet start fconfig && ${drtl}/${interface}down fmsg "Wireless interface ${interface} Down" fconfig || ${drtl}/${interface}up fconfig || ferror "Load interface ${interface}" fmsg "Wireless interface ${interface} Up" fmsg "Please wait" sleep 3 typeset -i timeout=60 while [ ${timeout} -gt 0 ] do iwlist wlan0 scan | grep "No scan results" 1>/dev/null || break timeout=${timeout}-1 fmsg "Search gateway(s) ( Timeout 60 seconds : current value ${timeout} seconds ) please wait" sleep 1 done fmsg "Success detect local gateway(s) , interface ${interface} wlan is ready" fmsg "Search your gateway ${name}" typeset -i timeout=60 while [ ${timeout} -gt 0 ] do iwlist ${interface} scan | grep "${name}" 1>/dev/null && break timeout=${timeout}-1 fmsg "Search your gateway ${name} ( Timeout 60 seconds : current value ${timeout} seconds , please wait )" sleep 1 done fmsg "Success detect your gateway ${name}" iwlist ${interface} scan | grep "${name}" fconfig || echo ok [ -z ${skey} ] && { echo fmsg "READ LINES BELOW BEFORE CONTINUE :\n" fmsg "Backup file interface : ${intfile}.${$}.backup" fmsg "No other action request" fmsg "Some gateway(s) must be display be in network-manager for continue" fmsg "You must manually finalyse configuration with menu \'network-admin\'" fmsg "Menu : System --> Administration --> Network-admin\n" fmsg "At this step some gateway ( Ex. : Livebox ) must be set on mode \'association\' ( press Enter for continue )" read exit 0 } fmsg "Some gateway(s) must be display be in network-manager for continue" fmsg "At this step some gateway ( Ex. : Livebox ) must be set on mode \'association\' ( press Enter for continue )" read # ======================================== OPTIONNAL SECOND PART ===================================================== fmsg "Configure wireless ${interface}" fmsg "Run command : iwconfig ${interface} key ${skey} essid ${name}" iwconfig ${interface} key ${skey} essid "${name}" fmsg "Run dhcp network access" dhclient ${interface} || { fmsg "Failed configuration dhcp wireless ${interface}" exit 1 } fmsg "Success configure dhcp for wireless ${interface} ${name}" fconfig && ${drtl}/${interface}down fconfig && ferror "Down interface ${interface}" fmsg "Configure file ${intfile}" echo -e "auto ${interface}" >> ${intfile} echo -e "iface ${interface} inet dhcp" >> ${intfile} echo -e "\npre-up ${drtl}/${interface}up" >> ${intfile} echo -e "post-down ${drtl}/${interface}down" >> ${intfile} echo -e "\nwireless-key ${skey}" >> ${intfile} echo -e "wireless-essid ${name}" >> ${intfile} echo fmsg "Display new file ${intfile} :==========================================\n" cat ${intfile} fmsg "=======================================================================\n" fmsg "Restart network please wait ..." fnet stop fnet start
ensuite :
chmod 755 test_wireless.sh
enfin :
./test_wireless.sh < interface > < nom passerelle > [ < clef de sécurité > ]
Exemples :
sudo ./test_wireless.sh wlan0 livebox_xxx
ou
sudo ./test_wireless.sh wlan0 livebox_xxx 9879889E652Y76F3
Reconfigurer les cartes avec network-admin.
Éditez le fichier /etc/network/interfaces avec les droits d'administration.
Avec une configuration DHCP, le fichier devrait contenir les lignes suivantes
# The primary network interface auto wlan0 iface wlan0 inet dhcp wireless-essid # Nom de ESSID passerelle wireless-key # Clef de sécurité # -- Ajout pour rtl8187b (lignes saisient manuellement) pre-up /etc/rtl8187b/rtl8187b-modified/wlan0up post-down /etc/rtl8187b/rtl8187b-modified/wlan0down
sudo /etc/init.d/networking start
Testez votre connexion internet.
En cas d'échec, redémarrer le PC.