Linux tricks, tutorials, hardware

My blog will mostly talk about Desktop Linux & it's administration, general philosophy and software politics.

Thursday, April 10, 2025

Debian trixie source.list (with unstable and experimental added) and corresponding apt pin configuration.

›
 This is the /etc/apt/source.list --  deb http://deb.debian.org/debian/ testing main contrib non-free non-free-firmware deb-src http://deb.d...
Thursday, March 27, 2025

xfs vs ext4 squential operation benchmark (both on HDD and nvme)

›
Methodology sequentially writing a 5GB file with cache -- cat /dev/urandom | tee /dev/stdout | tee /dev/stdout| tee /dev/stdout| tee /dev/st...
Wednesday, December 11, 2024

Getting HP K209a-z to work on Gentoo (hpaio SANE backend)

›
This printer requires the hpaio SANE backend which will be made available if you install net-print/hplip[-minimal] along with sane-backends....
Tuesday, November 5, 2024

k8sCertsFlatify: Script to dump TLS certificates in Kubernetes to flat files.

›
A script which extracts 1 or multiple tls/ssl certificates from a kubernetes cluster to PWD. NOTE: Will not check the TLS certificate of the...
Monday, October 14, 2024

Canon Pixma E470 on Linux.

›
This printer works out of the box on Debian 10 (which is deprecated as of now). It was added to CUPS automatically. I'm not sure which p...

Apache + PHP: too many connections in CLOSE-WAIT state.

›
 This is happening because your PHP scripts are not exiting. They hang up for whatsoever reason (like waiting form some network i/o etc...)....
Sunday, September 22, 2024

Clang "error: unknown target triple 'unknown'" on Gentoo.

›
 If you've set ' LLVM_TARGETS=' remove it and rebuild llvm + clang (in order). I couldn't reproduce the bug however. If you ...
Friday, August 23, 2024

agetty autologin prompting for password

›
You've added --autologin to agetty in whatever ways (like modifying or creating a new systemd unit). In that vtty, the user DOES login b...
Monday, April 1, 2024

Prevent systemd from killing a child (sub-process) process on a service stop.

›
Because of cgroups, systemd knows which process belongs to which systemd unit even if it daemonizes (even to systemd/init). The...
Monday, March 4, 2024

Washermod vs contact frame.

›
I recently got a contact frame and replaced it with washermod -- benchmarked it and found no difference.
Monday, December 25, 2023

Secure openwrt WOL with no open ports (firewall/nat etc...)

›
The objective of this article is to achieve WOL in a setup where Internet access is behind a NAT or has a firewall which allows no open conn...
Tuesday, November 7, 2023

Washer mod results on an i3.

›
I noticed that the temps on my i3 (Alder lake) was pretty high for an i3. So I did a washer mod and calculated an approx 12 degree drop in t...
Wednesday, July 19, 2023

Using the script command to record all your shell output and commands transparently.

›
 In your bashrc file (either /etc/bash.bashrc, or /etc/bashrc or /etc/bash/bashrc etc...) add the following lines by the very end --  if tes...
Monday, June 19, 2023

Improving cooling of laminar cooler (on steroids, faster fans, mod/hack) by replacing it's stock fan.

›
The great thing about Intel's laminar coolers is that you can take the fan off by removing 4 screws --  Here I have it attached on the m...
Wednesday, September 21, 2022

Promql query to get the average/max/min CPU utlization, network rate and memory

›
CPU utilization in the last 24 hours --  highest – 100 - min_over_time((avg without(cpu)(((node_cpu_seconds_total{mode=`idle`} - (node_cpu_s...
Monday, October 4, 2021

Ignoring XXX because its extensions are not built. Try: gem pristine…

›
 After trying out whatever tips and tricks that others have suggested, and this issue still doesn't resolve, this maybe a permission iss...
Sunday, June 6, 2021

Backporting gtk-gnutella on Debian buster.

›
 It seems Debian 10 does not have this package in the repository, but Debian unstable has. So we'll try building a deb for Debian buste...

Debian buster -- Working VAAPI (hardware video decoding) for newer intel hardware (like ice lake/gen 11 intel GPU (UHD)).

›
In case you cannot get hardware video acceleration to work on your new Intel processor, apart from trying to install the backported kernel, ...
Tuesday, May 25, 2021

Error: Server asked us to run CSD hostscan.

›
Anyconnect has provisions of a ‘CSD script’… via which basically a remote program which’ll be downloaded from the VPN server an...
Wednesday, March 17, 2021

Restricting access based on IP on NFS v4 with fsid=0

›
There’s a scenario when you want to restrict people from mounting things under a directory, for e.g. /home/test/ based on their...
Thursday, February 4, 2021

Running older systems (which need cgroupv1) on systems running over cgroupv2 (systemd.unified_cgroup_hierarchy)

›
Run the command -- mount | grep cgroup on your host system, and if you see the all the mount entries as cgroup2 fs (instead of cgroup), then...
Thursday, November 19, 2020

Asus P1440FA-3410Z linux compatibility.

›
 This laptop in reality comes with Linux pre-installed (mine did); so is 100% linux compatible including the wifi.
Friday, November 6, 2020

Moto 3G (2015) (osprey) -- no audio from speaker or wifi.

›
I think this's a hardware issue. To try and resolve the issue, make a call on mobile network and turn the speaker on. The issue must res...
Friday, October 16, 2020

[spreadsheet][ods]Unsprung/rotating mass (wheel/sprocket/tyre) power loss calculator for cars bikes and motorcycles

›
 In case you're wondering how much power will you get when you replace you wheel or sprocket or tyres to lighter ones, this spreadsheet ...
Thursday, October 8, 2020

D-Link DWM-222 4G on Linux.

›
Will work on any new Linux distribution out of the box. No need to install the 'driver's. In case yours is an old Linux distribution...
Thursday, September 10, 2020

Mystery high feaver (ranging from 99 to 103) comes and goes with extreme chills (sometimes)

›
One of my relatives (old) had this kind of mysterious fever. It used to go away in 3 days, and then used to come back within around 5 days. ...
Tuesday, September 1, 2020

Matching encoded URLs using regexp/regular expressions (optionally in fail2ban).

›
Your regular expression can fail against attackers doing attacks by encoding their URLs; fail2ban will not detect those, neither your regula...
Monday, June 1, 2020

Nikon A900 review and issues/problems/drawbacks.

›
Everything about the camera is expected; for the size, it's the best that you can get at night photography (which is still deficient) as...
Monday, August 12, 2019

Lineage/resurrection remix/Android: Audio stops when earphones are plugged in.

›
Sometimes, when you plug in your earphones, the audio stop coming (from the earphones), but the notification sounds continue to come. You...
Sunday, May 12, 2019

Linux technologies (kernel, bash etc...) support for Windows -- for a better monopoly.

›
And when you start to think in modern times when Microsoft loves Linux and opensource; the question arises, is it really the truth? Does Mic...
Thursday, August 30, 2018

Fixing kernel: "unregister_netdevice: waiting for to become free. Usage count = "

›
This's a kernel bug which'll cause docker to hang and is triggered by you stopping a container (which possibly does not stop gracefu...
Saturday, March 31, 2018

Bash history sanitize/cleaner.

›
instead of cleaning your bash history, this script will remove problematic history entries, thus sanitize it. #! /bin/bash # Without argu...

The mysterious case of engine oil thinning (AKA oil sheering)

›
If you're someone who rides at high RPM and have a vehicle which's capable of going to high RPMs (6000+) your engine oil might be su...
Saturday, September 30, 2017

Understanding inner workings of crossdev.

›
The crossdev executable is going to install a toolchain in your host machine for a foreign architecture as regular ebuilds. T...
Tuesday, September 19, 2017

systemd-logind -- "Failed to start Login Service." on Debian 8

›
This issue comes on LXC when you enable dbus so you can communicate to systemd; don't know why this triggers. You need to add the sys_...
Wednesday, August 9, 2017

Using curb with custom verb/methods, headers and body.

›
The Easy method of Curb does not allow arbitrary request methods to be made. Instead of using Easy, you can use the Curl module. In curb...
Sunday, July 30, 2017

Script to group files/directories to reach the closest desired/target size.

›
Program takes a list of files and directories as a set of last arguments and outputs the paths of each of the files/directories which has be...
Monday, July 24, 2017

lxc-console prints duplicate characters (crippled/corrupt console).

›
This happen on Debian. After an upgrade to lxc 2.0.x, lxc-console does not work well. Produces duplicate characters, cannot log in because o...
Thursday, June 15, 2017

-flto-partition=balanced and -flto-partition=1to1 benchmark

›
I compiled grep and libpcre, once with balanced and once with 1to1 (and of course with -lto=4 in both the cases), and the result was that gr...
Friday, May 12, 2017

Persistent/resilient ssh sessions for unstable internet connections.

›
Long back SSH had introduced an experimental 'roaming' feature where changes to the ssh client IP resulted in resuming the session o...
‹
›
Home
View web version
Powered by Blogger.