So..wifi doesnt connect..most of the time.
Checking:
iwlist scan enp2s0 Interface doesn't support scanning. lo Interface doesn't support scanning. enxfcde56ff0106 Interface doesn't support scanning. wlo1 Scan completed : Cell 01 - Address: C8:D7:79:50:D4:03 Channel:1 Frequency:2.412 GHz (Channel 1) Quality=62/70 Signal level=-48 dBm Encryption key:on ESSID:"hermes" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=000000150d484187 Extra: Last beacon: 7724ms ago IE: Unknown: 00066865726D6573 IE: Unknown: 010882848B960C121824 IE: Unknown: 030101 IE: Unknown: 050400010000 IE: Unknown: 2A0104 IE: Unknown: 32043048606C IE: Unknown: 2D1A2C101FFFFF000000000000000000000000000000000000000000 IE: Unknown: 3D1601000000000000000000000000000000000000000000 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00 IE: Unknown: DD1E00904C332C101FFFFF000000000000000000000000000000000000000000 IE: Unknown: DD1A00904C3401000000000000000000000000000000000000000000 IE: Unknown: DD0600E04C020160
Creating a config file:
wpa_passphrase myrouter mypassphrase > wpa.conf [email protected]:~$ cat wpa.conf network={ ssid="myrouter" #psk="mypassphrase" psk=8ada1f8dbea59704ac379538b4d9191f6a72390581b4cd7a72864cea685b1a7f }
Now, trying to connect:
wpa_supplicant -Dwext -iwlo1 -c/home/joel/wpa.conf Successfully initialized wpa_supplicant ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWSCAN]: Device or resource busy wlo1: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 ioctl[SIOCGIWSCAN]: Resource temporarily unavailable ioctl[SIOCSIWSCAN]: Device or resource busy wlo1: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 wlo1: Trying to associate with c8:d7:79:50:d4:03 (SSID='hermes' freq=2412 MHz) ioctl[SIOCSIWFREQ]: Device or resource busy wlo1: Association request to the driver failed wlo1: Authentication with c8:d7:79:50:d4:03 timed out. wlo1: CTRL-EVENT-DISCONNECTED bssid=c8:d7:79:50:d4:03 reason=3 locally_generated=1 ioctl[SIOCSIWSCAN]: Device or resource busy wlo1: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 wlo1: Trying to associate with c8:d7:79:50:d4:03 (SSID='hermes' freq=2412 MHz) ioctl[SIOCSIWFREQ]: Device or resource busy wlo1: Association request to the driver failed wlo1: Authentication with c8:d7:79:50:d4:03 timed out. wlo1: CTRL-EVENT-DISCONNECTED bssid=c8:d7:79:50:d4:03 reason=3 locally_generated=1 wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="hermes" auth_failures=1 duration=10 reason=CONN_FAILED ioctl[SIOCSIWSCAN]: Device or resource busy wlo1: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 wlo1: CTRL-EVENT-SSID-REENABLED id=0 ssid="hermes" wlo1: Trying to associate with c8:d7:79:50:d4:03 (SSID='hermes' freq=2412 MHz) ioctl[SIOCSIWFREQ]: Device or resource busy wlo1: Association request to the driver failed wlo1: Authentication with c8:d7:79:50:d4:03 timed out. wlo1: CTRL-EVENT-DISCONNECTED bssid=c8:d7:79:50:d4:03 reason=3 locally_generated=1 wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="hermes" auth_failures=2 duration=23 reason=CONN_FAILED ioctl[SIOCSIWSCAN]: Device or resource busy wlo1: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 wlo1: CTRL-EVENT-SSID-REENABLED id=0 ssid="hermes" wlo1: Trying to associate with c8:d7:79:50:d4:03 (SSID='hermes' freq=2412 MHz) ioctl[SIOCSIWFREQ]: Device or resource busy wlo1: Association request to the driver failed wlo1: Authentication with c8:d7:79:50:d4:03 timed out. wlo1: CTRL-EVENT-DISCONNECTED bssid=c8:d7:79:50:d4:03 reason=3 locally_generated=1 wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="hermes" auth_failures=3 duration=46 reason=CONN_FAILED ioctl[SIOCSIWSCAN]: Device or resource busy wlo1: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 ioctl[SIOCSIWSCAN]: Device or resource busy wlo1: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 wlo1: CTRL-EVENT-SSID-REENABLED id=0 ssid="hermes" wlo1: Trying to associate with c8:d7:79:50:d4:03 (SSID='hermes' freq=2412 MHz) ioctl[SIOCSIWFREQ]: Device or resource busy wlo1: Association request to the driver failed wlo1: Authentication with c8:d7:79:50:d4:03 timed out. wlo1: CTRL-EVENT-DISCONNECTED bssid=c8:d7:79:50:d4:03 reason=3 locally_generated=1 wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="hermes" auth_failures=4 duration=77 reason=CONN_FAILED ^Cwlo1: CTRL-EVENT-TERMINATING
More (http://askubuntu.com/questions/461825/connect-to-wifi-from-command-line/461831#461831):
nmcli c NAME UUID TYPE DEVICE Wired connection 2 f79d239b-6e57-348d-bbd9-f689917d86b4 802-3-ethernet enxfcde56ff0106 Angels pride c1f5f213-4a9f-4f27-a8d4-24d0e584f45d 802-11-wireless -- Lourde WIFI_Internet b090d381-42c6-40b1-af61-13410d764b89 802-11-wireless -- Wired connection 1 1564ea51-0724-3c47-942d-3c376a1c0cd5 802-3-ethernet -- hermes 4a596b2d-b365-46dd-bfb2-62dd912a919e 802-11-wireless -- wirezone ecbdb1ef-b8bb-46ed-bb57-e11d02d3ec2f 802-11-wireless --
Showing wifi interface:
# nmcli d wifi list * SSID MODE CHAN RATE SIGNAL BARS SECURITY hermes Infra 1 54 Mbit/s 90 ▂▄▆█ WPA2
Now checking the kernel driver (http://askubuntu.com/questions/635625/how-do-i-get-a-realtek-rtl8723be-wireless-card-to-work):
# lspci -knn | grep Net -A2 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723] DeviceName: Sanji2 Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:81c1] Kernel driver in use: rtl8723be Kernel modules: rtl8723be
ifconfig && iwconfig && route -n && ping -c 1 google.com enp2s0 Link encap:Ethernet HWaddr ec:8e:b5:fc:f1:6e UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) enxfcde56ff0106 Link encap:Ethernet HWaddr fc:de:56:ff:01:06 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27144 errors:2 dropped:0 overruns:0 frame:2 TX packets:21691 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:28661096 (28.6 MB) TX bytes:4098261 (4.0 MB) 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:6799 errors:0 dropped:0 overruns:0 frame:0 TX packets:6799 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:513684 (513.6 KB) TX bytes:513684 (513.6 KB) wlo1 Link encap:Ethernet HWaddr 54:8c:a0:79:10:77 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:141 errors:0 dropped:0 overruns:0 frame:0 TX packets:419 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:17910 (17.9 KB) TX bytes:51220 (51.2 KB) enp2s0 no wireless extensions. lo no wireless extensions. enxfcde56ff0106 no wireless extensions. wlo1 IEEE 802.11bgn ESSID:off/any Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated Tx-Power=20 dBm Retry short limit:7 RTS thr=2347 B Fragment thr:off Encryption key:off Power Management:off
Installing a good driver:
sudo add-apt-repository ppa:hanipouspilot/rtlwifi sudo apt-get update sudo apt-get install rtlwifi-new-dkms
Rebooting..
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.