This is my second personal note. As the title suggests, these are my own personal notes (from a personal perspective) used to record some knowledge points I encounter in daily life that need to be noted down.
All content will not be explained in detail — only operations are covered. Look things up on your own if needed. The content in personal notes is generally quite fragmented and messy, so please bear with me.
Installation
apt purge ntp chrony
apt update
apt install systemd-timesyncd
Configuration
nano /etc/systemd/timesyncd.conf
[Time]
NTP=time.cloudflare.com time.apple.com time.windows.com
(If your machine is located in mainland China)
[Time]
NTP=ntp.ntsc.ac.cn ntp.aliyun.com ntp.tencent.com
Restart the service
systemctl restart systemd-timesyncd
Set RTC to UTC
timedatectl set-local-rtc 0
Set the server to UTC+8
Check the running status
For Docker installation, you can refer to: Detailed Guide to Installing Docker on Linux with Basic Commands
Alternatively:
Pull and run the image
Download the file
Extract and grant execution permissions
Create the configuration file
Write the configuration file
timedatectl set-timezone Asia/Shanghai
timedatectl
curl -fsSL https://get.docker.com | bash -s docker
docker run -d --name socks5 --restart=unless-stopped -p <PROXY_PORT>:1080 -e PROXY_USER=<PROXY_USER> -e PROXY_PASSWORD=<PROXY_PASSWORD> serjs/go-socks5-proxy
<PROXY_PORT> is the external access port
<PROXY_USER> is the connection username
<PROXY_PASSWORD> is the connection password (set it long; recommended starting from 16 characters with mixed upper and lower case)
wget -O realm.tar.gz https://github.com/zhboner/realm/releases/download/v2.9.3/realm-x86_64-unknown-linux-gnu.tar.gz
tar -xvf realm.tar.gz
chmod +x realm
mv realm /usr/local/bin/
mkdir -p /etc/realm
nano /etc/realm/config.toml
[network]
no_tcp = false # Whether to disable TCP
use_udp = true # Whether to enable UDP
[[endpoints]]
listen = "0.0.0.0:22" # Relay listening port
remote = "1.1.1.1:22" # Target server IP:port
[[endpoints]]
listen = "0.0.0.0:3389" # Relay listening port
remote = "3.3.3.3:3389" # Target server IP:port
...