1. Docker Installation
- Install Docker Desktop for Windows and Mac
https://docs.docker.com/desktop/setup/install/windows-install/
- Install Docker Engine for Linux
2/25/26About 3 min
https://docs.docker.com/desktop/setup/install/windows-install/
Reference: https://www.wireguard.com/install/
Windows Version Download Link: https://download.wireguard.com/windows-client/
Ubuntu (Debian) Installation:
Download NSSM: https://nssm.cc/download
# Register rclone mount as a service
nssm install RcloneMount D:\rclone-v1.70.3-windows-amd64\rclone mount minio:back-bucket Y:\ --links --vfs-cache-mode writes
# Start the service
nssm start RcloneMount
# Register GeoServer as a service
nssm install GeoServer D:\geoserver-2.18.2\bin\start.bat
# Start the service
nssm start GeoServer # Note: Copy an instance of nssm to the geoserver directory when using this
Recently, I needed to use Ubuntu for development. Setting up a full virtual machine consumes too many resources, and since WSL is available, I decided to install WSL for Ubuntu development. Honestly, this is much better than a virtual machine, especially WSL2, which can directly access the host's GPU (tested and works great). Without further ado, let's get into today's main topic.
const k = new NodeRSA({ b: 512 }); // 512 The larger the number, the harder it is to crack, but it takes longer
const data = k.generateKeyPair();
const privateKey = data.exportKey("pkcs8-private-pem");
fs.writeFileSync("privateKey.pem", privateKey, { encoding: "utf-8" });
sudo vim /etc/apt/apt.conf.d/80proxy
Acquire::http::proxy "http://10.10.1.20:8080/";
Acquire::https::proxy "http://10.10.1.20:8080/";
# Acquire::ftp::proxy "ftp://10.10.1.20:8080/";
Install Easy-RSA for generating certificates: Link
/etc/gai.confsudo vim /etc/gai.conf
docker pull dockerpull.org/nginx:1.16.1 # Use the dockerpull.org source