Ubuntu配置screen、ss

更新ubuntu源

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

内容替换为

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

执行命令

sudo apt update

安装screen

screen配置文件

# Set default encoding using utf8
defutf8 on


## 解决中文乱码,这个要按需配置
defencoding utf8
encoding utf8 utf8
 

#兼容shell 使得.bashrc .profile /etc/profile等里面的别名等设置生效
shell -$SHELL

#set the startup message
startup_message off
term linux

## 解决无法滚动
termcapinfo xterm|xterms|xs ti@:te=\E[2J
 
# 屏幕缓冲区行数
defscrollback 10000
 
# 下标签设置
hardstatus on
caption always "%{= kw}%-w%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+w %=%d %M %0c %{g}%H%{-}"
 
#关闭闪屏
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客户端配置

参考链接

你可能感兴趣的:(Ubuntu配置screen、ss)