2018年2月27日星期二

利用谷歌云Google Cloud Platform搭建免费VPS/魔改BBR/SSR

利用谷歌云Google Cloud Platform搭建免费VPS/安装魔改BBR/秋水BBR/SSR

请务必使用一个可以稳定连接的vpn或ss进行设置,否则会断线。如果电脑实在不方便用手机也是可以设置的。
1. 首先需要一张双币或外币信用卡 VISA MASTER JCB AMEX等都可以,如果不放心可以使用招商银行信用卡,app可以随时开启和关闭境外刷卡权限
2. 科学上网的稳定环境,如果电脑真的上网环境不稳定,你可以考虑用手机搭建,方法是一样的,亲测可行!用chrome浏览器
3. 需要下载shadowsocksR客户端,可以到Github上下载
4. 谷歌账号,使用chrome浏览器
5. Google Cloud申请免费使用服务免费使用12个月。赠送价值300美金的试用额度,除非您明确同意,否则即使额度用尽,系统也不会自动向您收费
6.请在遵守您所在国家法律的情况下使用谷歌云


创建VPS
进入后选择免费试用
成功后,进入左侧结算,你应该可以看到下面截图,然后就可以开始创建了


创建VM实例
选择左面菜单Compute Engine-->VM实例



进入后创建实例


安装魔改BBR用上图配置,安装秋水最新的BBR,启动磁盘选择默认Debian GNU/Linux 9(stretch),其它和上图一样

创建成功后的VM实例列表

验证VM实例IP速度,浏览器输入下面网址

如果速度在100ms以内,就可以继续下面的配置了

配置服务器
1. VM实例列表后有ssh点击它后面的小三角,选择“在浏览器窗口中打开”
2. 连接后,输入:  sudo -i



个人测速对比图100M联通带宽
魔改YankeeBBR最高9000K,图中为稳定后速度
秋水BBR最高25000K,图中为稳定后速度



3A.安装YankeeBBR
------------------------------------------------------------------------------------------------------
a)安装YankeeBBR,输入(以下命令行为一行,中间没有换行):
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/YankeeBBR/master/bbr.sh && bash bbr.sh install


b) 出一个YES/NO选择框,选择NO。然后选择Y重启











c) 按任意键后重新连接
d) 输入: sudo -i
e)输入:bash bbr.sh start



YankeeBBR安装结束
------------------------------------------------------------------------------------------------------

安装以上YankeeBBR后,秋水BBR请参照另一篇文章

4.安装shadowsocksR 
输入(以下命令行为一行,中间没有换行):
5. 输入:./shadowsocksR.sh
6. 看到下面界面,SSR就安装完了,下面是设置SSR
    






7. 输入密码:(自己SSR想用的密码,自己编)
8. 设置端口号:1-65535,比如5555
9. 后面的设置都是默认,直接回车就可以
10. 把自己设置的ssr IP,PORT,Password,Protocal,obfs,Encryption Metrod都记住,用于设置SSR软件

配置防火墙

将端口号设置为刚才记录下来的端口号

进入default-allow-http

多个端口用英文“,”分开
同样的方法设置default-allow-https


谷歌云安装与设置完毕了!可以用SSR连接测试一下。

20 条评论:

  1. 秋水的输入y就重启不了了,直接连不上ssh了

    回复删除
  2. 安装BBR后,显示内核卸载异常。不会跳出YES,NO选择框,怎么解决

    回复删除
  3. 现在创建实力VM的时候,磁盘选择那里没有Linux 8可以选择,只有Linux 9。我把以前的实例删了,今天重新创建的时候只有选择Linux 9,但是在浏览器窗口打开输入代码安装YankeeBBR时,总是显示:内核卸载异常,请检查 ! 就没有办法继续了,大神,能不能针对现在的情况出个新教程啊,感谢!

    回复删除
    回复
    1. wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/YankeeBBR/master/bbr.sh && bash bbr.sh install
      *****内核卸载异常,请检查 !*******
      *****执行以下指令删除旧内核后重新安装BBR*******
      uname -a
      dpkg --list | grep linux-image
      dpkg --list | grep linux-headers
      dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
      wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/YankeeBBR/master/bbr.sh && bash bbr.sh install

      删除
    2. 磁盘选择那里没有Linux 8可以选择了,请问现在该选择哪个呢?

      删除
    3. 直接从d开始就可以了,选择9,我试过了,可以的,其实就是直接装SSR,就OK了

      删除
  4. 你好,按照新的命令以后还是这样

    卸载 linux-image-4.9.0-7-amd64
    linux-image-amd64 内核卸载完成,继续...
    内核卸载异常,请检查 !

    回复删除
  5. 检测到 2 个其余内核,开始卸载...
    开始卸载 linux-image-4.9.0-8-amd64 内核...
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    linux-headers-4.10.15-041015-generic : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
    linux-image-amd64 : Depends: linux-image-4.9.0-8-amd64 but it is not going to be installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    卸载 linux-image-4.9.0-8-amd64 内核卸载完成,继续...
    开始卸载 linux-image-4.9.0-8-amd64
    linux-image-amd64 内核...
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    linux-headers-4.10.15-041015-generic : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    卸载 linux-image-4.9.0-8-amd64
    linux-image-amd64 内核卸载完成,继续...
    内核卸载异常,请检查 !



    总是出现这个提示然后就跑步过去了,请问是什么原因呢大神?

    回复删除
  6. 我也遇到上面这情况,请大神赐教 加微信 375000314

    回复删除
    回复
    1. Debian 9的教程:https://lonelyfq.blogspot.com/2018/04/googledebian-9shadowsocksbbr.html,亲测有效

      删除
  7. 内核卸载异常,把VM实例的启动磁盘修改为Ubuntu 16.04 LTS就行

    回复删除
    回复
    1. 非常感谢,试了一下,的确可以。具体是为啥啊?

      删除
  8. ---------- System Information ----------
    OS : Debian GNU/Linux 9
    Arch : x86_64 (64 Bit)
    Kernel : 4.9.0-8-amd64
    ----------------------------------------
    Auto install latest kernel for TCP BBR
    URL: https://teddysun.com/489.html
    ----------------------------------------
    Press any key to start...or Press Ctrl+C to cancel
    Info: TCP BBR has already been installed. nothing to do...
    root@tim202:~# ash bbr.sh status
    -bash: ash: command not found
    root@tim202:~# cat /etc/shadowsocks/config.json
    cat: /etc/shadowsocks/config.json: No such file or directory
    root@tim202:~# /etc/init.d/shadowsocks-r status
    -bash: /etc/init.d/shadowsocks-r: No such file or directory
    root@tim202:~# /etc/shadowsocks-r/config.json
    -bash: /etc/shadowsocks-r/config.json: No such file or directory
    root@tim202:~# /etc/shadowsocks-python/config.json
    -bash: /etc/shadowsocks-python/config.json: Permission denied
    root@tim202:~# /etc/shadowsocks-go/config.json
    -bash: /etc/shadowsocks-go/config.json: No such file or directory
    root@tim202:~#

    你好,一键安装了BBR,运行脚本 cat /etc/shadowsocks/config.json 无效。  
    请赐教 !

    回复删除
  9. 无法查看运行命令,无法查看配置的端口 各其他信息……求助!!谢谢!
    显示: cat: /etc/shadowsocks/config.json: No such file or directory

    Linux tim202 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Sat Apr 27 16:41:14 2019 from 74.125.41.165
    nadaingaa@tim202:~o$ s
    -bash: s: command not found
    nadaingaa@tim202:~$ sudo -i
    root@tim202:~# cat /etc/shadowsocks/config.json
    cat: /etc/shadowsocks/config.json: No such file or directory
    root@tim202:~#

    回复删除
  10. 安装SSR最后一步报错:
    [Error] libsodium install failed!
    不知道如何解决

    回复删除
  11. 到重启VPS那一步无法执行
    按下Y+回车后显示Reboot has been canceled...
    求大神帮助

    回复删除
  12. hanks for all this information about Azure. You are including better information regarding this topic in an effective way The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    oracle training in chennai

    oracle training institute in chennai

    oracle training in bangalore

    oracle training in hyderabad

    oracle training

    hadoop training in chennai

    hadoop training in bangalore

    回复删除