LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Wireless Setup (OpenMediaVault) - wpa_supplicant (https://www.linuxquestions.org/questions/linux-networking-3/wireless-setup-openmediavault-wpa_supplicant-4175582823/)

Nick_S_ 06-22-2016 09:37 AM

Wireless Setup (OpenMediaVault) - wpa_supplicant
 
I'm running OpenMediaVault (Debian variant) and I'm trying to setup wireless networking but not getting anywhere. I've used wpa_supplicant on Slackware in the past but I forget the config settings I used. The wpa_supplicant documentation I'm finding is not very helpful or I'm not reading them right.

ex) https://blog.nelhage.com/2008/08/usi...-debianubuntu/
https://www.debuntu.org/how-to-wifi-...pa-supplicant/

Here's my /etc/network/interfaces file
Code:

# The loopback network interface
auto lo
iface lo inet loopback

# eth0 network interface
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp


# wlan0 network interface
auto wlan0
#allow-hotplug wlan1
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

My /etc/wpa_supplicant/wpa_supplicant.conf
Code:

# reading passphrase from stdin

ctrl_interface=/var/run/wpa_supplicant

network={
        ssid="SSID_Name"
        #psk="Hidding This"
        psk=SOME_CRAZY_STRING
}

Now when I try to run 'ifup wlan0, I get the following
Code:

root@debian:/etc/network# ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: No such file or directory
Listening on LPF/wlan0/50:46:5d:4c:1c:a2
Sending on  LPF/wlan0/50:46:5d:4c:1c:a2
Sending on  Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
send_packet: Network is down
receive_packet failed on wlan0: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
send_packet: Network is down
^C

I see wpa_supplicant daemon can't be started. I think I'm missing a lot here. Does anyone have a good reference to setting up WPA2 wireless on a debian machine?

Thanks,

Nick

beachboy2 06-22-2016 10:15 AM

Nick S,

http://www.cyberciti.biz/faq/debian-...fi-networking/

Nick_S_ 06-22-2016 08:34 PM

Quote:

Originally Posted by beachboy2 (Post 5564700)

Thanks for the link but that didn't get me anywhere. I followed the instructions and when I try to bring up wlan0 I get this:

Code:

root@debian:~# ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: No such file or directory
Listening on LPF/wlan0/50:46:5d:4c:1c:a2
Sending on  LPF/wlan0/50:46:5d:4c:1c:a2
Sending on  Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
send_packet: Network is down
receive_packet failed on wlan0: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
send_packet: Network is down



All times are GMT -5. The time now is 06:53 AM.