Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Compress and Decompressing Archives in Linux

Tips and Traps

  1. Always test integrity of the compressed file before you throw away the original archives. I've seen a case before that a large zip file generated in Windows cannot be unzipped correctly in Linux. Not sure what happend though.

  2. Zstd is currently the best compression/decompression tool. It …

Schedule Task Using Cron in Linux

Note: Cron is great for simple scheduling requests. For complicated scheduling with many dependencies you probably want to go with AirFlow .

Installation

Cron is usually installed by default. It not (e.g., if you are using a Docker image), you can install it using the following command (on Ubuntu).

wajig …

Things to Do After Installing Linux

Note: The tips here are for Debian-based Linux distributions (Debian, Ubuntu, LinuxMint, Pop!_OS, AntiX, etc.).

Debian Specific

  1. If you installed Debian without a desktop environment, and wants to install a customized desktop environment now, make sure to install a DE manager (e.g., gdm, lightdm, etc.) as well. without …

Permission Issues when Installing Softwares in Linux

Sometime when you install softwares in Linux, you get an error message saying that you do not have permission while you used sudo or the root account. This probably means that you do not have full access to some installation files. An easy way to solve this problem is to …

Tips on Installing Debian Series of Linux Distributions

Before Installation

Debian Specific

  1. You'd better not install back ported Debian images, as it might cause issues with other software (e.g., VirtualBox). It is suggested that you use Debian test.

Other Debian-based Linux Distributions

  1. Download the right ISO image of the Linux distribution that you want to install.

  2. Create …

Ways to Make a Bootable Flash Drive in Linux

Use Ventoy

Ventoy is the best graphical tool for making bootable flash drives currently.

Use the Command dd or cat

You can use

dd if=path_to_linux_image of=path_to_device bs=4M; sync

or

cat path_to_linux_image > path_to_device

to write a hybird Linux image into a flash drive. Note that you must …