Ubuntu配置screen、ss

更新ubuntu源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 
sudo vim /etc/apt/sources.list

內(nèi)容替換為

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

執(zhí)行命令

sudo apt update

安裝screen

screen配置文件

# Set default encoding using utf8
defutf8 on


## 解決中文亂碼,這個要按需配置
defencoding utf8
encoding utf8 utf8
 

#兼容shell 使得.bashrc .profile /etc/profile等里面的別名等設(shè)置生效
shell -$SHELL

#set the startup message
startup_message off
term linux

## 解決無法滾動
termcapinfo xterm|xterms|xs ti@:te=\E[2J
 
# 屏幕緩沖區(qū)行數(shù)
defscrollback 10000
 
# 下標簽設(shè)置
hardstatus on
caption always "%{= kw}%-w%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+w %=%d %M %0c %{g}%H%{-}"
 
#關(guān)閉閃屏
vbell off

安裝pip3

sudo apt install python3-pip

安裝ss

pip3 install https://github.com/shadowsocks/shadowsocks/archive/master.zip

配置

{
        "server":"0.0.0.0",
        "server_port":666,
        "local_address": "127.0.0.1",
        "local_port":1080,
        "password":"$(your password)",
        "timeout":300,
        "method":"aes-256-cfb",
        "fast_open": false
}

啟動命令

ssserver -c ./ss.json -d ss.json

Mac客戶端配置

參考鏈接

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容