Configuring WiFi Module via SSH - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +---- Forum: openHAB (https://forum.pine64.org/forumdisplay.php?fid=26) +---- Thread: Configuring WiFi Module via SSH (/showthread.php?tid=2719) |
Configuring WiFi Module via SSH - Chadilac - 11-11-2016 Hi All, I have been trying to setup my wifi module that came with the Pine64. It seems to be recognized in iwconfig: openhab@openhab:~$ iwconfig eth0 no wireless extensions. wlan0 unassociated Nickname:"<WIFI@REALTEK>" Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 dummy0 no wireless extensions. sit0 no wireless extensions. lo no wireless extensions. wlan1 unassociated Nickname:"<WIFI@REALTEK>" Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 However when I try configuring I get an error: Error for wireless request "Set ESSID" (8B1A) : SET failed on device wlan0 ; Operation not permitted. Any help on how to get this connected to my secured network? I can connect via my network currently with the pine plugged in and have access to http://openhab:8080 but havent seen wifi configuration tool in web interface. I'm new to both openhab and commandline operations... Thanks for any help! Chad RE: Configuring WiFi Module via SSH - MarkHaysHarris777 - 11-11-2016 hi I'm going to try to help you. First, you'll want to setup your wifi with the serial console rather than over ssh. ssh may not work well because the eth0 is active ; so get yourself a serial TTL usb bridge cable ( either pl2303 based, or cp2102 based ) and logon via serial console. These are the wifi direct commands you will need to manage the wifi connection without network manager: ip link set wlan0 up ip link show wlan0 iw dev wlan0 scan | less iw dev wlan0 link wpa_supplicant -D nl80211 -i wlan0 -c <(wpa_passphrase "ssid here" "passphrase" ) & dhcpcd wlan0 ok... having said that, and yes the wifi can be brought up manually using the above over serial console, the best is to use the network manager to bring up the link automatically... you setup the options for 'ALL' users and automatic connect.... then when you bootup headless the wifi link will connect on its own. But, in the first place, make sure that your wifi setup is even working with the above manual commands... see what's happening, and make sure that your wifi card works. Also, if you have mac address filtering 'ON' in your modem router make sure you have included the wifi card mac address in the list of filtered addys. Also, ... in the /etc/network/interfaces setup eth0 and wlan1 as manual , so that network manager doesn't try to manage them: iface eth0 inet manual iface wlan1 inet manual and in /etc/udev/rules.d make sure that wlan0 is named correctly with its correct mac addy in : 70-persistent-net.rules - hope that helps RE: Configuring WiFi Module via SSH - Armbian User - 11-16-2016 (11-11-2016, 01:23 PM)Chadilac Wrote: Any help on how to get this connected to my secured network? Ensure that no wlan entries are in /etc/network/interfaces and let network-manager do its job. Way more easy, less error prone and works even when you've no idea what routing/forwarding is and how Linux deals with two interfaces connected to the same network. Look in my signature, it's a few simple steps. |