Wireguard installation notes

Article directory Prerequisites WireGuard installation (Wg-easy) docker common commands VPS安装Wireguard的先决条件 Devices with public IP addresses/IPV6 are also available (this note uses a VPS with Ubuntu18.04 operating system as an example) VPS enable SSH Install Docker on VPS Installation steps of VPS Wireguard 1. Docker installation sudo apt install docker.io docker-compose sudo service docker start whoami sudo usermod -aG docker {ubuntu} //添加用户进docker组 exec su - $USER //输入密码2. Create Wg-easy password and key docker run -it ghcr.io/wg-easy/wg-easy wgpw {你的密码} PASSWORD_HASH='$2a$12$NJOIUwURc7qX4XnihBNKqOTSqKVxGJahAmwg6FUuboLvxzapBCYHK' //{你的密码} //系统自动开始拉取镜像并返回密码密匙 //复制保存好密匙3. Run wg-easy docker image docker run --detach \ --name wg-easy \ --env LANG=en \ --env WG_HOST={你的服务器地址} \ --env PASSWORD_HASH='{步骤2中获取的密码密匙}' \ --env PORT=51821 \ --env WG_PORT=65534 \ --volume ~/.wg-easy:/etc/wireguard \ --publish 65534:65534/udp \ --publish 51821:51821/tcp \ --cap-add NET_ADMIN \ --cap-add SYS_MODULE \ --sysctl 'net.ipv4.conf.all.src_valid_mark=1' \ --sysctl 'net.ipv4.ip_forward=1' \ --restart unless-stopped \ ghcr.io/wg-easy/wg-easy docker ps //查看容器 运行状态 以及列表 docker stop wg-easy //停止容器 docker start wg-easy // 启动容器 docker rm wg-easy //删除容器4. Log in to wg-easy and add peer When the container is running normally, you can access the server address in the browser with the port. ...

Installation of ERPNext in Ubuntu 24.04 LTS Notes Step by Step

Article Directory | Table of Contents Introduction to ERPnext Prerequisites Installation steps Summary & Quotes Prerequisites | System environment requirements Ubuntu 24.04 A user with sudo privileges Python 3.11+ pip 20+ MariaDB 10.3.x Node.js 18 Yarn 1.12+ Hardware requirements 2 Process 2 Core 4GB ram 40GB Storage Intenet Installation Steps | Installation Steps Package upgrades and creating new users Update and Upgrade Packages sudo apt-get update -y && sudo apt-get upgrade -y Create a New user ...

Solution to the problem of no data display in performance monitoring such as Proxmox memory chart

Fault phenomenon There is no data in the Proxmox performance display interface, and the time is 1970-01-01 Solution ** Synchronize system time and hardware time **: First ensure that the system time and hardware time are correct and synchronized: # 设置正确的系统时间(例如:2025-01-13 10:00:00) date -s "2025-01-13 10:00:00" # 同步系统时间到硬件时钟 hwclock -w # 检查硬件时钟时间 hwclock ** Restart PVE service **: After modifying the time, restart related services to ensure normal operation: ...

VMware Station Migration to Proxmox PVE Notes

VMware Station Migration to Proxmox PVE Notes necessary conditions There is VMS in VMware Station The VMware Station host and Proxmox server have sufficient disk space Some basic Linux command knowledge Current software version VMware Station: VMware® Workstation 17 Pro 17.0.0 build-20800274 Proxmox : Proxmox Virtual Environment 8.3.0 Operation steps Export VMS from VMware Station, the file is *.ovf Download the *.ovf exported by VMware Station to the Proxmox node Execute import command Add a new network device and copy the MAC address Step by Step Export VMS from VMware Station Click the export button ...

Wordpress ERR_TOO_MANY_REDIRECTS solution

Fault phenomenon When logging in to the WordPress backend, the browser displays “ERR_TOO_MANY_REDIRECTS” As a result, it is impossible to log in to the backend normally. Solution ideas and steps Check Cloud Flare HTTPS configuration - - OK Check the HTTPS configuration in the WEB server - - OK Check whether the siteurl and home values in the WordPress database start with https Check the value of HTTPS = ‘on’ in WP-Config.php Result verification Check whether the siteurl and home values in the WordPress database start with https ...

Linux common command notes

Linux is really easy to use Compared with Windows, Linux’s efficiency is really great. In order to prevent myself from forgetting the commands I used and to avoid having to look for them everywhere in a hurry, I wrote down a note. I’ve been busy with other things lately~ November is coming to an end so quickly, so I’ll post this in a timely manner. Vim configuration The following command can align the VIM editor and highlight the input cursor ...

Use remote PC software on local PC

Use remote PC software on local PC The reason is that in daily work, there is a need to use a certain application in the remote computer. The normal operation is to remotely access the destination PC through RD (remote desktop) and then perform the operation. This is a bit troublesome for me. I want to execute the application of the remote PC directly on my local PC. So I found “RemoteApp Tool”; ...

Deep Live cam Notes

Deep Live cam Notes Project address: https://github.com/hacksider/Deep-Live-Cam This note will not cover cuda, Python, Conda, Git, and other related computer knowledge. There are only records of steps and problems encountered when using the deployment. The following operations are all performed under the Windows operating system. My system version number is: Microsoft Windows 11 Pro 10.0.22631 Build 22631 Prerequisites Desktop or laptop computer with Nvidia graphics card Stable network environment Software or compilation tools required by DeepLiveCam ...

Markdown syntax knowledge

Markdown syntax knowledge Markdown title Use the number of # to identify the level of the title /# First level title /## Second level title and so on Markdown paragraph There is no special format for paragraphs. Generally, just press Enter to create a paragraph. But you can just leave 2 spaces after the end of the sentence Yes Markdown dividing line *** * * * ***** - - - -------------------- The above symbols can be used as dividing lines, but there must be no content in the dividing lines. ...

Install apps from Microsoft APP Store offline

Install apps from Microsoft APP Store offline Prerequisites The operating system version is Windows 10 or above Can access the Internet normally PowerShell Summary of steps Get the application APP connection in MicroSoft APP Store Download APP application Add app in PowerShell Operation steps Open the Microsoft Store page and search for the APP you want to download. https://apps.microsoft.com/home?hl=en-us&gl=US 例如Spotify: Copy the address bar and remove it? What follows ...

Setting Up SMB Service on Ubuntu 18.04

Setting Up SMB Service on Ubuntu 18.04 Table of Contents Install SMB and enable the SMB server and restart it. Add an SMB user. Edit the SMB configuration file. Permission configuration: Read (R) Read/Write (RW) Firewall configuration. Visit the SMB server on your local network. Install SMB server sudo apt update sudo apt install samba sudo systemctl enable smbd sudo systemctl restart smbdAdd an SMB user sudo smbpasswd -a usernameEdit the SMB configuration file sudo vim /etc/samb/smb.conf[WiKiFolder_for_Client] comment = Shared Folder path = /home/username/wiki browseable = yes valid users = @username[WiKiFolder_for_Client]: The name of the shared folder being defined. ...

Flash OpenIPC firmware onto SigmaStar SSC335 SoC and Sony IMX307 IPC module.

Flash OpenIPC firmware onto SigmaStar SSC335 SoC and Sony IMX307 IPC module. Requirements IPC module USB to TTL cable Windows laptop or computer Running a TFTP server on your Windows computer Results IPC module specifications Flash: GD25Q64CSIG: https://www.digikey.cn/zh/products/detail/gigadevice-semiconductor-hk-limited/GD25Q64CSIG/9484942 Soc: SigmaStar SSC335 https://linux-chenxing.org/infinity6/ssc335_pb_v03.pdf Sensor: 1/2.8" 2MP CMOS Sony IMX307 LAN Windows computer TFTP SERVER directory structure The “bin” directory serves as the current directory for the TFTP server, used to store firmware files. Disable the firewall on the Windows computer and run tftp64.exe. ...

Share an Old Printer on Your Local Network - CUPS

In this article, I will share with you about my second time installing CUPS on Ubuntu. Requriement Ubuntu 18.04 LTS Install on an Old Computer Canon E410 Series Printer Internet CUPS Installation and Configuration Step by Step Install CUPS on your system #install cups sudo apt-get install cups cups-pdf cups-bsd Back up the configuration file #copy configuration file sudo cp /etc/cups/cupsd.conf cupsd.conf.bak Editing the CUPS configuration file #add user simith to lpadmin group sudo usermod -aG lpadmin simith #edit cupsd.conf sudo vim cupsd.conf Edited cupsd.conf contents. (Configuration options not mentioned should be left as default.) #allow access port Port 63100 LogLevel warn PageLogFormat MaxLogSize 200 # Show shared printers on the local network. Browsing on BrowseLocalProtocols dnssd # Web interface setting... WebInterface Yes # Restrict access to the server... <Location /> Order Allow,deny Allow @LOCAL Allow From 127.0.0.1 Allow From 192.168.0.0/16 </Location> # Restrict access to the admin pages... <Location /admin> #access user simith can visit admin page Require user simith Order Allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 127.0.0.1 Allow From 192.168.0.0/16 </Location> # Restrict access to log files... <Location /admin/log> AuthType Default Require user simith Order allow,deny Allow @LOCAL Allow 192.168.0.0/16 </Location> Restart CUPS service and add to starup sudo systemctl restart cups sudp systemctl enable cupsEnd Finally, you can visit the Ubuntu IP address and configuration ...

Nssm installs system services in Windows operating system

Because the Frp client was started using batch processing before, every time the computer is restarted, it needs to wait until you log in before it can be started. The purpose is to start the Frp client directly after the operating system starts. In order to solve this problem, use nssm to install the Frp client into the windows service and start it as a service. In this way, it can be started directly after the computer starts. ...

"Special War Heroes" VAN9005/VAN9003 error

Introduction: This article records the process of solving the VALORANT anti-plug-in program “Riot Vanguard” error code: VAN9005 or VAN9003 in the VALORANT game on Windows 11. Reference: Adjust virtualization security (VBS) settings on Windows 10 operating system | VAN9005 | “Special War Heroes” https://support-valorant.riotgames.com/hc/zh-tw/articles/16941220890899-%E5%9C%A8Windows-10%E4%BD%9C%E6%A5%AD%E7%B3%BB%E7%B5%B1%E4%B8%8A%E8%AA%BF%E6%95%B4%E8%99%9B%E6%93%AC%E5%8C%96%E5%9E%8B%E5%AE%89%E5%85%A8%E6%80%A7-%E7%B0%A1%E7%A8%B1VBS-%E8%A8%AD%E5%AE%9A-VAN9005-%E7%89%B9%E6%88%B0%E8%8B%B1%E8%B1%AA Troubleshooting Windows 11 “VAN9001” or “VAN 9003” errors | “Special War Heroes” https://support-valorant.riotgames.com/hc/zh-tw/articles/10088435639571-Windows-11-VAN9001-%E6%88%96-VAN-9003-%E9%8C%AF%E8%AA%A4%E7%96%91%E9%9B%A3%E6%8E%92%E8%A7%A3-%E7%89%B9%E6%88%B0%E8%8B%B1%E8%B1%AA Questions about turning off virtualization-based security (VBS) in Windows 11 https://answers.microsoft.com/zh-hans/windows/forum/all/windows-11/3864f584-4090-4793-8a5b-34fd73605c91 Solution process: The guest operating system is Windows 11, and the laptop supports TPM2.0 According to the above official support document operation, after opening TPM2.0. Check the secure boot status through the msinfo32 command, but it still shows that it is not enabled. Riot Vanguard cannot run normally. So I changed the customer’s operating system to Windows 10 and closed VBS, so I could run the game normally. ...

Use IniParser to read and write ini configuration files in C sharp

Introduction: This article records the use of IniParse to read and write ini configuration files in C sharp programming. Read the Mysql database configuration file in the ini file for database connection: If you want to read configuration information from an .ini file, you can use a third-party library such as IniParser. Here’s how to do it using the IniParser library: First, you need to install IniParser using the NuGet package manager. In Visual Studio, you can execute the following command through the NuGet package manager console: Install-Package IniParser Then, create a config.ini file and add the following content: ...

搜尋文章

輸入標題、分類或文章內容

Plz typing to search for articles.