标签归档

Shell

Linux

编译jun模式jumkey redpill-load引导

本文引用的redpill-load源码地址为:https://github.com/jumkey/redpill-load 本文引用的扩展驱动地址为:https://github.com/pocopico/rp-ext 本文讲解的是ds918机型的引导编译,目前已经测试可以更新到7.1.1up3,日常使用和高负载情况下都测试过了,没有遇到任何问题,此引导版本目前只能生成7.0.1版本的系统,因为采用了jun的补丁模式,所以可以升级高版本并且无问题。 关于user_config.json的模版内容如下: { "extra_cmdline": { "vid"

macos

macos 清除图标缓存以及dock缓存

1.terminal输入命令或创建一个脚本,内容如下: #!/bin/bash sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; sudo rm -rf /Library/Caches/com.apple.iconservices.store; killall Dock killall Finder

Linux

Debian iptables 初始化配置

1.在debian9及以上已经没默认安装iptables,所以需要手动安装: apt install iptables 2.安装iptables开机加载规则应用 apt install iptables-persistent 安装此程序后会在当前/etc/iptables目录下生成一个后缀v4和v6的iptables规则文件作为开机规则加载 如果想使用当前iptables配置,可使用使用以下命令替换/etc/iptables/下的rules.v4和v6文件 iptables-save > /etc/iptables/rules.v4 替换默认文件 3.iptables初始化规则命令模板,如下: # 允许回环网卡 iptables -A INPUT

Linux

Linux-DD一键重装Ubuntu、Debian

使用方法: -d debian系统 默认支持7-12 可自己更改到最新版本 -u ubuntu系统,默认最高支持12.04-22.04 可自己更改到最新版本 -c centos系统,最高只支持centos6.x -v 系统版本 32或64 建议64 -p 密码设置,默认密码 Vicer -a 全自动安装 -m 手动安装 --mirror 指定安装包下载源 所需要的软件如下: #Debian/Ubuntu: apt-get