Linux tricks, tutorials, hardware

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

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...
Friday, May 5, 2017

Incremental backup system of your Android app settings and your data.

›
Phone is an unreliable device which can always be stolen and get bricked regardless of how expensive the phone is or how must reliable the m...
Tuesday, April 18, 2017

CSV to vcf/vcard converter (advanced edit android contact).

›
Spreadsheets are great! But only if you could use them to manage contacts, specially in your Android phone (or any standard compliant phone ...
4 comments:
Sunday, April 16, 2017

(semi)Static IPv6 for AWS.

›
EIP does not support IPv6, but you can still do it as long as you don't delete you VPC or make changes to your subnet. In the Interfac...
Saturday, April 15, 2017

Ultimate traffic shaping script (low prioritize/background your P2P/torrent/Bitcoin/gnutella/edonkey/emule traffic).

›
Sick of P2P traffic (like Bitcoin, torrents) hogging your Internet connection? This's the solution. It gives HTTP(S), SMPT, DNS, IM...
Saturday, March 25, 2017

Unique/Similar links/URLs grouper/sorter

›
This's a Ruby Library (and an accompanying app) -- https://rubygems.org/gems/LinkGrouper Which group similar links/URLs (or find unique ...
Saturday, February 25, 2017

Awk vs gawk vs ruby benchmark.

›
The input file contains lines start with a number or anything else. When a start with a number, it only contains 2 numbers space separated. ...
Sunday, February 5, 2017

Block device tester

›
I made this script to test block devices. First argument is the block device to test. #! /usr/bin/ruby # Will quit in case some corrupt b...
Sunday, November 20, 2016

ruby vs bash benchmark (loops comparison).

›
Bash relies highly on external commands which make it having a lot of overheads; it's the language of the command line, not a proper pro...
Thursday, November 17, 2016

nginx+fail2ban tutorial/document.

›
fail2ban + Nginx In this system fail2ban is supposed to parse nginx logs (customized) for 404 and 403 status codes and add...
Sunday, November 13, 2016

HTTRACK 'pasues' from time to time when mirroring.

›
Tired of this behaviour? No solution on the Internet? Mirroring progress slows down? Try switch -C0 or -C1. With -C0, you wont be able to ...
Saturday, August 20, 2016

Linux veth device benchmark with high and low mtu.

›
Veth devices where created -- ip link add name tstveth mtu 65535 type veth peer name tstveth0 mtu 65535 65535 is the highest MTU these d...
Wednesday, April 13, 2016

Enable electrolsys/e10s/multiprocessing on Firefox 45/ESR

›
Open "about:config" in the URL bar. Search for "browser.tabs.remote.autostart" and set it to true , then restart. Th...
‹
›
Home
View web version
Powered by Blogger.