Category: Linux

0

Enable DISCARD/TRIM support for LUKS encrypted disk

The Gist Sources https://wiki.archlinux.org/title/Dm-crypt/Specialties#Discard/TRIM_support_for_solid_state_drives_(SSD) https://wiki.archlinux.org/title/Dm-crypt/Specialties#Disable_workqueue_for_increased_solid_state_drive_(SSD)_performance https://gist.github.com/Edu4rdSHL/8f97eb1bab454fb2b348f1167cee7cd2  

0

Manually run dkms to build kernel modules

Some time dkms will fail to build a new version of a module after package upgrade or kernel upgrade, so this is my quick notes about this *note: you don’t need to add the...

0

Using gpg (1.x) with gpg-agent (v2.x)

If one needs to sign/encrypt multiplies files and the PGP key is encrypted, they can use the gpg-agent to keep the key accessible for some period of time and enter the password once. For...

GTK+ logo 0

Overwrite the default GTK theme per application

I love using a dark theme on my system, currently I’m running the Adapta theme. But not all applications looks great in dark themes, some need tweaking, this is a quick hack to overwrite...

Java in A container 0

Running Java GUI application in Docker

This is a more specific use case of running GUI application with Docker, the procedure is pretty simple (and most option are common for most GUI application), You mount the UNIX socket for the...

0

Setup NAT on Linux (iptables/nftables/firewalld)

The  Setup Having this set up where Machine A like to connect to the Internet via Machine B. Iptables Add the following lines to the iptables and make sure to enable forwarding on Machine...