Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 21/03/2015, à 14:18

seu

Pb hotspot wifi au demarrage

Salut,

J'ai créé un point d'accès wifi en suivant le tuto ubuntu.
J'utilise une carte wifi usb TL-WN822N avec les drivers présents par défauts sur Ubuntu.
L'OS est Kodibuntu, basé sur Lubuntu 14.04 mais sans Desktop donc toute la configuration se fait par ligne de commande.
Lorsque je démarre le script wifi_ap à la main cela marche correctement mais le hotspot ne s'active pas lors du démarrage du serveur.

Après démarrage du serveur une commande de monitoring me donne ceci:

Every 3.0s: iw dev wlan0 station dump; iwconfig wlan0; iwconfig mon.wlan0; iw dev eth0 stat...  Sat Mar 21 12:51:45 2015

wlan0     IEEE 802.11bgn  Mode:Master  Tx-Power=off
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

mon.wlan0  IEEE 802.11bgn  Mode:Monitor  Tx-Power=off
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

eth0      no wireless extensions.

Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22

Et je n'ai pas mon point d'accès wifi, pourtant hostapd se lance bien:

user0@node-304:~$ ps -aux | grep host
root      1663  0.0  0.0  86572  2496 ?        S    13:17   0:00 sudo hostapd /etc/hostapd/hostapd.conf
root      1678  0.0  0.0  31520  2400 ?        S    13:17   0:00 hostapd /etc/hostapd/hostapd.conf
user0     2419  0.0  0.0  11764   932 pts/0    S+   13:19   0:00 grep --color=auto host

Si je démarre à la main:

user0@node-304:~$ sudo /etc/init.d/wifi_ap start
STARTING...
rfkill unblock all!
Macchanger random...
Current MAC:   c4:6e:1f:20:5b:ac (TP-LINK TECHNOLOGIES CO.,LTD)
Permanent MAC: c4:6e:1f:20:5b:ac (TP-LINK TECHNOLOGIES CO.,LTD)
New MAC:       c4:6e:1f:20:5b:ac (TP-LINK TECHNOLOGIES CO.,LTD)
It's the same MAC!!
Demarrage et configuration de l'interface wifi ...
Demarrage daemon hostapd...
Configuration file: /etc/hostapd/hostapd.conf
Failed to update rate sets in kernel module
Using interface wlan0 with hwaddr c4:6e:1f:20:5b:ac and ssid 'XXXXXXX'
random: Only 18/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
Demarrage daemon dnsmasq... 
Demarrage daemon dhcpd... 
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 1 leases to leases file.
Listening on LPF/wlan0/c4:6e:1f:20:5b:ac/192.168.0.0/24
Sending on   LPF/wlan0/c4:6e:1f:20:5b:ac/192.168.0.0/24
Sending on   Socket/fallback/fallback-net
Activation iptables NAT MASQUERADE interface eth0
Activation iptables FORWARD & INPUT entre interface wlan0 & sous-reseau 192.168.0.0/24

J'ai cherché sur le net sans réussir a trouver de solution, quelqu'un aurait une idée?

Mon script /etc/init.d/wifi_ap:

#!/bin/bash
# /etc/init.d/wifi_ap
### BEGIN INIT INFO
# Provides:          scriptname
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INF
#
LOGFILE=/var/log/wifi_ap.log
date > $LOGFILE
touch $LOGFILE

case "$1" in
  start)
	echo "STARTING..."	 | tee -a $LOGFILE
	#!/bin/bash
	 
	#Description: Creation d'un point d'acces wifi sur une interface wlan et partage la connexion Internet d'une autre interface avec celle-ci.
	#Requirements: Necessite les paquets hostapd isc-dhcp-server isc-dhcp-common isc-dhcp-client dnsmasq dnsmasq-base macchanger
	#Optionnel: paquet macchanger optionnel
	#Auteur: Nexus6[at]altern.org 01.12.2010
	 
	### WARNING : kill hostapd dnsmasq & dhcpd à la fin...
	 
	# Configuration des interfaces 
	INT_WIFI="wlan0" # interface du point d'acces wifi
	INT_NET="eth0" # interface wlan ou eth0 ayant Internet
	 
	# IP & mask du sous-reseau cree sur l'interface wlan
	SUBNET="192.168.0.0/24" 
	IP="192.168.0.1"
	MASK="255.255.255.0"
	#GW="192.168.0.1"
	 
	# Change l'adresse mac ?
	MACCHANGER="0" #0=change la MAC, 1 garde la MAC d'origine
	 
	# Definition de quelques couleurs 
	red='\e[0;31m'
	redhl='\e[0;31;7m'
	RED='\e[1;31m'
	blue='\e[0;34m'
	BLUE='\e[1;34m'
	cyan='\e[0;36m'
	CYAN='\e[1;36m'
	NC='\e[0m' # No Color
	 
	#Mode Debug Dhcp ?
	DBG="-d"
	DBG="" #Ligne a decommenter pour desactiver le debug du serveur dhcpd
	 
	 
	#Regarde si l'execution est bien en root (i.e. sudo)
	if [ $USER != "root" ]
	then
		echo -e $RED"Vous devez etre root pour lancer ce progamme!"$NC	 | tee -a $LOGFILE
		exit 1
	fi
	
	echo -e $RED"rfkill unblock all!"$NC	 | tee -a $LOGFILE 
	sudo rfkill unblock all
	
	#Verifie si tous les modules sont bien installes
	ifconfig=$(which ifconfig) 
	if [ $? != 0 ]
	then
		echo -e $RED"Erreur Fatale: Un probleme est survenue: Impossible de trouver la commande ifconfig!"$NC	 | tee -a $LOGFILE
		exit 1
	fi
	 
	hostapd=$(which hostapd)
	if [ $? != 0 ]
	then
		echo -e $RED"Erreur Fatale: Vous devez installer hostapd!"$NC	 | tee -a $LOGFILE
		exit 1
	fi
	 
	dnsmasq=$(which dnsmasq)
	if [ $? != 0 ]
	then
		echo -e $RED"Erreur Fatale: Vous devez installer dnsmasq!"$NC	 | tee -a $LOGFILE
		exit 1
	fi
	 
	dhcpd3=$(which dhcpd)
	if [ $? != 0 ]
	then
		echo -e $RED"Erreur Fatale: Vous devez installer dhcpd!"$NC	 | tee -a $LOGFILE
		exit 1
	fi
	 
	macchanger=$(which macchanger)
	if [ $? != 0 ]
	then
		echo -e $RED"Avertissement: macchanger non trouve. L'adresse mac ne sera pas modifiee!"$NC	 | tee -a $LOGFILE
		MACCHANGER="1"
	fi

	#Change les @ MAC si macchanger trouve
	if [ $MACCHANGER == "0" ]
	then
		echo -e $blue"Macchanger random..."$NC	 | tee -a $LOGFILE
		sudo $ifconfig $INT_WIFI down
		sudo $macchanger --random $INT_WIFI $NC
	fi
	 
	echo -e $blue"Demarrage et configuration de l'interface wifi $INT_WIF..."$NC	 | tee -a $LOGFILE
	sudo ifconfig $INT_WIFI down
	sleep 0.5
	sudo ifconfig $INT_WIFI $IP netmask $MASK up
	 
	echo -e $blue"Demarrage daemon hostapd..."$NC	 | tee -a $LOGFILE
	# start hostapd server (see /etc/hostapd/hostapd.conf)
	sudo hostapd /etc/hostapd/hostapd.conf &
	sleep 1
	 
	echo -e $blue"Demarrage daemon dnsmasq... "$NC	 | tee -a $LOGFILE
	# start dnsmasq server (see /etc/dnsmasq.conf) -7 /etc/dnsmasq.d
	sudo dnsmasq -x /var/run/dnsmasq.pid -C /etc/dnsmasq.conf
	sleep 1
	 
	echo -e $blue"Demarrage daemon dhcpd... "$NC	 | tee -a $LOGFILE
	# start or resart dhcpd server (see /etc/dhcpd/dhcpd.conf)
	sudo touch /var/lib/dhcp/dhcpd.leases
	#sudo mkdir -p /var/run/dhcp-server
	#sudo chown dhcpd:dhcpd /var/run/dhcp-server
	sudo dhcpd $DBG -f -pf /var/run/dhcp-server/dhcpd.pid -cf /etc/dhcp/dhcpd.conf $INT_WIFI &
	#/etc/init.d/dhcp-server restart
	sleep 2
	 
	# Turn on IP forwarding (faire suivre les paquets d'une interface à l'autre)
	echo 1 > /proc/sys/net/ipv4/ip_forward	 | tee -a $LOGFILE
	echo 1 > /proc/sys/net/ipv4/ip_forward
	 
	echo -e $blue"Activation iptables NAT MASQUERADE interface $NC$red$INT_NET$NC"	 | tee -a $LOGFILE
	# load masquerade module
	sudo modprobe ipt_MASQUERADE
	sudo iptables -A POSTROUTING -t nat -o $INT_NET -j MASQUERADE
	 
	echo -e $blue"Activation iptables FORWARD & INPUT entre interface $NC$red$INT_WIFI$NC$blue & sous-reseau $NC$red$SUBNET$NC"	 | tee -a $LOGFILE
	sudo iptables -A FORWARD --match state --state RELATED,ESTABLISHED --jump ACCEPT
	sudo iptables -A FORWARD -i $INT_WIFI --destination $SUBNET --match state --state NEW --jump ACCEPT
	sudo iptables -A INPUT -s $SUBNET --jump ACCEPT
	;;
  stop)
	echo "STOPPING"	 | tee -a $LOGFILE
	# Configuration des interfaces 
	INT_WIFI="wlan0" # interface du point d'acces wifi
	INT_NET="eth0" # interface wlan ou eth0 ayant Internet
	 
	# IP & mask du sous-reseau cree sur l'interface wlan
	SUBNET="192.168.0.0/24" 
	IP="192.168.0.1"
	MASK="255.255.255.0"
	#GW="192.168.0.1"
	 
	# Change l'adresse mac ?
	MACCHANGER="0" #0=change la MAC, 1 garde la MAC d'origine
	 
	# Definition de quelques couleurs 
	red='\e[0;31m'
	redhl='\e[0;31;7m'
	RED='\e[1;31m'
	blue='\e[0;34m'
	BLUE='\e[1;34m'
	cyan='\e[0;36m'
	CYAN='\e[1;36m'
	NC='\e[0m' # No Color
	 
	#Mode Debug Dhcp ?
	DBG="-d"
	DBG=""	 #Ligne à decommenter pour desactiver le debug du serveur dhcpd
	
	echo -e $cyan"Stop hostapd, dhcpd, dnsmasq & interface wifi $INT_WIFI..."$NC	 | tee -a $LOGFILE
	# kill hostapd, dnsmasq & dhcpd
	sudo killall hostapd dnsmasq dhcpd
	echo -e $cyan"Desactivation iptables NAT MASQUERADE...$NC$red$INT_NET$NC"$NC	 | tee -a $LOGFILE
	sudo iptables -D POSTROUTING -t nat -o $INT_NET -j MASQUERADE 2>/dev/null 											|| echo -e $cyan"POSTROUTING $INT_NET MASQUERADE clean OK!"$NC	 | tee -a $LOGFILE
	sudo iptables -D FORWARD -i $INT_WIFI --destination $SUBNET --match state --state NEW --jump ACCEPT 2>/dev/null 	|| echo -e $cyan"FORWARD $INT_NET/$SUBNET clean OK!"$NC	 | tee -a $LOGFILE
	sudo iptables -D FORWARD --match state --state RELATED,ESTABLISHED --jump ACCEPT 2>/dev/null 						|| echo -e $cyan"FORWARD ESTABLISHED clean OK!"$NC	 | tee -a $LOGFILE
	sudo iptables -D INPUT -s $SUBNET --jump ACCEPT 2>/dev/null 														|| echo -e $cyan"INPUT $SUBNET clean OK!"$NC	 | tee -a $LOGFILE
	 
	echo -e $cyan"Desactivation iptables FORWARD & INPUT...$NC $red$INT_WIFI$NC$blue & $NC$red$SUBNET$NC"	 | tee -a $LOGFILE
	# interface weak up!
	sudo ifconfig $INT_WIFI down
	sudo ifconfig $INT_WIFI up
	#sudo /etc/init.d/network-manager restart
	
	# Turn off IP forwarding
	echo 0 > /proc/sys/net/ipv4/ip_forward
	echo -e $blue"Done!"$NC	 | tee -a $LOGFILE
	;;
  *)
	echo "Usage: /etc/init.d/wifi {start|stop}"
	exit 1
	;;
esac
exit 0

Mon fichier hostapd.conf:

##### hostapd configuration file ##############################################
# Empty lines and lines starting with # are ignored

interface=wlan0

logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2

ctrl_interface=/var/run/hostapd

ctrl_interface_group=0

ssid=XXXXXXX

hw_mode=g
channel=1

beacon_int=100


dtim_period=2

max_num_sta=255

rts_threshold=2347


fragm_threshold=2346

macaddr_acl=0

auth_algs=3

ignore_broadcast_ssid=0

wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0

wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0

wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0

wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0

own_ip_addr=127.0.0.1




wpa=2

wpa_passphrase=passphrasesecret


wpa_key_mgmt=WPA-PSK

wpa_pairwise=CCMP
rsn_pairwise=CCMP

Ci-dessous les résultats des commandes de base:

user0@node-304:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
user0@node-304:~$ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 1997:1221  
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
user0@node-304:~$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Complex
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Port
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 630 Rev. 2] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 0e0f (rev a1)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
user0@node-304:~$ lspci -nn | grep -i net
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
user0@node-304:~$ lspci -k
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Complex
	Subsystem: ASRock Incorporation Device 1510
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Port
	Kernel driver in use: pcieport
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40)
	Subsystem: ASRock Incorporation Motherboard (one of many)
	Kernel driver in use: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Subsystem: ASRock Incorporation Device 4397
	Kernel driver in use: ohci-pci
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Subsystem: ASRock Incorporation Device 4396
	Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Subsystem: ASRock Incorporation Device 4397
	Kernel driver in use: ohci-pci
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Subsystem: ASRock Incorporation Device 4396
	Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
	Subsystem: ASRock Incorporation Device 4385
	Kernel driver in use: piix4_smbus
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
	Subsystem: ASRock Incorporation Device 439c
	Kernel driver in use: pata_atiixp
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
	Subsystem: ASRock Incorporation Device 1892
	Kernel driver in use: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
	Subsystem: ASRock Incorporation Device 439d
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
	Subsystem: ASRock Incorporation Device 4399
	Kernel driver in use: ohci-pci
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
	Kernel driver in use: pcieport
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
	Kernel driver in use: pcieport
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
	Subsystem: ASRock Incorporation Device 4397
	Kernel driver in use: ohci-pci
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
	Subsystem: ASRock Incorporation Device 4396
	Kernel driver in use: ehci-pci
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3
	Kernel driver in use: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 630 Rev. 2] (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device 846a
	Kernel driver in use: nvidia
01:00.1 Audio device: NVIDIA Corporation Device 0e0f (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device 846a
	Kernel driver in use: snd_hda_intel
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
	Subsystem: ASRock Incorporation Motherboard (one of many)
	Kernel driver in use: r8169
user0@node-304:~$ sudo lshw -C network
  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 06
       serial: bc:5f:f4:fd:5e:e1
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8168e-2.fw ip=192.168.1.102 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:40 ioport:d000(size=256) memory:fa104000-fa104fff memory:fa100000-fa103fff
  *-network DISABLED
       description: Wireless interface
       physical id: 1
       bus info: usb@1:4
       logical name: wlan0
       serial: c4:6e:1f:20:5b:ac
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192cu driverversion=3.13.0-46-generic firmware=N/A ip=192.168.0.1 link=no multicast=yes wireless=IEEE 802.11bgn
user0@node-304:~$ lsmod
Module                  Size  Used by
iptable_filter         12810  1 
xt_conntrack           12760  2 
iptable_nat            13011  1 
nf_conntrack_ipv4      15012  3 
nf_defrag_ipv4         12758  1 nf_conntrack_ipv4
nf_nat_ipv4            13263  1 iptable_nat
ip_tables              27239  2 iptable_filter,iptable_nat
ipt_MASQUERADE         12880  1 
nf_nat                 21841  3 ipt_MASQUERADE,nf_nat_ipv4,iptable_nat
nf_conntrack           96976  6 ipt_MASQUERADE,nf_nat,nf_nat_ipv4,xt_conntrack,iptable_nat,nf_conntrack_ipv4
x_tables               34059  4 ip_tables,ipt_MASQUERADE,xt_conntrack,iptable_filter
ctr                    13049  0 
ccm                    17773  0 
8021q                  28933  0 
garp                   14384  1 8021q
stp                    12976  1 garp
mrp                    18778  1 8021q
llc                    14552  2 stp,garp
lirc_dev               19980  0 
rc_core                28124  1 lirc_dev
autofs4                38674  1 
snd_hda_codec_hdmi     46368  1 
arc4                   12608  2 
rtl8192cu              67723  0 
kvm_amd                60026  0 
nvidia              10744943  39 
rtl_usb                18448  1 rtl8192cu
kvm                   455835  1 kvm_amd
rtlwifi                63475  2 rtl_usb,rtl8192cu
snd_seq_midi           13324  0 
snd_seq_midi_event     14899  1 snd_seq_midi
snd_rawmidi            30144  1 snd_seq_midi
rtl8192c_common        53172  1 rtl8192cu
snd_hda_codec_realtek    65580  1 
dm_multipath           22873  0 
scsi_dh                14882  1 dm_multipath
snd_hda_intel          56531  0 
mac80211              630669  3 rtl_usb,rtlwifi,rtl8192cu
snd_seq                61560  2 snd_seq_midi_event,snd_seq_midi
snd_hda_codec         192906  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
serio_raw              13462  0 
snd_hwdep              13602  1 snd_hda_codec
snd_pcm               102099  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
k10temp                13126  0 
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
cfg80211              484040  2 mac80211,rtlwifi
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
snd_timer              29482  2 snd_pcm,snd_seq
rfcomm                 69160  0 
joydev                 17381  0 
bnep                   19624  2 
bluetooth             391136  10 bnep,rfcomm
snd                    69322  11 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
drm                   303102  2 nvidia
soundcore              12680  1 snd
sp5100_tco             13979  0 
shpchp                 37032  0 
i2c_piix4              22155  0 
parport_pc             32701  0 
ppdev                  17671  0 
lp                     17759  0 
parport                42348  3 lp,ppdev,parport_pc
mac_hid                13205  0 
nfsd                  280289  2 
auth_rpcgss            59338  1 nfsd
nfs_acl                12837  1 nfsd
nfs                   236726  0 
lockd                  93977  2 nfs,nfsd
sunrpc                289260  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
fscache                63988  1 nfs
btrfs                 836001  0 
libcrc32c              12644  1 btrfs
raid10                 48128  0 
raid1                  35530  0 
raid0                  17842  0 
multipath              13145  0 
linear                 12894  0 
dm_mirror              22135  0 
dm_region_hash         20862  1 dm_mirror
dm_log                 18411  2 dm_region_hash,dm_mirror
raid456                86705  1 
async_raid6_recov      12984  1 raid456
async_memcpy           12762  1 raid456
async_pq               13365  1 raid456
async_xor              13160  2 async_pq,raid456
async_tx               13509  5 async_pq,raid456,async_xor,async_memcpy,async_raid6_recov
xor                    21411  2 btrfs,async_xor
raid6_pq               97812  3 async_pq,btrfs,async_raid6_recov
hid_generic            12548  0 
usbhid                 52659  0 
hid                   106148  2 hid_generic,usbhid
pata_acpi              13038  0 
psmouse               106714  0 
r8169                  67581  0 
mii                    13934  1 r8169
pata_atiixp            13271  2 
ahci                   29915  4 
libahci                32716  1 ahci
user0@node-304:~$ iwconfig
mon.wlan0  IEEE 802.11bgn  Mode:Monitor  Tx-Power=off   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  Mode:Master  Tx-Power=off   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          
user0@node-304:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr bc:5f:f4:fd:5e:e1  
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::be5f:f4ff:fefd:5ee1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2137 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2425 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:324218 (324.2 KB)  TX bytes:255593 (255.5 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:500 errors:0 dropped:0 overruns:0 frame:0
          TX packets:500 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:33959 (33.9 KB)  TX bytes:33959 (33.9 KB)
user0@node-304:~$ sudo iwlist scan
mon.wlan0  Interface doesn't support scanning : Network is down

eth0      Interface doesn't support scanning.

lo        Interface doesn't support scanning.

wlan0     Interface doesn't support scanning : Network is down
user0@node-304:~$ uname -r -m
3.13.0-46-generic x86_64
user0@node-304:~$ cat  /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
user0@node-304:~$ nm-tool

NetworkManager Tool

State: connected (global)

- Device: eth0  [Wired connection 1] -------------------------------------------
  Type:              Wired
  Driver:            r8169
  State:             connected
  Default:           yes
  HW Address:        BC:5F:F4:FD:5E:E1

  Capabilities:
    Carrier Detect:  yes
    Speed:           1000 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         192.168.1.102
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1


- Device: wlan0 ----------------------------------------------------------------
  Type:              802.11 WiFi
  Driver:            rtl8192cu
  State:             unavailable
  Default:           no
  HW Address:        C4:6E:1F:20:5B:AC

  Capabilities:

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points 
user0@node-304:~$ sudo rfkill list
0: phy0: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
user0@node-304:~$ ls /etc/rc*.d
/etc/rc0.d:
K10unattended-upgrades  K20hddtemp     K20wifi_ap        K98mdadm-waitidle  S31umountnfs.sh      S89casper
K19lirc                 K20kerneloops  K25mdadm          README             S40umountfs          S90halt
K19setserial            K20postfix     K30etc-setserial  S20sendsigs        S59cryptdisks-early
K20deluge-daemon        K20rsync       K85dnsmasq        S30urandom         S60umountroot

/etc/rc1.d:
K19lirc       K20deluge-daemon  K20kerneloops  K20rsync  K20wifi_ap  K30etc-setserial  README        S70pppd-dns
K19setserial  K20hddtemp        K20postfix     K20saned  K25mdadm    K85dnsmasq        S30killprocs  S90single

/etc/rc2.d:
README      S19lirc           S20hddtemp     S20postfix  S20wifi_ap  S50saned     S99grub-common  S99rc.local
S15dnsmasq  S20deluge-daemon  S20kerneloops  S20rsync    S25mdadm    S70pppd-dns  S99ondemand

/etc/rc3.d:
README      S19lirc           S20hddtemp     S20postfix  S20wifi_ap  S50saned     S99grub-common  S99rc.local
S15dnsmasq  S20deluge-daemon  S20kerneloops  S20rsync    S25mdadm    S70pppd-dns  S99ondemand

/etc/rc4.d:
README      S19lirc           S20hddtemp     S20postfix  S20wifi_ap  S50saned     S99grub-common  S99rc.local
S15dnsmasq  S20deluge-daemon  S20kerneloops  S20rsync    S25mdadm    S70pppd-dns  S99ondemand

/etc/rc5.d:
README      S19lirc           S20hddtemp     S20postfix  S20wifi_ap  S50saned     S99grub-common  S99rc.local
S15dnsmasq  S20deluge-daemon  S20kerneloops  S20rsync    S25mdadm    S70pppd-dns  S99ondemand

/etc/rc6.d:
K10unattended-upgrades  K20hddtemp     K20wifi_ap        K98mdadm-waitidle  S31umountnfs.sh      S89casper
K19lirc                 K20kerneloops  K25mdadm          README             S40umountfs          S90reboot
K19setserial            K20postfix     K30etc-setserial  S20sendsigs        S59cryptdisks-early
K20deluge-daemon        K20rsync       K85dnsmasq        S30urandom         S60umountroot

/etc/rcS.d:
README  S26cryptdisks-early  S30etc-setserial  S46setserial  S47lm-sensors  S55urandom  S70x11-common

Quelqu'un aurait-il une idée?
Merci

Dernière modification par seu (Le 21/03/2015, à 14:21)


-|-

Hors ligne

#2 Le 24/03/2015, à 22:14

seu

Re : Pb hotspot wifi au demarrage

Apparemment c'est un problème de rfkill car juste après démarrage:

user0@node-304:~$ sudo rfkill list
0: phy0: Wireless LAN
	Soft blocked: yes
	Hard blocked: no

Après lancement de mon hotspot manuellement j'ai:

user0@node-304:~$ sudo rfkill list
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

Pourtant j'ai la commande sudo rfkill unblock all présente dans mon script wifi_ap et je l'ai même ajouté dans le fichier /etc/rc.local mais rien n'y fait...

Comment rendre rfkill unblock all permanent? ou bien faire que mes commandes au démarrage soit effectives?


-|-

Hors ligne

#3 Le 04/05/2015, à 11:35

moko138

Re : Pb hotspot wifi au demarrage

Y a-t-il windows, ou y a-t-il eu windows sur ce pc ?


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#4 Le 08/05/2015, à 21:18

seu

Re : Pb hotspot wifi au demarrage

non


-|-

Hors ligne

#5 Le 08/05/2015, à 21:47

moko138

Re : Pb hotspot wifi au demarrage

Ce n'est pas la puce RTL8192 de base, qui posait problème avant Trusty.
Ton accessoire incorpore une fonction commutable de chiffrement.
Peut-être faut-il blacklister le module fourni par le noyau et installer le pilote propriétaire de realtek ? L'as-tu fait ?
En tout cas, on sort de mes compétences.
Désolé.

Je passe la main.

Dernière modification par moko138 (Le 08/05/2015, à 21:49)


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne