kubuntu 18.04 connect to wifi using terminal bash konsole

to connect :


nmcli device wifi rescan ; nmcli device wifi list 

and you should get something like that

*       SUPERMAN    Infra  1     195 Mbit/s  37      ▂▄__  WPA2    

so now HERE IT IS:

 nmcli device wifi connect SSID-Name password YOURSILLYLONGPASSWORD

usefull stuff

 nmcli radio
enabled  enabled  enabled  enabled 
nmcli device
wlp7s0  wifi      connected  SUPERMAN 2       
enp9s0  ethernet  unmanaged  --         
lo      loopback  unmanaged  --    

kubuntu 18.04 no wifi on network manager but in terminal is detected

WTFFFFF! NO WIFI ON KDE NETWORK MANAGER APPLET but with iwlist is detected  (07:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01) so the driver was working properly infact i connect to a open wifi , without password. so WHY!!! i guess for a problem with some systemd conf files anyway….



 systemctl --type service

which has this silly answer :

systemd-networkd-wait-online.service loaded failed failed Wait for Network to be Configured

checking even the wpa_supplicant service with

systemctl status wpa_supplicant.service
Failed to initialize control interface '/run/wpa_supplicant'.
 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.
sudo systemctl status NetworkManager.service

i got even this shit

 error>   sup-iface[0x56547f32d5b0,wlp7s0]: error adding interface: wpa_supplicant couldn't grab this interface.

now how to fix it !?

sudo systemctl  stop NetworkManager.service
sudo systemctl  stop wpa_supplicant.service 
sudo systemctl  start wpa_supplicant.service 
sudo pkill wpa_supplicant 
sudo systemctl  start wpa_supplicant.service
sleep 4
sudo systemctl start NetworkManager.service


result 😀



  1. CHECK IF YOUR CARD IS ENABLE ON BIOS , if you want to see that just do  on therminal rfkill list  and make sure it’s all NO
  2. ENABLE YOUR CARD  sudo ifconfig XXXX up ( your card name that should be wlp7s0 you can get the name from ifconfig alone without optios) as you can see here

    sudo rfkill unblock all
    0 wlan phy0 unblocked unblocked
    1 bluetooth hci0 unblocked unblocked
    sem@semvaio18:~$ ifconfig
    lo: flags=73 mtu 65536
    inet netmask
    inet6 ::1 prefixlen 128 scopeid 0x10
    loop txqueuelen 1000 (Local Loopback)
    RX packets 31198 bytes 1590503 (1.5 MB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 31198 bytes 1590503 (1.5 MB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    wlp7s0: flags=4163 mtu 1500
    inet netmask broadcast
    inet6 fe80::1e7f:5239:d350:a751 prefixlen 64 scopeid 0x20 ether a4:19:32:c1:1c:23 txqueuelen 1000 (Ethernet)
    RX packets 4184 bytes 2798289 (2.7 MB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 4560 bytes 1447049 (1.4 MB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

  3. try to see if wpa supplicant is installed : sudo apt-get install wpasupplicant
  4. if you can’t see the network applet on your panel well maybe the network manager service is not started so start it and enable it with : sudo systemctl enable NetworkManager.service ; sudo
    systemctl start NetworkManager.service
  5. check the systemd-networkd-wait-online.service with systemctl status systemd-networkd-wait-online.service actuyally it gives me error even when i am connect so i guess it’s not so important like i thought but he has given me a hint to fix this shit so ..
  6. another command useful to get errors it’s this
    journalctl -xe

from here https://forums.linuxmint.com/viewtopic.php?t=171819
this is for my own use interfaces

auto wlp7s0
iface wlp7s0 inet dhcp
wireless-power off

sudo kate /etc/default/crda


how to fix ,while compiling ,errors like “Could not find a package configuration file provided by “Qt5″”

for example :

CMake Error at CMakeLists.txt:19 (find_package): 
  Could not find a package configuration file provided by "Qt5" (requested 
  version 5.6.0) with any of the following names: 

just do this

  1. install apt-file: sudo apt-get install apt-file
  2. update apt-file’s database: apt-file update
  3. search with : apt-file search Qt5Config.cmake

in one line

a="YOURKEY" ; sudo apt-get install apt-file ; apt-file update ;apt-file search "$a"

so in ours example :

a="Qt5Config.cmake" ; sudo apt-get install apt-file ; apt-file update ;apt-file search "$a"

that give us

libaccounts-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/AccountsQt5/AccountsQt5Config.cmake
libphonon4qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/phonon4qt5/Phonon4Qt5Config.cmake
libsignon-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/SignOnQt5/SignOnQt5Config.cmake
libtelepathy-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/TelepathyQt5/TelepathyQt5Config.cmake
qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake
qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake

so we need to install : qtbase5-dev #for example i mean you could even install others but because i am compiling plasma stuff this should be fine