Everything about Linux, Networking, and Raspberry Pi.

cover image about Raspberry Pi's weak points

When not to Pi: Projects you shouldn't give to your Raspberry Pi

For a long time, I have pictured Raspberry Pi as the perfect computer. It’s cheap, its price is low, the manufacturing costs are minimal. To me, the most significant advantage of a Pi to a conventional computer is: “I won’t feel any remorse after accidentally breaking a Raspberry Pi or ripping it apart.” So why aren’t Raspberry Pis used everywhere? Turns out Pis are known to the State of California to cause [REDACTED], if consumed....

September 10, 2021 · 3 min · bhat
cover image about optimizing Linux laptop for longer battery life

Improve Battery Life on Linux Laptop to the Extreme

Recently I got a new laptop. It is an ASUS Zenbook flip model with i7-1165G7 (4 core…). I thought about getting an AMD model, but if there is anything good about Intel these days, it is their Linux support for mobile CPU. Right after I got this laptop, I did the thing any conscious human would do: Putting Arch Linux on it. The bundled Windows 10 is anything but user-friendly. Upon first boot, the laptop immediately exploded....

September 10, 2021 · 6 min · bhat
cover image about obfuscating Wireguard with TCP

Wireguard over TCP with udp2raw

Is your Wireguard server not as fast as you thought? Does it suffer from constant disconnects and packet drops? Sometimes, it is simply caused by Wireguard using UDP instead of TCP. In some public networks, the ISP loves interrupting UDP traffic. With a technique called Quality of Service, they deliberately slow down UDP traffic to avoid network congestion in busy hours. As much as I hate it, they are probably doing the right thing....

July 26, 2021 · 3 min · bhat
cover image about improving Raspberry Pi file transfer speed

3 Ways to Speed up Raspberry Pi's File Transfer

The Raspberry Pi 4 is the fastest of all Pi. It brings new interfaces to the Pi family: The USB 3.0 port, and gigabit ethernet. Now, people won’t have to be constrained by the crappy USB 2.0 interface of the previous Raspberry Pi generations. The Raspberry Pi Compute Module 4 is even better. A whole PCIe 2.0 port? That’s like 5Gbps of transfer speed! That is enough to enjoy the lightning speed of NVMe SSDs....

July 17, 2021 · 5 min · bhat
cover image about deleting files

Easily Copy/Delete Hidden Files in a Directory

Those nasty little dot files… When I tried to setup a Gitlab continuous deployment, I encountered a tiny problem: How to remove all files within a Linux directory? Apparently it is quite easy. Just with a simple rm -rf dir/* Wrong! The above command rm -r dir/* only remove all visible files and directories from the directory dir. It does not remove hidden files and directories. Similarly, I also had to copy all files from one directory to another....

July 13, 2021 · 3 min · bhat