操作系统

ubutnu 使用shell 设置 proxy

2022-09-29  本文已影响0人  JakeFishYao

ubutnu 使用shell 设置 proxy

command line设置proxy

gsettings set org.gnome.system.proxy mode 'auto'

参数可以是'auto','manual'

clash 脚本设置

#! /bin/bash
echo "Using clash......."
function set_manual(){
    gsettings set org.gnome.system.proxy mode 'manual'
    xxxx/clash -d /xxxx/.
        #xxxx表示你自己的路径
    return 0;
}
set_manual
gsettings set org.gnome.system.proxy mode 'auto'
echo "-----------set proxy aoto----------------"

上一篇 下一篇

猜你喜欢

热点阅读