-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1 lines (1 loc) · 48.8 KB
/
index.html
1
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh" itemscope itemtype="https://schema.org/Article"><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="Referrer-Policy" content="no-referrer, strict-origin-when-cross-origin"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="renderer" content="webkit|ie-comp|ie-stand"><meta name="theme-color" content="#bbdefb"><meta name="imagemode" content="force"><meta name="nightmode" content="disable"><meta name="wap-font-scale" content="no"><title>Lan Tian @ Blog</title><meta name="title" content="Lan Tian @ Blog"><meta name="keywords" content="Lan,Tian"><meta name="description" content="Lan Tian @ Blog"><meta name="author" content="Lan Tian"><link rel="canonical" href="https://lantian.pub"><link rel="alternate" type="application/rss+xml" title="Lan Tian @ Blog" href="https://lantian.pub/rss2.xml"><link rel="alternate" type="application/atom+xml" title="Lan Tian @ Blog" href="https://lantian.pub/feed.xml"><link rel="alternate" href="https://lantian.pub/" hreflang="zh"><link rel="alternate" href="https://lantian.pub/en" hreflang="en"><script>function addLoadEvent(o){var n=window.onload;"function"!=typeof window.onload?window.onload=o:window.onload=function(){n&&n(),o()}}</script><link rel="stylesheet" href="/assets/style.css?v=6c6e88f"><script defer src="/assets/script.main.bundle.js?v=6c6e88f"></script><meta name="copyright" content="Copyright 2012-2023 Lan Tian @ Blog"><link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#03a9f4"><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"><meta name="apple-mobile-web-app-title" content="Lan Tian @ Blog"><meta name="application-name" content="Lan Tian @ Blog"><meta name="msapplication-TileColor" content="#03a9f4"><meta name="msapplication-TileImage" content="/mstile-144x144.png"><meta name="msapplication-navbutton-color" content="#03a9f4"><meta content="name=Lan Tian @ Blog;action-uri=/;icon-uri=/favicon.png" name="msapplication-task"><meta content="name=文章们;action-uri=/page/archive;icon-uri=/favicon.png" name="msapplication-task"><meta content="name=俯瞰地球;action-uri=/page/himawari;icon-uri=/favicon.png" name="msapplication-task"><meta content="name=DN42;action-uri=/page/dn42;icon-uri=/favicon.png" name="msapplication-task"><meta name="theme-color" content="#03a9f4"><meta name="mobile-web-app-capable" content="yes"><meta property="og:url" content="https://lantian.pub"><meta property="og:type" content="website"><meta property="og:title" content="Lan Tian @ Blog"><meta property="og:image" content="https://lantian.pub/apple-touch-icon.png"><meta property="og:description" content="Lan Tian @ Blog"><meta property="og:site_name" content="Lan Tian @ Blog"><meta property="og:locale" content="zh"><meta name="twitter:card" content="summary"><meta name="twitter:url" content="https://lantian.pub"><meta name="twitter:title" content="Lan Tian @ Blog"><meta name="twitter:image" content="https://lantian.pub/apple-touch-icon.png"><meta name="twitter:description" content="Lan Tian @ Blog"><meta name="twitter:dnt" content="on"><meta itemprop="name" content="Lan Tian @ Blog"><meta itemprop="image" content="https://lantian.pub/apple-touch-icon.png"><meta itemprop="description" content="Lan Tian @ Blog"><style>.spoiler{display:inline-flex}p.spoiler{display:flex}.spoiler a{pointer-events:none}.spoiler-blur,.spoiler-blur>*{transition:text-shadow .5s ease}.spoiler .spoiler-blur,.spoiler .spoiler-blur>*{color:transparent;background-color:rgba(0,0,0,0);text-shadow:0 0 10px grey;cursor:pointer}.spoiler .spoiler-blur:hover,.spoiler .spoiler-blur:hover>*{text-shadow:0 0 5px grey}.spoiler-box,.spoiler-box>*{transition:color .5s ease,background-color .5s ease}.spoiler .spoiler-box,.spoiler .spoiler-box>*{color:#000;background-color:#000;text-shadow:none}</style><meta name="generator" content="Hexo 6.3.0"></head><body><div id="bg"></div><div id="container" class="container"><nav class="lantian navbar navbar-expand-lg"><div class="container-fluid"><a class="navbar-brand" href="/">Lan Tian @ Blog</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#lantian-navbar" aria-controls="lantian-navbar" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="lantian-navbar"><ul class="navbar-nav"><li class="nav-item d-none d-lg-block"><a class="nav-link" href="/page/archive">文章们</a></li><li class="nav-item d-none d-lg-block"><a class="nav-link" href="/page/himawari">俯瞰地球</a></li><li class="nav-item d-none d-lg-block"><a class="nav-link" href="/page/dn42">DN42</a></li><li class="nav-item dropdown d-block d-lg-none"><a href="#" class="nav-link dropdown-toggle" id="pages-dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"><i class="fas fa-fw fa-file"></i> 页面 <span class="caret"></span></a><ul class="dropdown-menu" aria-labelledby="pages-dropdown"><li><a class="dropdown-item" href="/page/archive">文章们</a></li><li><a class="dropdown-item" href="/page/himawari">俯瞰地球</a></li><li><a class="dropdown-item" href="/page/dn42">DN42</a></li></ul></li></ul><ul class="navbar-nav ms-auto"><li class="nav-item dropdown"><a href="#" class="nav-link dropdown-toggle" id="languages-dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"><i class="fas fa-fw fa-language"></i> Language <span class="caret"></span></a><ul class="dropdown-menu" aria-labelledby="languages-dropdown"><li><a href="/" class="dropdown-item"><span class="flag-icon flag-icon-cn"></span> Chinese</a></li><li><a href="/en" class="dropdown-item"><span class="flag-icon flag-icon-us"></span> English</a></li><li><hr class="dropdown-divider"></li><li><a class="dropdown-item disabled" href="#">Not all pages have translations.</a></li><li><a class="dropdown-item disabled" href="#">You may see 404 - this is normal.</a></li></ul></li><li class="nav-item dropdown"><a href="#" class="nav-link dropdown-toggle" id="color-scheme-dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"><i class="fas fa-fw fa-adjust"></i> 夜间模式</a><ul class="dropdown-menu" aria-labelledby="color-scheme-dropdown"><li><a id="color-scheme-auto" class="dropdown-item" href="#"><i class="fas fa-fw fa-adjust"></i> 自动</a></li><li><hr class="dropdown-divider"></li><li><a id="color-scheme-light" class="dropdown-item" href="#"><i class="fas fa-fw fa-sun"></i> 浅色</a></li><li><a id="color-scheme-dark" class="dropdown-item" href="#"><i class="fas fa-fw fa-moon"></i> 深色</a></li></ul></li></ul></div></div></nav><div class="d-flex"><div id="content"><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>05-12</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2023-05-12 22:03</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>网站与服务端</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/modify-website">网站与服务端</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>2 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/DN42">DN42</a> <a class="badge badge-tag" href="/tag/BGP">BGP</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADeCAAAAAB3DOFrAAACq0lEQVR42u3aQY7jMAwEQP//09kXrLeblGYzQPmUQyCrHMBimnye+Pq8Xu/fae9yarUHDw8P7xrvxtbbdZKtD9fBw8PDu8ZLlnvfenLj93slK+d7xsPDw/seXvvizh9Zcszg4eHh/UZeUihvHkpemuPh4eH9X14SRkTLjcrxvEy/mLXg4eHhzfPSp93uz3++0t/Dw8PDW3fVk5f4qcZ/zit2i4eHh3eB10YGs+CgXSFfM9knHh4e3lleewC8b7GNcdvRrvqIwsPDw7vA24w05UHq/jvtcVL32fDw8PBiXvvybZ9cUhDP4o9oh3h4eHgXeLNYdlNwt8V3vrcmfsHDw8Ob8z6LK4lfky3uw45j/T08PDy8ODHIC982wmiPitkhUR8PeHh4eEd5m3K2jRtmMW798+Dh4eEd5UWdsXjR9kG0gHplPDw8vAu8nHFq4GDzyPLmHB4eHt49XjvMtG9xnQo1omMADw8P7wJvs+nN63sW1OaHCh4eHt5t3qYN1g4TzOLaZP3iN8TDw8Nb8DbDUvmm87Bjc8D8daYMDw8P7wJvFhC0Re0nuDaxcjETgYeHh7fm7fPPPLrdhMX5v4RoMgIPDw9vwWtnDfKQN09T2+ZW9Mjw8PDwLvDaUKAti2cv9LPtNzw8PLwbvE2rvm3qtwMHmyYcHh4e3m3eJmbNm1JtyJuPKRQzEXh4eHiHeO2oU77p/VDCbPgADw8P7wZvFjTMCt82jGgPgH8MXeHh4eEd4rXRQx6zzjCbxtsmWMHDw8NreacOgzZcaIv15GBYpch4eHh4JW8WJczmFPLQ9kArDg8PD+8LeEm5nK/fBrV14IuHh4f3BbzZIZG3vmZRLx4eHt7P8/LiOCmdN8lxewitZsrw8PDwRrz2lu9bnw1UzUjPqQsPDw8v5f0BXwUDJ9v+id0AAAAASUVORK5CYII=" alt="二维码"></div></div></div></div></div><div class="post-image-wrap d-none d-lg-block"><img src="/usr/uploads/202008/i-love-niantic-network.png.thumb.png" alt="插图" height="150" width="200"></div><div class="post-wrap"><h1 class="post-title"><a href="/article/modify-website/how-to-kill-the-dn42-network.lantian" rel="bookmark" title="如何引爆 DN42 网络(2023-05-12 更新)">如何引爆 DN42 网络(2023-05-12 更新)</a></h1><div class="post-text">DN42 是一个测试网络,所有人都在帮助所有人。即使你不小心搞砸了,也没有人会指责你。你可以在 DN42 的 IRC 频道,邮件列表或者非官方 Telegram 群组寻求帮助。由于 DN42 是一个实验用网络,其中也有很多新手、小白参与,因此时不时会有新手配置出现错误,而对整个 DN42 网络造成影响,甚至炸掉整个网络。现在,作为一名长者(x),我将教各位小白如何操作才能炸掉 DN42,以及如果你作为小白的邻居(指 Peer 关系),应该如何防止他炸到你。注意:你不应该在 DN42 网络中实际执行这些操作,你应该更加注重对破坏的防御。恶意破坏会导致你被踢出 DN42 网络。本文信息根据 Telegram 群及 IRC 中的真实惨案改编。更新记录2023-05-12:增加修改 BGP Localpref 导致环路的内容。2020-08-27:格式修改,添加完整 IRC 日志,部分内容的中文翻译,添加另一段地址掩码填错的内容,以及 ASN 少了一位的内容。2020-07-13:添加 Registry IPv6 地址段掩码填错的内容,...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>05-08</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2023-05-08 00:28</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>计算机与客户端</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/modify-computer">计算机与客户端</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>4 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/%E6%98%BE%E5%8D%A1">显卡</a> <a class="badge badge-tag" href="/tag/%E8%99%9A%E6%8B%9F%E6%9C%BA">虚拟机</a> <a class="badge badge-tag" href="/tag/NVIDIA">NVIDIA</a> <a class="badge badge-tag" href="/tag/MUXed">MUXed</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADeCAAAAAB3DOFrAAACq0lEQVR42u3a0U7DMAwF0P7/Tw+JNwQr13a87eH0aYKS5gSp8a5zXfH1+L5+f57cef+389EuPDw8vDXe4/a6H/r+/vufVEd+Ntqze/Dw8PC2eckrvvqavv+r5LfVp+Ph4eF9Gi8a7miZ3tuo8PDw8D6Ht10Q5+U4Hh4e3ifwqo9MppIvSl5YL2YteHh4eDFvUv6+6/OL+nt4eHh4xa765OU+KdCrZfrT2eLh4eEt8KoTzQvcSYB7uCGHh4eHd5SXv4h7LbF85FPx7o/n4uHh4b2El5TFvRJ8vkDlZhseHh7eAq9XtuYHoXpts3wp8y0HDw8P7xSvF9T2VnFyiKoaGV9JRoKHh4fX4k0Y1Ub+/GBWVYGHh4e3zau29vPJzUPbZPynVDw8PLyjvEloWy3Nc0bvONcfYDw8PLwX8nrxRLkd1Sq7CwuBh4eHt8DLX7unlqB6TCGPoa/eQHh4eHgtXv71vlnaxou1uP3g4eHh7Va2o0iiOuZrgl08PDy8U7zk4FReFlePUiVrX91a/uns4eHh4Y15E1KOrJbgvVZZVF7j4eHhHeXlE+ptKvlGUl3WaEPCw8PDW+Mlg+a8anhx6rlRpoKHh4c35vWQ1S3h7CKW82k8PDy8Me8RX4U8oxja5v+BcoCLh4eHt8brPTIvqc+GuYWZ4+Hh4S3wqg2tpLStTrRKSo5qRdPCw8PDa/GqoUN1uqfK5Su+fswKDw8Pb5k3iSQm0W0vSo6SaTw8PLwFXvWFm5S2+UbSW9ZyTw8PDw9vgVcdOm9xVQOOPIwoRB54eHh4a7x8M6iGufPNo7d14eHh4X0CL/k8OTQwOTH1T+KCh4eH91Ze/q2/d08CWCmp8fDw8BbCiGpwUN1IyufFks0GDw8Pb4F3qgGWt8dOHSO4Tl14eHh4Ke8LoPQNAUsVq8oAAAAASUVORK5CYII=" alt="二维码"></div></div></div></div></div><div class="post-wrap"><h1 class="post-title"><a href="/article/modify-computer/laptop-muxed-nvidia-passthrough.lantian" rel="bookmark" title="Optimus MUXed 笔记本上的 NVIDIA 虚拟机显卡直通(2023-05 更新)">Optimus MUXed 笔记本上的 NVIDIA 虚拟机显卡直通(2023-05 更新)</a></h1><div class="post-text">一年前,为了能够一边用 Arch Linux 浏览网页、写代码,一边用 Windows 运行游戏等没法在 Linux 上方便地完成的任务,我试着在我的联想 R720 游戏本上进行了显卡直通。但是由于那台电脑是 Optimus MUXless 架构(前文有各种架构的介绍),也就是独显没有输出端口、全靠核显显示画面,那套配置的应用受到了很大的阻碍,最后被我放弃。但是现在,我换了台新电脑。这台电脑的 HDMI 输出接口是直连 NVIDIA 独立显卡的,也就是 Optimus MUXed 架构。在这种架构下,有办法让虚拟机识别到一个「独显上的显示器」,从而正常启用大部分功能。于是,我终于可以配置出一套可以长期使用的显卡直通配置。更新日志2023-05-08:针对新版 Looking Glass B6 更新部分内容。2022-01-26:PCIe 省电补丁实测无效。准备工作在按照本文进行操作前,你需要准备好:一台 Optimus MUXed 架构的笔记本电脑。我的电脑型号是 HP OMEN 17t-ck000(i7-11800H,RTX 3070)。(2022-01)...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>04-17</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2023-04-17 19:16</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>随手记</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/random-notes">随手记</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>5 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/AOSP">AOSP</a> <a class="badge badge-tag" href="/tag/%E4%B8%AD%E5%9B%BD%E7%94%B5%E4%BF%A1">中国电信</a> <a class="badge badge-tag" href="/tag/%E6%BC%AB%E6%B8%B8">漫游</a> <a class="badge badge-tag" href="/tag/4G">4G</a> <a class="badge badge-tag" href="/tag/LTE">LTE</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPYAAAD2CAAAAADAeSUUAAADJUlEQVR42u3aQXLbMBAEQP//0/LVh5iaWUBlEmmcUg4NseHDanfw9RWv14/18yfXz+c7r3xi/ln1wsbGxn4I+3W58meuX+W355Pdrp8cvic2Njb2cezrV8/LVXIcs0+85tVFDhsbG/u/Z89K13VpTA4x2Q0bGxsb+5r9Ctb6IKltUbCxsbGxVwrDbMTfHt+fzdKwsbGxb89u49g7//sj+TY2Njb2jdmvcrUNxkqEvKto/WMHbGxs7IPYeQFYv9Cz60DzUPlNy4SNjY19BDsf4rQRbHugK6S2ZcLGxsY+iZ0P+tsv/Z+e4bTRRZSNYGNjYz+QPRvl5EeTlMlZKW3LGDY2NvbZ7PWv9Xkc27YKSbnKi2g0RcPGxsZ+ILuNUdsWZdbGtMOppSs72NjY2AexP3EQK+P+lbC5CHqxsbGxH8tO/iMfJOVjnVmOEbUZbdyLjY2NfQQ72WhWomb49tpQO/bCxsbGPok9u0yz8kwbCc/KZ/R3xsbGxj6UnYepu0paEgnnz0e/hY2NjX0Qux3Kz67vrBfCZLyVlElsbGzs89htJJAj9+7THuubN8HGxsY+iN02HrNIdVeEvPf4sLGxsc9g5yWnHd8kjU077inuH10fATY2NvZB7JXhfgKehbXtVKy9KoSNjY19Entl672DpLaxmQ2Vhr0XNjY29o3Zu67OfOKKT1728tKIjY2NfSq7XXkzMIxgy0ZlJd7AxsbGPpWdz6KSJ/de9MnDgDxIwMbGxn46O//qv4s3C5jbodKbtgQbGxv7OPZ6U5HHrnlpXOmi3vwhsbGxsQ9lz5qB2ZCoLWAt/s3+2NjY2Ieyk/LTXpGZBQBtM9NGBdjY2NjnsXdtmg+G2hYoP8SigGFjY2M/nP0q1yw2mGXO68OpX98cGxsb+yD2Jy5czi70tEOl5ECLqAAbGxv74ez1IdF62Wibk/XCiY2NjX0eezayb0tX3lTMIuGisGFjY2Njt8FqXMba9qN9K2xsbGzsvGnZdUztEKoYKmFjY2MfxE4w7SA+KiRx6VopqEuzNGxsbOzbs9smoR3WJ4z8tWbtylK+jY2NjX1f9jcCybC80R8guAAAAABJRU5ErkJggg==" alt="二维码"></div></div></div></div></div><div class="post-wrap"><h1 class="post-title"><a href="/article/random-notes/fix-china-telecom-roaming-no-4g-on-aosp-rom.lantian" rel="bookmark" title="修改 APN 解决 AOSP ROM 上中国电信无法 4G 漫游问题">修改 APN 解决 AOSP ROM 上中国电信无法 4G 漫游问题</a></h1><div class="post-text">由于我的一加 8T 官方系统维护周期即将结束,我给手机刷上了 Nameless OS,一个基于 Lineage OS 的第三方安卓 ROM。但是刷入后,我发现我的中国电信手机卡无法连接本地运营商的 4G 网络进行国际漫游,只有 2G 或 3G 信号。由于本地运营商近期正在进行 2G、3G 退网,手机的漫游信号很差,收发短信都有很大延迟,也无法连接 VoLTE 进行正常通话。我测试了其它的基于 Lineage OS 的第三方 ROM,都有类似的问题。多次尝试后,我发现问题似乎出在手机的 APN 设置上。我说「似乎」是因为修改 APN 解决了我的问题,但我完全不明白为什么能行,也不确定这就是正确的解决方法。我解决问题的操作步骤如下:进入手机设置 - SIM 卡 - 中国电信 - APN 设置。点击「中国电信 NET 设置」(ctnet)进入详细设置。把 APN 类型一项(APN Type)修改为:default,supl,dun,ims原始值是 default,supl,dun点击右上角三个点的菜单,选择保存。选中「中国电信 NET 设置」右边的单选按钮,...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>03-26</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2023-03-26 15:05</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>随手记</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/random-notes">随手记</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>3 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/HP">HP</a> <a class="badge badge-tag" href="/tag/NAS">NAS</a> <a class="badge badge-tag" href="/tag/%E8%BD%AF%E8%B7%AF%E7%94%B1">软路由</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADeCAAAAAB3DOFrAAACpUlEQVR42u3aQW7DQAgF0Nz/0um2UuXkA4PlSs+rqE7tebMYCPB6xdf71/X3L5/vJk+++nx19/CFh4eHN1h6stwcOf/fzxsRPQEPDw9vjTc/sqtXb4vzNePh4eE9h5cc1nl+W82H8fDw8P4jLznik/JBsmg8PDy8J/Oq6Wz+nc9hIwkV1SQeDw8Pb5uXd5Ge83mlv4eHh4c37qpPgkSSsufNreZq8fDw8BZ41ddX21dnC77VdeLh4eFt8KrjVvPi75edjgNDtDY8PDy8BV61VZ+/YC9s9NaAh4eHd4qXL66X5uawanAqlCHw8PDwbuFV2b1WWbN2kjfD8PDw8JZ5k/Gp/G6SHOepdrm/h4eHhzfmVV+Tb0cvaa5uR3QXDw8Pb4G30baf45M0PR/8wsPDwzvL65UVesEjSoLjwkdUmMDDw8M7yuv9+B/FnHGDLU++8fDw8PZ4+WGdjGHlJdde0lwID3h4eHhrvGpJojcg1Stk5KHlsvWFh4eHd5SX/GbPD+tqi6s6ZNAslODh4eEt8/L21akkuLpB+V08PDy8DV4vkU3S6Lw03PtOs9aCh4eHt8bLW/vzJ0wS6Cji4eHh4R3lzQebJil4rwyRg/Hw8PDu5FXHCCab0hvzqo4y4OHh4Z3l9Y7pXhPrnlBReDEeHh7emJe3//M0Ny9q5I2xZmDAw8PDO8rrlQ+STak2/vOUvdAGw8PDwzvEexevUyWGXiurfBcPDw9vgVc9cPNQcTbw5M9pXnh4eHhFXjUY5MWCXjutV9S4BOPh4eGt8SaDTb0ya/78an0FDw8P78m8pAAxaZtVR6/Kk194eHh4t/Dysad368qLINEm4uHh4a3xqq39Xvk1f3ueRn/5Xzw8PLwF3vwHf699lTPyZtiov4eHh4f3nfcDytfQdZCci4cAAAAASUVORK5CYII=" alt="二维码"></div></div></div></div></div><div class="post-wrap"><h1 class="post-title"><a href="/article/random-notes/old-hp-workstation-as-all-in-one.lantian" rel="bookmark" title="老款 HP 工作站配置 NAS + 软路由笔记">老款 HP 工作站配置 NAS + 软路由笔记</a></h1><div class="post-text">我买了一台 HP 的老款工作站,用作家里的 NAS + 软路由。本文简单记录这台工作站的配置过程。硬件选择NAS 的硬件主要有这些选择:成品 NAS(如群晖)优点:开箱即用。缺点:价格贵,到了「买系统送硬件」的程度。而且与各种 Linux 发行版相比,NAS 的原厂系统难以定制。二手服务器优点:便宜,在保修期结束后,这些服务器大都被数据中心当作废品处理,然后被以极低的成本回收,翻新后二次售卖。稳定,这些服务器在设计时就考虑了长期运行,并且一直在温湿度稳定、无尘的数据中心中运行。缺点:噪音大,需要自行修改系统配置降低风扇转速,更换静音风扇,或者加装风扇减速线。体积大(主要针对机架式服务器)。专用配件,服务器厂商会定制各种配件供特定型号使用,如果你有扩展需求,需要加价购买这些专用配件。二手工作站优点:便宜、稳定,与二手服务器相同。噪音小,毕竟工作站是放在办公桌边,而不是在机房里使用的。缺点:专用配件,与二手服务器相同。...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>01-14</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2023-01-14 01:55</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>计算机与客户端</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/modify-computer">计算机与客户端</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>1 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/NixOS">NixOS</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADeCAAAAAB3DOFrAAACsElEQVR42u3awVLsMAwEQP7/p3lXXkGWGcmm9tA5pRJw1D5YXskfH/H1+eV6ev79ehrn6cn3+6e3hy88PDy8RehPIbZBzyYln9xiWvHw8PCu8V4H/XpBz4PYr955zHh4eHjvxpulhNn4+fYaDw8P7z15+Qa3nYI8teDh4eG9A2+znZ1NRF6Y+KNaCx4eHl7XmYq6SO9zf6W/h4eHh7fuqp9drGeFiXb8/76Fh4eHd4GXL7g5OC8itE21Nk48PDy8e7yctNm5t0e72kJGUpjGw8PD2/NmB6SShbjdWCdB1+UJPDw8vAu8tmHfTlN7sKBNCVG0eHh4eBd47bKbl2XbIwJJVKteHx4eHt6aNyvItoe0NhM6Szk/9Pfw8PDwDvHackBeMmjH3CSJVd0FDw8Pb8GbpYRZGsjLvsn4xd/j4eHhHeXd2CLnLf88wbQbcTw8PLyzvH3RoS34zgofs0IzHh4e3g3erLk1KxbkySMPum6n4eHh4a3/qy0KzBpas4Jv+8UfvoKHh4d3gdcGuhl01vJvN9Z1DsTDw8MreZ/rK/9kXqp4XUrO3+Lh4eHd4LXLdNuayjfZ7ThFGQUPDw/vKC8pm+bL8WzznT9p48TDw8P7G15bTk1GSN7m2+5i+46Hh4d3gTdrzNdHnUZppn0b/W7Aw8PDO8TL+2ObxlWbhGZF4aLzhoeHh3eIdxY/W9D3DbnHxICHh4d3lHeqDNEC8mNewwsPDw/vKG+z7CZJ4vYE/TI1eHh4eBd4mzU2weybYe39sRSCh4eH95JX/7wvj1vl05fct1OMh4eHd483+2R7uikvDc+mBg8PD+89eZsQZ4cJVgcL8PDw8N6St0kMyWjtQQQ8PDy8v+HlTa92gqIgykMMRUMODw8P7wJvU2bNSxX5ZL0GX+zv4eHh4f3+xX+bTaZLNqIpuQAAAABJRU5ErkJggg==" alt="二维码"></div></div></div></div></div><div class="post-image-wrap d-none d-lg-block"><img src="/usr/uploads/202110/nixos-social-preview.png.thumb.png" alt="插图" height="150" width="200"></div><div class="post-wrap"><h1 class="post-title"><a href="/article/modify-computer/nixos-impermanence.lantian" rel="bookmark" title="NixOS 系列(四):「无状态」操作系统">NixOS 系列(四):「无状态」操作系统</a></h1><div class="post-text">NixOS 系列文章目录:NixOS 系列(一):我为什么心动了NixOS 系列(二):基础配置,Nix Flake,和批量部署推荐阅读:NixOS 与 Nix Flakes 新手入门,作者 Ryan YinNixOS 系列(三):软件打包,从入门到放弃NixOS 系列(四):「无状态」操作系统更新记录:2023-02-18:在「移动 Nix Daemon 的临时文件夹」一段,修正配置不对 root 用户生效的问题。NixOS 广为人知的一大特点是,系统大部分软件的设置都由 Nix 语言的配置文件统一生成并管理。即使这些软件在运行时修改了自己的配置文件,在下次切换 Nix 配置或者系统重启时,NixOS 也会将配置文件重新覆盖。例如,在运行 NixOS 的电脑上运行 ls -alh /etc,可以看到大部分配置文件都只是到 /etc/static 的软链接:# 省略部分不相关的行lrwxrwxrwx 1 root root 18 Jan 13 03:02 bashrc -> /etc/static/bashrclrwxrwxrwx 1 root root 18 Jan 13 03:...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>06-21</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2022-06-21 23:42</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>计算机与客户端</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/modify-computer">计算机与客户端</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>1 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/NixOS">NixOS</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADeCAAAAAB3DOFrAAACuElEQVR42u3awW7bMBAEUP//T6dAb20idoZLJi7wdDJkW+LTgaRm9/WKj4/fx+czT8fTL5Prf/6cXGF04OHh4W0NfT3QhLe+8hqzJu39Bg8PD+82r52s86l//bDyJWE9hsfzeHh4eD/Ky2+Qb6/zgeLh4eH9j7wc027H8wMPDw/vfXjty38eueYDzReDK1kLHh4eXsxrC2Dv8PlifQ8PDw9vUFXPN7hti0BeYJuMFg8PD+8GLx/WZDnJo4SzQTAeHh7eDd46OJiEuW0bVtKklfz3j894eHh4l3l7kej60SRltj18dBc8PDy8C7xJW0BSmsqbqPYY0WsAHh4e3lHepLzUMpLHNIl6HwNcPDw8vGu8fEZNQth8EEnb1ua3eHh4eBd47YZ4rzVqb8s+qum1eQkeHh5ezJtfaK816myTweN5PDw8vAu8PGhoC2Oj24+XKzw8PLx7vPY2bfy6fkDtt0l4gYeHh3eblxfjbxeuJgFHtAXHw8PDO8o7O6HvNRnsldmidwU8PDy8o7xTJahka7sXLuSRx+MbAx4eHt5R3l7okDdpTZaKdumKVj88PDy8Q7y8uDUp5Oek+WMtbo+Hh4dX8tqYIO9BaCfx9nzExsPDw/tG3qmFIVqXth5NtKTh4eHhXeDtbXnzsCBpRJgUvQ6EEXh4eHhbvFPx66RIth7i3sYaDw8P7x6vxbTLSd7ItRde/MOCh4eHd5mXDLotWbWlr9fgwMPDw7vN+yiPtkA1iW7b+34xBjw8PLwLvElUkZep5iWuvIlhc2nBw8PDK3ltKNBO621o2zYK1K0DeHh4eId4eUlsEq0mg27XLjw8PLz357Xb7jwmyIPd4vp4eHh4P8qb3Kyd+iftBXh4eHjfw2sjg7YV4FRUUW+78fDw8C7wJgWwvak8j2XbxeZwfQ8PDw/v729/Ab1r5CkdVXhwAAAAAElFTkSuQmCC" alt="二维码"></div></div></div></div></div><div class="post-image-wrap d-none d-lg-block"><img src="/usr/uploads/202110/nixos-social-preview.png.thumb.png" alt="插图" height="150" width="200"></div><div class="post-wrap"><h1 class="post-title"><a href="/article/modify-computer/nixos-packaging.lantian" rel="bookmark" title="NixOS 系列(三):软件打包,从入门到放弃">NixOS 系列(三):软件打包,从入门到放弃</a></h1><div class="post-text">NixOS 系列文章目录:NixOS 系列(一):我为什么心动了NixOS 系列(二):基础配置,Nix Flake,和批量部署推荐阅读:NixOS 与 Nix Flakes 新手入门,作者 Ryan YinNixOS 系列(三):软件打包,从入门到放弃NixOS 系列(四):「无状态」操作系统NixOS 的一大特点是,系统所有的二进制程序和库文件都在 /nix/store 目录中,由 Nix包管理器管理。这也意味着,NixOS 不符合Linux 的 FHS 标准,它的 /lib 或 /lib64 目录下不存在类似 ld-linux-x86-64.so.2 之类的库文件动态加载器,更不存在 libc.so 之类的库文件。因此,除非静态链接,否则为其它 Linux 下编译的二进制文件将完全无法在 NixOS 下运行。所以,要在 NixOS 上使用尚不存在于 Nixpkgs 仓库中的软件,最佳方案是自己用 Nix 语言写一份打包脚本,给这个软件打一个包,然后把打包定义加入 configuration.nix 中,从而安装到系统上。关于 NixOS 的软件打包,有三个好消息和两个坏消息。好消息是:...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>04-04</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2022-04-04 05:16</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>计算机与客户端</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/modify-computer">计算机与客户端</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>4 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/Linux">Linux</a> <a class="badge badge-tag" href="/tag/%E6%83%A0%E6%99%AE">惠普</a> <a class="badge badge-tag" href="/tag/%E6%9A%97%E5%BD%B1%E7%B2%BE%E7%81%B5">暗影精灵</a> <a class="badge badge-tag" href="/tag/%E5%AE%8F%E6%8C%89%E9%94%AE">宏按键</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAAEOCAAAAABd2qZ5AAAD9ElEQVR42u3awXbaUAwEUP7/p9Nt24AzIz2T9PSy6kmNzbsshKR5POLXx6fX73//fM2rO7y6W3Ln/J7X7zrwwoEDBw4c5VFf3Xrzv6+eeOpzJjTX78KBAwcOHGc5kjJ2fU37rhYlIW6LLg4cOHDg+DkceWHLn9UWyGtWHDhw4MDxL3K0rd1sUrf/EYADBw4cON7P0Q742pVScmU+2stHhzfOSnHgwIEDx7zePZKowU/+9y35Dhw4cODAMYoI5AGFvAHbL59yjuJ0OHDgwIFjzZEXpDtWPpsRYd4ctrg4cODAgWPDsT9YHmVoC+1sHNmGJIr5Ig4cOHDgiDk2h28jBflyqF2MtYhP/o4DBw4cONYcpz70qeFgHnfIv6Q8BoEDBw4cOPYc7TIpf0Bb6jaRhZYsWjjhwIEDB4551zMc3rXrn+QO7XIrGUfWI0IcOHDgwLHgSJq3tlzNomxtfKEtz0WgAQcOHDhwLDjuCBy0Ldbs8LMR4WPzwoEDBw4cce1oH5mP9jZtVV7Uk5Yyaghx4MCBA8eaYzOqS+rU3cPBzRosQsGBAwcOHCXHdSltm65NTCG/PvlW24bzyawUBw4cOHCMODaN06kGb1/UZwUYBw4cOHC8h+Psauq+pdes5CeRCxw4cODAseGYlas8ppD/JV9ZtZGLAhQHDhw4cLyFo40ORLV98fR9m/fyWThw4MCB4y0cybHbIeCpQpt8PXmcAgcOHDhw7Dlmj0/WTvtDtguw2f0PzEpx4MCBA8flTCxvn9pGK1kObcpkPij84pPgwIEDB46jHPkx8mtyiKSNvL5/jhUVWhw4cODAUXIkt86bqDbK1gYXZlGJPEKHAwcOHDju4GgXUbMRYV7UN0usNpCBAwcOHDhOccxiDW3UYFNcZ0z1GgwHDhw4cKw5ivZmdOBZW9WutZK2s1g+4cCBAweONcepoWHbts2qW1Kq86fcOEPFgQMHjv+SYx+Sa8vnptzOmrfkbk8CDThw4MCBY8SR3DRa2MRDvXwUeCoG18LhwIEDB44NxyYEkFw5G/Ztyv+swP/xuwMHDhw4cKw59iO22eqoXWi1IYl2TYUDBw4cOPYcmyXNbIy4j0dsim4UrcCBAwcOHAuOj/KVYLWHyUNveXvW3r+YOOLAgQMHjm77MwyobT5uXlyT483ayBoFBw4cOHBcciSPzId0bWShLcD7cF7xzePAgQMHjgVHW6g2AbXZcHC/xIp+a+DAgQMHjrdz5IucWRSvbbraNu+La3DgwIEDx7dynGq09iU/b02jXRwOHDhw4FhzbMIHefM2C9jNjt2eCwcOHDhwnOJoR2k5x+xuszI/K8CrfAcOHDhw4Pj7+l+r0bnME2JKRAAAAABJRU5ErkJggg==" alt="二维码"></div></div></div></div></div><div class="post-wrap"><h1 class="post-title"><a href="/article/modify-computer/reverse-engineered-linux-driver-for-hp-omen-macro-keys.lantian" rel="bookmark" title="用逆向工程方式给惠普暗影精灵宏按键编写 Linux 驱动">用逆向工程方式给惠普暗影精灵宏按键编写 Linux 驱动</a></h1><div class="post-text">我前段时间换了台新电脑,惠普的暗影精灵 17t-ck000(美版,应该对应的是国内的暗影精灵 7 Plus)。这台电脑好是好,做工优秀,性能强大,就是有一个问题:它在 Linux 下的驱动支持实在是太烂了。不支持调节风扇转速,你能看到风扇转速,但仅此而已。再加上惠普的默认风扇策略非常激进,即使我开启了 BIOS 中的低温风扇停转功能,它依然在 CPU 温度只有 40 度、显卡空载的情况下转得非常欢快。其实可以用 NBFC 直接写 EC 寄存器来控制,但在某次不幸的事故中当时的配置方案丢失了。我配置 NBFC 时正在新电脑试用 NixOS。事故发生时新电脑上的 NixOS 被我删掉了,而且当时的配置没上传 GitHub。过段时间再重新写一遍(咕咕咕)不支持调整键盘背光颜色,它们在 Windows 下由 OMEN Command Center 软件控制。有时系统崩溃、我长按电源键断电重启时,BIOS 会将键盘背光恢复成默认的五彩斑斓的颜色,此时我只能回到 Windows 进行调节。...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>02-06</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2022-02-06 14:29</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>网站与服务端</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/modify-website">网站与服务端</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>4 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/NS1">NS1</a> <a class="badge badge-tag" href="/tag/UptimeRobot">UptimeRobot</a> <a class="badge badge-tag" href="/tag/Freshping">Freshping</a> <a class="badge badge-tag" href="/tag/GeoDNS">GeoDNS</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADeCAAAAAB3DOFrAAACsklEQVR42u3aQXLjMAwEQP//09nrHqJkBiC93qrWyZVYEtsHgjXA6xVfXw/X3/99uit58tPnpzcevvDw8PAOLf3pZclCn+5K3vXzCuvn4OHh4V3j5Vt2vunnP83TovP1PP4dDw8P7wN4ySJmhaQtDHh4eHj/F+/nb7bFIDmU4+Hh4X0aLw9qk4KxCTsOhxp4eHh4F3j5ofZzPl/p7+Hh4eGtu+p5M2wfOrSFJ1otHh4e3gVe+/r2QHxqaGC2Tjw8PLwbvGSLz8PTfLwg/5nygvTNZzw8PLwLvHY0ahaVJmUgLxhJcDxcOh4eHl6wnmTbbUOK/Mn5e9shAzw8PLx7vKQ9vxl+yo/LbSmqG2N4eHh4F3jtAXdTGJKf4FQJwcPDwzvL28QKbSybFJJ2/OuXv+Ph4eFd483GAu6dYGdDXfVMGR4eHt6Id6rF1R6y20ChvRcPDw/vHi8fuspf0Ma1+zDi8TMeHh7eBd4sTj3Fbjf64Y+Ih4eHd43Xjgu00W1bHpJ7o2/i4eHhXeNtDr6zrT/f3PM05Zvn4OHh4R3l5RtuG6rORgHaVtwvZQwPDw/vH/ESWL6558MBs4Gw6XwWHh4eXspLhgDaRlcbB7cjCPvv4+Hh4e15bWyaFIN9+DsLSvDw8PDew2tbX6eaWLOBgGGzDQ8PD+8obxNJtEfkfRjRNs/w8PDw3slrC8Zso9+8JXo+Hh4e3tt5+SF4MxawGUGIMmk8PDy8Q7yv8mqPvKcKz/C/eHh4eBd47UjTJlZoW2tJNDwLR/Dw8PD2vHbRs+g2PxYnjbS8UOHh4eHd47WNrvaupOX/Gl3DrAUPDw/vjbzN8XcWW6wCXzw8PLwP4G0SjpyatNyOzZTh4eHhjXhJGDEbHWiPy6cKFR4eHt493uyV+bjVJoyYtdzw8PDwrvH+AN8Spktb2IWZAAAAAElFTkSuQmCC" alt="二维码"></div></div></div></div></div><div class="post-wrap"><h1 class="post-title"><a href="/article/modify-website/ns1-uptimerobot-freshping-geodns.lantian" rel="bookmark" title="用 NS1 和 UptimeRobot/Freshping 组建超低价 GeoDNS">用 NS1 和 UptimeRobot/Freshping 组建超低价 GeoDNS</a></h1><div class="post-text">本文部分内容参考自 https://hostedtalk.net/t/connecting-uptime-robot-with-ns1-dns-api/3883。目标我的 VPS 多且遍布世界各地,但一直以来,我的网站都只用了美国洛杉矶的一台 VPS 提供服务。因为我为了特殊线路、低价等原因购买的都是小服务商的 VPS,而非 DigitalOcean、Vultr 甚至 AWS、Azure 等大厂,这台美国洛杉矶的 VPS 网络有时会不稳定,虽然次数很少,但每次我都得手动临时切换 DNS 到其它 VPS 上,等网络恢复后再切换回来。因此,我希望可以把手头所有的 VPS 都用来提供网站服务,在某台 VPS 宕机时,用 DNS 将流量自动切到其它 VPS 上。由于我的网站使用 Hexo 静态网页生成系统,同步网站数据并无难度:只需要在一台 VPS 上生成文件,再用 Ansible 批量同步到所有 VPS 上即可。但更大的问题是 DNS 的配置。我希望用 GeoDNS 把用户导流到最近的 VPS 上,例如亚洲用户可以访问我的中国香港节点,美国用户可以访问我的美国洛杉矶节点,等等。...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>12-15</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2021-12-15 02:07</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>闲聊</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/chat">闲聊</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>1 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/Btrfs">Btrfs</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAADeCAAAAAB3DOFrAAACw0lEQVR42u3ay07DMBAF0P7/T8MWqUpy5+HSxckKQUV8jOQZ7vj1ip+fP8/f77x/5uo7P2/P1VvyN649eHh4eIOlXy3iallVdhV8/5b7NePh4eGd5iXH9P1n7l98v00JuLcePDw8vG/j9WBJMaiWHzw8PLxv5iUxRDUryMsMHh4e3vfwkmM9aYvzWHbSiB/JWvDw8PBi3uT4/q+vj8z38PDw8MZT9bxITJZS/f2F1eLh4eEd4E0i2mShSUM8iSqiNeDh4eGt8vILptVONQl889Chuk14eHh4n+FtDfW3Bl1zJB4eHt45XtIo54P86pb1hluFGAIPDw9vldcLC6pNc364J0WlPAzDw8PDW+XlbW7ysl4TvBVGXM738PDw8I7x8oM4Lxvz6LZ3w+qheuDh4eENeMkVgd4RP7l2UH1LIYDGw8PDW+JNxl1JiJDHE6/WE/3F8PDw8JZ41eFWNbqdXAtIopCFS1d4eHh4Rd78H/6kzZ0P1XobgYeHh3eCdy5g7R331YM+ulOGh4eHd4xXHYnNx2P59lWvdl1eHcDDw8Mb8/Kx1hYvb6arq3ooD3h4eHhLvGo+UY19d2OLfIubaS4eHh5e64bAfACWxwf5QvMBGx4eHt5pXn5Y90LV+1Y4jyF668HDw8M7wZsXhvkR34sbmjUQDw8Pb4nXixWqEUZvob0rDoV6hYeHh7fES568MORZyLwpf4gk8PDw8FZ51cY6+WRvGNYrPw8tNR4eHt4Sb1IMqtewJluTlJnLS1d4eHh4q7xRPYmP7/yqVjWSmJQQPDw8vAmvGjpUqZOxVrI1D2A8PDy8Y7y8La4e9En7O6ldD1uPh4eH9wW8yQWsakDcu1jwyusVHh4e3kd4eVObt+bVqLdQWvDw8PCO8fLIYNJeV8Pi/FpD804ZHh4eXotX/Ye/Gt1Wf7o1eMPDw8M7wPsFUJ8W21q7K8IAAAAASUVORK5CYII=" alt="二维码"></div></div></div></div></div><div class="post-image-wrap d-none d-lg-block"><img src="/usr/uploads/202112/chubbyemu.jpg.thumb.png" alt="插图" height="150" width="200"></div><div class="post-wrap"><h1 class="post-title"><a href="/article/chat/how-i-nuked-my-btrfs-partition.lantian" rel="bookmark" title="我把硬盘换到了新电脑上,这是 Btrfs 上的数据发生的变化">我把硬盘换到了新电脑上,这是 Btrfs 上的数据发生的变化</a></h1><div class="post-text">发生甚么事了我的旧电脑(联想拯救者 R720)的做工不怎么样。经过四年的使用,那台电脑换过一块键盘,一块机械硬盘(换成了 SATA 固态硬盘),而且每次拆开电脑后盖时,后盖或者屏轴上都会掉点塑料碎屑或者螺丝下来,让人感觉它的命不久矣。因此趁着打折,我买了一台新的笔记本电脑,并打算把我的数据迁移过去。我日常使用的 Arch Linux(包括 EFI 分区和 Btrfs 格式的根分区)都单独装在我半年前买的西部数据 SN550 1T 固态硬盘上。一般来说我需要在新电脑上重新装一遍系统,但是我一想,我在系统上也没针对硬件做很多的特殊配置,顶多就是配置了一下触摸板和 NVIDIA 显卡,只要在新电脑上把这些配置删了再调整一下,我的系统就直接能用了,方便省事。于是我就把这块固态拆下来,插进了新电脑的第二个 M.2 插槽。开机进入启动菜单,BIOS 自动识别到了硬盘上的 EFI 分区。很快我就重新进到了桌面。作为 Arch Linux 用户,...</div></div></div></article><article><div class="d-flex"><div class="post-info-wrap"><div class="post-info"><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-clock"></span><br><small>11-13</small></p><div class="post-meta-value">发布于 <span class="badge badge-tag">2021-11-13 00:48</span></div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-file-alt"></span><br><small>网站与服务端</small></p><div class="post-meta-value">分类 <a class="badge badge-tag" href="/category/modify-website">网站与服务端</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-tag"></span><br><small>1 标签</small></p><div class="post-meta-value">标签 <a class="badge badge-tag" href="/tag/NixOS">NixOS</a> </div></div></div><div class="post-meta-wrap"><div class="post-meta"><p><span class="fas fa-qrcode"></span><br><small>二维码</small></p><div class="post-meta-value"><img class="qrcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPYAAAD2CAAAAADAeSUUAAADJ0lEQVR42u3aS3ICMQwFQO5/aXKCIe9JQxWY9opKwOM2C6HP4xGv58VK3t8+5WqHq93apzywsbGxj2M/X66c8fpSkp2T/ZPX0ZeEjY2NfRy7fcy90fJ1uHoGqw5y2NjY2D/PTj6bHC5PctpzYmNjY2PPAtgmvCVX8Pov2NjY2L/MvusnfhKu2gQjKUu9sZaGjY2N/fHsWQv2M1+/pb+NjY2N/cHsZ7lmiUrbQp4FxUKBjY2NfRA7DwCz5CQ/6L4B3J4fGxsb+zx2cqy2TDMjtYWt2dOxsbGxz2C3ozObcJJf5SakRU0CbGxs7IPYdzVKN0EobzO35a1//ouNjY19KPt1KLpr4GYzNDkrVEW1NGxsbOwvZLfBadbi3RSw2p3rkR1sbGzsQ9lJwrAZnUmOO2skJyUtbGxs7JPYs/J9Ht7aUJQkEm3o+qc0ho2NjX0oezNws5mNaYdvZsEMGxsb+zz2rKw/awPcO76TXMrlDtjY2NhHsPMWb36sNvHYpCuzRAgbGxv7JHYSEvKmbF4SalsIeRLVFqSwsbGxv509Kwm1d7lpIezXZX8bGxsb+zh2XpSZpSub8tPm+ooqFDY2NvZB7LtgbZKz/2yUJmFjY2MfxG7TjFnhPr+afcpRtBOwsbGxj2DnpHxcZtaCbUNUfk2XRSVsbGzsg9h5G7UdxNns3JacitIYNjY29nHsWUkoaffmaUnCawPt5aewsbGxD2LX9adRt3Tf0E2aFnW7FxsbG/sIdlKsz8NVnhJs0pu8GXBpwcbGxj6I3f70f18KkRw9CZOPfGFjY2Mfx27Tj/zQeYs3bxjkoTeaVMLGxsY+gj1LGGZFpTwU5Wdrvx5sbGzs89jtQEybSLQtgc3VR6fCxsbGPoL9LNemTbu/vjywDctJ2NjY2F/IntXSkwCTD9zkqcUs8VhdCjY2NvaXsGdBq72mzbXOLu4fBTY2NvZx7DwwzFoF7aBPe576/djY2Ng/zJ4NzcyemF93PeiDjY2N/cPsTeFpU1TaJ0XY2NjYZ7PzsctNCMlbCO2oZX4qbGxs7PPYm8Gae1vCN5SKysQGGxsb+8vZf/ltKyZRRd4RAAAAAElFTkSuQmCC" alt="二维码"></div></div></div></div></div><div class="post-image-wrap d-none d-lg-block"><img src="/usr/uploads/202110/nixos-social-preview.png.thumb.png" alt="插图" height="150" width="200"></div><div class="post-wrap"><h1 class="post-title"><a href="/article/modify-website/nixos-initial-config-flake-deploy.lantian" rel="bookmark" title="NixOS 系列(二):基础配置,Nix Flake,和批量部署">NixOS 系列(二):基础配置,Nix Flake,和批量部署</a></h1><div class="post-text">NixOS 系列文章目录:NixOS 系列(一):我为什么心动了NixOS 系列(二):基础配置,Nix Flake,和批量部署推荐阅读:NixOS 与 Nix Flakes 新手入门,作者 Ryan YinNixOS 系列(三):软件打包,从入门到放弃NixOS 系列(四):「无状态」操作系统这是我的 NixOS 系列文章的第二篇,主要介绍以下内容:NixOS 配置文件的基本格式和修改配置的方法 Nix 包管理器的 Flake 功能 Deploy-RS 部署工具本文假设你已经按照 NixOS 官方安装教程装好了一个系统。更新日志2023-05-10:增加推荐阅读:NixOS 与 Nix Flakes 新手入门,作者 Ryan Yin。2021-12-18:NixOS 21.11 仍没有默认启用 Flake 功能,更新文章中相关说明。基础配置在 NixOS 的安装过程中,nixos-generate-config 工具在 /etc/nixos 目录下生成了一份初始配置文件,configuration.nix 和 hardware-configuration.nix 两份文件。我们先不管 hardware-configuration.nix 这份文件,...</div></div></div></article></div><aside class="d-none d-xl-block"><section class="widget"><h3>最新文章</h3><ul class="list-unstyled"><li>05-12 <a href="/article/modify-website/how-to-kill-the-dn42-network.lantian">如何引爆 DN42 网络(2023-05-12 更新)</a></li><li>05-08 <a href="/article/modify-computer/laptop-muxed-nvidia-passthrough.lantian">Optimus MUXed 笔记本上的 NVIDIA 虚拟机显卡直通(2023-05 更新)</a></li><li>04-17 <a href="/article/random-notes/fix-china-telecom-roaming-no-4g-on-aosp-rom.lantian">修改 APN 解决 AOSP ROM 上中国电信无法 4G 漫游问题</a></li><li>03-26 <a href="/article/random-notes/old-hp-workstation-as-all-in-one.lantian">老款 HP 工作站配置 NAS + 软路由笔记</a></li><li>01-14 <a href="/article/modify-computer/nixos-impermanence.lantian">NixOS 系列(四):「无状态」操作系统</a></li><li>06-21 <a href="/article/modify-computer/nixos-packaging.lantian">NixOS 系列(三):软件打包,从入门到放弃</a></li><li>04-04 <a href="/article/modify-computer/reverse-engineered-linux-driver-for-hp-omen-macro-keys.lantian">用逆向工程方式给惠普暗影精灵宏按键编写 Linux 驱动</a></li><li>02-06 <a href="/article/modify-website/ns1-uptimerobot-freshping-geodns.lantian">用 NS1 和 UptimeRobot/Freshping 组建超低价 GeoDNS</a></li><li>12-15 <a href="/article/chat/how-i-nuked-my-btrfs-partition.lantian">我把硬盘换到了新电脑上,这是 Btrfs 上的数据发生的变化</a></li><li>11-13 <a href="/article/modify-website/nixos-initial-config-flake-deploy.lantian">NixOS 系列(二):基础配置,Nix Flake,和批量部署</a></li><li>10-11 <a href="/article/modify-website/nixos-why.lantian">NixOS 系列(一):我为什么心动了</a></li><li>08-29 <a href="/article/modify-website/replace-jenkins-with-drone-ci.lantian">用 Drone CI 替换掉 Jenkins</a></li><li>07-18 <a href="/article/modify-website/lookup-any-whois-with-nginx.lantian">用 nginx 搭建能查询任意公网 WHOIS 的服务器</a></li><li>05-02 <a href="/article/modify-website/dn42-experimental-network-2020.lantian">DN42 实验网络介绍及注册教程(2022-12 更新)</a></li><li>04-19 <a href="/article/modify-website/serve-dn42-whois-with-nginx.lantian">将 nginx 用作 DN42 WHOIS 服务器</a></li></ul></section><section class="widget"><h3>最新评论</h3><ul class="list-unstyled" id="recent-comments"><li><a href="#">Loading...</a></li></ul></section><section class="widget"><h3>其它功能</h3><ul class="list-unstyled"><li><i class="fas fa-fw fa-rss"></i> <a href="/rss2.xml" target="_blank">RSS 订阅</a> | <a href="/feed.xml" target="_blank">Atom</a> | <a href="/feed.json" target="_blank">JSON</a></li><li><i class="fas fa-fw fa-globe"></i> <a href="https://stats.uptimerobot.com/BLK6VsRkR" target="_blank">服务器状态</a></li><li><i class="fas fa-fw fa-sitemap"></i> <a href="https://lg.lantian.pub" target="_blank">DN42 节点状态</a></li></ul></section><section class="widget"><h3>友情链接</h3><ul class="list-unstyled"><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="https://0x7f.cc">0x7f Blog 🐑</a></li><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="https://alanyhq.com">Alanyhq</a></li><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="https://blog.cas7.moe">Blog of Moecast</a></li><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="https://jerryxiao.cc">JerryXiao</a></li><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="https://snli.org">Shucheng Li</a></li><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="https://sangsir.com">SangSir | 艺术界的一朵奇葩</a></li><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="https://yuetau.net">YuetAu's Spot</a></li><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="https://blog.baoshuo.ren/?utm_source=friends">宝硕博客</a></li><li><i class="fas fa-fw fa-link"></i> <a target="_blank" href="http://foreverblog.cn">十年之约</a></li></ul></section></aside></div><footer class="lantian clearfix"><div class="page-navigator"><span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><span class="space">...</span><a class="page-number" href="/page/19/">19</a><a class="extend next" rel="next" href="/page/2/">»</a></div><div id="copyright" class="float-end text-end"><i class="fas fa-copyright"></i> 2012-2023 Lan Tian @ Blog<br><small>基于 <a href="https://hexo.io/" target="_blank">Hexo</a> 构建 @ 2023-05-17 15:12</small></div></footer></div></body></html>