lubux
Anmeldungsdatum: 21. November 2012
Beiträge: 13933
|
eclx schrieb: Failed to open config file '/etc/wpa_supplicant/wpa_supplicant.conf', error: No such file or directory
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'. In dem Ordner gibt es nur drei Dateien: action_wpa.sh, functions.sh, ifupdown.sh. Die Datei wpa_supplicant.conf ist nicht vorhanden.
Dann solltest Du diese Datei, mit dem richtigen/geigneten Inhalt, erstellen. Z. B. mit:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
, ... danach (d. h. nach dem Speichern) noch:
sudo chmod 600 /etc/wpa_supplicant/wpa_supplicant.conf
ausführen.
|
lubux
Anmeldungsdatum: 21. November 2012
Beiträge: 13933
|
eclx schrieb: Die Ausgabe von cat /etc/modprobe.d/iwlwifi.conf lautet
... ohne deine Ergänzungen (siehe oben).
|
eclx
(Themenstarter)
Anmeldungsdatum: 29. April 2016
Beiträge: Zähle...
|
Ich habe mir von der Erklärseite zu wpa supplicant die notwendigen Einträge kopiert. Ist das so richtig oder fehlt noch was? ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=benutzergruppe
# Die Gruppe muss natürlich angepasst werden
eapol_version=1
# 0: Der Treiber des Interfaces kümmert sich um das Scannen von Netzen und die AP-Auswahl.
# Dieser Modus sollte benutzt werden, wenn man eine Verschlüsselung auf ein Kabelnetzwerk legt.
# 1: wpa_supplicant kümmert sich um das Scannen von Netzen und die AP-Auswahl.
# 2: Fast wie 0, es wird aber mit Hilfe von Sicherheitsrichtlinien und der SSID zu APs verbunden (BSSID wird nicht unterstützt)
#
# Normalerweise funktioniert entweder Modus 1 oder Modus 2.
ap_scan=1
network={
ssid="UPC1382678"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=TKIP
psk="meinschluessel"
}
|
lubux
Anmeldungsdatum: 21. November 2012
Beiträge: 13933
|
eclx schrieb: Ist das so richtig oder fehlt noch was?
Fast richtig. Versuch mal mit folgendem Inhalt:
country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=0
eapol_version=2
ap_scan=1
network={
disabled=0
ssid="UPC1382678"
mode=0
proto=RSN
auth_alg=OPEN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="meinschluessel"
} Wenn es funktioniert, dann kann man noch immer etwas optimieren, an dieser Datei. EDIT: Für psk, keine Sonderzeichen, keine Umlaute und keine Leerstellen verwenden. Nur 0 bis 9 und aA bis zZ. Evtl. auch nicht die maximal zulässige Anzahl der Zeichen im psk benutzen, sondern eine angemessene Anzahl an geeigneten Zeichen.
|
eclx
(Themenstarter)
Anmeldungsdatum: 29. April 2016
Beiträge: 35
|
So, ich habe die Datei nun so gespeichert wie du angegeben hast (bis auf AT, da ich Ösi bin).
Wenn nun die nächste Unterbrechung kommt, was mus ich dann mit dieser Datei tun, bevor ich die anderen Befehle ausführe (killall und den ganzen Wahnsinn).
|
lubux
Anmeldungsdatum: 21. November 2012
Beiträge: 13933
|
eclx schrieb: Wenn nun die nächste Unterbrechung kommt, was mus ich dann mit dieser Datei tun, bevor ich die anderen Befehle ausführe (killall und den ganzen Wahnsinn).
Wie ist z. Zt. die Ausgabe von:
ls -la /etc/wpa_supplicant/wpa_supplicant.conf
?
|
eclx
(Themenstarter)
Anmeldungsdatum: 29. April 2016
Beiträge: 35
|
Die Verbindung ist gerade wieder abgebrochen. Die Ausgabe lautet
-rw------- 1 root root 275 Mai 9 13:57 /etc/wpa_supplicant/wpa_supplicant.conf
|
lubux
Anmeldungsdatum: 21. November 2012
Beiträge: 13933
|
eclx schrieb: Die Verbindung ist gerade wieder abgebrochen.
OK, ... dann kannst Du jetzt:
sudo service network-manager stop
sudo killall wpa_supplicant
sudo service wicd stop
sudo wpa_supplicant -i wlp32s0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf
ausführen. EDIT: BTW: Wie ist die Ausgabe von:
cat /etc/modprobe.d/iwlwifi.conf
?
|
eclx
(Themenstarter)
Anmeldungsdatum: 29. April 2016
Beiträge: 35
|
sudo service network-manager stop
[sudo] password for ecadmin:
ecadmin@ecadmin-Lifebook:~$ sudo killall wpa_supplicant
wpa_ supplicant: no process found
ecadmin@ecadmin-Lifebook:~$ sudo service wicd stop An dieser Stelle kommt eine Fehlermeldung (außerhalb des Terminals)
Der wicd-Dienst ist abgeschaltet. Sie müssen den Dienst neu starten, damit diese Schnittstelle wieder funktioniert. sudo wpa_supplicant -i ....
succesfully initialized wpa_supplicant
wlp32s0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpa2= AT Hier bleibt der Terminal stehen.
|
lubux
Anmeldungsdatum: 21. November 2012
Beiträge: 13933
|
eclx schrieb: An dieser Stelle kommt eine Fehlermeldung (außerhalb des Terminals)
Naja, eine Fehlermeldung mag es ja sein. Du kannst auf das killen des wicd auch verzichten, wenn Du sicher bist, dass dieser nicht gestartet ist. eclx schrieb: sudo wpa_supplicant -i ....
succesfully initialized wpa_supplicant
wlp32s0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpa2= AT Hier bleibt der Terminal stehen.
OK, dann starte/öffne einen anderen Terminal und poste die Ausgabe von:
iwconfig
ps -fC wpa_supplicant
ip a
ip r
ip n s
|
eclx
(Themenstarter)
Anmeldungsdatum: 29. April 2016
Beiträge: 35
|
iwconfig
wlp32s0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Frequency:2.422 GHz Access Point: Not-Associated
Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
lo no wireless extensions.
enp8s0 no wireless extensions. ps -fC wpa_supplicant
UID PID PPID C STIME TTY TIME CMD
root 5314 5313 0 14:31 pts/1 00:00:00 wpa_supplicant -i wlp32s0 -D nl8
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp8s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 00:17:42:7a:81:a5 brd ff:ff:ff:ff:ff:ff
3: wlp32s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 00:16:ea:6a:dd:d0 brd ff:ff:ff:ff:ff:ff
ecadmin@ecadmin-LIFEBOOK:~$ ip r
ecadmin@ecadmin-LIFEBOOK:~$ ip n s
ecadmin@ecadmin-LIFEBOOK:~$ Die Verbindung ist jetzt wieder aktiv, da ich wegen des postens neu hochgefahren bin.
|
lubux
Anmeldungsdatum: 21. November 2012
Beiträge: 13933
|
eclx schrieb: wconfig
wlp32s0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Frequency:2.422 GHz Access Point: Not-Associated
Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Wie ist die Ausgabe von:
cat /etc/modprobe.d/iwlwifi.conf
? Poste mal nach dem nächsten Versuch, die vollständige Ausgabe von:
sudo wpa_supplicant -i wlp32s0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf -d
|
eclx
(Themenstarter)
Anmeldungsdatum: 29. April 2016
Beiträge: 35
|
Hier die Ausgaben bei laufender Verbindung: cat /etc/modprobe.d/iwlwifi.conf
# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system. When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211 sudo wpa_supplicant -i wlp32s0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf -d wpa_supplicant v2.4
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlp32s0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'nl80211,wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
country='AT'
ctrl_interface='DIR=/var/run/wpa_supplicant GROUP=netdev'
update_config=0
eapol_version=2
ap_scan=1
Priority group 0
id=0 ssid='UPC1382678'
rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Using driver-based off-channel TX
nl80211: interface wlp32s0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x55c4d3406fe0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=040a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=040b
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=040c
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=040d
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 04 0d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=090a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=090b
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=090c
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=090d
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 09 0d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=0409506f9a09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=7f506f9a09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=0801
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 08 01
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=06
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=0a07
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 0a 07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=0a11
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 0a 11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=1101
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 11 01
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=1102
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 11 02
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55c4d3406fe0 match=0505
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=2): 05 05
nl80211: Failed to register Action frame processing - ignore for now
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
nl80211: driver param='(null)'
Add interface wlp32s0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 40 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
wlp32s0: Own MAC address: 00:16:ea:6a:dd:d0
wpa_driver_nl80211_set_key: ifindex=3 (wlp32s0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp32s0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp32s0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp32s0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp32s0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlp32s0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0
wlp32s0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlp32s0: Setting scan request: 0.100000 sec
TDLS: TDLS operation not supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
wlp32s0: WPS: UUID based on MAC address: 21df229a-89bb-5114-ac00-de13fab1a05f
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Using existing control interface directory.
ctrl_interface_group=109 (from group name 'netdev')
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlp32s0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Failed to add interface wlp32s0
wlp32s0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 state=DISCONNECTED
TDLS: Tear down peers
wlp32s0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlp32s0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wlp32s0: WPA: Clear old PMK and PTK
wlp32s0: Cancelling scan request
wlp32s0: Cancelling authentication timeout
Remove interface wlp32s0 from radio phy0
Remove radio phy0
nl80211: deinit ifname=wlp32s0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Unsubscribe mgmt frames handle 0x8888dd4c5bc8e769 (mode change)
|
lubux
Anmeldungsdatum: 21. November 2012
Beiträge: 13933
|
eclx schrieb: Hier die Ausgaben bei laufender Verbindung: cat /etc/modprobe.d/iwlwifi.conf
# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system. When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
Diese Optionen:
options iwlwifi 11n_disable=1 swcrypto=1 wd_disable=1
sind aber nicht eingetragen und schon gar nicht wirksam. eclx schrieb: ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlp32s0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Hast Du vor dem Start, einen evtl. aktiven wpa_supplicant, vorher nicht gekillt?
|
eclx
(Themenstarter)
Anmeldungsdatum: 29. April 2016
Beiträge: 35
|
Und hier bei abgebrochener Verbindung: sudo wpa_supplicant -i ...
succesfully initialized wpa_supplicant
ctrl_iface exists and seems to be in use - cannot override it
Delle '/var/run/wpa_supplicant/wlp32so' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/ein/wpa_supplicant GROUP=netdev'.
You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant in which case you will need to manually Remote this file before starting wpa_supplicant Ägäis.
nl80211: deinit infame=wl32s0 disabled_11b_rates=0
|