jiapei100 Posted February 9, 2018 Posted February 9, 2018 Hi, all, sorry to bother you again. I still cannot make wifi on my OPi Plus2 work. The following are the results of ifonfig and iwlist scan . and my /etc/network/interfaces is as follows: What's in file /etc/wpa_supplicant/wpa_supplicant.conf : network={ ssid="xxxxx" psk="yyyyy" } and I'm sure the SSID and password are correct. I used to posted a mesage about WIRED connection, which is solved by setting hwaddress ether . However, for wireless connection, can anybody give me hand please? Thank you very much Pei
Igor Posted February 9, 2018 Posted February 9, 2018 https://docs.armbian.com/User-Guide_Getting-Started/#how-to-connect-to-wireless
jiapei100 Posted February 9, 2018 Author Posted February 9, 2018 Result of nmtui-connect : It seems WIFI connections are NOT listed. However, iwlist scan works now.... So weird... And the result of nmtui-connect myssid is Segmentation fault:
Igor Posted February 10, 2018 Posted February 10, 2018 12 hours ago, jiapei100 said: It seems WIFI connections are NOT listed. However, iwlist scan works now.... So weird... Nothing is weird. If you have wlan used by ifup ( /etc/network/interfaces) than network manager can't use them and vice versa. Remove /etc/network/interfaces, reboot and nmtui-conenect will work.
jiapei100 Posted February 11, 2018 Author Posted February 11, 2018 16 hours ago, Igor said: Nothing is weird. If you have wlan used by ifup ( /etc/network/interfaces) than network manager can't use them and vice versa. Remove /etc/network/interfaces, reboot and nmtui-conenect will work. Hi, Igor, I made some progress after removing /etc/network/interfaces, however, I still Could not activate connection: Activation failed.
guidol Posted February 11, 2018 Posted February 11, 2018 7 hours ago, jiapei100 said: Hi, Igor, I made some progress after removing /etc/network/interfaces, however, I still Could not activate connection: Activation failed. before reboot /etc/network/interfaces will be active. Configure via nmtui and set it active at boot, then save and reboot - this wil activate the connection 1
jiapei100 Posted February 11, 2018 Author Posted February 11, 2018 41 minutes ago, guidol said: before reboot /etc/network/interfaces will be active. Configure via nmtui and set it active at boot, then save and reboot - this wil activate the connection Hi, guidol: Now, it's working... I just leave ONLY 2 lines in /etc/network/interfaces as: auto lo iface lo inet loopback and set nmtui ... Wifi is NOW working... Still, I think it's more or less a bit unexplainable. I prefere modifying /etc/network/interfaces, but have NO idea how to figure that out. Anyway, NOW, wifi is working !!! Thanks Pei
guidol Posted February 11, 2018 Posted February 11, 2018 1 hour ago, jiapei100 said: Hi, guidol: Now, it's working... I just leave ONLY 2 lines in /etc/network/interfaces as: auto lo iface lo inet loopback if you want to setup wlan0 from the /etc/network/interfaces, then you can delete the connection in nmtui and ADD something like the following line (with the IP-Numbers and data of your WiFi-Connection): auto wlan0 iface wlan0 inet static address 192.168.8.16 netmask 255.255.255.0 gateway 192.168.8.1 dns-nameservers 8.8.8.8 8.8.4.4 wpa-ssid "your_wifi_ssid" wpa-psk "your_wifi_pre-shared-key" you have to check if your wifi-device is named wlan0 or has a name which does include some part of your MAC-address e.g. like wlx3f4e2a1b0d
Recommended Posts