Configure Linux Machine with wireless config

From AcrodusWiki
Revision as of 07:06, 18 October 2024 by Alex (talk | contribs) (Created page with "How to add persistent configuration in /etc/network/interfaces to connect to wireless access point. Just edit /etc/network/interfaces and write: auto wlan0 iface wlan0 inet dhcp wpa-ssid {ssid} wpa-psk {password} A good tool to have installed is the iw command. Run the command 'iw dev' to show the wireless adapter information. ##### To have a non persistent configuration use the following commands. //This creates a configuration fi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to add persistent configuration in /etc/network/interfaces to connect to wireless access point.

Just edit /etc/network/interfaces and write:

auto wlan0 iface wlan0 inet dhcp

               wpa-ssid {ssid}
               wpa-psk  {password}

A good tool to have installed is the iw command. Run the command 'iw dev' to show the wireless adapter information.

To have a non persistent configuration use the following commands.

//This creates a configuration file for the wifi sudo wpa_passphrase WLAN_NAME WLAN_PASSWORD > /etc/wpa_supplicant.conf

//Optional command to run to see drivers wpa_supplicant

//Run command with config file and driver as options wpa_supplicant -i wlp3s0 -c /etc/wpa_supplicant.conf -D wext

NOTE: This is best used on a machine with network manager not installed as they will compete. This is also only for wireless access point using WPA authentication, which is most nowadays.