Skip to content

Instantly share code, notes, and snippets.

View tatumroaquin's full-sized avatar
🐢
steadily walking with my knowledge

Tatum Roaquin tatumroaquin

🐢
steadily walking with my knowledge
View GitHub Profile
@tatumroaquin
tatumroaquin / linux-night-light.md
Last active February 24, 2022 11:30
reduce eye strain using redshift an alternative to the outdated f.lux on linux

Redshift Night Light For Linux

Install Packages

sudo pacman -S redshift

Create Geoclue Service

cd ~/.config/systemd/user touch geoclue-agent.service

@tatumroaquin
tatumroaquin / t470-fingerprint.md
Last active January 10, 2022 02:04
A recipe to setup the fingerprint scanner on my encrypted Arch Installation

Thinkpad T470 Fingerprint Scanner Setup

Install Python Validity

yay -S python-validity
reboot

Enroll Fingerprints

WSL2 (Focal Fossa) Puppeteer Dependencies

complete one-liner

sudo apt install libnss3 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0

if you encounter an error message regarding libgbm or any other dependencies you can search it's name on apt and install it.

error messages

error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

WSL2 Common Problems Fixes

Hash Sum Mismatch

  • when performing the standard sudo apt update and installing a package often you might see an error message that stating it failed to fetch the package due to checksum mismatch
  • upon further researh on the ubuntu forms, the issues seems to be related to SHA256 optimization introduced from libcrypt20

gcrypt solution:

sudo su -
apt-get clean
@tatumroaquin
tatumroaquin / linux-wpa-enterprise.md
Last active December 20, 2021 10:47
A simple guide for authorization against enteprise wireless networks which utilises PEAP and MSCHAPv2

WPA Enterprise / University Wi-Fi Networks

This document serves as a guide for authenticating and connecting towards enterprise level or university wireless networks. From a linux host using NetworkManager and the nmcli tool.

Add Connection Profile

nmcli connection add type <wifi/ethernet> ifname <wlp4s0/wlan0> con-name <profile-name> ssid <wifi-ssid>

Turn on DHCP

nmcli connection edit 

Linux Problems

popping sound when playing audio on headphones

  • this is caused by 'power-saving' enabled by default on audio devices.
  • when playback is paused the audio device gets turned off, and upon resuming playback the devices gets a surge of power which causes the speaker drums to pop.

TLP solution:

sudo pacman -S tlp tlp-rdw
sudo systemctl enable tlp --now

UEFI Encrypted Arch Linux (10/2021)

Bootable USB

  1. lsblk - list block devices
  2. sudo umount /dev/sdx - ensure usb is not mounted
  3. sudo dd bs=4M if=path/to/input.iso of=/dev/sdx oflag=sync status=progress

Check UEFI Support

  • ls /sys/firmware/efi/efivars
  • if the directory exist then UEFI is supported
@tatumroaquin
tatumroaquin / archlinux-qemu-kvm.md
Last active April 23, 2025 08:18
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD

Ensure that your kernel includes KVM modules

@tatumroaquin
tatumroaquin / usb-bootable.md
Last active February 28, 2024 13:02
bootable USB guide using command line

How to make a bootable USB

Requirements

  1. Any USB drive, preferably SanDisk (Cruzer Edge/Switch)
  2. Computer running Linux / Windows 10

Linux

  1. Insert the USB to your linux file system
  2. Execute umount /dev/sdX if it is auto-mounted.
  3. Use the dd utility to copy your image to the use device.
@tatumroaquin
tatumroaquin / lemp-stack.md
Last active June 24, 2021 01:40
simple LEMP stack web server

Arch Linux LEMP Stack

Install NGINX Web Server

  1. sudo pacman --noconfirm -S nginx
  2. sudo vim /etc/nginx/nginx.conf
// Modify the following
location / {
   root           /usr/share/nginx/html;
   index          index.html index.php;