Openwrt和WoL那些事
背景我想在不在家时只携带macbook,同时还可以访问高性能windows主机(做做VRC改模什么的)。所以研究了一下网络唤醒。 主机端操作一下内容由ChatGPT提供,经过我评审认为可信。 华硕 B850 主板的网络唤醒(Wake on LAN / WOL)一般要 BIOS + Windows 两边都开,不然经常会出现“关机后网卡灯灭,唤不醒”的情况。 下面给你一套比较稳的配置方法(适用于大部分 ASUS B850 + Realtek/Intel 2.5G 网卡)。 BIOS 里开启 WOL(最关键)开机按 Del 进 BIOS:(1)Advanced Mode按 F7 进入高级模式。(2)打开 PCI-E 唤醒路径一般是:Advanced → APM Configuration找到这些选项:Power On By PCI-E / PCI Device设置为:✅ Enabled有的 BIOS 叫:Power On By PCI-EWake on LANPCI-E Device Power On本质都一样。(3)关闭...
树莓派Openwrt那些事
Openwrt argon one V2 金属外壳风扇控制在 /boot/config.txt 启用 I2C(ARM I2C)先看看现在有没有 i2c 相关行: 1grep -nE 'i2c|dtparam=i2c' /boot/config.txt || true 然后追加(或确保存在)这一行: 123echo 'dtparam=i2c_arm=on' >> /boot/config.txtsyncreboot 如果你发现里面已经有 dtparam=i2c_arm=off 或重复行,建议你用 vi /boot/config.txt 手动改成 on,避免冲突。 OpenWrt 安装 I2C 组件并确认 /dev/i2c-1重启回来后: 12opkg updateopkg install i2c-tools kmod-i2c-dev kmod-i2c-bcm2835 检查: 12ls -l /dev/i2c-*i2cdetect...
ArchLinux多版本Python的使用
问题:我在archlinux跑一个程序,需要python,我机器上安装的是最新的python。而程序要求python 3.7-3.11,因此调查如何在archlinux上使用多个版本的python。 pyenv安装 1yay -S pyenv 然后将下面几行加入~/.zshrc 123export PYENV_ROOT="$HOME/.pyenv"command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"eval "$(pyenv init -)" (可选)pyenv-virtualenv用 pyenv 管理 venv 更方便: 12345678yay -S pyenv-virtualenv# 在 shell 配置里追加(紧跟在 pyenv init 后面):eval "$(pyenv virtualenv-init -)"source ~/.zshrcpyenv virtualenv 3.11.9...
Set up my own VPS
My first try to access google is to set up VPS, but at that time I’m so naive. Today, after several years of learning, I come back again. 时隔多年的自建VPS。 Before Setup VPSAt the very beginning, if you don’t get a block from the GFW just after you setup the VPS, I suggest using a relatively complex protocol to protect your network data. 注意不被封,但是说实话怎么伪装现在都能监测出来。 Then you need a domain, and a DNS server. 准备域名并通过不管谁提供的DNS服务将域名绑定IP。 I choose namesilo as provider and got the domain and DNS service from...
Github与hexo
诶嘿今天一时兴起,想把hexo与github自带的主页看看能不能融合一下,好充分利用一下我写的乱七八糟的东西。 就查阅了一下: Hexo结合github搭建个人博客 使用hexo+github搭建免费个人博客详细教程 主要用的就是第二篇。我简单题几条我自己做的改进。 使用github时单独为博客建立一个仓库,之后用git管理,这并不影响hexo直接部署到github的个人主页上这个问题。如果不希望自己的源码被别人看到,可以设置成private的仓库。 在加载其他主题的时候我更建议使用git submodule来实现,而不是使用git clone。 这样更方便后续跟进更新。 或许用fork更好?用git submodule的话我想要自己对主题做一些更改好像不太好存储啊?没太想好,之后又机会再研究吧。 还没想好如何解决插入图片的问题。 其他查阅的资料Hexo git...
OpenWRT折腾记录
编译一直想试试自己编译一下openwrt,最近总算是搞到机会了。 我选择的是ImmortalWRT,没有选择去build最原始的OpenWRT。我之前在用的树莓派就是ImmortalWRT的版本,所以我就打算继续借用它来入门OpenWRT了。 环境我用的是Archlinux。安装了virtualbox,安装的ubuntu20.04虚拟机,给了100G的空间。上古的弱智用法,我直接用ubuntu容器做编译即可,没必要搞虚拟机了。 我已经成功编译过一次了,但是忘记了之前还准备操作了什么。 my-immortalwrt-docker 这是我自己搞的代码仓库,容器化编译,效果不错。 使用基础网络配置首先配置网络接口。我有两个网络接口,一个wan、一个lan。 都什么年代了,我必须要用ipv6。 WANwan需要创建两个配置,一个选用ipv4的dhcp,一个选用ipv6的dhcp。 RA, DHCPv6, NDP全都选用中继模式(relay)。 LANlan口的协议就选静态ip。然后配置一个.1的静态IP就行。然后我开启了委托 IPv6...
English Learning
固定搭配false alarm: 假警报,虚惊一场 an end in themselvse: 目的在于他本身 cast a shadow over: 给什么蒙上阴影 be due to do: 原计划会… status quo: 现状 paint … as …: 把什么表述为什么 be littered with: 充满 wipe out: 消除 sure enough: 果然 resort to: 求助于 单词illustrates: 描绘 project: 动词 投影,预测 cavalier: 不在意的
ArchLinux
Here collect some expirences on installing ArchLinux. Manual install ArchLinuxIt’s not preferred as it is not esay for a beginner to understand all the commands, but if just following the steps everyone should make it. Manual install mainly reference to ArchLinuxStudio.github.io All the info I added here is a addition for my reference web. Preparation for installationPrepare iso fileI will not introduce how to prepare iso file, I thought it too familiar for me. Prepare networkReally...
MacOS的代理那些事
我是从Windows转Linux再转MacOS的。 Windows近几年Windwos下的代理挺方便的,已经基本抛弃了之前的SSR之类的软件了,主用一个clash for...
PalWorld Server以及内网穿透
最近PalWorld挺火的,看着也很好玩,我本来没想自己搭一个Dedicated Server,但是我和同学试了一下它的邀请码联机连不上,又想了想自己手上的资源,就打算自己搞个服务器联机玩了。 资源规划首先要根据手上现有的资源做规划。我本地有一个archlinux的小主机,前一阵子还入手了一年99的阿里云服务器,2 Core 2 GB RAM。 PalServer建议要4 Core 16GB RAM 或以上,显然直接把PalServer搭建在阿里云服务器上是不行的了,但是阿里云服务器有公网IP。 所以方案就出来了,用阿里云服务器做内网穿透,本地archlinux的小主机安装PalServer就可以了。 内网穿透我查到的开源的内网穿透的软件是frp,所以就用它了。frp分为frps和frpc,顾名思义frps是server端,frpc是client端。在云服务器上起server端,在本地小主机起client端。 server端server端配置:/etc/frps/frps.ini 这个位置是我自己决定下载放在这里的哈。 1234567[common]bind_port =...