1.基于virtio的KVM,CentOS7或Debian9系统,内存4GB,DebianNET.sh脚本由Vicer开发,网址:https://moeclub.org
wget -qO DebianNET.sh qiu.sh/dd && bash DebianNET.sh -dd "https://delivery.yuntu.moe/teddysun/cn_windows2019.gz"
2.Teddysun版本,15GB VHD。
wget -O- "https://delivery.yuntu.moe/teddysun/cn_windows2019.gz" | gunzip | dd of=/dev/sda
/远程桌面的默认用户名/密码/
用户: administrator
密码: Password147
3.KMS客户端安装密钥
https://docs.microsoft.com/zh-cn/windows-server/get-started/kmsclientkeys
V2Ray 原生支持 Socks、HTTP、Shadowsocks、VMess 等协议。
ubuntu/debian 安装 Curl:
apt-get update -y && apt-get install curl -y
centos 安装 Curl:
yum update -y && yum install curl -y
官方:
bash <(curl -L -s https://install.direct/go.sh)
其它脚本:
bash <(curl -s -L https://git.io/v2ray.sh)
或
bash <(curl -s -L https://raw.githubusercontent.com/233boy/v2ray/master/install.sh)
Wordpress+v2ray_ws_tls1.3一键脚本(Centos7 VPS, 2GB RAM, 完成后访问域名,开始wordpress初始配置):
yum install -y wget && wget https://raw.githubusercontent.com/atrandys/v2ray-ws-tls/master/v2ray_ws_tls_with_wp.sh && chmod +x v2ray_ws_tls_with_wp.sh && ./v2ray_ws_tls_with_wp.sh
查看参数:
cat /etc/v2ray/myconfig.json
BBR:
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
启动
systemctl start v2ray
service start v2ray
停止
systemctl stop v2ray
service stop v2ray
重启
systemctl restart v2ray
service restart v2ray
V2Ray快速管理:
v2ray bbr 配置BBR
v2ray info 查看 V2Ray 配置信息
v2ray config 修改 V2Ray 配置
v2ray link 生成 V2Ray 配置文件链接
v2ray infolink 生成 V2Ray 配置信息链接
v2ray qr 生成 V2Ray 配置二维码链接
v2ray ss 修改 Shadowsocks 配置
v2ray ssinfo 查看 Shadowsocks 配置信息
v2ray ssqr 生成 Shadowsocks 配置二维码链接
v2ray status 查看 V2Ray 运行状态
v2ray start 启动 V2Ray
v2ray stop 停止 V2Ray
v2ray restart 重启 V2Ray
v2ray log 查看 V2Ray 运行日志
v2ray update 更新 V2Ray
v2ray update.sh 更新 V2Ray 管理脚本
v2ray uninstall 卸载 V2Ray
查看pip源:
cat /root/.pip/pip.conf
pip --version
编辑一下pip配置文件:
vi /root/.pip/pip.conf
修改成豆瓣源或者阿里源:
[global]
index-url=https://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com
强制安装requests:
pip install --ignore-installed requests
Done~
UPDATE: 20200707
准备
*基于Lean`s源: https://github.com/coolsnowwolf/lede
*添加被删除的回退源: https://github.com/kenzok8/openwrt-packages
*编译前准备好梯子
*不要用root来git和编译
*默认IP: 192.168.1.1, 密码: password
*Ubuntu 18.04 LTS 64bit
开工
- 安装更新:
sudo apt-get update
- 安装环境工具:
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget swig
- Git源码目录:
git clone https://github.com/coolsnowwolf/lede
cd lede
编译passwall & ss-plus:
cd package
git clone https://github.com/kenzok8/openwrt-packages.git
git clone https://github.com/kenzok8/small.git
git clone https://github.com/OpenWrt-Actions/OpenWrt-Packages
cd ..
如需编译内核:
make target/linux/compile V=s
如需切换内核:
/home/nonni/lede/target/linux/x86/Makefile
KERNEL_PATCHVER:=4.19
具体支持内核版本可查:include/kernel-version.mk
更新feeds:
./scripts/feeds clean ./scripts/feeds update -a ./scripts/feeds install -a
如果出现 feeds update 警告:
rm -rf ./feeds
删掉 feeds 文件夹后再UPDATE:
git pull
./scripts/feeds clean && ./scripts/feeds update -a && ./scripts/feeds install -a
- 预下载编译:
make defconfig
make -j8 download
选择Soc,<*>编译进固件,<m>编译不进固件,确定路由配置
预下载dl库可以避免下载造成的编译失败
编译冲突,配置还原到初始状态命令:
rm -f .config && rm -f .config.old
rm -rf ./tmp && rm -rf .config
- 编译菜单:
make menuconfig
- 开始编译
make -j1 V=s
-j1 后面是线程数,推荐单线程编译。
或:
make -j$(($(nproc) + 1)) V=s
GoodLuck!
玄色无边凨满台,是耶非耶两徘徊。
迟归冥暗联航路,暂别浮云一快哉。
言语罢,乱心怀,对坐详谈问闲来。
园中小径花香处,深浅芬皅岁岁开。