Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Install Python in macOS

There are a few ways to install Python in Mac.

  1. Install system-wide via the official Python installation package.

  2. Install a Anaconda Python distribution locally.

  3. Install locally using Homebrew (recommended).

A few comments about different ways of installation.

  1. Avoid installing multiple versions of Python in your system. It usually brings more …

Take Screenshot on Linux

ksnip

Ksnip is a Qt-based cross-platform screenshot tool that provides many annotation features for your screenshots. It is one of the best screenshot applications.

Installation Using snap

sudo snap install ksnip

flameshot

Flameshot is a simple cross-platform screenshot software.

Shutter

Shutter is a good screenshot application for Linux (only).

Docker in WSL 2

Tips and Traps

  1. Docker on WSL 2 works great. However, the performance of IO is extremely bad if it access the Windows filesystem. For more discussions, please refer to WSL 2 Filesystem .

  2. Docker containers launched from a WSL (e.g., Ubuntu) shell will continue to run after the WSL shell …

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 …