Setup Chinese input on CachyOS
Install fcitx5 using the commands below: sudo pacman -S fcitx5-im sudo pacman -S fcitx5-chinese-addons fcitx5-rime Add the following lines to /etc/environment: # /etc/environment GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx SDL_IM_MODULE=fcitx Reboot the system.
How to expand root partition in Openwrt VM
First, add storage space to the OpenWrt VM. Using Proxmox as an example: go to your OpenWrt VM → Hardware → Hard Disk → Select the disk → Action → Resize. Second, copy and paste the following content into a shell file named expand-root.sh: # Configure startup scripts cat << “EOF” > /etc/uci-defaults/70-rootpt-resize if [ ! -e /etc/rootpt-resize ] \ && type parted > /dev/null \ && lock -n /var/lock/root-resize then ROOT_BLK=”$(readlink -f /sys/dev/block/”$(awk -e \ ‘$9==”/dev/root”{print $3}’ /proc/self/mountinfo)”)” ROOT_DISK=”/dev/$(basename “${ROOT_BLK%/*}”)” ROOT_PART=”${ROOT_BLK##*[^0-9]}” parted -f -s “${ROOT_DISK}” \ resizepart “${ROOT_PART}” 100% mount_root done touch /etc/rootpt-resize reboot fi exit 1 EOF cat…
Openwrt衍生固件的对比分析
以下是五个最常用的OpenWrt固件的对比分析,帮助你选择最适合的固件。 1. 官方OpenWrt固件 历史背景: OpenWrt是最早的嵌入式Linux路由操作系统之一,起源于2004年对Linksys WRT54G路由器的逆向工程。经过多年发展,已成为功能强大、高度可定制的开源项目,社区活跃且更新频繁。 优点: 高度灵活,支持多种设备架构。 软件生态丰富,支持数千个插件。 安全性高,内核持续更新。 缺点: 学习曲线陡峭,依赖命令行配置。 稳定性风险较高,新功能可能导致兼容性问题。 适合用户: 技术专家、开发者或需要深度定制功能的用户。 官方网站: https://openwrt.org/ 安装方法: https://openwrt.org/docs/guide-user/installation/generic.flashing 2. ImmortalWrt 历史背景: 由OpenWrt社区分支而来,强调开源和稳定性,中文社区支持度高。开发团队活跃,更新频率接近官方但更注重优化。 优点: 开源纯净,无闭源组件。 硬件兼容广,支持多种设备。 中文友好,提供中文文档和社区支持。 缺点: 功能较少,预装插件有限。 依赖社区维护,部分功能需第三方开发者更新。 适合用户: 追求稳定性与开源原则的中高级用户,尤其是中文环境下的技术爱好者。 官方网站: https://immortalwrt.org/ 安装方法: https://immortalwrt.org/docs/guide-user/installation/generic.flashing 3. Lean固件(LEDE分支) 历史背景: 由国内开发者Lean维护,最初基于OpenWrt的LEDE分支,后发展为独立项目。以集成丰富插件和闭源驱动著称。 优点: 功能丰富,预装科学上网、多拨等插件。 性能优化,支持WiFi 6/7等新协议。 缺点: 闭源组件,可能存在安全隐患。 更新滞后,稳定性依赖维护者经验。 适合用户: 需要多功能集成且不介意闭源组件的进阶用户,尤其适合网络优化玩家。 官方网站: https://github.com/coolsnowwolf/lede 安装方法: https://github.com/coolsnowwolf/lede/wiki 4. iStoreOS 历史背景: 由原koolshare团队开发,主打易用性,提供类应用商店的交互界面,降低OpenWrt使用门槛。 优点: 新手友好,图形化界面简化插件安装。 稳定性高,基于官方代码优化。 缺点: 功能受限,深度定制能力弱于原版。 硬件支持少,主要适配x86软路由和部分热门机型。 适合用户: 普通家庭用户或小白用户,追求即插即用,无需复杂配置。 官方网站: https://www.istoreos.com/ 安装方法: https://www.istoreos.com/docs/installation 5. X-Wrt 历史背景: 专注于界面优化的OpenWrt分支,改进原版Luci的交互体验,同时保持代码接近官方。 优点: 界面美观,提供更直观的Web管理界面。 兼容性强,支持多种设备。 缺点: 插件生态弱,依赖官方软件源。 维护依赖个人,更新频率受开发者个人时间影响。 适合用户: 希望平衡界面友好性和OpenWrt原生功能的用户。 官方网站: https://x-wrt.com/ 安装方法: https://x-wrt.com/docs/guide-user/installation/generic.flashing 综合分析与结论 最佳稳定性与开源性:ImmortalWrt 在开源、更新频率和中文支持上表现均衡,适合大多数技术用户。 最佳易用性:iStoreOS 对新手最友好,适合家庭用户快速部署。 最佳功能扩展:Lean固件 集成插件丰富,满足高级需求,但需接受闭源组件的风险。 最佳原生体验:官方OpenWrt 适合开发者或需要完全控制设备的专家用户。 最佳界面优化:X-Wrt 适合希望简化操作但保留灵活性的中间用户。 最终结论 若需推荐一个“最好”的固件,需结合用户需求: 普通用户首选iStoreOS,因其易用性和稳定性; 进阶用户推荐ImmortalWrt,平衡了开源、功能与社区支持;…
OpenMediaVault On TerraMaster F2-221
OMV is a lot better than the original TerraMaster OS 4.X
New Terramaster F2-221 (2.5G Ethernet version)
Compact size with just 2 drive bays. Perfectly matches my 2.5G home network setup. The RAM can be upgraded to 10G (2+8) even though the official maximum supported RAM is only 6GB (2+4). It runs extremely quiet!
Dual Boot System Windows 11 + Manjaro 21.2
Zwift On Linux Demo
SRV networking -reload error in Proxmox
While updating the network settings in a node, you may encounter the following error: eth0 : error: eth0: cmd ‘/sbin/dhclient -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0’ failed: returned 1 TASK ERROR: command ‘ifreload -a’ failed: exit code 1 To fix it, go to /etc/network/interfaces.d, edit the file “setup”, comment out the following two lines: auto eth0 iface eth0 inet dhcp
How to run Zwift on Linux?
Follow the instructions from https://zwiftinsider.com/zwift-on-linux/. Add one more procedure: Click “Configure” and change the executable path to “RunFromProcess-x64.exe” then save. Enjoy zwifting and Ride on!
How to remove cluster from proxmox?
Execute the following commands via proxmox shell or ssh terminal(recommened). In this way you don’t have to empty all VMs from a node before removing a cluster from it. # sudo systemctl restart pve-cluster # sudo pmxcfs -l [main] notice: forcing local mode (although corosync.conf exists) # sudo rm -f /etc/pve/cluster.conf /etc/pve/corosync.conf # sudo rm -f /var/lib/pve-cluster/corosync.authkey # sudo systemctl stop pve-cluster # sudo rm /var/lib/pve-cluster/.pmxcfs.lockfile # sudo systemctl restart pve-cluster # sudo systemctl restart pvedaemon # sudo systemctl restart pveproxy # sudo systemctl restart pvestatd
What is the difference between “local” and “local-lvm” on Proxmox VE (PVE)? Which to use? Why use local/local-lvm?
By default, after installation, PVE is configured with local and local-lvm storage locations for storing iso, vztmpl, backup, images etc. As described on Proxmox wiki: dir: localpath /var/lib/vzcontent iso,vztmpl,backup# default image store on LVM based installationlvmthin: local-lvmthinpool datavgname pvecontent rootdir,images# default image store on ZFS based installationzfspool: local-zfspool rpool/datasparsecontent images,rootdir local The path is /var/lib/vzNote: vz is a folder Available in PVE web gui as local This is actually an folder on the filsystem which the PVE is installed on local-lvm The path is /dev/pve/dataNote: data is a file Available in PVE web gui as local-lvm This is actually a lvm-thin volume (lvm-thin volume is…
