Giter Site home page Giter Site logo

shellclash's Introduction

ShellClash(原Clash for Miwifi)

在Shell环境下一键部署及管理Clash

功能简介:

~通过管理脚本在Shell环境下便捷使用Clash
~支持在Shell环境下管理Clash各种功能
~支持在线导入Clash支持的节点、订阅及配置链接
~支持配置定时任务,以及定时更新订阅
~支持在线安装及使用网页面板管理规则组
~支持局域网透明代理/纯净模式等多种模式切换
~支持GNOME、KDE桌面自动配置本机系统级代理
~支持在线更新

设备支持:

~支持小米/红米全系使用官方系统或官方开发版系统的路由器设备
~支持各种基于OpenWrt或使用OpenWrt二次定制开发的路由器设备
~支持各种运行标准Linux系统(如Debian/CenOS/Armbian等)的设备
~兼容Padavan固件(保守模式)、潘多拉固件
—————————— ~更多设备支持,请提issue或前往TG群反馈(需提供设备名称及运行uname -a返回的设备核心信息)

使用方式:

~确认路由器设备已经开启SSH并获取root权限(带GUI桌面的Linux设备可使用自带终端安装)
~使用SSH连接工具(如putty,JuiceSSH,系统自带终端等)路由器或Linux设备的SSH管理界面或终端界面,并切换到root用户
~确认设备已经安装curl或者wget下载工具。如未安装,LInux设备请参考此处安装curl,基于OpenWrt(小米官方系统、潘多拉、高恪等)的设备请使用如下命令安装curl:

opkg update && opkg install curl

~之后在SSH界面执行如下安装命令,并按照后续提示完成安装

~使用curl安装

#Release版本-github直连
sh -c "$(curl -kfsSl --resolve raw.githubusercontent.com:443:199.232.68.133 https://raw.githubusercontent.com/juewuy/ShellClash/master/install.sh)" && source /etc/profile &> /dev/null
#Release版本-jsdelivrCDN源
sh -c "$(curl -kfsSl https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master/install.sh)" && source /etc/profile &> /dev/null
#Test版本-github直连
sh -c "$(curl -kfsSl --resolve raw.githubusercontent.com:443:199.232.68.133 https://raw.githubusercontent.com/juewuy/ShellClash/master/install.sh)" -s 1 && source /etc/profile &> /dev/null

~使用wget安装

#Release版本-jsdelivrCDN源
wget -q --no-check-certificate -O /tmp/install.sh https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master/install.sh  && sh /tmp/install.sh && source /etc/profile &> /dev/null

~非root用户安装后请额外执行以下命令以读取环境变量:

source ~/.bashrc &> /dev/null

~安装完成管理脚本后,执行如下命令以运行管理脚本

clash #正常模式运行
clash -h #脚本帮助及说明
clash -t #测试模式运行

~运行时的额外依赖

大部分的设备/系统都已经预装了以下的大部分依赖,使用时如无影响可以无视之

bash/ash		必须		全部缺少时无法安装及运行脚本
curl/wget		必须		全部缺少时无法在线安装及更新,无法使用节点保存功能
iptables		重要		缺少时只能使用纯净模式
systemd/rc.common	一般		全部缺少时只能使用保守模式
iptables-mod-nat	一般		缺少时无法使用redir模式,混合模式
ip6tables-mod-nat	较低		缺少时影响redir模式,混合模式对ipv6的支持
crontab			较低		缺少时无法启用定时任务功能
net-tools		极低		缺少时无法正常检测端口占用
ubus/iproute-doc	极低		缺少时无法正常获取本机host地址

更新日志:

交流反馈:

相关Q&A:

捐赠此项目:

友情推广:

shellclash's People

Contributors

juewuy avatar

Stargazers

 avatar

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.