The officially official Devuan Forum!

You are not logged in.

#1 2018-10-07 05:27:42

menuhin
Member
Registered: 2018-10-01
Posts: 8  

WPA cannot install in ASCII - need the wpa_supplicant.conf file

Hi forum member,

Which package should I install to have the /etc/wpa_supplicant/wpa_supplicant.conf file in place?

I tried searching in Synoptics for ‘wpa’ and installing the top matches - there are dependencies issues in some and could not install.

I need that file / package for network configuration in a work place.

Best,
M

Offline

#2 2018-10-07 09:01:45

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 1,106  

Re: WPA cannot install in ASCII - need the wpa_supplicant.conf file

I think the configuration file for wpa_supplicant that you refer to is created either manually (in a manual networking setting) or by the networking utility software (e.g. network-manager or wicd). E.g., for wicd, I have the configuration files in /var/lib/wicd/configurations/ with some "random" filenames.

Offline

#3 2018-10-07 13:28:35

Panopticon
Member
Registered: 2018-01-27
Posts: 306  

Re: WPA cannot install in ASCII - need the wpa_supplicant.conf file

You need to investigate what these commands are doing and learn how to use them first but as a guide research the following set of commands to suit your setup.

As ROOT - Check first.

a.

ip link show

b.

ip link set wlan0 up

c.

iw wlan0 link

d.

iw wlan0 scan

Then...

1.

wpa_passphrase ESSID >> /etc/wpa_supplicant.conf
[enter pass]

2.

 wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf

3.

dhclient wlan0

Always check and study the very useful documentation that come with packages if available in a terminal like man wpa_supplicant or man wpa_passphrase    man wpa_supplicant.conf

Last edited by Panopticon (2018-10-07 13:40:46)

Offline

#4 2018-11-06 17:13:23

guidol
Member
From: Mudanya - Turkey
Registered: 2018-11-06
Posts: 5  

Re: WPA cannot install in ASCII - need the wpa_supplicant.conf file

Generate a /etc/wpa_supplicant/wpa_supplicant.conf (see https://wiki.debian.org/WiFi/HowToUse)

I did create my file with:

su -c "wpa_passphrase myssid my_very_secret_passphrase > /etc/wpa_supplicant/wpa_supplicant.conf"

and did configure my wlan0 in /etc/network/interfaces with

auto wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

or for a static IP (in my network):

# wlan0
auto wlan0
iface wlan0 inet static
address 192.168.6.125
netmask 255.255.255.0
gateway 192.168.6.1
# here are my own 2 Pi-Hole DNS servers
dns-nameservers 192.168.6.20 192.168.6.3
# Google DNS
# dns-nameservers 8.8.8.8 8.8.4.4
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Offline

Board footer