John Mercier

[A software developer interested in java, groovy, and nixos]

Connecting to a wpa enabled wireless network can be difficult in the gentoo minimum install cd. Most sources suggest not to use the cd if this is an issue and to use a cd from a different distribution. There is no reason to do this because the minimal install CD comes with wpa_supplicant. wpa_supplicant is the basic tool and library that most network configuration tools for all linux distributions use to connect to wpa networks.

When using the minimal install cd the network card should be configured to use wpa_supplicant and wpa_cli should be used to connect to the network. Using the configuration files that most tutorials show is useless as any changes will only be temporary and will be lost once the system is restarted.

Get the wireless interface name

livecd ~ # iwconfig
lo      no wireless extensions.

enp1s0  no wireless extensions.

wlp2s0  IEE802.11bgn ESSID:off/any
       Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
       Retry long limit:7 RTS thr:off Fragment thr:off
       Encryption key:off
       Power Management:off

Use the wireless interface name to create the init script for the interface

livecd~ # cp /etc/init.d/net.lo /etc/init.d/net.wlp2s0

Create the init script for the wlp2s0 interface

livecd~ # nano /etc/conf.d/net
wpa_supplicant_wlp2s0="-Dwext -iwlp2s0 -c/etc/wpa_supplicant/wpa_supplicant.conf"

Edit /etc/wpa_supplicant/wpa_supplicant.conf

livecd ~ # nano /etc/wpa_supplicant/wpa_supplicant.conf

Start the wlp2s0 interface

livecd ~ # /etc/init.d/net.wlp2s0 start

Connect to the network using wpa_cli

livecd ~ # wpa_cli>scan
>set_network 0 ssid "NetworkName"
>set_network 0 psk "passphrase"
>enable_network 0

Test the network with a ping

livecd ~ # ping

2014 - 2018 | Mixed with Foundation v5.5.1 | Baked with JBake v2.5.1