wget http://www.texfox.com/ssr
sudo mv ssr /usr/local/bin
chmod 766 /usr/local/bin/ssr
ssr install
ssr config
主要修改如下选项:
"server":"0.0.0.0", //服务器ip
"server_port":8388, //端口
"password":"m", //密码
"protocol":"origin", //协议插件
"obfs":"http_simple", //混淆插件
"method":"aes-256-cfb", //加密方式
接着ssr start就可以开启啦!
ssr stop关闭酸酸乳。
设置为开机运行:
vim ~/.xprofile
写入:
#!/bin/bash
# obtain TrackPoint ID from xinput list
ssr start#运行酸酸乳
TP_ID=12#小红点trackpoint的ID
if [ -n "$TP_ID" ]; then
# obtain properties from xinput list-props "$TP_ID"
AS_ID=279#常加速度ID
# set the speed you want
xinput set-prop "$TP_ID" "$AS_ID" 0.4#在我电脑上设置0.4我感觉很合适,一般是0~1,值越大,阻越大
fi
之前用了网上设置小红点的代码,那个代码可以自动获取小红点ID,但是不知道为什么始终unable find trackpoint。
我直接给ID赋值倒是可以的。