However, I could not connect to the network again. Do I need to add any other information or should I use a command to connect to the network? I edited the /etc/network/interfaces again: (Should I add “” to the wpa-psk too?)
root@arm:/home/ubuntu# cat /etc/network/interfaces
auto lo
iface lo inet loopback
The primary network interface
auto eth0
iface eth0 inet dhcp
Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
WiFi Example
auto wlan0
iface wlan0 inet dhcp
wpa-ssid “ghostrider”
wpa-psk=b34d373eb2fb836a43b0afffe783c7d0af694724506c9e77b06d1021302905bf
However, I could not connect to the network again. Do I need to add any other information or should I use a command to connect to the network? I edited the /etc/network/interfaces
again: (Should I add "" to the wpa-psk too?)
How did you test this? by reboot?
If all you did was modify the '/etc/network/interfaces' file, you need
to manually start the wlan0 interface, e.g.
# ifup wlan0
ubuntu@arm:~$ ifup wlan0
ifup: failed to open statefile /run/network/ifstate: Permission denied
ubuntu@arm:~$ sudo su
sudo: timestamp too far in the future: Jan 1 00:00:00 1985
[sudo] password for ubuntu:
I wrote ifup wlan0, it has been about 15 minutes and nothing was happening, so I typed something random like: asjdalsdjalksdj then pressed enter. Now when I write ifup wlan0 it say:
ubuntu@arm:~$ ifup wlan0
ifup: failed to open statefile /run/network/ifstate: Permission denied
ubuntu@arm:~$ sudo su
sudo: timestamp too far in the future: Jan 1 00:00:00 1985
[sudo] password for ubuntu:
root@arm:/home/ubuntu# ifup wlan0
ifup: interface wlan0 already configured
If you get this error and want to retry, use these commands:
# ifdown wlan0
# ifup wlan0
Allright, I waited for a long time and here is the output: (at least it makes sense)
root@arm:~# ifup wlan0
Failed to bring up wlan0.
@ksonly@ks, I do not know if wpasupplicant is installed on my system. How can I check for that? Because if it is not installed, I have no internet connection to install it. Also, I think it must not be that much complicated to connect to a wireless network. Me and my friend did it on a beaglebone running ubuntu 12.04 armhf, we were only doing some changes in the /etc/network/interfaces file. Nothing else. But I cannot exactly remember what we were doing.
If you don’t have WPA wireless connection then I think it would be a bit simpler. Even with WEp you don’t require WPA_SUPPLICANT . So, just to start relishing the WIFI connection, you can start with OPEn WIFI connection and gradually go to WEP and then WPA. With this you can at least know what is needed when we increase the security.
I’ll give a try tomorrow. If it succeds in my case I’ll reply with all the details.