New pages
Jump to navigation
Jump to search
- 10:31, 29 September 2025 WSL2 proxy 的方法 (hist | edit) [904 bytes] Mwroot (talk | contribs) (Created page with "== 查 IP == 在 PowerShell 里运行 ipconfig。 == Host 机 == * Proxy 软件开启允许局域网连入 * 开防火墙允许 WSL 流量接入本机 * 把那条系统自建的 WSL 入站规则先删掉 <syntaxhighlight lang="bash" line> New-NetFirewallRule -Name "WSL-Allow-Inbound" -DisplayName "WSL-Proxy" -InterfaceAlias "vEthernet (WSL)" -Direction Inbound -Action Allow </syntaxhighlight> * .wslconfig 里写入 <syntaxhighlight lang="bash" line> dnsTunneling=false <...")
- 10:31, 29 September 2025 WSLG 趣谈 (hist | edit) [1,750 bytes] Mwroot (talk | contribs) (Created page with "WSLG 是个非常有趣的玩意儿。 一般 Linux 分为终端版、图形版。终端版像电视里黑客用的那样,全是大黑框、纯文字,没有真正的图片,操作也是纯命令行。图形版就和我们用的 Windows 10 一样,到处是漂亮的图形,操作时用鼠标点点点。 WSL 这个玩意儿, Windows Subsystem for Linux 的简写,意思是 Windows 生个儿子叫 Linux。直接在 Windows 里运行 Linux,不用常规的 Virtu...")
- 10:31, 29 September 2025 用 WSL 安装 Linux 发行版的方法 (hist | edit) [1,428 bytes] Mwroot (talk | contribs) (Created page with "== 前置条件 == <syntaxhighlight lang="PowerShell"> # UEFI 中开启虚拟化支持 # 控制面板 - 卸载 - 启用或关闭 Windows 功能中打开“适用于 Linux 的 Windows 子系统”和“虚拟机平台” # 安装新的 Linux 分发版前将 WSL 2 设置为默认版本 # 在 PowerShell 中 wsl --update wsl --set-default-version 2 </syntaxhighlight> 想用 WSL 2,视情况可能需要安装一个 wsl_update_x64.msi 去更新 WSL 的内核。运行 <code...")
- 10:30, 29 September 2025 从 ArchLinux 改回 Debian 的全过程记录 (hist | edit) [2,634 bytes] Mwroot (talk | contribs) (Created page with "ArchLinux 挺好的,不过我的电脑有点旧了,加上我需要 mediawiki,pacman -Syu 时常常因 mediawiki 而中断,导致启动项丢失,恰逢 Debian 13 发布,于是换回用了多年的 Debian。以下为切换过程的全记录。 * 从 USTC 下载 Debian 13 iso:https://mirrors.ustc.edu.cn/help/debian-cd.html * 校验下载文件的 sha512 * 用 Ventoy 制作安装盘 * 备份浏览器书签及密码 * 备份 MediaWiki 数据库 <syntaxhighligh...")
- 10:30, 29 September 2025 一次恢复 ArchLinux 启动项的经历 (hist | edit) [3,058 bytes] Mwroot (talk | contribs) (Created page with "== Fx 问题 == 到底是启动项丢失,还是别的问题导致没有启动项?变量 x 不同,函数 F 不同。 当我遇到开机没有启动项,又没有任何报错时,我最明智的猜测只能是“启动项丢失”这个问题了。 后来问 ChatGPT,还有一些问题可能也有启动项丢失的表象: # grubx64.efi 或 grub.cfg 被误删 # bios 里关闭了 UEFI 或启动了 legacy # CMOS 电池没电了 # 硬盘坏了 如果 <code>efiboo...")
- 10:29, 29 September 2025 EndeavourOS 怎么用 (hist | edit) [644 bytes] Mwroot (talk | contribs) (Created page with "《EndeavourOS 怎么用》 == pacman == <syntaxhighlight lang="bash" line> # 更新系统 sudo pacman -Syu # 仅更新数据库 sudo pacman -Sy # 搜索软件 pacman -Ss # 安装软件 sudo pacman -S # 卸载软件 sudo pacman -R # 卸载无用依赖 sudo pacman -Rns </syntaxhighlight> == AUR == <syntaxhighlight lang="bash" line> # aur: arch user repo # 更新系统 yay -Syu # 搜索包 yay -Ss # 安装包 yay -S </syntaxhighlight> == VirtualBox == <syntaxhig...")
- 10:29, 29 September 2025 在 WSL2 中使用 ArchLinux (hist | edit) [110 bytes] Mwroot (talk | contribs) (Created page with "WSLG 可用性极差。未来再考虑。现在用就是纯纯小白鼠帮人免费搞测试。以后再说。")
- 10:28, 29 September 2025 怎么在 VirtualBox 中使用 ArchLinux (hist | edit) [1,740 bytes] Mwroot (talk | contribs) (Created page with "《怎么在 VirtualBox 中使用 ArchLinux》 == 安装方法 == {| class="wikitable" |+ VirtualBox 中用 archinstall 时建议配置 !项目 !注意事项 !版本 |- |虚拟机 |求旧 |VirtualBox 7.0.24 |- |拓展包 |匹配 |7.0.24.vbox-extpack |- |Guest 包 |与 Arch 对应 |7.1.6-2 |- |Arch |求新 |2025.03.01-x86_64 |- |内核 |求常 |linux |- |桌面 |求常 |KDE Plasma |- |驱动 |求全 |all open sources |} <syntaxhighlight lang="bash" line> 傻瓜式无痛...")
- 10:28, 29 September 2025 怎么在 ArchLinux 中使用 MediaWiki (hist | edit) [3,212 bytes] Mwroot (talk | contribs) (Created page with "《怎么在 ArchLinux 中使用 MediaWiki》 以下只为尝试。真用,我还是推荐用 Debian,或 WSL2,或云服务器。ArchLinux 只适合年轻人,有精力去试错。 == MediaWiki 本体 == <syntaxhighlight lang="bash" line> # 在 archlinux,redis 已经被 valkey 取代了。valkey 兼容 redis 的协议。原本的 redis 在 LocalSettings.php 中的配置方式依然有效 sudo pacman -S mediawiki mariadb php apache php-apache php-intl imagemagick...")
- 10:27, 29 September 2025 怎么使用 ArchLinux (hist | edit) [8,297 bytes] Mwroot (talk | contribs) (Created page with "== 联网安装 == 若用的不是网线,则需要先联 WIFI 再开始 archinstall。 <syntaxhighlight lang="bash" line> iwctl device list station wlan0 scan station wlan0 get-networks station wlan0 connect wifiname exit ping bilibili.com archinstall </syntaxhighlight> == 换源 == <syntaxhighlight lang="bash" line> # /etc/pacman.d/mirrorlist 配置文件开头加上: Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch </syntaxhighlight> <syntaxhighlight...")
- 10:27, 29 September 2025 在 Debian 上如何挂载一块硬盘 (hist | edit) [383 bytes] Mwroot (talk | contribs) (Created page with "# 找到 UUID 和磁盘格式:<code>lsblk -f</code> 查磁盘分区结构和磁盘类型。<code>sudo blkid</code> 找到 UUID。 # 创建挂载目录:mkdir some # 打开 /etc/fstab 按以下格式写入:<code>UUID=39c71dc4-5576-4660-9f0d-150d8c6c93c2 /home/to/some ext4 defaults,noatime 0 2</code> # <code>sudo mount -a</code>,无报错后检查一遍,才可以重启")
- 10:26, 29 September 2025 Debian 换源方法 (hist | edit) [693 bytes] Mwroot (talk | contribs) (Created page with "<syntaxhighlight lang="bash" line> # 把以下写入 /etc/apt/sources.list.d/ustc.sources Types: deb URIs: http://mirrors.ustc.edu.cn/debian Suites: bookworm bookworm-updates Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: http://mirrors.ustc.edu.cn/debian-security Suites: bookworm-security Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyri...")
- 10:26, 29 September 2025 现在配置 SSL 证书实现 https 非常简单了 (hist | edit) [1,462 bytes] Mwroot (talk | contribs) (Created page with "各大服务商都有商用的 SSL 证书卖,对个人站点来说费用还是有点高。贵有贵的道理,对企业用户来说,不买商用 SSL 证书,出了问题就没人背锅;买了商用 SSL,出了问题就可以甩锅给商家。对个人用户来说,使用 [https://letsencrypt.org/ Let's Encrypt] 实现 https,现在已经可以用三分钟部署成功了。 首先,你得保证你的 http 站点已经正常上线、运行、可访问。 其...")
- 10:26, 29 September 2025 Debian 分区满了怎么办 (hist | edit) [3,023 bytes] Mwroot (talk | contribs) (Created page with "600px 在使用围棋 AI 时,遇到了软件解压时,磁盘分区不足,导致 apt 报错的问题。经过多方排查,才知道是 <code>/tmp</code> 分区满了,且 <code>/</code> 分区立马也要满了。一旦重启,<code>/tmp</code> 分区较为空闲时, apt 能正常工作;一旦安装那个占用几个 G 的软件时,进度达 45% 时就报错。 报错为...")
- 10:25, 29 September 2025 怎样在 Debian 上安装围棋 AI Katago (hist | edit) [3,543 bytes] Mwroot (talk | contribs) (Created page with "900px == 概览 == # 安装外壳,即给围棋 AI 引擎找一个界面,一般的围棋 AI 引擎是不带界面的 # 安装内核,即安装围棋 AI 引擎 # 安装权重,即给围棋 AI 引擎一份优秀的历史经验当参考 # 在外壳下配置内核 == 外壳 == 围棋界面程序有 Katrain, Sabaki,Lizzie 等。我们安装 Sabaki,直接进项目地址找 release 即可。 # 进 [https://githu...")
- 10:25, 29 September 2025 电脑必备软件名录 (hist | edit) [1,223 bytes] Mwroot (talk | contribs) (Created page with "== Windows 平台 == ===常见=== 任何人都可以安装。 * 7-Zip * 小狼毫输入法 * Amazon Kindle * Anki * Everything * FreeMind * GoldenDict * Free Download Manager * Microsoft Office * Mozilla Firefox ESR * AntConc * accelon3 ===罕见=== 不懂的人不要安装。90% 的人用不上。 * QEMU guest agent * SPICE Guest Tools * Virtio-win-driver-installer * WinFsp * GTK2-Runtime ===高配=== 显卡不行的电脑不要安装。 * Google Earth Pro == Debian...")
- 10:24, 29 September 2025 怎样从 Debian Bullseye 升级至 Debian Bookworm (hist | edit) [3,182 bytes] Mwroot (talk | contribs) (Created page with "改过内核的 KVM 云主机升级难。仅支持从 Debian 11 升 12,不支持从 10 升 12。想要不出事,理论上不该在生产环境升级,应当在复刻出的测试环境升级,没出问题再在生产环境实践。 如果有任何需要修复的东西,最好确保您的 APT source-list 文件仍然指向 bullseye。 == 做好防灾 == ; 全盘备份 : clonezilla : dd : timeshift : rsnapshot ; 重点备份 : /etc : /var/lib/dpkg : /var/lib/apt/e...")
- 10:24, 29 September 2025 常用软件在 bullseye 与 bookworm 上的版本对比 (hist | edit) [1,501 bytes] Mwroot (talk | contribs) (Created page with "{|class="wikitable" !name !bullseye !installed !via !bookworm |- |debian |11.5 |11.5 |iso |12.1 |- |ibus-rime |1.4.0-5 |1.4.0-5 |apt |1.5.0-3 |- |emacs |1:27.1+1-3.1 |27.1 |apt |1:28.2+1-15 |- |scrcpy |1.17-1 |1.17-1 |apt |lack |- |stardict |3.0.6.3-1 |3.0.6.2 |dpkg |3.0.7+git20220909+dfsg-4 |- |stardict-tools |3.0.7+git20220909+dfsg-4~bpo11+1 |3.0.7+git20220909+dfsg-4~bpo11+1 |local |3.0.7+git20220909+dfsg-4 |- |kiwix |2.0.5-3 |2.0.5 |apt |2.3.0-1 |- |flameshot |0.9.0+d...")
- 10:23, 29 September 2025 经典极简 Rime 配置 (hist | edit) [3,764 bytes] Mwroot (talk | contribs) (Created page with "Rime 是一款极致的开源输入法,有非常丰富的可定制细节,没有任何广告,输入体验舒服到近乎无知觉。Windows、Linux、MacOS、安卓等全平台适用。还你一个没有干扰、全然自主的输入法。 以下是一些对 Rime 输入法<b>仓颉输入方案</b>的定制,实现效果为: * 平均三键就能打出任何字,很少选字、翻页,省手省心 * 再也不会忘记一个字长啥样,延续文化血脉 * 比...")
- 10:20, 29 September 2025 Emacs 后台自动启动-全局层面 (hist | edit) [625 bytes] Mwroot (talk | contribs) (Created page with "<syntaxhighlight lang="bash"> sudo touch /etc/systemd/system/emacs-sudo.service sudo chmod 664 /etc/systemd/system/emacs-sudo.service </syntaxhighlight> <syntaxhighlight lang="bash"> [Unit] Description=Emacs: the extensible, self-documenting text editor [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" Environment=SSH_AUTH_SOCK=%t/keyring/ssh Restart=always [Install] WantedBy=multi-user.target </syntaxhighlight>...")
- 10:19, 29 September 2025 怎样在 Emacs 中编辑任意文字区域 (hist | edit) [858 bytes] Mwroot (talk | contribs) (Created page with "<syntaxhighlight lang="bash"> sudo touch /etc/systemd/system/emacs-sudo.service sudo chmod 664 /etc/systemd/system/emacs-sudo.service </syntaxhighlight> <syntaxhighlight lang="bash"> [Unit] Description=Emacs: the extensible, self-documenting text editor [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" Environment=SSH_AUTH_SOCK=%t/keyring/ssh Restart=always [Install] WantedBy=multi-user.target </syntaxhighlight>...")
- 10:19, 29 September 2025 Emacs 后台自动启动-用户层面 (hist | edit) [1,023 bytes] Mwroot (talk | contribs) (Created page with "<syntaxhighlight lang="bash"> mkdir -p ~/.config/systemd/user nano ~/.config/systemd/user/emacs-user.service </syntaxhighlight> <pre> [Unit] Description=Emacs text editor as a daemon Documentation=info:emacs man:emacs(1) [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" Restart=on-failure [Install] WantedBy=default.target </pre> <syntaxhighlight lang="bash"> systemctl --user daemon-reload systemctl --user ena...")
- 10:19, 29 September 2025 Emacs 初级配置 (hist | edit) [9,247 bytes] Mwroot (talk | contribs) (Created page with "== basic == <syntaxhighlight lang="elisp" line> (set-language-environment "UTF-8") (set-default-coding-systems 'utf-8-unix) ;; (setq package-archives '(("gnu" . "http://1.15.88.122/gnu/") ;; ("melpa" . "http://1.15.88.122/melpa/"))) ;; (set-face-attribute 'default nil :font "DejaVu Serif:pixelsize=30") ;; (set-fontset-font t 'han "TW-MOE-Std-Kai:pixelsize=30") ;; (set-fontset-font t 'han "WenQuanYi Zen Hei:pixelsize=25" nil 'append) ;; DejaVu...")
- 10:18, 29 September 2025 怎样用 Emacs 调电子书格式:格式凌乱通用解决方案 (hist | edit) [2,746 bytes] Mwroot (talk | contribs) (Created page with "==背景== 333px 找了本电子书,是 pdf 格式的,无法导出为好格式的 txt。想起好久没玩 Emacs 的 regexp 怕生疏了,于是就用 Emacs 调一下 txt 电子书的格式。 注意,通常并不建议使用 Emacs 调整电子书格式,因为直接重新找资源是更自然、方便、合理的方案。 友情提示:下列图片,点开看全图更易理解,因为白边区域易与...")
- 10:17, 29 September 2025 在 Windows 10 VirtualBox 里的 MediaWiki (hist | edit) [1,588 bytes] Mwroot (talk | contribs) (Created page with "在 Windows 10 里安装 VirtualBox,再在 VirtualBox 里安装 Debian 13,再在 Debian 13 里安装 MediaWiki,是一种怎样的体验? __TOC__ == 用户是谁 == 你在新装 MeidaWiki 时一般会新建一个用户甲。 而旧机器的用户一般是用户乙。 在没导入旧数据库前,用户甲能登录。 在已导入旧数据库后,用户甲就被抹了。要用旧机器的用户登录。 == 端口转发 == 怎样用 VirtualBox 的端口转...")
- 10:17, 29 September 2025 怎样保护你的 MediaWiki 站点的安全:权属建议 (hist | edit) [11,999 bytes] Mwroot (talk | contribs) (Created page with "; 中文版 by me 上上周,我偶然发现我的网站有一个致命的权限问题,意识到风险后连夜采取安全措施。现在把我学到的保护 MediaWiki 站点的方法,分享给大家。注:本文只讨论 Apache 服务器情况,Nginx 请绕道。 == 思想理念 == * 只把对外要用到的 PHP 入口文件放在 web 根目录,其他一切(配置文件、源码、开发文件、构建工具配置、测试文件、文档等)都应移...")
- 10:17, 29 September 2025 Semantic MediaWiki 中的那些符号的意思 (hist | edit) [44 bytes] Mwroot (talk | contribs) (Created page with "700px")
- 10:16, 29 September 2025 在 Semantic Mediawiki 中带有 subobject 的模板如何创建 (hist | edit) [3,002 bytes] Mwroot (talk | contribs) (Created page with "在 Semantic MediaWiki 使用过程中,难免需要在同一页面,使用相同的模板。相同模板使用多次时,会导致一个参数有多个取值,最终在用 #ask 查询时,出现笛卡尔积。笛卡尔积的定义:假设集合A={a, b},集合B={0, 1, 2},则两个集合的笛卡尔积为{(a, 0), (a, 1), (a, 2), (b, 0), (b, 1), (b, 2)}。笛卡尔积的排序是乱的,我们必须用 subobject,令每一个参数及其取值,都变得唯一...")
- 10:16, 29 September 2025 MediaWiki 怎么设置各类 Debug 日志 (hist | edit) [2,385 bytes] Mwroot (talk | contribs) (Created page with "== 例子 == <syntaxhighlight lang="bash"> $wgDBerrorLog = '/var/log/mediawiki/dberror.log'; $wgDebugLogGroups = [ 'exception' => '/var/log/mediawiki/exception.log', 'resourceloader' => '/var/log/mediawiki/resourceloader.log', 'ratelimit' => '/var/log/mediawiki/ratelimit.log', // Extra log groups from your extension #'myextension' => '/var/log/mediawiki/myextension.log', #'somegroup' => '/var/log/mediawiki/somegroup.log', ]; </syntaxhighlight> == 常见组 == * e...")
- 10:15, 29 September 2025 怎样使用 redis 作为 MediaWiki 的缓存后端 (hist | edit) [4,730 bytes] Mwroot (talk | contribs) (Created page with "== 去除 apcu == <syntaxhighlight lang="bash" line> # 如果已经使用过 apcu 作为缓存,要先去除 apcu 缓存 grep -r apc /etc/php/8.2/ # 找到 apc 相关的配置行 sudo emacs /etc/php/8.2/mods-available/apcu.ini # 注释掉对 apcu 的调用 # 进 LocalSettings.php 取消对 CACHE_ACCEL 的调用 ## Shared memory settings ## $wgMainCacheType = CACHE_ACCEL; ## $wgMemCachedServers = []; </syntaxhighlight> == 使用 redis == <syntaxhighlight lang="bash" li...")
- 10:15, 29 September 2025 怎样使用 MediaWiki 的表格排序 (hist | edit) [1,289 bytes] Mwroot (talk | contribs) (Created page with "我一直苦恼一件事:MediaWiki 与 Excel 的协作太差了,MediaWiki 固然提供了表格能力,但没提供函数能力,也没有提供筛选能力。 但今天我突然想到,MediaWiki 明明具有排序能力,我曾见过且用过。速速回顾了一下 MediaWiki 表格排序能力的使用,特总结如下: 500px 所谓的子行不排,以下为实例: {| class="wikitable sortable" !style="width:9em"|...")
- 10:15, 29 September 2025 WSL2 Debian MediaWiki 使用体验 (hist | edit) [3,336 bytes] Mwroot (talk | contribs) (Created page with "总体体验:迅如闪电。 == 安装 == <syntaxhighlight lang="bash" line> # 开启 Windows 支持 UEFI 中开启虚拟化支持 控制面板 - 卸载 - 启用或关闭 Windows 功能中打开“适用于 Linux 的 Windows 子系统”和“虚拟机平台” # 查看 WSL 版本 wsl --version # 安装新的 Linux 分发版前将 WSL 2 设置为默认版本 wsl --set-default-version 2 # 查看正使用的 Linux 发行版 wsl -l -v # Powershell 中安装 WSL2 Deb...")
- 10:14, 29 September 2025 怎么设置完整的、完善的 301 跳转 (hist | edit) [1,880 bytes] Mwroot (talk | contribs) (Created page with "有时,为了网址更短,我们往往会利用 .htaccess 实现改写网址。改写前的网址是 abcd.com/loooog/index.php/page.html,改写后的网址是 abcd.com/short/page.html,这样更美观,节约屏幕纵向空间。 在服务器内部实现改写后,会出现一个问题,那就是改写前后的两个网址都能正常访问,对搜索引擎来说不太友好,会抱怨有页面存在大量重复内容。即主观上改写前后是同一个...")
- 10:14, 29 September 2025 为什么没放弃 Semantic MediaWiki (hist | edit) [16,663 bytes] Mwroot (talk | contribs) (Created page with "20250522 update: 因为我解决了 Semantic MediaWiki 使用 apcu 导致前后端缓存不一致的问题,即改用 redis 缓存。所以,我真正用上了 Semantic MediaWiki。没办法,它确实很符合我要完成的一项工作的需求。 ---- Semantic MediaWiki 是 MediaWiki 一系列拓展的合集。宣称是实现 MediaWiki 的语义化。有可能是我还没搞懂,以我目前的认知来看,用它性价比很低,值得直接放弃,后来者...")
- 10:13, 29 September 2025 怎样把 Excel 表格转换为 MediaWiki 表格 (hist | edit) [1,352 bytes] Mwroot (talk | contribs) (Created page with "Excel 是一款强大的表格软件。MediaWiki 是一款强大的笔记软件。Excel 的表格非常灵活,相对来说 MediaWiki 在表格处理上比较呆板。怎样把 Excel 表格转为 MediaWiki 表格呢? update:使用 VisualEditor 扩展,但不开 VisualEditor,直接在地址栏把 &action=edit 改为 &veaction=edit,是效率与美观兼具的做法。ve 即 VisualEditor 的简写。 以下皆可不看了: <pre> Update:直接复制 Excel 表...")
- 10:13, 29 September 2025 MediaWiki 怎么设置缓存 (hist | edit) [404 bytes] Mwroot (talk | contribs) (Created page with "之前的版本,没有特定设置过缓存,MediaWiki 默认有设置。 这次更新的新版,LocalSettings.php 中没有设置缓存目录,把它设置好即可。 首先,<code># $wgCacheDirectory = "$IP/cache";</code> 去除前面的 #。 另外,<code>chown -R www-data:www-data cache</code>。 之后就不会有 304 not found 的缓存报错了。 好了。 Category: MediaWiki")
- 10:12, 29 September 2025 MediaWiki git 安装指南 (hist | edit) [2,691 bytes] Mwroot (talk | contribs) (Created page with "第一步,下载 MediaWiki: <syntaxhighlight lang="bash" line> git clone --depth=1 https://gerrit.wikimedia.org/r/mediawiki/core.git --branch REL1_43 mediawiki sudo cp -r mediawiki/ /var/www/html cd /var/www/html sudo chown -R $(whoami):$(whoami) mediawiki sudo chown -R www-data:www-data mediawiki/images cd mediawiki git pull git pull --recurse-submodules git submodule update --init --recursive # 20250507 submodule 更新了 977 - 255 = 722 MB sudo apt-get install ap...")
- 10:12, 29 September 2025 怎样安装 MediaWiki Math extension (hist | edit) [1,068 bytes] Mwroot (talk | contribs) (Created page with "Math 由 MediaWiki 自带,只是因为网络问题我们用不了。最佳建议是,删掉 extensions/Math,另行安装 SimpleMathJax extension,只需要三分钟,全程无阻碍。 之所以写这篇小札,纯粹因为 <code> npm i mathoid </code> 让我不吐不快。从未见过如此闹心的情况。 # npm 安装一堆网络问题,npm 真是一个千疮百孔的坑 # npm 使用 cnpm 后,关于 mathoid 能见到一堆废弃申明、不安全申明、...")
- 10:11, 29 September 2025 怎样为 MediaWiki 网站安装高级搜索拓展 CirrusSearch (hist | edit) [10,736 bytes] Mwroot (talk | contribs) (Created page with "MediaWiki 原生的站内检索能力略有欠缺,但安装拓展 CirrusSearch 之后,站内检索能力则近乎完美。CirrusSearch 的检索能力主要来自 Elasticsearch 这款外部软件。据笔者实践,2G 小内存的机器就不要折腾了,运行几秒就耗干净内存了。但是对于内存稍强的机器,体验非常棒。据笔者多次实践,MediaWiki 安装 CirrusSearch 后,要正常运转,像本站这种小站,CirrusSearch 内存...")
- 10:11, 29 September 2025 怎样迁移 MediaWiki 站点 (hist | edit) [4,500 bytes] Mwroot (talk | contribs) (Created page with "相同版本的迁移很简单,重建旧环境,再把 database 和 file system 移过去就行。所以本文重点讨论升级式迁移:新 code + 旧重点备份 + update.php 等于升级成功。 新版本的数据,恢复至旧版本 MediaWiki,不支持。 旧版本的数据,恢复至新版本 MediaWiki,支持。不过要运行 update script. * 若 mediawiki/ 全量备份,则不用再装 mediawiki * 若 mediawiki/* 部分备份,则需在服务器...")
- 10:02, 29 September 2025 最有用的搜索技巧 (hist | edit) [902 bytes] Mwroot (talk | contribs) (Created page with "掌握一点搜索技巧,搜索效果会更好。以下讲几个最有效的搜索技巧。注意技巧中的标点符号,均为英文半角。 ; 无边落木 <nowiki>site:gov.cn</nowiki> : 用 site: 指定网站类型 : 优先搜来自政府网站的内容 ; 无边落木 <nowiki>site:edu.cn</nowiki> : 用 site: 指定网站类型 : 优先搜来自教育网站的内容 ; 无边落木 <nowiki>site:douban.com</nowiki> : 用 site: 指定网站类型 : 优先搜来自...")
- 10:02, 29 September 2025 腾讯云服务器控制台外生成密钥的逻辑 (hist | edit) [660 bytes] Mwroot (talk | contribs) (Created page with "在服务器外面生成密钥,怎么用?我只能看见一个公钥,公钥怎么展示在外边?私钥在哪里?其实逻辑是这样的。 # 点击生成 # 生成公钥,自动展示。同时,生成私钥,弹出下载 # 公钥放在控制台,可以绑定到实例,也就相当于把公钥复制进 ~/.ssh/authorized_keys # 私钥下载到本机上,放进本机的 .ssh 文件夹,再在 config 里配置一下,就可以免密登录实例了 这些...")
- 10:01, 29 September 2025 怎样清洁电脑面板上的油痕 (hist | edit) [1,619 bytes] Mwroot (talk | contribs) (Created page with "我的电脑之前靠近厨房,加上喜欢边吃饭边看剧,空气里的灰尘、做饭的油烟,加上饭菜的热气,凝聚在电脑面板上,摸上去油乎乎的,非常难受。单纯用洗洁精兑水还洗不干净,洗洁精兑醋也洗不干净。 我尝试用小苏打兑洗洁精加清水,效果立杆见影。小苏打像食盐那样袋装的,500 克约 5 元钱。 切记:屏幕下方隐藏着两条 tab,也就是联接排线,沾水会...")
- 10:01, 29 September 2025 对网络分享的倡议 (hist | edit) [1,508 bytes] Mwroot (talk | contribs) (Created page with "== 总述 == * 分享不清晰的电子书是不道德的行为,不想分享可以不分享,没有任何人有义务分享电子书 * 但若是要分享,无图的书要分享 .txt,有图的书要找高清扫描仪,制成清晰度很高的成品 * 凡是分享,一定要留好版本、版次信息,不要阉割版权页 * 但凡有改动,一定要标明,最好不要改动纸质版的内容 * 不要为了营利而在百度网盘留转账链接,人品太...")
- 10:01, 29 September 2025 哪个输入法最好 (hist | edit) [758 bytes] Mwroot (talk | contribs) (Created page with "{| class="wikitable" |- ! 专业考试 !! 机考提供的输入法 |- | 法律职业资格 || 搜狗全拼输入法、QQ全拼输入法、谷歌双拼输入法(微软双拼方案)、搜狗五笔输入法(86版)、极品五笔输入法(86版) |- | 注册会计师 || 微软拼音输入法、谷歌拼音输入法、搜狗拼音输入法、极品五笔输入法、万能五笔输入法 |- | 计算机技术与软件专业资格 || 微软拼音输入法、极点五...")
- 09:58, 29 September 2025 Z.lua 路径跳转工具怎么用 (hist | edit) [235 bytes] Mwroot (talk | contribs) (Created page with "<syntaxhighlight lang="bash" line> sudo apt install lua5.4 git clone --depth=1 https://github.com/skywind3000/z.lua.git # 以下添加进 .bashrc eval "$(lua /home/user/somedir/z.lua/z.lua --init bash enhanced once)" </syntaxhighlight>")
- 09:56, 29 September 2025 一个叫 Noto 的有趣字体集 (hist | edit) [816 bytes] Mwroot (talk | contribs) (Created page with "750px 所谓字体集,就是包含很多种字体的意思。Noto 是 谷歌开发的一个字体集。可商用于任何项目,但不能仅售卖此字体集。 Noto 在拉丁语中是我写我记的意思。更为用户喜闻乐见的解释是 no tofu,即消灭无合适字体时屏幕上的豆腐块。 Noto 有 200 多字族,2300 多种字体,适配 1000 多种语言。中国用户只用 noto-cjk 或者 noto sc(simplified...")
- 09:56, 29 September 2025 超简单的戒知乎教程 (hist | edit) [562 bytes] Mwroot (talk | contribs) (Created page with "有时,刷知乎很入迷,浪费了大把时间。如果不想在电脑上刷知乎,怎样让它打不开? 很简单,在电脑上找到 <code>C:\Windows\System32\drivers\etc</code> 这个目录,找到 hosts 文件,用管理员权限打开 hosts,在它当中写下这一行代码: <syntaxhighlight lang="bash"> 127.0.0.1 www.mouhu.com </syntaxhighlight> 这样,就打不开某乎了。 同理,这样可以屏蔽 xhs bili weibei: <syntaxhighlight la...")
- 09:55, 29 September 2025 怎么在 Word 里打出一个带钩或叉的框 (hist | edit) [158 bytes] Mwroot (talk | contribs) (Created page with "☑☒ 这两个符号怎么在 Word 里打出来? 输入 2611 后,按 Alt + X,可以打出 ☑。 输入 2612 后,按 Alt + X,可以打出 ☒。")
- 09:55, 29 September 2025 怎样打印超高图片 (hist | edit) [268 bytes] Mwroot (talk | contribs) (Created page with "用 Windows "画图"软件自带的打印设置,设置成 1 x N 页,就好了。 630px 630px 630px 630px")