I have two identical desktops running Ubuntu server 14.04. During the install process I only selected Ubuntu server, no other packages.
Desktop #1) This was my first linux build, and so fumbled around quite a bit until I figured it out. I configured the WPA_Supplicant.conf file utilizing the wpa_passphrase program, can can connect fine using wpa_supplicant. I can then get an ip using dhclient, or assign a static address in wpa_supplicant.conf... I also successfully configured the /etc/network/interfaces file .. first to connect via DHCP, then changed it to connect to a static IP. So.. for desktop #1 it works perfect.. connecting to my wireless network via WPA_supplicant manually, or automatically utilizing /etc/network/interfaces on boot.
Desktop #2) This is the problem machine. It is the same model, and same wireless card. I have successfully created the WPA_Supplicant.conf file, and can connect manually by running wpa_supplicant, then of course get an address via dhclient. It works great!!!! However, for the life of me, I can't connect automatically on logon with /etc/network/interfaces. It just doesn't connect! I can't find a single difference between the two machines!
Perhaps I inadvertently changed something on desktop #1 in my banging around to make it connect on logon?
Here is my wpa_supplicant.conf:
network={
ssid="myssid"
#### #psd="mypasscode"
psk=my-very-long-64char-passcode
}
here is my /etc/network/interfaces:
#### #The loopback network interfaces
auto lo
iface lo inet loopback
#### #The primary network interface
auto lo
iface wlan0 inet dhcp
wpa-essid myssid
wpa-psk my-very-long-64char-passcode
note: I have tried the wpa-psk as clear text, as well as 64bit.. either seems to work in desktop 1, neither seem to make a difference in desktop 2.
Any help is appreciated!!!
Oh to connect manually I simple run...
sudo ifconfig wlan0 up
sudo lshw -C network
sudo iwlist scan
sudo wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
dhclient wlan0
- sudo lshw -C network - to confirm it is enabled
- sudo iwlist scan - to confirm it can scan
- sudo wpa_supplicant - to connect
- dhclient wlan0 - to get IP
this works great on both desktops.. it's just that I can't get desktop #2 to auto connect on logon!!!
Thank you!!