Blog
-
Pacman Universal Configuration
Configuration file reference: Arch manual pages
You can directly copy and replace your pacman.conf file (remember to back up)
This article is part of the ArchLinux Configuration Guide.
Of course, you can also read it separately
-
Seamlessly Migrating from Firefox Stable to Developer Edition
Mozilla's Major Blunder: Certificate Expiration Renders Firefox Extensions Unusable Worldwide This morning Mozilla played a not-so-small joke on Firefox users worldwide. Many woke up to find all their browser extensions non-functional, including on mobile versions.
Thus, how to seamlessly transfer data became the primary goal.
First, back up Firefox's user data folder. On Linux, this is the
.mozillafolder in the user directory. -
WebSocket+TLS+CDN+Web: Deploying V2Ray with Apache2
Many online tutorials contain errors - this article aims to provide corrections and comprehensive guidance.
This article references official documentation, Plain Language Tutorial, Github issue, and https://ferrummagnus.com/2017/12/22/v2ray-websocket-tls-apache/, but you don't need to check them.
Prerequisites: You have a server running Apache2 with an established blog.
-
Python3 Download and Parse xml.gz Files
Scenario: Need to fetch a GZip-compressed XML file from the web and parse it using Python3.
Requirement: Want to parse the raw data directly without saving as a file first.
Common approach: First save as a file, then use Python3's gzip library to open and parse the file.
-
Load Balancing V2Ray Multi-Protocol Multi-Server Setup with HAProxy
V2Ray's built-in load balancing strategy only offers random selection, which is clearly insufficient for unstable networks.
ShadowSocks can use HAProxy for load balancing, but V2Ray supports multiple protocols, making this approach impractical.
We can leverage Docker's features to create a network that uses HAProxy for load balancing while automatically maintaining a list of available nodes (utilizing HAProxy's health check feature and V2Ray's Dokodemo-door).
NOTE: Almost all code in this article can be copied and used directly, but I strongly recommend reading the comments carefully.
-
Converting EXT4 Root Filesystem to XFS (Arch Linux)
XFS offers more modern features compared to EXT4 and performs better when handling large numbers of files
References: XFS vs EXT4, Why did CENTOS 7.0 choose XFS as the default filesystem? What are the advantages of XFS over ext?, Ext4 vs XFS – Which one to choose?
NOTE: Since XFS cannot shrink partitions, it's recommended to use LVM for flexibility
Prerequisites: Arch Linux system with LVM+EXT4 disk management
Technical references: Change Root File System from Ext4 to Xfs on Archlinux, XFS (简体中文), LVM (简体中文)
-
Smooth Physical Disk Replacement (Upgrade) with LVM While Preserving Data
Prerequisites
- Using LVM
- Need to upgrade (replace) hard drive but don't want to reinstall the system or manually copy data
-
Installing WordPress with Docker and Quickly Migrating All Data Manually
Environment selection: Bare metal -> Docker
Main software choices: NGINX, MariaDB, phpMyAdmin
Due to MySQL's excessive memory requirements, the original server configuration could no longer support its operation.
Therefore, purchased a new server configuration on DigitalOcean and decided to deploy using Docker for easier management.
-
Arch Linux Hibernation Using Swap File
In most cases, we generally use Swap File for easier adjustment and configuration flexibility.
-
Deploying V2Ray with Docker
There are limited Chinese resources on Docker deployment for V2Ray. Here's some reference material.
Installing Docker Service
- Install Docker using package manager (using pacman as example):
sudo pacman -S docker - Obtain Docker operation permissions (refer to Docker Wiki):
sudo groupadd docker sudo usermod -aG docker $USER - Start Docker service:
sudo systemctl enable docker sudo systemctl start docker
- Install Docker using package manager (using pacman as example):