Avatar Image
Gajendra Mahato
Tips & Tricks Cover

Spoofing MAC Address in Persistent Way

The Basics: A Working nmcli Cheatsheet Get WiFi status (enabled / disabled) nmcli radio wifi Enable / Disable WiFi nmcli radio wifi <on|off> <on|off>: to turn on/off the WiFi Disconnect from WiFi nmcli device disconnect <wiface> <wiface>: the name of your wireless interface (e.g. wlan0) Show all available WiFi access points nmcli dev wifi list Refresh the available WiFi connection list nmcli dev wifi rescan Connect to a wireless access point nmcli d wifi connect <ssid> password <pass> iface <wiface> <wiface>: the name of your wireless interface <ssid>: the WiFi’s name you want to connect to <pass>: the WiFi password Review the available devices nmcli dev status Add a dynamic ethernet connection nmcli con add type ethernet con-name <name> ifname <iface_name> <name>: the name you want to give this connection profile <iface_name>: the name of the interface to bind it to (e.g. eth0) Bring up the ethernet connection nmcli con up <name> <name>: the name of the connection profile to activate (the same <name> used when adding it) Show WiFi password and QR code for the active connection nmcli device wifi show-password # OR, nmcli device wifi show Getting a Prettier Wifi List The default terse -t mode is colon-separated and built for scripts, not eyeballs: ...

July 4, 2026 · 3 min · Gajendra Mahato
Tips & Tricks Cover

Configuring DHCP Server to Assign Hostname via DHCP

Begin by installing the DHCP server package. sudo pacman -S extra/dhcp dhcpcd Next, set a custom hostname within the DHCP configuration file. sudo vim /etc/dhcpcd.conf Within this file, add or modify the host declaration to assign a specific hostname to a client: hostname OPPO-A3s ### This is set your device name OPPO-A3s in a network Finally, restart the DHCP server to apply the changes. sudo systemctl restart dhcpd.service sudo systemctl restart dhcpcd.service

January 13, 2026 · 1 min · Gajendra Mahato
Tips & Tricks Cover

Easy Guide to Fixing GRUB on Garuda/Arch Linux in BTRFS File System

This simple guide helps you fix the GRUB bootloader on Garuda Linux with a BTRFS file system. Follow these steps to install the necessary tools, mount partitions, fix GRUB, and check EFI entries. Step 1: Install garuda-tools-base-git You need the garuda-tools-base-git package to manage GRUB on Garuda Linux. Install it using pacman: sudo pacman -S garuda/garuda-tools-base-git This package is only available for Garuda Linux and won’t work with other Arch-based distributions. ...

January 13, 2026 · 2 min · Gajendra Mahato
Tips & Tricks Cover

Pipewire Audio Server with Equalizer support in Arch Linux

paru -S easyeffects lsp-plugins

January 13, 2026 · 1 min · Gajendra Mahato
Tips & Tricks Cover

Saving the Current Pane Buffer in tmux

This guide explains how to save the contents of the current pane in tmux to a file. Step-by-Step Instructions Capture the Pane’s Content: Press prefix key Ctrl+b to enter tmux command mode. Type :capture-pane -S - -E - and press Enter. This captures the entire visible contents of the current pane to a buffer. Save the Buffer to a File: Press prefix key Ctrl+b again to enter tmux command mode. Type :save-buffer /tmp/pane_output.log and press Enter. This saves the buffer content to a file named /tmp/pane_output.log. Combined Command Method You can capture the pane’s content and save it to a file using the following commands in your shell within the tmux session: ...

January 13, 2026 · 1 min · Gajendra Mahato
Tips & Tricks Cover

Set Default Terminal in Gnome Desktop Environment

gsettings set org.gnome.desktop.default-applications.terminal exec tilix gsettings set org.gnome.desktop.default-applications.terminal exec-arg -x gsettings set org.gnome.desktop.default-applications.terminal exec-arg --quake

January 13, 2026 · 1 min · Gajendra Mahato
Tips & Tricks Cover

Switch Back to PulseAudio server in Arch Linux

Title: Disable Pipewire Audio Service To disable the Pipewire audio service, run the following commands: systemctl --user disable pipewire pipewire.socket systemctl --user mask pipewire pipewire.socket systemctl --user enable --now pulseaudio.service Uninstalling Pipewire To uninstall Pipewire, you can use the following command: paru -Rdd pipewire-pulse pipewire-support pipewire-alsa Installing Pulseaudio To install Pulseaudio, run: paru -S pulseaudio-alsa pulseaudio-bluetooth pulseaudio-equalizer-ladspa pulseaudio-jack pulseaudio-lirc pulseaudio

January 13, 2026 · 1 min · Gajendra Mahato
Tips & Tricks Cover

Wi-Fi Interface management Cheat Sheet

Airmon-ng To start monitoring mode on wlan0: sudo airmon-ng start wlan0 iwconfig To enable monitor mode using iwconfig: sudo ifconfig [INTERFACE] down sudo iwconfig [INTERFACE] mode monitor sudo ifconfig [INTERFACE] up iw To enable monitor mode using iw: sudo ip link set [INTERFACE] down sudo iw [INTERFACE] set monitor control sudo ip link set [INTERFACE] up Adding a New Monitor Interface To add a new monitor interface: sudo iw [INTERFACE] interface add [NEW_INTERFACE] type monitor Aircrack-ng Installation To install aircrack-ng: sudo apt-get update sudo apt-get install aircrack-ng Airmon-ng Commands To use airmon-ng commands: ...

January 13, 2026 · 1 min · Gajendra Mahato
Tips & Tricks Cover

Configure Custom DNS Servers in Arch based Linux.

First of all, check openresolv package is installed in your system or not. if not then simply install it by: sudo pacman -S extra/openresolv Step 2: Remove Immutable Permissions # Check for immutable permissions on /etc/resolv.conf lsattr /etc/resolv* # If immutable permissions exist, them remove it by sudo chattr -i /etc/resolv.conf Step 3: Set Custom DNS Servers # Edit the resolvconf.conf file sudo nano /etc/resolvconf.conf # Configuration for resolvconf(8) # See resolvconf.conf(5) for details resolv_conf=/etc/resolv.conf # If you run a local name server, you should uncomment the below line and # configure your subscribers configuration files below. #name_servers=127.0.0.1 ###### Block malware with 1.1.1.1 for Families ##### name_servers=1.0.0.2 name_servers=1.1.1.2 ###### Use 1.1.1.1 resolver ###### name_servers=1.0.0.1 name_servers=1.1.1.1 ###### AdGuard DNS ###### # name_servers=94.140.14.59 # name_servers=94.140.14.49 ######### AdGuard Non-filtering DNS ####### name_servers=94.140.14.141 name_servers=94.140.14.140 Enable dhcpcd services to work Custom DNS. if it is not installed in your system then install it by sudo pacman -S extra/dhcpcd sudo systemctl enable --now dhcpcd.service Conclusion: You’ve successfully configured custom DNS servers on Arch based Linux. Enjoy improved network security and privacy with your chosen DNS servers. ...

January 13, 2024 · 1 min · Gajendra Mahato