This is a remake of my facebook note with a similar title.
Even if you have installed your linux successfully you still need to know your own hardware. This article also useful to debug networking issue, especially for first time linux install.
First thing to do is knowing where your device plugged in, pci or usb.
It can be done with this simple command
This command requires some privileges, so it might be different in other distro.
For Ubuntu, add the word sudo.
If you have no luck with this command, maybe it is plugged-in by usb connexion.
Image below shows a Realtek 8187 in
Le’ts see what related device with 802.11 standard
Well… it is also nice to know this command. It shows what happened to my realtek 8187 device in boot time.
Some wireless card need to be turned on manually.
So let’s check it out with
Now we need to list our device. Physical name could be different.
Since iwconfig has been deprecated, we are using iw.
And scan our available essid for our wireless
From this step, we may choose method to connect to your wireless.
There are many methods, but you can only chooses one method at a time.
This will show you NetworkManager using
and other method using
NetworkManager is installed automatically because it is a dependency for gnome-shell, and maybe also cinnamon and unity. So it is the common preference method unless you are not using those desktop environment. Some linux prefer other method, e.g Arch let the user choose any method, and Mageia using an applet to manage network. Again, let’s do it with command line.
You can use iw to check if it is works.
And ping google to make sure.
Finally, you may disconnect,
wifi connect command
only supported after Netwok Manager 0.96.
Kali Linux 1.x series is still using 0.9.4 series of Netwok Manager.
It does not support connect command.
So it is a little bit different.
Stop using Network Manager
I like the way Arch Linux giving me option what kind of method that I can use to connect my wireless with. it require more steps, and it needs ‘dhcpcd’. To experiment this with my current notebook, I also need to shutdown my NetworkManager service form systemd. Luckily we can apply the same method to other distro.
Let’s see how we do it with SysV, systemd and upstart. There are other interesting init. e.g. OpenRC, but it is beyond this scope. Still, you can see example of OpenRC in lamp setup here.
Before you begin, please stop your currently running NetworManager service
Don’t forget to enable later, after you finished with your experiment.
Using ‘iw dev’
Now we can start some experiment with oher method.
Note: Tested with Debian Jessie, Arch, Mageia 3 and Kali 1.06.
But I still got no luck with Ubuntu Trusty beta in my notebook.
Sometimes you also need to use
ip link command to activate your device.
ifconfig command has been deprecated and replaced by ip command.
Then you can use ‘iw dev’
Again.. check your connexion.
And reserved your IP with
Now you can ping