使用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

国内安装ohmyzsh的方法

首先安装zsh apt update&&apt ugprade -y apt install zsh -y 如果能够正常访问github.com和githubusercontent.com,那么使用如下命令即可安装ohmyzsh $ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 如果无法访问github.com,那就建议使用gitee提供的国内镜像来安装,方法如下: git clone https://gitee.com/mirrors/oh-my-zsh.git cd oh-my-zsh/tools vi ./install.sh 找到install.sh中的REMOTE=${REMOTE:-https://github.com/${REPO}.git},将其修改为REMOTE=${REMOTE:-https://gitee.com/mirrors/oh-my-zsh.git},保存即可。 sed -i 's%https://github.com/${REPO}.git%https://gitee.com/mirrors/oh-my-zsh.git%g' oh-my-zsh/tools/install.sh 执行./install.sh就可以使用国内镜像来正常安装ohmyzsh。 ➜ ~ neofetch `.::///+:/-. --///+//-:`` bbq@raspi2b `+oooooooooooo: `+oooooooooooo: ----------- /oooo++//ooooo: ooooo+//+ooooo. OS: Raspbian GNU/Linux 12 (bookworm) armv7l `+ooooooo:-:oo- +o+::/ooooooo: Host: Raspberry Pi 2 Model B Rev 1.1 `:oooooooo+`` `.oooooooo+- Kernel: 6.6.62+rpt-rpi-v7 `:++ooo/. :+ooo+/.` Uptime: 20 mins ...` `.----.` ``.. Packages: 894 (dpkg) .::::-``:::::::::.`-:::-` Shell: zsh 5.9 -:::-` .:::::::-` `-:::- Terminal: /dev/pts/0 `::. `.--.` `` `.---.``.::` CPU: BCM2835 (4) @ 900MHz .::::::::` -::::::::` ` Memory: 140MiB / 920MiB .::` .:::::::::- `::::::::::``::. -:::` ::::::::::. ::::::::::.`:::- :::: -::::::::. `-:::::::: :::: -::- .-:::-.``....``.-::-. -::- .. `` .::::::::. `..`.. -:::-` -::::::::::` .:::::` :::::::` -::::::::::` :::::::. .::::::: -::::::::. :::::::: `-:::::` ..--.` ::::::. `...` `...--..` `...` .:::::::::: `.-::::-`

十一月 1, 2020 · JQX