How to Set up a Wireless Network in Linux Via the Command Line
Note that if you are buying a router, all routers are compatible with Linux., Set up your new router., Go to your browser and type in the address: "192.168.0.1" , Enter your username and password from your router (often "admin" and "admin") then...
Step-by-Step Guide
-
Step 1: Note that if you are buying a router
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). -
Step 2: all routers are compatible with Linux.
Plug your router into your internet socket if you want to share your internet Plug your router into your PC with an Ethernet cable ,,,, Type ifconfig into the terminal to determine whether it's been detected. lshw
-C 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>
Add those commands to /etc/rc.local Make /etc/rc.local executable with chmod -
Step 3: Set up your new router.
-
Step 4: Go to your browser and type in the address: "192.168.0.1"
-
Step 5: Enter your username and password from your router (often "admin" and "admin") then your internet service provider.
-
Step 6: Enable wireless and set your encryption (WEP or WPA) and type a memorable passkey.
-
Step 7: Detecting your wireless adapter: Your wireless adapter should be detected automatically by your distribution.
-
Step 8: Use ndiswrapper
-
Step 9: if needed
-
Step 10: and your Windows driver.
-
Step 11: Connect to a network.
-
Step 12: Connecting to a network on boot.
Detailed Guide
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).
Plug your router into your internet socket if you want to share your internet Plug your router into your PC with an Ethernet cable ,,,, Type ifconfig into the terminal to determine whether it's been detected. lshw
-C 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>
Add those commands to /etc/rc.local Make /etc/rc.local executable with chmod
About the Author
Amanda Thomas
Brings years of experience writing about home improvement and related subjects.
Rate This Guide
How helpful was this guide? Click to rate: