The Terminal is a powerful tool that can help you do many things efficiently, and a lot of people find it frustrating to use it, but I think it's not that hard to use it, so I decided to write this article to show you how to do handle wifi, bluetooth, screen resolution like a real man.
Connect to wifi
to connect to the wifi you can use the iwctl
command, it's a simple tool that can help you connect to wifi easily, so let's see how to use it.
Connect to wifi using iwctl
- First, you need to open iwctl by running the following command:
iwctl
you can see all the available commands by typing help
.
so let's connect to wifi, to do that you need to type station wlan0 scan
to scan for available wifi networks, then type station wlan0 get-networks
to get the available networks, then type station wlan0 connect <network name>
to connect to the network.
wlan0 is the name of the wifi interface, you can check the name of your wifi interface by typing
device list
station device get-networks
station device connect network_name
and that's it, you are connected to wifiπ.
Connect to bluetooth
Connecting to bluetooth is also easy, you can use the bluetoothctl
command to connect to bluetooth devices, but first you should install some packages (bluez
bluez-utils
), so let's see how to do that.
if you are using arch based distro, you can install the packages by running the following command:
sudo pacman -S bluez bluez-utils
if you are using debian based distro:
sudo apt install bluez bluez-utils
now to start the bluetooth service, you need to run the following command:
sudo systemctl start bluetooth.services
then you should enable the bluetooth service :
sudo systemctl enable bluetooth.service
and you are ready to go, lets power on the bluetooth device:
power on
then you can scan for available devices by typing:
scan on
to connect to a device, you need to type:
connect <put_mac_adress_here>
and that's it, you are connected to bluetooth.
bluetoothctl
is a powerful tool that can help you do many things, you can check the available commands by typing help
or the arch wiki for more information.
In the next article we will see how to change screen resolution using the terminal using xrandr
.
Thanks for reading, and see you in the next article.
always remember that you can do anything you want using the terminal, so don't be afraid to use it. like a chad linux enjoyer.
Top comments (0)