NekoBoxForAndroid配置Hysteria2

服务器安装Hysteria2 root@bwg:~# bash <(curl -fsSL https://get.hy2.sh/) Checking for installed version ... not installed Checking for latest version ... v2.1.1 Downloading hysteria binary: https://github.com/apernet/hysteria/releases/download/app/v2.1.1/hysteria-linux-amd64 ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 13.0M 100 13.0M 0 0 15.4M 0 --:--:-- --:--:-- --:--:-- 36.0M Installing hysteria executable ... ok Install /etc/hysteria/config.yaml ... ok Creating user hysteria ... ok Install /etc/systemd/system/hysteria-server.service ... ok Install /etc/systemd/system/[email protected] ... ok Congratulation! Hysteria 2 has been successfully installed on your server. What's next? + Take a look at the differences between Hysteria 2 and Hysteria 1 at https://hysteria.network/docs/misc/2-vs-1/ + Check out the quick server config guide at https://hysteria.network/docs/getting-started/Server/ + Edit server config file at /etc/hysteria/config.yaml + Start your hysteria server with systemctl start hysteria-server.service + Configure hysteria start on system boot with systemctl enable hysteria-server.service 配置文件/etc/hysteria/config.yaml示例如下: ...

五月 29, 2025 · JQX

pip设置代理的几种方法

pip设置代理的几种方法 通常情况下,国内使用PIP可以参考Pypi国内镜像设置来设置国内镜像以加快安装速度。 但有的pip软件包国内镜像出于各种考虑并未收录,因此就得使用Pipy.org的官方源安装,在网络状况不理想的情况下,我们可以使用设置代理来加速安装过程。 例如,我们已经获得了代理服务的配置,如下: http://127.0.0.1:2080 socks://127.0.0.1:2080 如果是linux系统,可以使用系统自有的环境变量http_proxy、https_proxy $ export HTTP_PROXY=http://127.0.0.1:2080 $ export HTTPS_PROXY=http://127.0.0.1:2080 使用pip自带选项--proxy来使用代理 $ pip install --proxy=http://127.0.0.1:2080 jupyter 使用pip配置文件pip.conf或pip.ini来设置代理 Windows下是pip.ini,linux下是~/.pip/pip.conf或/etc/pip.conf [global] proxy = http://127.0.0.1:2080

十二月 12, 2024 · JQX

Hysteria使用实例

Hysteria 是一个功能丰富的,专为恶劣网络环境进行优化的网络工具(双边加速),比如卫星网络、拥挤的公共 Wi-Fi、在中国连接国外服务器等。 基于修改版的 QUIC 协议。 SOCKS5 代理 (TCP & UDP) HTTP/HTTPS 代理 TCP/UDP 转发 TCP/UDP TPROXY 透明代理 (Linux) TCP REDIRECT 透明代理 (Linux) TUN (Windows 下为 TAP) 以上是Hysteria官网的介绍,项目地址为https://github.com/HyNetwork/hysteria 最新hysteria2使用方法在这里 https://unixetc.com/post/nekoboxforandroid-hysteria2/ Hysteria bash <(curl -fsSL https://get.hy2.sh/) hysteria-windows-amd64-avx.exe hysteria-linux-amd64-avx ## config.yaml server: your.domain.net:443 auth: Se7RAuFZ8Lzg bandwidth: up: 20 mbps down: 100 mbps socks5: listen: 127.0.0.1:1080 http: listen: 127.0.0.1:8080 tls: insecure: true 以下为旧版本v1使用实例 服务端安装配置 服务器是Debian11系统,使用以下命令安装: wget https://raw.githubusercontent.com/HyNetwork/hysteria/master/install_server.sh bash ./install_server.sh 启用服务 ...

七月 11, 2022 · JQX

Linux下v2rayA客户端使用实例

v2rayA是一款Project V的Linux Web GUI客户端,支持V2Ray,Xray,SS,SSR,Trojan和Pingtunnel 安装v2rayA之前需要先安装v2ray,命令如下: ➜ ~ curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh #下载安装脚本 ➜ ~ bash ./install-release.sh #运行安装脚本 ➜ ~ sudo systemctl enable v2ray #开启v2ray service Created symlink /etc/systemd/system/multi-user.target.wants/v2ray.service → /etc/systemd/system/v2ray.service. ➜ ~ sudo systemctl start v2ray 运行v2ray service ubuntu中安装v2rayA ubuntu下可以使用添加sources.list源来安装v2rayA ➜ ~wget -qO - https://apt.v2raya.mzz.pub/key/public-key.asc | sudo apt-key add - #添加public key ➜ ~echo "deb https://apt.v2raya.mzz.pub/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list #添加apt源 ➜ ~sudo apt update #更新源 ➜ ~ sudo apt install v2raya #安装V2RayA 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 下列软件包是自动安装的并且现在不需要了: linux-headers-5.8.0-43-generic linux-hwe-5.8-headers-5.8.0-43 linux-image-5.8.0-43-generic linux-modules-5.8.0-43-generic linux-modules-extra-5.8.0-43-generic 使用'sudo apt autoremove'来卸载它(它们)。 下列【新】软件包将被安装: v2raya 升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。 需要下载 8,681 kB 的归档。 解压缩后会消耗 23.0 MB 的额外空间。 获取:1 https://apt.v2raya.mzz.pub v2raya/main amd64 v2raya amd64 1.3.1 [8,681 kB] 已下载 8,681 kB,耗时 5秒 (1,609 kB/s) 正在选中未选择的软件包 v2raya。 (正在读取数据库 ... 系统当前共安装有 267561 个文件和目录。) 准备解压 .../v2raya_1.3.1_amd64.deb ... 正在解压 v2raya (1.3.1) ... 正在设置 v2raya (1.3.1) ... Created symlink /etc/systemd/system/multi-user.target.wants/v2raya.service → /etc/systemd/system/v2raya.service. ****************************** * Completed! * ****************************** 正在处理用于 mime-support (3.64ubuntu1) 的触发器 ... 正在处理用于 hicolor-icon-theme (0.17-2) 的触发器 ... 正在处理用于 gnome-menus (3.36.0-1ubuntu1) 的触发器 ... 正在处理用于 desktop-file-utils (0.24-1ubuntu3) 的触发器 ... 设置v2rayA开机启动 ...

四月 21, 2021 · JQX

使用proxychains-ng代理cmd

安装rpoxychains-ng sudo dnf install proxychains-ng ## or sudo apt install proxychains-ng 设置proxychains-ng代理地址 vi /etc/proxychains.conf 添加socks5 192.168.1.94 10808即可,支持多种代理方式:socks4/socks5/http,如下说明: # Examples: # # socks5 192.168.67.78 1080 lamer secret # http 192.168.89.3 8080 justu hidden # socks4 192.168.1.49 1080 # http 192.168.39.93 8080 使用proxychains-ng代理执行命令 $proxychains curl -O https://github.com/XTLS/Xray-install/raw/main/install-release.sh [proxychains] config file found: /etc/proxychains.conf [proxychains] preloading /usr/lib64/proxychains-ng/libproxychains4.so [proxychains] DLL init: proxychains-ng 4.13 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 [proxychains] Strict chain ... 192.168.1.94:10808 ... raw.githubusercontent.com:443 ... OK 100 21115 100 21115 0 0 6107 0 0:00:03 0:00:03 --:--:-- 6106 https://github.com/rofl0r/proxychains-ng.git ...

十一月 8, 2020 · JQX