Post

How to Connect to Wi-Fi on Arch Linux Without NetworkManager

How to Connect to Wi-Fi on Arch Linux Without NetworkManager

If you installed Arch Linux with a desktop environment like XFCE but forgot to install NetworkManager, you’ll quickly notice that you can’t connect to the internet. This post will guide you step-by-step on how to connect to Wi-Fi from the terminal and later install a graphical network manager.

🔍 Step 1: Check if You Have iwctl

Many Arch installations include iwd, the iNet wireless daemon. You can check if it’s available with:

1
iwctl

If it works and gives you a > prompt, you’re good to go.

📶 Step 2: Connect to Wi-Fi Using iwctl

Inside the iwctl prompt:

  1. List your Wi-Fi device:

    1
    
    device list
    
  2. Scan for networks:

    1
    
    station wlan0 scan
    
  3. Show available networks:

    1
    
    station wlan0 get-networks
    
  4. Connect to your Wi-Fi:

    1
    
    station wlan0 connect YourWiFiName
    

If it asks for a password, enter it. If connection is successful, type:

1
exit

❗ Step 3: No IP Address? Fix It!

Sometimes, the connection is established but you have no internet. Check your IP with:

1
ip a

If there’s no inet IP under your Wi-Fi device, you need a DHCP client.

Edit (or create) this file:

1
sudo nano /etc/iwd/main.conf

Add:

1
2
3
4
5
[General]
EnableNetworkConfiguration=true

[Network]
NameResolvingService=systemd

Then restart the iwd service:

1
sudo systemctl restart iwd

Try connecting again via iwctl.

🌐 Step 4: Still No Internet? Fix DNS

Try:

1
ping 8.8.8.8

If it works but:

1
ping archlinux.org

does not, it’s a DNS issue.

Edit /etc/resolv.conf:

1
sudo nano /etc/resolv.conf

Replace contents with:

1
2
nameserver 1.1.1.1
nameserver 8.8.8.8

Save and try again.

Once online, install NetworkManager for easier Wi-Fi management:

1
sudo pacman -S networkmanager network-manager-applet

Enable and start the service:

1
2
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager

Then you can use the graphical Wi-Fi applet in XFCE:

1
nm-applet &

To make it run at login, add it to XFCE’s “Session and Startup” settings.

✅ Done!

Now you have a working Wi-Fi connection without needing NetworkManager, and optionally with it for better ease of use.

This post is licensed under CC BY 4.0 by the author.