How to Set up a Wireless Network in Linux Via the Command Line
How to Set up a Wireless Network in Linux Via the Command Line
A walkthrough of wireless (IEEE 802.11 also known as WiFi) home networking with Linux.
Steps

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).

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"

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. Type ifconfig into the terminal to determine whether it's been detected. lshw -C network

Use ndiswrapper, if needed, and your Windows driver.

Connect to a network. sudo ifconfig down sudo dhclient -r sudo ifconfig up sudo iwconfig essid "ESSID_IN_QUOTES" sudo iwconfig mode Managed sudo dhclient

Connecting to a network on boot. Add those commands to /etc/rc.local Make /etc/rc.local executable with chmod

What's your reaction?

Comments

https://kapitoshka.info/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!