博文

目前显示的是 十二月, 2024的博文

内耗

今天尝试准备软件工程这门课的考试,但是学不进去……感觉教得很死板,又是纯纯的应试学习。 应试的东西学得多了连自己计划好自学的东西都学不进去。因为应试的花了大量时间,成果也就一般(会不会反而说明不花那么多时间连及格都没有),而自学的东西荒废了很久了,两相叠加就会有一种很大的挫败感。 应试久了,学任何东西都会有一种很深的算计心态。总是想着这个值得学吗,有没有更重要的,有没有速通的办法。因为应试的时候就是这样,没把握好考纲里的重点,学了也出不了成绩。久而久之竟然什么东西都不想学了。

Archlinux 上安装老 Epson 打印机驱动

 打印机型号为 Epson M105 Series. 通过官网 http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX 查询得驱动包名称为 epson-inkjet-printer-201215w,AUR 上也有对应的包。但是已经好几年不更新了。直接安装 AUR 上的 1.0.0 版无法正常编译,说是找不到 debug_msg 这个函数。我不想深究,正好有新版 1.0.1 的源码包,于是直接下载下来在本地开个服务器 serve 给 Arch 编译,对应修改 PKGBUILD 即可。fixbuild.patch 也不需要了。 安装后还得把 filter 可执行文件复制到 CUPS 的目录下 sudo cp /opt/epson-inkjet-printer-201215w/cups/lib/filter/epson_inkjet_printer_filter /usr/lib/cups/filter 完整 PKGBUILD 如下: # Contributor: Andre Klitzing <andre () incubo () de> pkgname=epson-inkjet-printer-201215w _pkgname_filter=epson-inkjet-printer-filter _suffix=1.src.rpm pkgver=1.0.1 pkgrel=10 pkgdesc="Epson printer driver (M100, M105, M200, M205)" arch=('i686' 'x86_64') url="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" license=('LGPL' 'custom:Epson Licence Agreement') depends=('cups' 'ghostscript') #makedepends=('libtool' 'make' 'automake' 'a...

自建内网服务并使用 Cloudflare Tunnel 反向代理

配置 CF Tunnel 的 systemd 服务,使用 http2 协议以便于前面套透明代理。 # /etc/systemd/system/cloudflared.service [Unit] Description=Cloudflare Tunnel After=network.target [Service] TimeoutStartSec=0 Type=notify ExecStart=/usr/bin/cloudflared --protocol http2 --config /etc/cloudflared/config.yaml --no-autoupdate tunnel run <tunnel-name> Restart=on-failure RestartSec=5s [Install] WantedBy=multi-user.target 使用 Caddy 配合 Cloudflare 插件自动申请 HTTPS 证书 gist.example.com {   reverse_proxy localhost:3700   tls {     dns cloudflare {env.CLOUDFLARE_API_TOKEN}   } } vw.example.com {   reverse_proxy localhost:3701   tls {     dns cloudflare {env.CLOUDFLARE_API_TOKEN}   } } ha.example.com {   reverse_proxy localhost:8123   tls {     dns cloudflare {env.CLOUDFLARE_API_TOKEN}   } } alist.example.com {   reverse_proxy localhost:3703   tls {     dns cloudflare {env.CLOUDFLARE_API_TOKEN}   } } 参考 https://co...

Proxmox VE 直通核显

 参考 https://3os.org/infrastructure/proxmox/gpu-passthrough/igpu-passthrough-to-vm https://3os.org/infrastructure/proxmox/gpu-passthrough/igpu-split-passthrough/ 下面这篇文章底下有人评论 https://github.com/fire1ce/3os.org/discussions/111#discussioncomment-9361937 When installing Proxmox and choosing ZFS, GRUB is not used as a bootloader, systemd-boot is. So editing /etc/default/grub will have no effect. You need to edit /etc/kernel/cmdline instead of /etc/default/grub for the kernel parameters. 这里折腾了我好久(

配置 Proxmox VE

 参考 https://songxwn.com/PVE-apt-source/ 删除订阅弹窗 sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service 修改软件源 mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak # 屏蔽订阅企业源 wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg echo "deb https://mirrors.ustc.edu.cn/proxmox/debian bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list # 使用Proxmox非企业版中科大源 sed -i 's|^deb http://ftp.debian.org|deb https://mirrors.ustc.edu.cn|g' /etc/apt/sources.list sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list # 将Debian官方源替换为中科大源 echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscriptio...