Btrfs 定期检查

/etc/systemd/system/btrfs_scrub.service [Unit] Description=Run btrfs scrub on filesystem [Service] Type=forking ExecStart=btrfs scrub start -B -d -c 2 -n 4 /mnt/ORICO/ TimeoutSec=10000 [Unit] Description=Weekly btrfs scrub/etc/systemd/system/btrfs_scrub.timer [Timer] OnBootSec=15min #OnCalendar=weekly OnUnitActiveSec=1w Persistent=true…

AutoSSH 端口反向代理实录

问题描述在宿舍有一台Raspberry Pi,运行着Transmission和sshd。外网有一台VPS,可被Raspberry Pi访问。现在有另一台主机(我的笔记本XPS),无外网IP,无法直接访问Raspberry Pi,希望远程访问Raspberry Pi上的Transmission和sshd。 解决方案在Raspberry Pi上的操作将id_rsa.pub中的内容添加到远程服务器 ssh $USERNAME@$SERVER_IP 'mkdir -p .ssh && cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub /etc/systemd/system下新建transmission-rev-tun.service,内容: [Unit] Description=AutoSSH to Huawei Cloud: (19091, 9091)…

Raspberry Pi 4 安装 Arch Linux ARM遇到的坑

系统信息 -` .o+` root@alarmpi `ooo/ OS: Arch Linux `+oooo: Kernel: armv7l Linux 4.19.93-1-ARCH `+oooooo: Uptime: 1h 26m -+oooooo+: Packages: 620 `/:-:++oooo+: Shell: bash 5.0.11 `/++++/+++++++: Disk: 5.5G / 111G (6%) `/++++++++++++++: CPU: ARMv7 rev 3 (v7l) @ 4x 1.5GHz `/+++ooooooooooooo/` RAM: 301MiB / 3914MiB ./ooosssso++osssssso+…

Linux下随机生成IPv6地址脚本

#Random generator ipv6 addresses within your ipv6 network prefix. #!/usr/local/bin/bash # Copyright # Vladislav V. Prodan # universite@ukr.net # 2011 array=( 1 2 3 4 5 6 7 8 9 0 a b c d e f ) MAXCOUNT=20 count=1 network=2001:470:26:307 # your ipv6 network…

XPS 如何安装 Archlinux + Gnome 桌面环境

timedatectl set-ntp true fdisk -l cfdisk /dev/sda mkfs.ext4 /dev/sda3 mount /dev/sda3 /mnt mkdir /mnt/boot mount /dev/sdb1 /mnt/boot nano /etc/pacman.d/mirrorlist pacstrap /mnt base base-devel genfstab -U /mnt >> /mnt/etc/fstab cat /mnt/etc/fstab arch-chroot /mnt ln -sf /usr/…

Font Configuration/Chinese (简体中文)【转载】

异体字[main](https://wiki.archlinux.org/index.php/Localization/Simplified_Chinese_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E4%BF%AE%E6%AD%A3%E7%AE%80%E4%BD%93%E4%B%AD) /etc/fonts/conf.avail/64-language-selector-prefer.conf <?xml version="1.0"?>…