The following should get you online via wifi. I'm assuming you're still logged in as root; if not, prepend all commands with sudo
.
First, get the name of your wireless interface with ip link
. The interface name will start with "wl", e.g. "wlp2s0" is the name returned from the command here:
[root@justazombie ~]# ip link
. . .
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group...
. . .
Next, you're going to copy an example "wireless-wpa" file into a location where netctl
can read it.
[root@justazombie ~]# cp /etc/netctl/examples/wireless-wpa /etc/netctl/
You can confirm netctl can read the file using netctl list
, which should return wireless-wpa as a result:
[root@justazombie ~]# netctl list
wireless-wpa
Now use netctl to edit the that example configuration file (should open up in nano). You'll need to change the Interface, ESSID, and Key values:
[root@justazombie ~]# netctl edit wireless-wpa
---- opened in NANO ----
Description='A simple WPA encrypted wireless connection'
Interface=wlan0 <= Change this to the interface name you got from ip link, e.g. wlp2s0
Connection=wireless
Security=wpa
IP=dhcp
ESSID='MyNetwork' <= Change this to the SSID of your wireless network, e.g.: 'IPFreely'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key='WirelessKey' <= Change this to your WiFi password, e.g.: 'ThisIsAPoorPassword'
# Uncomment this if your ssid is hidden
#Hidden=yes
# Set a priority for automatic profile selection
#Priority=10`
Once you've changed those three values, hit CTRL+X
, y
, then enter
to save and close that file. Next, run netctl start wireless-wpa
and see if you get a connection:
[root@justazombie ~]# netctl start wireless-wpa