diff --git a/index.html b/index.html index 83aebdc..0604643 100644 --- a/index.html +++ b/index.html @@ -754,7 +754,7 @@

Recent

- ·97 words·1 min + ·91 words·1 min diff --git a/index.json b/index.json index 427d1d5..d47c906 100644 --- a/index.json +++ b/index.json @@ -1,2 +1,2 @@ -[{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/tags/article/","section":"Tags","summary":"","title":"Article","type":"tags"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/tags/artile/","section":"Tags","summary":"","title":"Artile","type":"tags"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/","section":"Cyberls-Blog","summary":"","title":"Cyberls-Blog","type":"page"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/posts/","section":"Posts","summary":"","title":"Posts","type":"posts"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/tags/tag/","section":"Tags","summary":"","title":"Tag","type":"tags"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"","title":"Tags","type":"tags"},{"content":"本文章摘录了一些可能比较有用的网站,以供安装和查询。\nGentoo Linux部分教程 #\rGentoo 安装教程1(cwittlut菊苣):Gentoo Linux 安装及使用指南\nGentoo 安装教程2(Houge菊苣):Gentoo 安装\nGentoo 使用musl+llvm stage3包来安装(Raymond Kwok):尝试以musl作为libc安装Gentoo之后的想法和建议 | Raymond's Blog (zozx.top)\nGentoo 韩菊苣的Overlay(用于配合musl安装):overlay: 12101111\nWSL 部分教程 #\r因为WSL基于微软的Hyper-V技术,在电脑中会有性能损失,推荐不使用或者少使用桌面,优先选择对性能要求较低的发行版(如Gentoo,WSL中源码编译时间较长,推荐Debian或RedHat系二进制包发行版,有能力者可自行尝试如Arch、Slackware、Nixos等)。如有确有需要,建议使用Xfce、Lxqt、Lxde等桌面。当然,追求超级轻量的可考虑i3wm、dwm、openbox、awesome等窗口工具。\nWSL2中使用VcXsrv实现xfce4图形界面+声音传输(Dexter Lien):\nWSL2避坑deb(jane-61-27):ubuntu :X server already running on display XXXX - 知乎 (zhihu.com)\nDeepin WSL发行版压缩包(deepin-community):deepin-rootfs: 制作一个deepin的根文件系统\n(注意:压缩包内的deepin-rootfs.tar请自行更名为rootfs.tar后再点击.exe安装)\nFedora WSL下载链接(Yosuke Sano): yosukes-dev/FedoraWSL: Fedora as a WSL Instance. Supports multiple install.\nWSL2避坑rpm(dtouch-58):WSL2下startxfce4报错 - 知乎 (zhihu.com)\n如何在Fedora WSL中安装并切换语言(jp_yen - Qiita,原安装包为日文ja,安装时请安装简体中文包zh_CN):https://qiita.com/jp_yen/items/f209463fb741fa1d43ac\nSeed Ubuntu实验部分摘录 #\r嗯嗯哈哈哈哈哈哈嗯嗯哈哈哈——【SEED Labs 2.0】SQL Injection Attack Lab\n","date":"11 August 2024","externalUrl":null,"permalink":"/posts/1723354616185-%E4%B8%80%E4%BA%9B%E7%BD%91%E7%AB%99%E7%9A%84%E6%91%98%E5%BD%95/","section":"Posts","summary":"","title":"一些网站的摘录","type":"posts"},{"content":"注意,本网站搭建环境是基于兼容centos的linux发行版和apache、mariadb、php8搭建的,如果需要使用Debian系或其他发行版(Arch、Gentoo、FreeBSD等)请使用搜索引擎搜索相应教程,并根据该教程以及具体实际来修改安装,不可完全照抄。\n本页面将会对帮助页面进行一定的解释。\n搭建一个网站 #\r选择服务器 #\r在中国大陆地区,请使用阿里云、腾讯云、华为云等搭建服务器,境外可选择谷歌、亚马逊、Oracle、Auzure等,当然也可自行组装服务器。建议选择Centos、Debian作为首选系统(教程多,遇到错误好百度)。\n注意,中国大陆需要包括购买域名、ICP备案以及公安备案。\n搭建环境 #\r本篇将以Wordpress安装教程(娄老师)为模板进行安装。\n# 安装Apache [root@ecs-dbxx ~]# yum install -y httpd # 开启Apache [root@ecs-dbxx ~]# systemctl start httpd.service 安装MariaDB(mysql社区开源分支)\n# 安装命令 [root@ecs-dbxx ~]# yum install -y mariadb-server # 开启MariaDB [root@ecs-dbxx ~]# systemctl start mariadb [root@ecs-dbxx ~]# systemctl enable mariadb #通过下面命令给mariadb数据库的root账户设置密码123456: mysqladmin -uroot password \u0026#39;123456\u0026#39; # 修改数据库root密码 mysql\u0026gt; ALTER USER \u0026#39;root\u0026#39;@\u0026#39;localhost\u0026#39; IDENTIFIED WITH mysql_native_password BY \u0026#39;新密码\u0026#39;; (注:新密码替换成自己的密码) 通过下面命令安装PHP和PHP模块:\n[root@ecs-dbxx ~]# yum install -y php [root@ecs-dbxx ~]# yum install -y php-mysqlnd php-fpm php-opcache php-cli php-curl php-dom php-exif php-fileinfo php-gd php-hash php-json php-mbstring php-mysqli php-openssl php-pcre php-xml libsodium 通过下面命令安装交互更加良好的nano 文本编辑器:\n[root@ecs-dbxx ~]# yum install -y nano 安装部署wordpress #\r以下为部分工具的安装和部署\n# 通过下面命令安装wget: [root@ecs-dbxx ~]# yum install -y wget # 通过下面命令请求wordpress安装包(.ZIP): [root@ecs-dbxx ~]# wget https://cn.wordpress.org/latest-zh_CN.zip # 通过下面命令安装unzip解压工具: [root@ecs-dbxx ~]# yum install -y unzip # 通过下面命令登录到mariadb: [root@ecs-dbxx ~]# mysql -uroot -p # 通过下面命令创建WordPress数据库: mysql\u0026gt; create database wordpressdb; 解压和赋权\n# 解压latest-zh_CN.zip到/var/www目录下 #当然,如果仅安装一个博客,可以把wordpress中的所有文件直接放在www目录内 #再删掉wordpress文件夹 [root@ecs-dbxx ~]# unzip latest-zh_CN.zip -d /var/www # 通过下面命令创建用户给Apache权限: [root@ecs-dbxx ~]# chown -R apache:apache /var/www/wordpress [root@ecs-dbxx ~]# chmod -R 755 /var/www/wordpress/ # 访问你的服务器公网ip http://你的服务器公网IP/wp-config.php(www根目录安装) http://你的服务器公网IP/wordpress/wp-config.php(wordpress目录安装) # 修改php.ini来使得超过4mb大小的文件上传至wordpress(比如本网站的主题)推荐使用vim/nano修改以下代码后的数字(已经修改了的放在下面了) # 在php.ini内修改 upload_max_filesize = 64M post_max_size = 128M memory_limit = 256M max_execution_time = 300 max_input_time = 300 至此,简单的步骤说明已经完成,遇到问题可使用必应或百度或谷歌自行搜索。\n如何添加备案及示例 #\r备案添加(lanceir):备案展示代码如下,已经去掉了代码可能涉及个人隐私的信息\n//添加icp备案号 \u0026lt;/br\u0026gt; /* \u0026#34;/br\u0026#34;负责换行 */ \u0026lt;pre class=\u0026#34;wp-block-code\u0026#34;\u0026gt;\u0026lt;code\u0026gt;\u0026lt;/br\u0026gt; \u0026lt;p\u0026gt;\u0026lt;a rel=\u0026#34;noreferrer noopener\u0026#34; href=\u0026#34;http://beian.miit.gov.cn/\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;\u0026lt;strong\u0026gt;你的icp备案号\u0026lt;/strong\u0026gt;\u0026lt;/a\u0026gt;\u0026lt;/p\u0026gt;\u0026lt;/code\u0026gt;\u0026lt;/pre\u0026gt; //添加公安备案号(注意herf部分请引用查询链接和自己的公安logo jpg地址) \u0026lt;/br\u0026gt; \u0026lt;p\u0026gt;\u0026lt;a rel=\u0026#34;noreferrer noopener\u0026#34; href=\u0026#34;http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=网安备案号\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;x省(简称)公网安备xxxxxxxxxxxxxx号\u0026lt;/a\u0026gt;\u0026lt;/p\u0026gt; 阿里云版本 #\r\u0026lt;a href=\u0026#34;https://beian.miit.gov.cn/\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;您的备案号\u0026lt;/a\u0026gt; \u0026lt;a href=\u0026#34;https://beian.miit.gov.cn/\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;浙B2-20080101\u0026lt;/a\u0026gt; PS:使用 **F12 **复制含有备案信息的代码,回到自己的后台粘贴,修改为自己的备案号及图片地址即可。\n","date":"11 August 2024","externalUrl":null,"permalink":"/posts/1723352384606-%E5%85%B3%E4%BA%8E%E7%BD%91%E7%AB%99%E7%9A%84%E5%BB%BA%E7%AB%8B%E5%92%8C%E6%B7%BB%E5%8A%A0%E5%A4%87%E6%A1%88wordpress%E7%89%88/","section":"Posts","summary":"","title":"关于网站的建立和添加备案(wordpress版)","type":"posts"},{"content":"在 Gentoo 中,world 文件包含了用户明确要安装的软件包。你可以使用 grep 命令来从 world 文件中提取软件包列表。以下是具体步骤\n列出world内的软件包: #\r# 这将显示 world 文件中的所有软件包。 cat /var/lib/portage/world 导出world内的软导件包到文件: #\r# 这将把 world 文件中的软件包列表保存到 world_packages.txt 文件中。 cat /var/lib/portage/world \u0026gt; world_packages.txt 在另一台 Gentoo 机器上导入并安装软件包: #\r将 world_packages.txt 文件复制到新机器上。 在新机器上,使用 emerge \u0026ndash;pretend \u0026ndash;verbose $(cat world_packages.txt) 来模拟安装已列出的软件包: # 这将显示将要安装的软件包列表,但并不实际执行安装 emerge --pretend --verbose $(cat world_packages.txt) # 请注意,这样做的前提是 world 文件只包含你明确要安装的软件包,而没有包含它们的依赖关系。 emerge --ask --verbose --update --deep --newuse $(cat world_packages.txt) 以下为导出来的world_packages.txt示例文件\n# 示例目录 app-admin/chezmoi app-admin/doas app-admin/eclean-kernel app-admin/syslog-ng app-antivirus/clamav app-antivirus/clamtk app-backup/timeshift app-editors/emacs app-editors/nano app-editors/vscode app-eselect/eselect-repository app-i18n/fcitx-configtool:5 app-i18n/fcitx-gtk:5 app-i18n/fcitx-qt:5 app-i18n/fcitx:5 app-laptop/laptop-mode-tools app-misc/fastfetch app-misc/github-desktop-bin app-misc/sl app-misc/wayland-utils app-misc/yazi app-office/wps-office app-portage/eix app-portage/gentoolkit app-shells/zsh app-text/aha app-text/ghostscript-gpl app-text/tree app-text/typst app-xemacs/emerge dev-build/cmake dev-build/ninja dev-build/xmake dev-java/openjdk dev-lang/rust dev-libs/openssl dev-python/pkgconfig dev-util/clinfo dev-util/pkgconf dev-util/vulkan-tools dev-vcs/git games-board/gnuchess kde-apps/ark kde-apps/bovo kde-apps/dolphin kde-apps/filelight kde-apps/incidenceeditor kde-apps/kde-apps-meta kde-apps/kfind kde-apps/kmahjongg kde-apps/knights kde-apps/konsole kde-apps/kwalletmanager kde-apps/yakuake kde-plasma/discover kde-plasma/plasma-firewall kde-plasma/plasma-meta kde-plasma/print-manager mail-client/thunderbird media-fonts/noto-cjk media-gfx/flameshot media-gfx/krita media-gfx/plantuml media-libs/freetype media-sound/mpg123 media-sound/yesplaymusic-bin net-firewall/firewalld net-fs/samba net-im/telegram-desktop-bin net-im/tencent-qq net-im/wemeet net-misc/chrony net-misc/networkmanager net-misc/openssh net-p2p/ktorrent net-print/cups-meta net-print/gutenprint net-proxy/v2rayA net-wireless/iwd sys-apps/merge-usr sys-apps/pnpm sys-apps/proot sys-apps/usb_modeswitch sys-block/partitionmanager sys-boot/grub sys-boot/os-prober sys-devel/clang sys-fs/btrfs-progs sys-kernel/dracut sys-kernel/genkernel sys-kernel/installkernel sys-kernel/linux-firmware sys-kernel/xanmod-kernel sys-kernel/xanmod-rt-sources sys-libs/compiler-rt-sanitizers sys-process/btop www-client/firefox x11-apps/mesa-progs x11-apps/xdpyinfo x11-misc/sddm 如果 world 文件包含依赖关系,你可能需要手动编辑文件,只保留你明确要安装的软件包。确保在执行实际安装之前检查可能的依赖关系和其他变化。\n","date":"11 August 2024","externalUrl":null,"permalink":"/posts/1723355501852-%E5%9C%A8gentoo%E4%B8%AD%E5%AF%BC%E5%87%BA%E5%B7%B2%E8%A3%85%E5%8C%85%E5%90%8D%E5%8D%95%E5%88%B0%E6%96%B0%E7%94%B5%E8%84%91%E5%B9%B6%E4%BE%9D%E5%90%8D%E5%8D%95%E5%AE%89%E8%A3%85/","section":"Posts","summary":"","title":"在Gentoo中,导出已装包名单到新电脑,并依名单安装","type":"posts"},{"content":"本文用于存储部分软件的配置文件\ndoas.conf #\r# Do not require passwords for five minutes for all users in the wheel group permit persist :wheel # Allow a user to use the reboot command without a password permit nopass kl cmd reboot permit nopass kl cmd shutdown permit nopass kl cmd eix-sync .zimrc #\r# Install p10k theme zmodule romkatv/powerlevel10k # Install dracula colour zmodule dracula .zshrc #\r# For using github proxy () { export https_proxy=\u0026#34;http://127.0.0.1:2080\u0026#34; export http_proxy=\u0026#34;http://127.0.0.1:2080\u0026#34; export all_proxy=\u0026#34;sock5://127.0.0.1:2080\u0026#34; echo \u0026#34;HTTP Proxy on: 127.0.0.1\u0026#34; } nproxy () { unset http_proxy unset https_proxy unset all_proxy echo \u0026#34;HTTP Proxy off\u0026#34; } ","date":"11 August 2024","externalUrl":null,"permalink":"/posts/1723356092040-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%A4%87%E4%BB%BD/","section":"Posts","summary":"","title":"配置文件备份","type":"posts"},{"content":"这是博客的第一篇文章。本博客将会逐步的进行完善,并迁移其他文章。\n博客的搭建参考了:如何用 GitHub Pages + Hugo 搭建个人博客(cuttontail)\n使用了Blowfish主题\n使用VScode作为默认编辑器\n","date":"10 August 2024","externalUrl":null,"permalink":"/posts/1723298779013-%E4%BD%A0%E5%A5%BD/","section":"Posts","summary":"","title":"你好","type":"posts"},{"content":"","externalUrl":null,"permalink":"/authors/","section":"Authors","summary":"","title":"Authors","type":"authors"},{"content":"","externalUrl":null,"permalink":"/categories/","section":"Categories","summary":"","title":"Categories","type":"categories"},{"content":"","externalUrl":null,"permalink":"/series/","section":"Series","summary":"","title":"Series","type":"series"}] \ No newline at end of file +[{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/tags/article/","section":"Tags","summary":"","title":"Article","type":"tags"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/tags/artile/","section":"Tags","summary":"","title":"Artile","type":"tags"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/","section":"Cyberls-Blog","summary":"","title":"Cyberls-Blog","type":"page"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/posts/","section":"Posts","summary":"","title":"Posts","type":"posts"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/tags/tag/","section":"Tags","summary":"","title":"Tag","type":"tags"},{"content":"","date":"11 August 2024","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"","title":"Tags","type":"tags"},{"content":"本文章摘录了一些可能比较有用的网站,以供安装和查询。\nGentoo Linux部分教程 #\rGentoo 安装教程1(cwittlut菊苣):Gentoo Linux 安装及使用指南\nGentoo 安装教程2(Houge菊苣):Gentoo 安装\nGentoo 使用musl+llvm stage3包来安装(Raymond Kwok):尝试以musl作为libc安装Gentoo之后的想法和建议 | Raymond's Blog (zozx.top)\nGentoo 韩菊苣的Overlay(用于配合musl安装):overlay: 12101111\nWSL 部分教程 #\r因为WSL基于微软的Hyper-V技术,在电脑中会有性能损失,推荐不使用或者少使用桌面,优先选择对性能要求较低的发行版(如Gentoo,WSL中源码编译时间较长,推荐Debian或RedHat系二进制包发行版,有能力者可自行尝试如Arch、Slackware、Nixos等)。如有确有需要,建议使用Xfce、Lxqt、Lxde等桌面。当然,追求超级轻量的可考虑i3wm、dwm、openbox、awesome等窗口工具。\nWSL2中使用VcXsrv实现xfce4图形界面+声音传输(Dexter Lien):\nWSL2避坑deb(jane-61-27):ubuntu :X server already running on display XXXX - 知乎 (zhihu.com)\nDeepin WSL发行版压缩包(deepin-community):deepin-rootfs: 制作一个deepin的根文件系统\n(注意:压缩包内的deepin-rootfs.tar请自行更名为rootfs.tar后再点击.exe安装)\nFedora WSL下载链接(Yosuke Sano): yosukes-dev/FedoraWSL: Fedora as a WSL Instance. Supports multiple install.\nWSL2避坑rpm(dtouch-58):WSL2下startxfce4报错 - 知乎 (zhihu.com)\n如何在Fedora WSL中安装并切换语言(jp_yen - Qiita,原安装包为日文ja,安装时请安装简体中文包zh_CN):https://qiita.com/jp_yen/items/f209463fb741fa1d43ac\nSeed Ubuntu实验部分摘录 #\r嗯嗯哈哈哈哈哈哈嗯嗯哈哈哈——【SEED Labs 2.0】SQL Injection Attack Lab\n","date":"11 August 2024","externalUrl":null,"permalink":"/posts/1723354616185-%E4%B8%80%E4%BA%9B%E7%BD%91%E7%AB%99%E7%9A%84%E6%91%98%E5%BD%95/","section":"Posts","summary":"","title":"一些网站的摘录","type":"posts"},{"content":"注意,本网站搭建环境是基于兼容centos的linux发行版和apache、mariadb、php8搭建的,如果需要使用Debian系或其他发行版(Arch、Gentoo、FreeBSD等)请使用搜索引擎搜索相应教程,并根据该教程以及具体实际来修改安装,不可完全照抄。\n本页面将会对帮助页面进行一定的解释。\n搭建一个网站 #\r选择服务器 #\r在中国大陆地区,请使用阿里云、腾讯云、华为云等搭建服务器,境外可选择谷歌、亚马逊、Oracle、Auzure等,当然也可自行组装服务器。建议选择Centos、Debian作为首选系统(教程多,遇到错误好百度)。\n注意,中国大陆需要包括购买域名、ICP备案以及公安备案。\n搭建环境 #\r本篇将以Wordpress安装教程(娄老师)为模板进行安装。\n# 安装Apache [root@ecs-dbxx ~]# yum install -y httpd # 开启Apache [root@ecs-dbxx ~]# systemctl start httpd.service 安装MariaDB(mysql社区开源分支)\n# 安装命令 [root@ecs-dbxx ~]# yum install -y mariadb-server # 开启MariaDB [root@ecs-dbxx ~]# systemctl start mariadb [root@ecs-dbxx ~]# systemctl enable mariadb #通过下面命令给mariadb数据库的root账户设置密码123456: mysqladmin -uroot password \u0026#39;123456\u0026#39; # 修改数据库root密码 mysql\u0026gt; ALTER USER \u0026#39;root\u0026#39;@\u0026#39;localhost\u0026#39; IDENTIFIED WITH mysql_native_password BY \u0026#39;新密码\u0026#39;; (注:新密码替换成自己的密码) 通过下面命令安装PHP和PHP模块:\n[root@ecs-dbxx ~]# yum install -y php [root@ecs-dbxx ~]# yum install -y php-mysqlnd php-fpm php-opcache php-cli php-curl php-dom php-exif php-fileinfo php-gd php-hash php-json php-mbstring php-mysqli php-openssl php-pcre php-xml libsodium 通过下面命令安装交互更加良好的nano 文本编辑器:\n[root@ecs-dbxx ~]# yum install -y nano 安装部署wordpress #\r以下为部分工具的安装和部署\n# 通过下面命令安装wget: [root@ecs-dbxx ~]# yum install -y wget # 通过下面命令请求wordpress安装包(.ZIP): [root@ecs-dbxx ~]# wget https://cn.wordpress.org/latest-zh_CN.zip # 通过下面命令安装unzip解压工具: [root@ecs-dbxx ~]# yum install -y unzip # 通过下面命令登录到mariadb: [root@ecs-dbxx ~]# mysql -uroot -p # 通过下面命令创建WordPress数据库: mysql\u0026gt; create database wordpressdb; 解压和赋权\n# 解压latest-zh_CN.zip到/var/www目录下 #当然,如果仅安装一个博客,可以把wordpress中的所有文件直接放在www目录内 #再删掉wordpress文件夹 [root@ecs-dbxx ~]# unzip latest-zh_CN.zip -d /var/www # 通过下面命令创建用户给Apache权限: [root@ecs-dbxx ~]# chown -R apache:apache /var/www/wordpress [root@ecs-dbxx ~]# chmod -R 755 /var/www/wordpress/ # 访问你的服务器公网ip http://你的服务器公网IP/wp-config.php(www根目录安装) http://你的服务器公网IP/wordpress/wp-config.php(wordpress目录安装) # 修改php.ini来使得超过4mb大小的文件上传至wordpress(比如本网站的主题)推荐使用vim/nano修改以下代码后的数字(已经修改了的放在下面了) # 在php.ini内修改 upload_max_filesize = 64M post_max_size = 128M memory_limit = 256M max_execution_time = 300 max_input_time = 300 至此,简单的步骤说明已经完成,遇到问题可使用必应或百度或谷歌自行搜索。\n如何添加备案及示例 #\r备案添加(lanceir):备案展示代码如下,已经去掉了代码可能涉及个人隐私的信息\n//添加icp备案号 \u0026lt;/br\u0026gt; /* \u0026#34;/br\u0026#34;负责换行 */ \u0026lt;pre class=\u0026#34;wp-block-code\u0026#34;\u0026gt;\u0026lt;code\u0026gt;\u0026lt;/br\u0026gt; \u0026lt;p\u0026gt;\u0026lt;a rel=\u0026#34;noreferrer noopener\u0026#34; href=\u0026#34;http://beian.miit.gov.cn/\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;\u0026lt;strong\u0026gt;你的icp备案号\u0026lt;/strong\u0026gt;\u0026lt;/a\u0026gt;\u0026lt;/p\u0026gt;\u0026lt;/code\u0026gt;\u0026lt;/pre\u0026gt; //添加公安备案号(注意herf部分请引用查询链接和自己的公安logo jpg地址) \u0026lt;/br\u0026gt; \u0026lt;p\u0026gt;\u0026lt;a rel=\u0026#34;noreferrer noopener\u0026#34; href=\u0026#34;http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=网安备案号\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;x省(简称)公网安备xxxxxxxxxxxxxx号\u0026lt;/a\u0026gt;\u0026lt;/p\u0026gt; 阿里云版本 #\r\u0026lt;a href=\u0026#34;https://beian.miit.gov.cn/\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;您的备案号\u0026lt;/a\u0026gt; \u0026lt;a href=\u0026#34;https://beian.miit.gov.cn/\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;浙B2-20080101\u0026lt;/a\u0026gt; PS:使用 **F12 **复制含有备案信息的代码,回到自己的后台粘贴,修改为自己的备案号及图片地址即可。\n","date":"11 August 2024","externalUrl":null,"permalink":"/posts/1723352384606-%E5%85%B3%E4%BA%8E%E7%BD%91%E7%AB%99%E7%9A%84%E5%BB%BA%E7%AB%8B%E5%92%8C%E6%B7%BB%E5%8A%A0%E5%A4%87%E6%A1%88wordpress%E7%89%88/","section":"Posts","summary":"","title":"关于网站的建立和添加备案(wordpress版)","type":"posts"},{"content":"在 Gentoo 中,world 文件包含了用户明确要安装的软件包。你可以使用 grep 命令来从 world 文件中提取软件包列表。以下是具体步骤\n列出world内的软件包: #\r# 这将显示 world 文件中的所有软件包。 cat /var/lib/portage/world 导出world内的软导件包到文件: #\r# 这将把 world 文件中的软件包列表保存到 world_packages.txt 文件中。 cat /var/lib/portage/world \u0026gt; world_packages.txt 在另一台 Gentoo 机器上导入并安装软件包: #\r将 world_packages.txt 文件复制到新机器上。 在新机器上,使用 emerge \u0026ndash;pretend \u0026ndash;verbose $(cat world_packages.txt) 来模拟安装已列出的软件包: # 这将显示将要安装的软件包列表,但并不实际执行安装 emerge --pretend --verbose $(cat world_packages.txt) # 请注意,这样做的前提是 world 文件只包含你明确要安装的软件包,而没有包含它们的依赖关系。 emerge --ask --verbose --update --deep --newuse $(cat world_packages.txt) 以下为导出来的world_packages.txt示例文件\n# 示例目录 app-admin/chezmoi app-admin/doas app-admin/eclean-kernel app-admin/syslog-ng app-antivirus/clamav app-antivirus/clamtk app-backup/timeshift app-editors/emacs app-editors/nano app-editors/vscode app-eselect/eselect-repository app-i18n/fcitx-configtool:5 app-i18n/fcitx-gtk:5 app-i18n/fcitx-qt:5 app-i18n/fcitx:5 app-laptop/laptop-mode-tools app-misc/fastfetch app-misc/github-desktop-bin app-misc/sl app-misc/wayland-utils app-misc/yazi app-office/wps-office app-portage/eix app-portage/gentoolkit app-shells/zsh app-text/aha app-text/ghostscript-gpl app-text/tree app-text/typst app-xemacs/emerge dev-build/cmake dev-build/ninja dev-build/xmake dev-java/openjdk dev-lang/rust dev-libs/openssl dev-python/pkgconfig dev-util/clinfo dev-util/pkgconf dev-util/vulkan-tools dev-vcs/git games-board/gnuchess kde-apps/ark kde-apps/bovo kde-apps/dolphin kde-apps/filelight kde-apps/incidenceeditor kde-apps/kde-apps-meta kde-apps/kfind kde-apps/kmahjongg kde-apps/knights kde-apps/konsole kde-apps/kwalletmanager kde-apps/yakuake kde-plasma/discover kde-plasma/plasma-firewall kde-plasma/plasma-meta kde-plasma/print-manager mail-client/thunderbird media-fonts/noto-cjk media-gfx/flameshot media-gfx/krita media-gfx/plantuml media-libs/freetype media-sound/mpg123 media-sound/yesplaymusic-bin net-firewall/firewalld net-fs/samba net-im/telegram-desktop-bin net-im/tencent-qq net-im/wemeet net-misc/chrony net-misc/networkmanager net-misc/openssh net-p2p/ktorrent net-print/cups-meta net-print/gutenprint net-proxy/v2rayA net-wireless/iwd sys-apps/merge-usr sys-apps/pnpm sys-apps/proot sys-apps/usb_modeswitch sys-block/partitionmanager sys-boot/grub sys-boot/os-prober sys-devel/clang sys-fs/btrfs-progs sys-kernel/dracut sys-kernel/genkernel sys-kernel/installkernel sys-kernel/linux-firmware sys-kernel/xanmod-kernel sys-kernel/xanmod-rt-sources sys-libs/compiler-rt-sanitizers sys-process/btop www-client/firefox x11-apps/mesa-progs x11-apps/xdpyinfo x11-misc/sddm 如果 world 文件包含依赖关系,你可能需要手动编辑文件,只保留你明确要安装的软件包。确保在执行实际安装之前检查可能的依赖关系和其他变化。\n","date":"11 August 2024","externalUrl":null,"permalink":"/posts/1723355501852-%E5%9C%A8gentoo%E4%B8%AD%E5%AF%BC%E5%87%BA%E5%B7%B2%E8%A3%85%E5%8C%85%E5%90%8D%E5%8D%95%E5%88%B0%E6%96%B0%E7%94%B5%E8%84%91%E5%B9%B6%E4%BE%9D%E5%90%8D%E5%8D%95%E5%AE%89%E8%A3%85/","section":"Posts","summary":"","title":"在Gentoo中,导出已装包名单到新电脑,并依名单安装","type":"posts"},{"content":"本文用于存储部分软件的配置文件\ndoas.conf #\r# Do not require passwords for five minutes for all users in the wheel group permit persist :wheel # Allow a user to use the reboot command without a password permit nopass kl cmd reboot permit nopass kl cmd shutdown permit nopass kl cmd eix-sync .zimrc #\r# Install p10k theme zmodule romkatv/powerlevel10k .zshrc #\r# For using github proxy () { export https_proxy=\u0026#34;http://127.0.0.1:2080\u0026#34; export http_proxy=\u0026#34;http://127.0.0.1:2080\u0026#34; export all_proxy=\u0026#34;sock5://127.0.0.1:2080\u0026#34; echo \u0026#34;HTTP Proxy on: 127.0.0.1\u0026#34; } nproxy () { unset http_proxy unset https_proxy unset all_proxy echo \u0026#34;HTTP Proxy off\u0026#34; } ","date":"11 August 2024","externalUrl":null,"permalink":"/posts/1723356092040-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%A4%87%E4%BB%BD/","section":"Posts","summary":"","title":"配置文件备份","type":"posts"},{"content":"这是博客的第一篇文章。本博客将会逐步的进行完善,并迁移其他文章。\n博客的搭建参考了:如何用 GitHub Pages + Hugo 搭建个人博客(cuttontail)\n使用了Blowfish主题\n使用VScode作为默认编辑器\n","date":"10 August 2024","externalUrl":null,"permalink":"/posts/1723298779013-%E4%BD%A0%E5%A5%BD/","section":"Posts","summary":"","title":"你好","type":"posts"},{"content":"","externalUrl":null,"permalink":"/authors/","section":"Authors","summary":"","title":"Authors","type":"authors"},{"content":"","externalUrl":null,"permalink":"/categories/","section":"Categories","summary":"","title":"Categories","type":"categories"},{"content":"","externalUrl":null,"permalink":"/series/","section":"Series","summary":"","title":"Series","type":"series"}] \ No newline at end of file diff --git "a/posts/1723356092040-\351\205\215\347\275\256\346\226\207\344\273\266\345\244\207\344\273\275/index.html" "b/posts/1723356092040-\351\205\215\347\275\256\346\226\207\344\273\266\345\244\207\344\273\275/index.html" index 4ade6e9..81396a9 100644 --- "a/posts/1723356092040-\351\205\215\347\275\256\346\226\207\344\273\266\345\244\207\344\273\275/index.html" +++ "b/posts/1723356092040-\351\205\215\347\275\256\346\226\207\344\273\266\345\244\207\344\273\275/index.html" @@ -108,7 +108,7 @@ "keywords": ["artile","tag"], "mainEntityOfPage": "true", - "wordCount": "97" + "wordCount": "91" }] @@ -373,7 +373,7 @@

- ·97 words·1 min· + ·91 words·1 min· @@ -487,8 +487,6 @@

.zimrc

# Install p10k theme
 zmodule romkatv/powerlevel10k
-# Install dracula colour
-zmodule dracula
 

.zshrc diff --git a/posts/index.html b/posts/index.html index 8fa9a0f..f381b39 100644 --- a/posts/index.html +++ b/posts/index.html @@ -408,7 +408,7 @@

- ·97 words·1 min + ·91 words·1 min diff --git a/tags/artile/index.html b/tags/artile/index.html index 9e8cdde..ec90612 100644 --- a/tags/artile/index.html +++ b/tags/artile/index.html @@ -415,7 +415,7 @@

Arti
- ·97 words·1 min + ·91 words·1 min diff --git a/tags/tag/index.html b/tags/tag/index.html index 75a6e54..aeda23d 100644 --- a/tags/tag/index.html +++ b/tags/tag/index.html @@ -415,7 +415,7 @@

Tag<
- ·97 words·1 min + ·91 words·1 min