简单说明:
系统: Ubuntu 18.04 LTS。
a.安装: V2RAY mKCP+dtls, AAAA; ss: BBBB; brook: CCCC。
b.(V2ray安装的)shadowsocks改用了新的加密方式(AHEAD: chacha20-ietf-poly1305), 以避免被GFW检测到
终端软件上, 不再使用单独的shadowsocks终端, 而改用v2ray终端(包含shadowsocks终端)
电脑上使用V2rayN, 安卓手机上使用BifrostV
在Ubuntu Server 18.04版上进行安装
0.确认unzip已安装(可以直接运行unzip)
如果没有安装, 用下面命令装(如果unzip没有安装, 会自动提示这条命令)
# sudo apt install unzip
1.V2RAY+ss(单端口)安装, 再+BBR
V2RAY一键安装
选择:
V2RAY ~ 协议 mKCP_dtls, 端口 AAAA
ss 和原来一样
https://ssr.tools/1026
安装时, BBR自己就装上了
使用233版V2ray一键安装脚本(集成BBR/锐速/Shadowsocks):
# bash <(curl -s -L https://git.io/v2ray.sh)
2.Brook安装
参考
https://doub.io/brook-jc1/
1)下载
# mkdir /root/brook/
# cd /root/brook/
最新版本地址: https://github.com/txthinking/brook#download
# wget -N --no-check-certificate "https://github.com/txthinking/brook/releases/download/v20200201/brook"
# chmod +x brook
2)启动
nohup ./brook server -l :CCCC-p passwd > /dev/null 2>&1 &
3)防火墙
[ 现在没开云服务器ubuntu自身的防火墙iptable/ufw
# sudo ufw allow CCCC
]
云的防火墙也要打开
4)开机自启动
由于ubuntu 18.04的变化, 原rc.local初始不再有效, 需要处理, 参考:
Ubuntu 18.04 rc.local systemd设置
https://blog.csdn.net/zhengchaooo/article/details/80202599
命令如下:
# ln -fs /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service
# touch /etc/rc.local
# chmod 755 /etc/rc.local
并在/etc/rc.local第一行加上下面这行:
#!/bin/bash
~~~后面一样
参考
http://blog.csdn.net/fireroll/article/details/15503463
放在/etc/rc.local里
加入:
nohup /root/brook/brook server -l :CCCC-p passwd > /dev/null 2>&1 &
注意brook所在目录
3.谷歌云防火墙开端口(需要打开相应端口的tcp/udp端口)
4.本机ubuntu防火墙(ufw/iptables)不开
5.设置时区
http://www.cnblogs.com/h2appy/archive/2008/11/27/1342029.html
tzselect
6.定时关机
cron里的时间是标准时间(GMT)
http://www.cnblogs.com/peida/archive/2013/01/08/2850483.html
cron任务分两类, 系统任务_在/etc/crontab里; 用户任务_在/var/spool/cron/crontabs/里
crontab -e是编辑用户任务, crontab -l是显示用户任务.
cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
30 21 * * 2,4,6,0 root reboot
每周2,4,6,0 _ GMT时间21:30分(中国时间5:30)用户root重启
http://blog.csdn.net/xiyuan1999/article/details/8160998
查看调度任务
crontab -l //列出当前的所有调度任务
crontab -l -u jp //列出用户jp的所有调度任务
系统: Ubuntu 18.04 LTS。
a.安装: V2RAY mKCP+dtls, AAAA; ss: BBBB; brook: CCCC。
b.(V2ray安装的)shadowsocks改用了新的加密方式(AHEAD: chacha20-ietf-poly1305), 以避免被GFW检测到
终端软件上, 不再使用单独的shadowsocks终端, 而改用v2ray终端(包含shadowsocks终端)
电脑上使用V2rayN, 安卓手机上使用BifrostV
在Ubuntu Server 18.04版上进行安装
0.确认unzip已安装(可以直接运行unzip)
如果没有安装, 用下面命令装(如果unzip没有安装, 会自动提示这条命令)
# sudo apt install unzip
1.V2RAY+ss(单端口)安装, 再+BBR
V2RAY一键安装
选择:
V2RAY ~ 协议 mKCP_dtls, 端口 AAAA
ss 和原来一样
https://ssr.tools/1026
安装时, BBR自己就装上了
使用233版V2ray一键安装脚本(集成BBR/锐速/Shadowsocks):
# bash <(curl -s -L https://git.io/v2ray.sh)
2.Brook安装
参考
https://doub.io/brook-jc1/
1)下载
# mkdir /root/brook/
# cd /root/brook/
最新版本地址: https://github.com/txthinking/brook#download
# wget -N --no-check-certificate "https://github.com/txthinking/brook/releases/download/v20200201/brook"
# chmod +x brook
2)启动
nohup ./brook server -l :CCCC-p passwd > /dev/null 2>&1 &
3)防火墙
[ 现在没开云服务器ubuntu自身的防火墙iptable/ufw
# sudo ufw allow CCCC
]
云的防火墙也要打开
4)开机自启动
由于ubuntu 18.04的变化, 原rc.local初始不再有效, 需要处理, 参考:
Ubuntu 18.04 rc.local systemd设置
https://blog.csdn.net/zhengchaooo/article/details/80202599
命令如下:
# ln -fs /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service
# touch /etc/rc.local
# chmod 755 /etc/rc.local
并在/etc/rc.local第一行加上下面这行:
#!/bin/bash
~~~后面一样
参考
http://blog.csdn.net/fireroll/article/details/15503463
放在/etc/rc.local里
加入:
nohup /root/brook/brook server -l :CCCC-p passwd > /dev/null 2>&1 &
注意brook所在目录
3.谷歌云防火墙开端口(需要打开相应端口的tcp/udp端口)
4.本机ubuntu防火墙(ufw/iptables)不开
5.设置时区
http://www.cnblogs.com/h2appy/archive/2008/11/27/1342029.html
tzselect
6.定时关机
cron里的时间是标准时间(GMT)
http://www.cnblogs.com/peida/archive/2013/01/08/2850483.html
cron任务分两类, 系统任务_在/etc/crontab里; 用户任务_在/var/spool/cron/crontabs/里
crontab -e是编辑用户任务, crontab -l是显示用户任务.
cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
30 21 * * 2,4,6,0 root reboot
每周2,4,6,0 _ GMT时间21:30分(中国时间5:30)用户root重启
http://blog.csdn.net/xiyuan1999/article/details/8160998
查看调度任务
crontab -l //列出当前的所有调度任务
crontab -l -u jp //列出用户jp的所有调度任务
评论