Line 6: Invalid passphrase length 68 (expected: 8..63) 'psk=59b35a9ce10a19d9b895249d3be3fa481336232ffef0e1c313ceea72cdb1febb"'.
Line 6: failed to parse psk '"psk=59b35a9ce10a19d9b895249d3be3fa481336232ffef0e1c313ceea72cdb1febb"'.
key_mgmt: 0x2
proto: 0x3
pairwise: 0x18
group: 0x18
Line 11: WPA-PSK accepted for key management, but no PSK configured.
Line 11: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
Failed to add interface wlan0
: Cancelling scan request
: Cancelling authentication timeout
#
Copy code
My WLAN device is Apple's Airport Extreme and wireless type WPA Personal. I don't want to change password on Airport since it would require changing password to each device on my network and for example changing password for my printer is task that i don't want to do "if it works, don't touch it"
EDIT: I fired up temporary WLAN with name 'TANA' and password '12345678' and configuration file looks now:
Is this not just the 'usual' default route problem?
The default route pointing to the Ethernet interface and therefore preventing access to the outside when no cable is connected. Have seen this a few times and could be solved by using if-up/if-down scripts adjusting the default route accordingly.
Well, I'll take some distance to this. I had same problems with cubietruck and then i decided to plug LAN-cable and forgot crappy combination Linux&WLAN.
I'll keep trying with OPI+ but break is now needed.
-miha
EDIT: Yep, definetely routing issue. ssh to wlan ip work inside OPI+ but not from outside and I haven't figured out how to solve this.
Flushed all from routing table with #ip route flush table main
Now I would like to set gw-setting like on my cubietruck:
miha@ct ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.255.1 0.0.0.0 UG 0 0 0 eth0
192.168.255.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
miha@ct ~ $
Copy code
But wlan0 instead of eth0. Second line is quite easy, #ip route add 192.168.255.0/24 wlan0 gives almost same line but G is missing from Flags and my brains are frozen to solve this and how to get first line.
SSH in via wlan0 works now, even when eth0 is unplugged.
Status of routing is:
root@tiger:~# ip route show
default via 192.168.255.1 dev wlan0
192.168.255.0/24 dev wlan0 scope link
root@tiger:~#
Copy code
These commands brings wlan0 alive:
root@tiger:~# ip route del 0/0
root@tiger:~# ip route del 192.168.255.0/24 dev eth0
root@tiger:~# ip route add default via 192.168.255.1
root@tiger:~# ip route show
default via 192.168.255.1 dev wlan0
192.168.255.0/24 dev wlan0 proto kernel scope link src 192.168.255.7
root@tiger:~#
root@tiger:~#
root@tiger:~#
Copy code
Now i need to implement commands to boot up procedure.
Br
-miha
EDITirty but working solution; added following to /etc/rc.local
/sbin/ip route del 0/0
/sbin/ip route del 192.168.255.0/24 dev eth0
/sbin/ip route add default via 192.168.255.1
Copy code
I know that correct place is not rc.local, instead of that post-up command(s) should be used on file /etc/network/interfaces since rc.local will be executed only on boot, so correction is needed for this still.
Also, eth0 is not usable at the moment but that's not an issue since place where I am going to locate OPI+ has no LAN (RJ45) available.