Giter Site home page Giter Site logo

loyess / shell Goto Github PK

View Code? Open in Web Editor NEW
779.0 27.0 355.0 4.52 MB

Shadowsocks with plugins one-click installation. e.g. v2ray-plugin, kcptun, simple-obfs, goquiet, cloak, mos-tls-tunnel, rabbit-tcp, simple-tls, gost-plugin, xray-plugin, qtun, gun

Shell 100.00%
shadowsocks-libev simple-obfs goquiet cloak shadowsocks-rust v2ray-plugin kcptun mos-tls-tunnel rabbit-tcp simple-tls

shell's People

Contributors

htensor avatar imgbotapp avatar irinesistiana avatar loyess avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shell's Issues

Installation problem on Ubuntu 18.04

root@ruru4:~# bash ss-plugins.sh
ss-plugins.sh: line 1600: syntax error near unexpected token `=='
ss-plugins.sh: line 1600: `esac == "menu" ]]; then'
root@ruru4:~#

特来感谢大佬

特来感谢大佬,上次只是提一次 需要go-ss2脚本,今天用脚本发现加进去了。非常感谢.

Already have Apache and Let's Encrypt

I have a CentOS7 server that already has Apache and Let's Encrypt installed. I want to install Shadowsocks with v2ray-plugin with ws+tls+web option. The only options in your script are to install Caddy or nginx. How can I skip this so Apache is used?

无法更新,命令无法使用

命令无法使用
[root@vultr ~]# ./ss-plugins.sh
./ss-plugins.sh: line 1600: syntax error near unexpected token ==' ./ss-plugins.sh: line 1600: esac == "menu" ]]; then'
重新部署的话提示
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 416 Range Not Satisfiable

The file is already fully retrieved; nothing to do.

我该怎么办?

安装脚本似乎出现了问题

[信息] 下载mbedtls-2.16.7.
mbedtls-2.16.7-gpl.tgz 当前目录中不存在, 现在开始下载.
--2020-07-24 22:36:26-- https://tls.mbed.org/download/mbedtls-2.16.7-gpl.tgz
Resolving tls.mbed.org (tls.mbed.org)... 79.170.91.36
Connecting to tls.mbed.org (tls.mbed.org)|79.170.91.36|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-24 22:36:27 ERROR 404: Not Found.

[错误] 下载 mbedtls-2.16.7-gpl.tgz 失败.
root@VM:~# wget https://tls.mbed.org/download/mbedtls-2.16.7-gpl.tgz
--2020-07-24 22:39:15-- https://tls.mbed.org/download/mbedtls-2.16.7-gpl.tgz
Resolving tls.mbed.org (tls.mbed.org)... 79.170.91.36
Connecting to tls.mbed.org (tls.mbed.org)|79.170.91.36|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-24 22:39:15 ERROR 404: Not Found.

能不能脚本中搞个多功能菜单

比如说安装之后 再次启动脚本 在BBR 和安装和卸载 之外有重启 什么的脚本菜单
比如这样:

主菜单
Shadowsocks-libev一键管理脚本[v1.0.0]

  1. BBR
    2.安装
    3.卸载
    4.启动SS
    5.重启SS
    6.重启caddy
    7.查看状态
    8.更新升级
    当前状态:已安装并已启动

请输入数字[1-8]:

然后ws-tls-web 哪里默认是反代,如果自己做网站该怎么配置,如果加个选项配置自己网站来伪装,我们可以有更好的选择 ,作者的脚本对于我这种小白很是受用,这几天想不反代,自己做网站,又不会配置 搞挂好多次梯子 对于我来说比较头疼. 最后希望脚本越来越好,越来越完善

[提示] caddy is already installed but not running.

debian9 安装以后没有启动,并且怎么弄都不启动 怎么办,已经重装多次也不行,./ss- plugins.sh restart 启动显示成功,其实没成功

/caddy/acme/acme-v02.api.letsencrypt.org/users/*******@gmail.com 下有域名证书
/usr/local/caddy/Caddyfile 下配置无问题
执行ps aux | grep caddy 显示
root@hei:~# ps aux | grep caddy
root 18622 0.0 0.1 12780 960 pts/0 S+ 18:03 0:00 grep caddy
看不到日志
cat: /tmp/caddy.log: No such file or directory

root@ru:# ./ss-plugins.sh restart
Stopping Shadowsocks-libev success
Stopping v2ray-plugin success
Stopping caddy success
Starting Shadowsocks-libev success
Starting v2ray-plugin success
Starting caddy success
root@ru:
# ./ss-plugins.sh status
[信息] shadowsocklibev-libev (pid 21872) is already running.
[信息] v2ray-plugin (pid 21878) is already running.
[提示] caddy is already installed but not running.``

关于多用户配置

已安装ss-rust+websocket+tls+web。若要配置多用户,请问配置文件应如何修改呢?

Gost tunnel plugin

Hello sir.

Can you add gost tunnel plugin , please ?
Gost tunnel:
https://github.com/ginuerzh/gost

Gost plugin for android
https://github.com/xausky/ShadowsocksGostPlugin

I would like to use this plugin in my Android but it is a little complicated for me . You have the knowledge to create a script for us to install it . Please .

You are doing a greater work, because there are many people who are not programmer but want to use those plugin and you create the script to install it more easy thank.

脚本不安装caddy

脚本更新后不安装caddy,在不同环境下都有这个问题,更新前没有这样的情况

v2ray-plugin ws+tls+web+cdn 按步骤安装后 出现已安装未启动的情况

root@xxx:~# ./ss-plugins.sh
Shadowsocks-libev一键管理脚本 [v2.2.5 Online]

1. BBR
2. Install
3. Uninstall

当前状态: 已安装 但 未启动
使用 ./ss-plugins.sh start 后
Shadowsocks-libev (pid 27592) is already running.
Starting v2ray-plugin success
Starting caddy success

但再次使用./ss-plugins.sh后
还是显示 当前状态: 已安装 但 未启动

使用ws+tls+cdn时,重启ss-server时会失败,因为v2ray-plugin没有跟着重启

shadowsocks-libev error logs

 2019-10-06 02:18:09 INFO: setting NOFILE to 51200
 2019-10-06 02:18:09 INFO: plugin "v2ray-plugin" enabled
 2019-10-06 02:18:09 INFO: UDP relay enabled
 2019-10-06 02:18:09 INFO: initializing ciphers... chacha20
 2019-10-06 02:18:09 INFO: using nameserver: 8.8.8.8
 2019-10-06 02:18:09 INFO: tcp server listening at 127.0.0.1:36785
 2019-10-06 02:18:09 INFO: udp server listening at 0.0.0.0:443
2019/10/06 02:18:09 V2Ray 4.16 (Po) Custom
2019/10/06 02:18:09 A unified platform for anti-censorship.
2019/10/06 02:18:09 failed to start server: v2ray.com/core/app/proxyman/inbound: failed to listen TCP on 443 > v2ray.com/core/transport/internet: failed to listen on address: 0.0.0.0:443 > v2ray.com/core/transport/internet/websocket: failed to listen TCP on0.0.0.0:443 > listen tcp 0.0.0.0:443: bind: address already in use
 2019-10-06 02:18:09 ERROR: plugin service exit unexpectedly
 2019-10-06 02:18:09 INFO: closed gracefully
 2019-10-06 02:18:09 INFO: error on terminating the plugin.

非常棒的脚本!

建议将判断IP的方法改为直接nslookup用户输入的域名

是这样的。

我的AWS服务器,eth0接口IP是172.X.X.X

但是我从外网连进来时,是走了大陆中转的,IP却是183.X.X.X

然后脚本就一直提示输入的域名不对(未被解析),请检查解析结果。

希望修复这个问题(将判断用户输入的域名是否已经解析的方法,改成直接nslookup用户输入的域名)。

昨日Update mbedtls to 2.16.5后无法下载,报错了

ERROR: cannot verify tls.mbed.org's certificate, issued by ‘CN=GlobalSign RSA OV SSL CA 2018,O=GlobalSign nv-sa,C=BE’:
Unable to locally verify the issuer's authority.
To connect to tls.mbed.org insecurely, use `--no-check-certificate'.

[Cannot download mbedtls-2.16.5 source. Aborting! ]

混淆插件安装失败debian9

[信息] 编译安装 simple-obfs-0.0.5.
configure.ac:19: error: possibly undefined macro: AC_DISABLE_STATIC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:20: error: possibly undefined macro: AC_DISABLE_SHARED
configure.ac:44: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1
configure: error: cannot find install-sh, install.sh, or shtool in auto "."/auto
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
[错误] simple-obfs-0.0.5 安装失败.

caddy 无法开机自启动

系统debian10,重启后通过./ss-plugins.sh restart可以重新启动caddy,但是重启机器不能自启动,没有caddy进程。
查看日志是错误429,查了下是请求频繁?
但是通过过./ss-plugins.sh restart却可以启动

2019/11/16 21:39:26 [INFO] [xxx.com] acme: Obtaining bundled SAN certificate
2019/11/16 21:39:27 failed to obtain certificate: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order......

systemctl status caddy.service

  • caddy.service - LSB: A Stable & Secure Tunnel Based On KCP with N:M Multiplexing
    Loaded: loaded (/etc/init.d/caddy; generated)
    Active: active (exited) since Sat 2019-11-16 21:30:12 EST; 13s ago
    Docs: man:systemd-sysv-generator(8)
    Process: 410 ExecStart=/etc/init.d/caddy start (code=exited, status=0/SUCCESS)

[Feature request] apt安装依赖时遇到错误检查是否是因为apt已在运行

遇到错误

按任意键开始…或按Ctrl+C取消
Hit:1 http://au.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu bionic InRelease
Hit:3 http://au.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://au.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 http://au.archive.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists... Done
[信息] 开始安装依赖包 gettext
[错误] 依赖包gettext安装失败,请检查. 
Checking the error message and run the script again.

单独运行apt-get install发现貌似是因为Ubuntu后台正在更新,占着锁。

root       1639  0.0  0.0   4628   712 ?        Ss   11:12   0:00 /bin/sh /usr/lib/apt/apt.systemd.daily update
root       1644  0.0  0.1   4628  1572 ?        S    11:12   0:00 /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held update
_apt       2495  0.0  0.9  86440  9088 ?        S    11:21   0:02 /usr/lib/apt/methods/http

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

之前有人 #13 #22 提到[错误] 依赖包gettext安装失败,请检查. 。有可能是同一问题。特别是新装的Ubuntu,可能apt会在后台运行一段时间。马上运行脚本会遇到问题。

系统:Ubuntu server 18.04

shadowsocks rust安装失败

buyvm的机器,debain9系统,用脚本默认选择rust版本和kcptun,安装失败
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
chmod: cannot access 'sstunnel': No such file or directory
chmod: cannot access 'sslocal': No such file or directory
chmod: cannot access 'ssserver': No such file or directory
chmod: cannot access 'ssurl': No such file or directory
chmod: cannot access 'ssmanager': No such file or directory
chmod: cannot access 'ssredir': No such file or directory
mv: cannot stat 'sstunnel': No such file or directory
mv: cannot stat 'sslocal': No such file or directory
mv: cannot stat 'ssserver': No such file or directory
mv: cannot stat 'ssurl': No such file or directory
mv: cannot stat 'ssmanager': No such file or directory
mv: cannot stat 'ssredir': No such file or directory

[错误] shadowsocks-rust安装失败.

支持quan X

你好,能不能在v2ray-plugin的插件选项加mux=0的选项,这样quanX也可以使用这个脚本.

服务器监听地址

ss配置文件中,监听地址,双栈情况下,是不是也应该写成“0.0.0.0”?
写成 ["::","0.0.0.0"] 的情况下,无法启动。

v2ray插件与ipv6冲突导致无法启动

config文件默认开启了ipv6支持
当使用v2ray插件时仅保留0.0.0.0一个地址即可
否则会冲突导致无法启动
之前一个哥们的问题实际上应该也是因为这个

syntax error

root@JG191216SGGA:~# wget -N --no-check-certificate -c -t3 -T60 -O ss-plugins.sh https://git.io/fjlbl
WARNING: timestamping does nothing in combination with -O. See the manual
for details.

--2020-03-19 02:08:25-- https://git.io/fjlbl
Resolving git.io (git.io)... 52.3.79.57, 52.72.59.23, 52.1.17.102, ...
Connecting to git.io (git.io)|52.3.79.57|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/loyess/Shell/master/ss-plugins.sh [following]
--2020-03-19 02:08:26-- https://raw.githubusercontent.com/loyess/Shell/master/ss-plugins.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 58168 (57K), 10625 (10K) remaining [text/plain]
Saving to: ‘ss-plugins.sh’

ss-plugins.sh 100%[+++++++++++++++++++++++++++++++++++++++++++++==========>] 56.80K --.-KB/s in 0.001s

2020-03-19 02:08:26 (15.6 MB/s) - ‘ss-plugins.sh’ saved [58168/58168]

root@JG191216SGGA:# ./ss-plugins.sh update
./ss-plugins.sh: line 1448: syntax error near unexpected token newline' ./ss-plugins.sh: line 1448: esactcp'
root@JG191216SGGA:
# ./ss-plugins.sh
./ss-plugins.sh: line 1448: syntax error near unexpected token newline' ./ss-plugins.sh: line 1448: esactcp'
root@JG191216SGGA:~# ./ss-plugins.sh help
./ss-plugins.sh: line 1448: syntax error near unexpected token newline' ./ss-plugins.sh: line 1448: esactcp'

您好,我咨询一下这些启动命令怎么用

选项<options>包括:
    install          安装
    uninstall        卸载
    update           升级
    start            启动
    stop             关闭
    restart          重启
    status           查看状态
    script           升级脚本
    show             显示可视化配置
    uid              为cloak添加一个新的uid用户
    link             用新添加的uid生成一个新的SS://链接
    scan             用ss://链接在当前终端上生成一个可供扫描的二维码
    help             打印帮助信息并退出

因为每次服务器重启,服务就自动停止了,不知道用什么命令可以重新启动服务!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.