DEV Community

Cover image for How to do daily tasks in linux without GUI 🐧 as a sigma user
namya
namya

Posted on

How to do daily tasks in linux without GUI 🐧 as a sigma user

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

  1. First, you need to open iwctl by running the following command:
iwctl
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

if you are using debian based distro:

    sudo apt install bluez bluez-utils
Enter fullscreen mode Exit fullscreen mode

now to start the bluetooth service, you need to run the following command:

sudo systemctl start bluetooth.services
Enter fullscreen mode Exit fullscreen mode

then you should enable the bluetooth service :

sudo systemctl enable bluetooth.service
Enter fullscreen mode Exit fullscreen mode

and you are ready to go, lets power on the bluetooth device:

power on
Enter fullscreen mode Exit fullscreen mode

then you can scan for available devices by typing:

scan on
Enter fullscreen mode Exit fullscreen mode

to connect to a device, you need to type:

connect <put_mac_adress_here>
Enter fullscreen mode Exit fullscreen mode

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)