Even the faintest ink beats the strongest memory.
-
Error “Couldn’t create temporary file /tmp/apt.conf” when executing apt update
The solution that I found is that you’ll have to change the permission on the folder of /tmp. chmod 1777 /tmp You’ll have to sudo it if needed. The normal settings for /tmp are 1777, which ls shows as drwxrwxrwt. That is: wide open, except that only the owner of a file can remove…
-
How to solve error “ping: socket: Operation not permitted” when a non-root user executes ping command
Check where the ping command is: which ping And on my screen, the output is: /bin/ping Then check permissions on this command: ls -l /bin/ping And I see the below output: -rwxr-xr-x 1 root root 72776 Jan 30 2020 /bin/ping And I execute the below command to change permissions: sudo chmod u+s /bin/ping I redo…
-
Play YouTube When Screen is Locked on Android Phone (Without Paying for YouTube Premium)
This is a legitimate requirement, for example, when I only need to listen to the audio track of a YouTube video while placing my phone in my pocket during commute hours. Typically, if you don’t pay YouTube Premium membership, you don’t have this “play in the background” feature on your YouTube app. And now there…
-
How to Switch Back to the “Desktop” tty After Using Ctrl+Alt+F1
I encountered this titular problem on my ZorinOS today. And the solution is a pretty simple command “w”, which can show which tty is the Desktop “xfce4-session” is running. Once you know this tty number “n”, a quick combo keystroke of ctl+alt-Fn can quickly bring back the beautiful familiar GUI.
-
How To Fix “Windows Can’t Be Installed On Drive 0 Partition 1” Error
Just encountered this titular error when I tried to reinstall Windows 10 on a 5-year-old laptop with a SATA disk under AHCI mode. After a simple search, YouTube/Google did give back a slew of videos that feature, most likely, a very welcoming Indian accent. However, they are all quite lengthy and wordy. Luckily the below…
-
How to Add Book Covers for Downloaded Ebooks in Kindle Paperwhite
Quick tutorial as follows: Step 1: Forget all Wifi connections and enable airplane mode, and make sure you never let your Kindle connect back to the Internet again. Step 2: Download the latest version of the Ebook management APP “Calibre” and upload all your books (that you want to put on Kindle) to Calibre’s lib.…
-
How to fix a jumpy scroll wheel on your mouse
My ergonomic/vertical mouse recently started to give me headaches as when I used the scroll wheel, the scroll bar often goes the opposite direction. I found below a simple hack of placing a tiny bit of paper into the encoder extremely helpful. Shoutout to below video creator and his link here: https://www.youtube.com/watch?v=_JwUUjLzAMY&ab_channel=OrkhanAliyev
-
Internet Speed Testing from Command Line on Linux
Most of us are quite familiar with speedtest.net and fast.com’s speed testing service. And also they both provided command line alternatives that are quite easy to install and follow. For speedtest.net, please see their official installation instructions: https://www.speedtest.net/apps/cli For fast.com, here is an tutorial that works fine for my instances: https://www.tecmint.com/fast-test-internet-download-speed-in-linux
-
How to Fix “Failed to connect to bus: No such file or directory” Error When Executing “hostnamectl” on Debian
I bumped into this error when spinning up bitnami wordpress OVA VM in my EXSI hyppervisor when executing the command “hostnamectl”. The root cause is that the dbus package is not installed. To install the dbus package, use below command: $ sudo apt-get install dbus Then check two relevant services’ statuses using below: $ sudo…
-
How to Change Kali Linux’s Default User to Root in WSL
After installing a couple of Kali distros in WSL in Windows, I often bumped into below error messages when I was trying to use sudo as a non-root user: Since this is an extremely anonying behavior, which seems to be typical only for the WSL version of Kali, I decided to use root as the…