Set up a Wireless Network in Linux
A walkthrough of wireless (IEEE 802.11 also known as WiFi) home networking with Linux.
Contents
Steps
Most wireless adapters are not designed for use in Linux and depend on non-free proprietary drivers and firmware which inevitably leads to problems. There has been a significant effort by the Linux community and some manufacturers to improve this situation and most recently released Linux distributions will support a significant number of wireless cards.
The Ubuntu Wifi Documentation is a good, and frequently updated, guide to what cards are supported on recent Ubuntu versions (recent versions of other distributions should have similar levels of support). It also lists cards which have Free Software drivers - for users who have a philosophical (or other) objection to closed-source drivers in their kernel.
Set up your new router
- Plug your router into your internet socket if you want to share your internet.
- Plug your router into your PC with an ethernet cable.
- Go to your browser and type in the address "192.168.0.1" or whichever address the router's web server is listening.
- Enter your username and password from your router (often "admin" and "admin") then your internet service provider.
- Enable wireless and set your encryption (WEP or WPA) and type a memorable passkey.
Detecting your wireless adapter
- Your wireless adapter should be detected automatically by your distribution and should be available in your distribution's network config tools (as of early 2012 most distributions use Network Manager). Only if the card is *not* detected, go through the following troubleshooting steps:
- Type iwconfig into the terminal to see what wireless network interfaces have been detected.
- Type sudo lshw (or lspci or lsusb) to list hardware and get details on the chipset that your card uses. Try searching the Internet or posting in the help forums for your Linux distribution to see if there's support for the chipset your card uses.
- If you're using Linux Mint, try MintWifi.
- You may need to use a ndiswrapper and your Windows driver, look up the ndis wrapper documentation or ask for help in the forums/mailing lists for your distribution.
Connecting to a network
- If your distribution is using NetworkManager there should be an icon near the clock which you can click on.
- Choose your "Encryption" (WEP or WPA) and enter your passkey.
- If your distribution is not using NetworkManager you may need to look up its documentation or ask for help in it its forums.
Related Articles
- Create a Wireless Network
- Set up a Wireless Network in Linux Via the Command Line
- Secure Your Wireless Home Network
- Break WEP Encryption
- Add an HP Printer to a Wireless Network
- Connect to a Wireless Internet Connection
- Add New Users to Linux
Sources and Citations
- Ubuntu forums How To: Manual Network Configuration without the need for Network Manager
- Ubuntu WifiDocs WirelessTroubleShootingGuide
What links here
- Set Up a Wireless Printer Connection
- Unzip Files in Linux
- Add a Network Printer in Linux
- Add a Network Printer in Windows XP
- Connect to a Wireless Internet Connection
- Find Your WEP Code
- Set up a Network in Ubuntu
- Set up a Wireless Network in Linux Via the Command Line
- Set up a Wireless Network in Windows XP
- Add a Local Printer in Linux