From e4d3d51ade0aeeeeb1173d1d83f739d5afc21ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=A1=E5=AD=90=E5=B7=A5=E5=85=B7=E7=AE=B1?= <50480726+A7T@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:27:58 +0800 Subject: [PATCH] Remove `GitHub Proxy` URLs. --- README.md | 22 +++++++++++----------- README_CN.md | 20 ++++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 87dd0c4..16fae43 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ How to use: ~Confirm that the router device has enabled SSH and obtained root privileges (Linux devices with GUI desktops can be installed using their own terminal)
~Use SSH connection tools (such as putty, JuiceSSH, system built-in terminal, etc.) router or Linux device SSH management interface or terminal interface, and switch to the root user
~Confirm that the curl or wget download tool has been installed on the device. If not installed, please [refer to here](https://www.howtoforge.com/install-curl-in-linux) for LInux devices to install curl. For devices based on OpenWrt (Xiaomi official system, Pandora, Gaoke, etc.), please Use the following command to install curl:
-```sh +```Shell opkg update && opkg install curl ``` @@ -37,30 +37,30 @@ opkg update && opkg install curl ##### ~Use curl:
```Shell -#by ghproxy.com -export url='https://ghproxy.com/https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null -#by github +#by GitHub export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null -#by jsdelivrCDN +#by jsDelivrCDN export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null ``` ##### ~Use wget:
-```sh -#By jsdelivrCDN +```Shell +#by GitHub +export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null +#By jsDelivrCDN export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null ``` ~**Use a low version of wget (prompt not to support https) local installation**:
First clone the project to the local under the window (or [click to download the project source code zip package](https://github.com/juewuy/ShellClash/archive/refs/heads/master.zip) to the local and decompress it) -```sh +```Shell sh git clone https://github.com/juewuy/ShellClash.git ``` Then open /project address/ShellClash/bin/hfs/hfs.exe Click menu-add directory from disk-{find the directory where ShellClash source code is located}-add as real directory Click on the menu-IP address-{choose the actual IP address of your LAN} Click ShellClash-click to copy to clipboard Then use the following command to install in SSH -```sh +```Shell sh export url='Paste the copied address here' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null ``` @@ -68,7 +68,7 @@ sh export url='Paste the copied address here' && wget -q -O /tmp/install.sh $url ~**After installation by non-root users**, please execute the following additional commands to read environment variables:
-```shell +```Shell source ~/.bashrc &> /dev/null ``` @@ -91,7 +91,7 @@ Use: https://github.com/echvoyager/shellclash_docker Most of the equipment/systems are pre-installed with most of the following dependencies, you can ignore them if there is no impact when you use them. ``` -```sh +```Text bash/ash necessary Cannot install and run scripts when all are missing curl/wget necessary When all are missing, it cannot be installed and updated online iptables important Only use pure mode when missing diff --git a/README_CN.md b/README_CN.md index 0e08dbf..31c67e8 100644 --- a/README_CN.md +++ b/README_CN.md @@ -38,7 +38,7 @@ ~使用SSH连接工具(如putty,JuiceSSH,系统自带终端等)路由器或Linux设备的SSH管理界面或终端界面,并切换到root用户
~确认设备已经安装curl或者wget下载工具。**如未安装**,LInux设备请[参考此处](https://www.howtoing.com/install-curl-in-linux)安装curl,基于OpenWrt(小米官方系统、潘多拉、高恪等)的设备请使用如下命令安装curl:
-```shell +```Shell opkg update && opkg install curl #如已安装请忽略 ``` @@ -47,31 +47,31 @@ opkg update && opkg install curl #如已安装请忽略 ~**使用curl安装**:
```Shell -#ghproxy.com加速 -export url='https://ghproxy.com/https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null -#github-CDN源 +#GitHub-CDN源 export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null -#jsdelivrCDN源 +#jsDelivrCDN源 export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null ``` ~**使用wget安装**:
-```sh -#jsdelivrCDN源 +```Shell +#GitHub-CDN源 +export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null +#jsDelivrCDN源 export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null ``` ~**使用低版本wget(提示不支持https)安装**:
-```sh +```Shell #作者私人http源 export url='http://shellclash.ga/' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null ``` ~**非root用户安装后**请额外执行以下命令以读取环境变量:
-```shell +```Shell source ~/.bashrc &> /dev/null ``` @@ -92,7 +92,7 @@ clash -t #测试模式运行 `大部分的设备/系统都已经预装了以下的大部分依赖,使用时如无影响可以无视之` -```sh +```Text bash/ash 必须 全部缺少时无法安装及运行脚本 curl/wget 必须 全部缺少时无法在线安装及更新,无法使用节点保存功能 iptables 重要 缺少时只能使用纯净模式