A walkthrough of wireless (IEEE 802.11 also known as WiFi) home networking with Linux.

Steps

  1. 1
    Note that if you are buying a router, all routers are compatible with Linux. It is wireless adapters that have varying levels of Linux compatibility. If your router isn't new, then turn it on and skip to "Detecting your wireless adapter" (below).
  2. 2
    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
    Advertisement
  3. 3
    Go to your browser and type in the address: "192.168.0.1"
  4. 4
    Enter your username and password from your router (often "admin" and "admin") then your internet service provider.
  5. 5
    Enable wireless and set your encryption (WEP or WPA) and type a memorable passkey.
  6. 6
    Detecting your wireless adapter: Your wireless adapter should be detected automatically by your distribution.
    • Type ifconfig into the terminal to determine whether it's been detected.
      • lshw -C network
  7. 7
    Use ndiswrapper, if needed, and your Windows driver.
  8. 8
    Connect to a network.
    • sudo ifconfig <interface> down
    • sudo dhclient -r <interface>
    • sudo ifconfig <interface> up
    • sudo iwconfig <interface> essid "ESSID_IN_QUOTES"
    • sudo iwconfig <interface> mode Managed
    • sudo dhclient <interface>
  9. 9
    Connecting to a network on boot.
    • Add those commands to /etc/rc.local
      • Make /etc/rc.local executable with chmod
  10. Advertisement

Community Q&A

  • Question
    I cant connect to my wireless. What can I do?
    Community Answer
    Community Answer
    Unplug your router for 30 seconds and then plug it back in. If that doesn't work, try it again.
Advertisement

References

  1. Ubuntu forums How To: Manual Network Configuration without the need for Network Manager

About This Article

Tested by:
wikiHow Technology Team
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 12 people, some anonymous, worked to edit and improve it over time. This article has been viewed 148,394 times.
How helpful is this?
Co-authors: 12
Updated: March 29, 2019
Views: 148,394
Categories: Wireless Networking
Advertisement