Ben Chuanlong Du's Blog

And let it direct your passion with reason.

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 …

Best Filesystem Format for Cross-platform Data Exchanging

FAT32

FAT32 is an outdated filesystem. The maximum size for a single file is 4G. You should instead exFAT instead of FAT32 where possible.

exFAT

exFAT is great cross-platform filesystem that is support out-of-box by Windows, Linux and macOS. There is practically no limit (big enough for average users) on …

Make Windows Restart Regularly

My Windows PC in my office slows down signficantly after running for several days. I have cleaned up the startup applications to the most I can. The only way I can think of is to automatically restart the computer early morning every few days. The article [Windows10] How to set …

Install Python Packages Behind Firewall

It is recommended that you use pip to install Python packages.

  1. If you don't already know the proxy in use (in your company), read the post Find out Proxy in Use to figure it out.

  2. Set proxy environment variables.

    set http_proxy=http://user:password@proxy_ip:port
    set https_proxy=https://user …

Missing Grub Menu of Windows Operating System

I came across this problem after I installed both Debian and Windows 7 system on my laptop. After searching online, I found a solution to this problem. 1. Open /etc/default/grub as root user and make sure the following line is somewhere in the file and uncommented:

    GRUB_DISABLE_OS_PROBER=false …