Ben Chuanlong Du's Blog

It is never too late to learn.

ModuleNotFoundError: No Module Named _Ctypes in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Issue

The error message "ModuleNotFoundError: No Module Named _Ctypes" is thrown when using Python.

Cause

A crucial built-in module, _ctypes, is either missing from your Python installation or cannot be located …

Dual Boot Linux and Windows

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

I personally don't see much value in dual booting Linux and Windows. Please refer to Windows Emulation on Linux if you need to run Windows apps on Linux.

Mount the Windows …

Environment Variables and Secure Path for sudo

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

sudo -E command_to_run

sudo $(which command_to_run)

sudo env "PATH=$PATH" nvim

The "correct" way is to update the secure path using the commanding sudo visudo.

For more discussions, please refer to …

Run Virtual Machines on Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

While VirtualBox is a popular cross-platform tool for running virtual machines, KVM is a superior solution for Linux as KVM is a type-1 hypervisor which runs directly on the hardware via …

Tips on Toolbx

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

I personally devoted effort on Docker images which makes it easy to develop in Docker containers.

  • Create a user with same uid/gid as the user on the host on the …