sh -c 'printf "deb http://deb.debian.org/debian jessie-backports mainn" > /etc/apt/sources.list.d/jessie-backports.list'
sh -c 'printf "deb http://deb.debian.org/debian jessie-backports-sloppy main" >> /etc/apt/sources.list.d/jessie-backports.list'
apt update
apt -t jessie-backports-sloppy install shadowsocks-libev

apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libev-dev asciidoc xmlto automake
git clone https://github.com/shadowsocks/simple-obfs.git
cd simple-obfs
git submodule update --init --recursive
./autogen.sh
./configure --disable-documentation && make
make install

uname -a
vi /etc/apt/sources.list.d/sources.list
deb http://http.debian.net/debian jessie-backports main
deb-src http://http.debian.net/debian jessie-backports main
apt-get update
apt-get dist-upgrade
apt-cache search linux-image
apt-get install -t jessie-backports linux-image-amd64
update-grub
apt-get autoclean
apt-get autoremove
reboot
dpkg -l|grep linux-image
apt-get purge

!!!!示例!!!!

比如我是有这两个内核,所以我把这两个删掉,不要照着我的这个步骤做,自己换成你VPS的内核名称!!!

apt-get purge linux-image-3.16.0-4-amd64
apt-get purge linux-image-amd64
开启bbr
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
执行这个保存生效更改。
sysctl -p
VPS提示:
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
关闭bbr
sed -i '/net.core.default_qdisc=fq/d' /etc/sysctl.conf
sed -i '/net.ipv4.tcp_congestion_control=bbr/d' /etc/sysctl.conf
sysctl -p
执行完上面的代码,就使用reboot重启VPS后才能关闭bbr,重启后再用下面的查看bbr状态代码,查看是否关闭了。
reboot
执行下面命令,看到有 tcp_bbr 模块,即说明bbr已启动
lsmod | grep bbr

apt-get install opam ocaml make fuse camlp4-extra build-essential pkg-config

groupadd fuse

adduser shaobo fuse

chown root.fuse /dev/fuse

chmod 660 /dev/fuse

opam init
opam update
opam install depext
eval opam config env
opam depext google-drive-ocamlfuse
opam install google-drive-ocamlfuse
. /home/shaobo/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
安装成功后,进入Google Project建立一个Project
https://console.developers.google.com/project
进入/shaobo/.opam/system/bin/目录绑定项目
cd /shaobo/.opam/system/bin/
./google-drive-ocamlfuse -headless -label googledrive -id ##Client ID##.apps.googleusercontent.com -secret ##secret key## 执行完上述指令会返回一个https的网址在浏览器粘贴到浏览器后会进入google页面询问是否允许访问该项目,选accept然后记录下浏览器页面返回的密码,粘贴进去回车即可。
进入~/.gdfuse/googledrive
cd ~/.gdfuse/googledrive
nano config
编辑config修改内容例如
verification_code= [key returned from browser]
client_id= [eg. 1231232ccc31.apps.googleusercontent.com]
client_secret= [eg. AdddSDQWEWGSD!$@#@#ASD]
完成配置加载Google Drive远端存储到本地/googledrive
ln -s /shaobo/.opam/system/bin/google-drive-ocamlfuse /usr/local/bin/
mkdir /googledrive
cd ~/.opam/system/bin
google-drive-ocamlfuse -label googledrive /googledrive