2016年5月15日 星期日

shadowsock-libev一鍵安裝和升級腳本

安裝腳本 ss-libev-install.sh 用來安裝,是把文章Shadowsocks + TOR 一鍵安裝腳本
的shadowsocks分拆出來改寫,已測試,在nat share ipv4 vps或獨立ipv4的vps上安裝
成功。

使用方法

以root登錄VPS,執行

wget --no-check-certificate -O ss-libev-install.sh \
https://www.dropbox.com/s/mtare61xbd7brim/ss-libev-install.sh?dl=0

完成後,chmod +x ss-libev-install.sh ,根據你的VPS類型,如果是獨立IPv4的VPS,
執行

./ss-libev-install.sh -s

如果是窮鬼級NAT share IPv4 vps,就是只有20個指定端口轉發,共用IPv4的VPS,執行

./ss-libev-install.sh -n

源碼按這裡

shadowsocks-libev是用源碼編譯成deb安裝,原因是debian base os的源更新落後,
所以從github取得源碼編譯,這樣版本會是最新的,由於沒通過apt-get從軟件源
安裝,不會自動升級,這就寫了升級腳本 ss-libev-upgrade.sh

使用方法

以root登錄VPS,執行

wget --no-check-certificate -O ss-libev-upgrade.sh \
https://www.dropbox.com/s/2w23k175e1zm8mb/ss-libev-upgrade.sh?dl=0

完成後,chmod +x ss-libev-upgrade.sh && ./ss-libev-upgrade.sh

腳本會檢測現時版本是否最新,並自動執行更新程序,已測試,ss-libev 2.4.5成功
升級到2.4.6

源碼按這裡

:)

3 則留言:

  1. 忘記說只可用在debian base os, debian 7/8 ,ubuntu 14.04/15.04

    回覆刪除
  2. 请问这个安装完支持ss开机自启动吗

    回覆刪除
  3. shadowsocks-libev depends on apg; however:
    Package apg is not installed.

    dpkg: error processing shadowsocks-libev (--install):
    dependency problems - leaving unconfigured
    Processing triggers for man-db ...
    debconf: unable to initialize frontend: Dialog
    debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
    debconf: falling back to frontend: Readline
    Errors were encountered while processing:
    shadowsocks-libev
    ./ss-libev-install.sh: line 85: /etc/shadowsocks-libev/config.json: No such file or directory
    ./ss-libev-install.sh: line 89: /etc/shadowsocks-libev/config.json: No such file or directory
    ./ss-libev-install.sh: line 91: /etc/shadowsocks-libev/config.json: No such file or directory
    ./ss-libev-install.sh: line 92: /etc/shadowsocks-libev/config.json: No such file or directory
    ./ss-libev-install.sh: line 93: /etc/shadowsocks-libev/config.json: No such file or directory
    ./ss-libev-install.sh: line 94: /etc/shadowsocks-libev/config.json: No such file or directory
    ./ss-libev-install.sh: line 95: /etc/shadowsocks-libev/config.json: No such file or directory
    ./ss-libev-install.sh: line 96: /etc/shadowsocks-libev/config.json: No such file or directory
    ./ss-libev-install.sh: line 98: /etc/init.d/shadowsocks-libev: No such file or directory

    回覆刪除