sodcalculator

10 Tech How-To

Quick Wireless Setup on Ubuntu 8.04

Guide 10-14126 · Updated · Step by step

This guide walks you through connecting Ubuntu 8.04 (Hardy Heron) to a Wi-Fi network quickly, whether you’re using the default Network Manager applet or need to fall back to command-line tools. It covers the essential steps, common pitfalls, and fixes for when the wireless doesn’t just work.

What You’ll Need

  • A computer with a wireless network card (built-in or USB) that is supported by Ubuntu 8.04. Most common cards from Intel, Atheros, Broadcom, and Ralink work, but some need proprietary drivers.
  • Your Wi-Fi network name (SSID) and password (WPA/WPA2 key) or, if it’s an open network, no password.
  • If the card isn’t recognized out of the box, you may need an Ethernet cable to download drivers.

Step-by-Step

  1. Check that your wireless card is detected. Open a terminal (Applications > Accessories > Terminal) and run iwconfig. If you see a wireless interface (usually wlan0 or eth1) listed with a name, the card is detected. If not, you’ll need to install drivers (see Troubleshooting).
  2. Enable the wireless radio. Some laptops have a physical switch or a function key (like Fn+F2) to turn Wi-Fi on. Make sure it’s enabled. Also check if the indicator light is on.
  3. Click the Network Manager icon. It’s in the top-right panel, usually showing two computers or a network symbol. If you don’t see it, right-click the panel and select “Add to Panel,” then choose “Notification Area” or “Network Monitor.”
  4. Select your network. Click the icon and a list of available wireless networks appears. Click on your network’s name (SSID). If you don’t see it, click “Connect to Other Wireless Network…” and type the SSID manually.
  5. Enter the wireless password. If you have WPA/WPA2, choose the appropriate security type (usually “WPA & WPA2 Personal”), then type the passphrase. For WEP, you may need to enter the key in hex or ASCII depending on your router’s settings.
  6. Wait for the connection. Network Manager will try to connect. A notification bubble should appear saying “Connection established.” The icon will change to show signal bars.
  7. Verify your connection. Open a web browser and try to load a page. If it works, you’re done. If not, check the IP address with ifconfig in a terminal. You should see an IP address like 192.168.1.5 under your wireless interface. If you see 0.0.0.0, you’re not getting an IP from the router.
  8. If Network Manager fails, use the command line. Sometimes the GUI just doesn’t cooperate. You can manually connect using iwconfig and dhclient. First, bring the interface up: sudo ifconfig wlan0 up. Then set the ESSID: sudo iwconfig wlan0 essid "YourNetworkName". If you have WEP, add key s:yourpasskey (for ASCII) or key yourhexkey. For WPA, you’ll need wpa_supplicant (see Troubleshooting). Finally, get an IP address: sudo dhclient wlan0.

Common Mistakes

  • Typing the SSID wrong. SSIDs are case-sensitive. Make sure you match the exact name, including spaces and capital letters.
  • Choosing the wrong security type. If you select WEP when your router uses WPA, the connection will fail. Check your router’s settings (usually at http://192.168.1.1 or 192.168.0.1) to see the security mode.
  • Forgetting the physical switch. Many laptops have a switch or key combo that disables the wireless card entirely. If the card doesn’t appear in iwconfig, it’s likely disabled.
  • Using the wrong WEP key format. WEP keys can be 5 or 13 characters (ASCII) or 10 or 26 hex digits. If you type an ASCII passphrase but the router expects hex, it won’t work.
  • Not updating the system. Ubuntu 8.04 is old; many bug fixes for wireless were released after the initial install. Run sudo apt-get update and sudo apt-get upgrade to get the latest drivers and Network Manager fixes.

Tips

  • Use a wired connection for the first setup. If you can plug in an Ethernet cable, do so. It makes downloading drivers and updates much easier.
  • Check for proprietary drivers. Go to System > Administration > Hardware Drivers. If a wireless driver is listed as “Not enabled,” enable it. This is common for Broadcom and some Atheros cards.
  • Use a static IP if DHCP fails. If you can’t get an IP address, try setting a static IP in Network Manager. You’ll need to know your router’s IP range (e.g., 192.168.1.x) and the gateway.
  • Keep your router close. Walls and metal objects can block the signal. If the signal is weak, try moving closer to the router.
  • Forget and reconnect. If you’ve entered the wrong password, right-click the network in Network Manager and choose “Forget,” then reconnect.

Troubleshooting

Wireless card not detected at all. Run lspci | grep -i network or lsusb to see if the hardware is there. If it is but iwconfig shows nothing, you need a driver. For many cards, the ndiswrapper package can use Windows drivers. Install it with sudo apt-get install ndiswrapper-utils-1.9, then load the Windows .inf file with sudo ndiswrapper -i driver.inf. For others, you may need to download the Linux driver from the manufacturer’s website.

WPA connection fails. Network Manager in 8.04 sometimes has issues with WPA2. Try using WPA (TKIP) instead of WPA2 (AES) on your router, or use wpa_supplicant manually. Create a config file /etc/wpa_supplicant.conf with:

network={
    ssid="YourSSID"
    psk="YourPassphrase"
}

Then run sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -D wext (or -D madwifi for Atheros). Then get an IP with sudo dhclient wlan0.

Connection drops frequently. This could be power management. Disable it with sudo iwconfig wlan0 power off. Also, check if your router’s channel is too crowded; try changing it to 1, 6, or 11.

Network Manager icon is missing. If you removed it, add it back by right-clicking the panel, selecting “Add to Panel,” and choosing “Notification Area.” If it still doesn’t show, restart the panel with killall gnome-panel.

Can’t connect to a hidden network. In Network Manager, choose “Connect to Other Wireless Network,” type the SSID, and check “Connect even if the network is not broadcasting.”

Frequently Asked Questions

Q: My wireless card is not listed in iwconfig. What do I do?
A: First, check if the hardware is present with lspci or lsusb. If it is, you need to install the correct driver. Use the Hardware Drivers tool or ndiswrapper for Windows drivers.

Q: How do I find my WEP key?
A: It’s usually printed on a sticker on your router, or you can log into the router’s admin page (typically http://192.168.1.1) and look under Wireless Security.

Q: Can I use a USB wireless adapter?
A: Yes, most USB adapters work. Plug it in and check iwconfig. If it doesn’t work, you may need to install drivers (often via ndiswrapper).

Q: Why does Network Manager keep asking for my password?
A: You might be typing the wrong password or selecting the wrong security type. Double-check the SSID and password, and ensure you choose the correct WPA/WEP option.

Q: Is Ubuntu 8.04 too old to connect to modern Wi-Fi?
A: It can still work, but some newer routers with WPA2/AES may cause issues. Try setting your router to WPA (TKIP) or WPA2 with TKIP if possible. Also, consider upgrading to a newer LTS release for better support.

Q: How do I set a static IP address?
A: In Network Manager, right-click the network icon, select “Edit Connections,” choose your wireless network, go to IPv4 Settings, change Method to “Manual,” and add your IP, netmask, and gateway. You may also need to set DNS servers.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →