From 67b495cc269d5777485ae542bf389ccb630886e9 Mon Sep 17 00:00:00 2001 From: shu Date: Fri, 30 Oct 2026 15:55:23 +0800 Subject: 补充 fnm shell 提示最新写法;补充 vscode plantuml 设置;调整系统服务文件;调整开发环境配置方式。 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/11_system.sh | 90 ++-------------------------------------------------- 1 file changed, 3 insertions(+), 87 deletions(-) (limited to 'scripts/11_system.sh') diff --git a/scripts/11_system.sh b/scripts/11_system.sh index fdd7e16..947194b 100644 --- a/scripts/11_system.sh +++ b/scripts/11_system.sh @@ -22,97 +22,13 @@ setup_vconsole_font() { } setup_shadowsocks() { - sudo cat > /etc/shadowsocks-rust/s.json < /etc/dae/config.dae < router - qname(suffix: lan) -> router - fallback: direct_dns - } - - response { - fallback: accept - } - } -} - -routing { - # Shadowsocks must reach its remote server directly to avoid a proxy loop. - pname(sslocal) -> direct - - # Keep local, multicast, and other private destinations direct. - dip(224.0.0.0/3, 'ff00::/8') -> direct - dip(geoip:private) -> direct - - # Route mainland China IPs directly. Everything else uses the proxy, so - # overseas destinations do not need to be maintained in a domain list. - dip(geoip:cn) -> direct - - fallback: proxy -} -EOF + sudo cp -rf $ETC_DIR/dae/config.dae /etc/dae/config.dae + sudo systemctl enable --now dae } setup_modem() { -- cgit v1.2.3