一、部署SSR客户端
1. 安装运行环境
yum install -y python3
2. 下载并安装shadowsocksr
wget -O /tmp/shadowsocksr.zip https://github.com/shadowsocksrr/shadowsocksr/archive/3.2.2.zip
unzip /tmp/shadowsocksr.zip -d /tmp
mv /tmp/shadowsocksr-3.2.2 /usr/local/bin/ssr
rm -rf /tmp/shadowsocksr.zip
3. 配置ssr配置文件
创建配置文件
vim /etc/ssr_config.json
写入配置并保存
{
"server": "ip",
"server_port": port,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "password",
"timeout": 300,
"method": "chacha20-ietf",
"protocol": "auth_sha1_v4",
"protocol_param": "",
"obfs": "tls1.2_ticket_auth",
"obfs_param": "",
"fast_open": false,
"workers": 1
}
4. 添加快捷启动
创建文件
vim /usr/local/bin/ssr_start.sh
写入如下内容
#!/bin/sh
python3 /usr/local/bin/ssr/shadowsocks/local.py -c /etc/ssr_config.json
添加执行权限
chmod +x /usr/local/bin/ssr_start.sh
二、部署chrome
1. 安装依赖
yum install -y lsb
yum install -y libXScrnSaver
2. 安装chrome(需要科学上网)
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum localinstall -y google-chrome-stable_current_x86_64.rpm
rm -f google-chrome-stable_current_x86_64.rpm
3. 添加快捷启动
创建文件
vim /usr/local/bin/chrome
写入如下文件内容
#!/bin/sh
exec google-chrome --no-sandbox --lang=zh-CN --proxy-server="socks5://127.0.0.1:1080"
添加执行权限
chmod +x /usr/local/bin/chrome
三、启动流程
1. 打开一个终端窗口,启动ssr客户端
ssr_start.sh
2. 打开另一个新的终端窗口,启动chrome
chrome
Comments NOTHING