由于自己使用的是流邦卡,在使用百度直连的过程中踩了不少坑,于是把自己这几天找的的资源整理一下,防止别人踩坑,也给自己做个备份。妖火网-分享你我,而不是分享给我!
1、之前找到clnc软件经常是用几分钟就会断网直到上次发帖求一个稳定版的clnc软件版,@舒卡勒特老哥分享了一个给我,自带一个百度直连模式。现在使用非常稳定,谢谢老哥,附件放下面。
2、clnc本地面具模块和cns面具模块,可以直接解压从里面提取文件夹放根目录data文件夹下面,给权限就可以当脚本版使用了。来自@悠灬悠老哥帖子,之前手机root的时候就用的本地版脚本非常稳定。
3、cns一键搭建脚本,来自@做个俗人老哥帖子下面@89852老哥的回复
4、百度直连的6个IP,来自@我还是我*不曾会变老哥的帖子
共有5个附件(扣50个妖晶):
1.clnc_1.0.apk(2.9MB)
点击下载(2148次)
clnc软件版,适合没有root的手机
2.clnc_cns-magisk模块.txt(35Byte)
点击下载(323次)
clnc_cns版模块,没有magisk可以指提取文件夹当脚本使用,需搭建cns,由于文件太大发帖发不了,这个上传到了蓝凑云,放的链接
3.clnc_local0.5.2_magisk.zip(1.9MB)
点击下载(977次)
clnc本地版,内置了百度直连、uc和王卡模式,没有magisk可以指提取文件夹当脚本使用,可以搭建cns填入模式里面免udp
4.cns一键搭建脚本.txt(78Byte)
点击下载(235次)
cns一键搭建脚本
5.百度直连ip.txt(181Byte)
点击下载(879次)
6个百度直连的ip,可以自行测试替换
未分类 第2页
oracle
最近有不少MJJ在发帖问,聪明的MJJ肯定知道怎么切换版本或32位,脚本及命令是引用各位大佬的
前提:版本是Canonical Ubuntu 16.04,避免乱七八糟bug
把下面脚本扔进CLOUD-INIT即可,除了系统,其他不更改
#!/bin/bash
echo root:Abc123456 |sudo chpasswd root
sudo sed -i ‘s/^#\?PermitRootLogin.*/PermitRootLogin yes/g’ /etc/ssh/sshd_config;
sudo sed -i ‘s/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g’ /etc/ssh/sshd_config;
sudo service sshd restart
复制代码
不需要密钥 直接用root账号登录 初始账号root 密码Abc123456
centOS 6.9 64bit(未实验,谨慎使用):
bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -c 6.9 -v 64 -a -firmware
复制代码
debian 10 64bit(推荐,来回dd几十次正常):
bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -d 10 -v 64 -a -firmware
复制代码
Ubuntu 16.04 64bit(未实验,谨慎使用):
bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -u 16.04 -v 64 -a -firmware
复制代码
dd时间大概15分钟左右 初始账号root 密码MoeClub.org
dd完换内核加bbr,一气呵成
https://github.com/ylx2016/Linux-NetSpeed
复制代码
(有大佬说修改DNS不行,MJJ可以试试,我是可以的)
至于有MJJ说oracle看不了全球最大教育网站p站,应该是dns问题,直接更改resolv.conf不行,reboot后文件会被恢复,暂时用以下解决办法
debian:
apt-get install resolvconf
vim /etc/resolvconf/resolv.conf.d/head
复制代码
然后加入以下,再reboot即可
nameserver 1.1.1.1
nameserver 8.8.8.8
复制代码
Centos7上安装docker
一、安装docker
1、Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。
通过 uname -r 命令查看你当前的内核版本
$ uname -r
2、使用 root
权限登录 Centos。确保 yum 包更新到最新。
$ sudo yum update
3、卸载旧版本(如果安装过旧版本的话)
$ sudo yum remove docker docker-common docker-selinux docker-engine
4、安装需要的软件包, yum-util 提供yum-config-manager功能,另外两个是devicemapper驱动依赖的
$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
5、设置yum源
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
6、可以查看所有仓库中所有docker版本,并选择特定版本安装
$ yum list docker-ce --showduplicates | sort -r
7、安装docker
$ sudo yum install docker-ce #由于repo中默认只开启stable仓库,故这里安装的是最新稳定版17.12.0 $ sudo yum install <FQPN> # 例如:sudo yum install docker-ce-17.12.0.ce
8、启动并加入开机启动
$ sudo systemctl start docker $ sudo systemctl enable docker
9、验证安装是否成功(有client和service两部分表示docker安装启动都成功了)
$ docker version
二、问题
1、因为之前已经安装过旧版本的docker,在安装的时候报错如下:
Transaction check error: file /usr/bin/docker from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64 file /usr/bin/docker-containerd from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64 file /usr/bin/docker-containerd-shim from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64 file /usr/bin/dockerd from install of docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with file from package docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
2、卸载旧版本的包
$ sudo yum erase docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
3、再次安装docker
$ sudo yum install docker-ce
docker-api来执行docker相关的操作
配置
可以在docker启动文件docker.service中加入如下
vi /lib/systemd/system/docker.service
在下面ExecStart 后面添加 -H tcp://0.0.0.0:2375
ExecStart=/usr/bin/dockerd -H fd:// –containerd=/run/containerd/containerd.sock -H unix://var/run/docker.sock -H tcp://0.0.0.0:2375
但是这样直接开放api,不安全,因此就需要指定证书。
修改 ExecStart的值如下:
ExecStart=/usr/bin/dockerd -H fd:// –containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock -D –tlsverify –tlscert=/etc/docker/certs.d/server-cert-docker.pem –tlskey=/etc/docker/certs.d/server-key-docker.pem –tlscacert=/etc/docker/certs.d/ca-docker.pem
客户端在访问docker-api的时候就需要提供证书。
脚本
下面是自动生成docker-api证书的脚本。
利用脚本自动生成,这样非常便捷,脚本(auto_gen_docker_tls_certs.sh)如下:
复制代码
#!/bin/bash
#
# ————————————————————-
# 自动创建 Docker TLS 证书
# ————————————————————-
# 以下是配置信息
# –[BEGIN]——————————
CODE=”docker”
IP=”192.168.31.199″
PASSWORD=”123456″
COUNTRY=”CN”
STATE=”HUNAN”
CITY=”CHANGSHA”
ORGANIZATION=”thyc”
ORGANIZATIONAL_UNIT=”Dev”
COMMON_NAME=”$IP”
EMAIL=”an23gn@163.com”
# –[END]–
# Generate CA key
openssl genrsa -aes256 -passout “pass:$PASSWORD” -out “ca-key-$CODE.pem” 4096
# Generate CA
openssl req -new -x509 -days 365 -key “ca-key-$CODE.pem” -sha256 -out “ca-$CODE.pem” -passin “pass:$PASSWORD” -subj “/C=$COUNTRY/ST=$STATE/L=$CITY/O=$ORGANIZATION/OU=$ORGANIZATIONAL_UNIT/CN=$COMMON_NAME/emailAddress=$EMAIL”
# Generate Server key
openssl genrsa -out “server-key-$CODE.pem” 4096
# Generate Server Certs.
openssl req -subj “/CN=$COMMON_NAME” -sha256 -new -key “server-key-$CODE.pem” -out server.csr
echo “subjectAltName = IP:$IP,IP:127.0.0.1” >> extfile.cnf
echo “extendedKeyUsage = serverAuth” >> extfile.cnf
openssl x509 -req -days 365 -sha256 -in server.csr -passin “pass:$PASSWORD” -CA “ca-$CODE.pem” -CAkey “ca-key-$CODE.pem” -CAcreateserial -out “server-cert-$CODE.pem” -extfile extfile.cnf
# Generate Client Certs.
rm -f extfile.cnf
openssl genrsa -out “key-$CODE.pem” 4096
openssl req -subj ‘/CN=client’ -new -key “key-$CODE.pem” -out client.csr
echo extendedKeyUsage = clientAuth >> extfile.cnf
openssl x509 -req -days 365 -sha256 -in client.csr -passin “pass:$PASSWORD” -CA “ca-$CODE.pem” -CAkey “ca-key-$CODE.pem” -CAcreateserial -out “cert-$CODE.pem” -extfile extfile.cnf
rm -vf client.csr server.csr
chmod -v 0400 “ca-key-$CODE.pem” “key-$CODE.pem” “server-key-$CODE.pem”
chmod -v 0444 “ca-$CODE.pem” “server-cert-$CODE.pem” “cert-$CODE.pem”
# 打包客户端证书
mkdir -p “tls-client-certs-$CODE”
cp -f “ca-$CODE.pem” “cert-$CODE.pem” “key-$CODE.pem” “tls-client-certs-$CODE/”
cd “tls-client-certs-$CODE”
tar zcf “tls-client-certs-$CODE.tar.gz” *
mv “tls-client-certs-$CODE.tar.gz” ../
cd ..
rm -rf “tls-client-certs-$CODE”
# 拷贝服务端证书
mkdir -p /etc/docker/certs.d
cp “ca-$CODE.pem” “server-cert-$CODE.pem” “server-key-$CODE.pem” /etc/docker/certs.d/
复制代码
对脚本中的变量进行修改后运行,自动会创建好tls证书,服务器的证书在/etc/docker/certs.d/目录下:
客户端的证书在运行脚本的目录下,同时还自动打好了一个.tar.gz的包,很方便。
重启docker
systemctl daemon-reload && systemctl restart docker
一键清除Linux所有历史记录
在工作完,或者某些大佬做完X事之后,想要清除自己留下的历史记录,那么就可以选择执行以下命令来清除所有历史记录。(不要去做坏事,天网恢恢疏而不漏,仅建议用于清除自己的服务器历史记录)
echo > /var/log/wtmp
echo > /var/log/btmp
echo>/var/log/lastlog
echo > /var/log/secure
echo > /var/log/messages
echo>/var/log/syslog
echo>/var/log/xferlog
echo>/var/log/auth.log
echo>/var/log/user.log
cat /dev/null > /var/adm/sylog
cat /dev/null > /var/log/maillog
cat /dev/null > /var/log/openwebmail.log
cat /dev/null > /var/log/mail.info
echo>/var/run/utmp
echo > ~/.bash_history
history -c
echo > .bash_history
history -cw
1块钱体验华为云4核16G,100g系统盘服务器两台;cpu主频3ghz
服务器活动地址:https://activity.huaweicloud.com/bigdata-developer.html
由于这个套餐没有宽带,所以我们需要参加活动领取100块代金券来购买宽带或者流量包;
领取地址:https://www.hostloc.com/forum.php?mod=viewthread&tid=746735&highlight=%E5%8D%8E%E4%B8%BA%E4%BA%91
https://www.hostloc.com/forum.php?mod=viewthread&tid=746717&highlight=%E5%8D%8E%E4%B8%BA%E4%BA%91
操作流程
第一步:购买套餐
购买后请等待一段时间,使得mrs服务显示运行中,觉对不能购买后就立即dd系统,如果没有显示运行中就动了服务器,华为云会认为mrs服务没有部署成功这些退订服务器,需要重新购买。
第二部分滴滴系统
服务器密码是购买时设定的
由于服务器系统的reboot等等系统命令已经被华为云改动,现有的dd脚本需要改动才能dd,所以下面我采用手工滴滴系统。
刚才第一步得到AB两台服务器
开放安全组全部端口ip
利用代金券购买ip,如果没有就等待发卷,一般两天发
购买一台同区域同可用区低配按量计费服务器c,用来滴滴系统;如果没有发卷就充值5毛钱,
把AB两台服务器关机,卸载系统盘并挂载到服务器C;
进入c服务器
下载dd系统:http://odc.cxthhhhh.com/?dir=SyStem
解压 gunzip
滴滴系统
dd if=/root/系统vhd名_CXT.vhd of=/dev/vdc
dd if=/root/系统vhd名_CXT.vhd of=/dev/vdb
滴滴成功,慢慢使用吧
如果你滴滴的Linux系统,格式化并挂载数据盘脚本
wget http://tianjidian.com/file/DataDisk.sh chmod +x ./DataDisk.sh sh ./DataDisk.sh
dd系统那一步也可以不购买按量服务器c;可以直接把a关机并把系统盘挂载到b服务器,滴滴好a后同理滴滴b;也可以挂载到已用的服务器。
ARM服务器安装docker 服务
第一步:把格式化并挂载数据盘
wget http://tianjidian.com/file/DataDisk.sh chmod +x ./DataDisk.sh sh ./DataDisk.sh
第二步:ARM系统初始化操作
wget http://tianjidian.com/file/init-kunpeng.sh chmod +x ./init-kunpeng.sh # 执行脚本 sh ./init-kunpeng.sh
第三步:安装docker
wget http://tianjidian.com/file/install-docker.sh chmod +x install-docker.sh # 执行脚本 sh install-docker.sh
第四步:修改docker存储路径
mkdir -p /data/docker # 修改docker存储路径 vim /lib/systemd/system/docker.service # ExecStart参数末尾增加--graph... ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --graph=/data/docker --storage-driver=overlay2 # 刷新,重启docker systemctl daemon-reload systemctl restart docker # 查看docker信息 docker info # 看到如下信息即为生效: Docker Root Dir: /data/docker
第五步:安装docker-compose
# 安装docker-compose yum install -y docker-compose # 验证安装 docker-compose version
研究了一晚上,知道现在bt5.9怎么开心了
说开了其实也很简单
毕竟之前的方法都是传开了的,后面官方修复了
但旧版本的面板文件没有删,依旧可以下载
就可以对比一下文件哪里变化了
再者,5.9的开心,现在也还有很多,但看起来多是那种把代码本地化了,不是从宝塔服务器下载。
可以从宝塔安装再自己改代码开心当然是更放心一点
mjj
如果不想看过程、原理,直接到最底下的一键脚本
方法1
安装bt5.9
升级到专业版
开心
反正就这样就可以装付费插件了,到期时间显示当天
还有一种方法(方法2),先正常安装5.9.2专业版,然后用5.9.0的common.py替换5.9.2的,再按照网上流传的修改方法(164行修改为[data = {‘status’ : True,’msg’ : {‘endtime’ : 32503651199 }};])
安装bt5.9
升级到专业版
替换common.py
开心
这样的话,就是显示2099年到期了
————————————————
不管你用不用的上,建议把这几个老版本下载保存一份
脚本
面板文件
主要是安装脚本和5.9.0和5.9.2这三个
——————————————————————————————
一键脚本
方法1
方法2
基于Debian10搭建ProxmoxVE 6虚拟化环境
Proxmox VE是一款套开源的虚拟化管理软件,用户可通过网页的方式来管理服务器上使用 kvm 以及 lxc 技术运行的虚拟机。同时提供了一些先进功能的支持,如集群、HA等。
PVE虽然是开源,却是由一个商业公司在运营、更新以及维护。
PVE与esxi、openstack属于同类型产品,相较而言比较小众,国内相关的资料比较匮乏,但这并不代表它不够优秀。
esxi基于红帽,并且做了深度定制,这导致它对硬件要求比较苛刻。与esxi不同的是,pve基于debian系统构建,熟悉debian或ubuntu的童鞋可以轻松上手。pve可直接通过apt进行安装,也可以使用官方打包的镜像直接进行启动盘烧制安装。这里主要给大家介绍下前者~
安装背景介绍
- 主机:自己组装的(华南金牌x79双路寨板+e5-2650v2*2+三星内存条32g*3+ssd240g+硬盘500g+板载集显)
- 系统:debian-live-10.1.0-amd64-xfce.iso
Tips: 在部署pve之前,采用的kvm + virt-manager直接安装kvm虚拟机(尝试过安装esxi,怎奈组装的主机根本安装不了),centos7也跑不了,但是debian10部署成功还是比较nice的。要注意的是,如果按照我的组装机配置安装DEBIAN10的话,不要下载GNOME桌面的镜像,不然加载界面会卡到爆,猜测是因为没有单独安装显卡的缘故,不过xface桌面跑起来还是很流畅的。
安装步骤
debian10的安装,这里就不赘述了哈,大家自行google
更新Debian10并进行基础配置
- 更新DebianOS
-
sudo apt update -y
-
sudo apt upgrade -y
- 设置系统名称并修改
/etc/hosts
文件
-
# 这里我的主机名为 home-stack,ip地址为192.168.1.60,按实际情况修改
-
sudo hostnamectl set-hostname home-stack
-
sudo echo “192.168.1.60 home-stack” | sudo tee -a /etc/hosts
-
# 若/etc/hosts中有 “127.0.1.1 home-stack”的记录,需要将其删除,否则后面可能会导致pve-manager启动失败
- 添加PVE相关的apt下载库
-
# 1. 导入GPG秘钥:
-
wget -qO – http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg | sudo apt-key add –
-
# 2. 添加Proxmox VE存储库及Proxmox VE Ceph存储库
-
# 官方源
-
sudo echo “deb http://download.proxmox.com/debian/pve buster pve-no-subscription” | sudo tee /etc/apt/sources.list.d/pve-install-repo.list
-
sudo echo “deb http://download.proxmox.com/debian/ceph-nautilus buster main” | sudo tee /etc/apt/sources.list.d/ceph.list
-
# 国内源
-
sudo echo “deb http://download.proxmox.wiki/debian/pve buster pve-no-subscription” | sudo tee /etc/apt/sources.list.d/pve-install-repo.list
-
sudo echo “deb http://download.proxmox.wiki/debian/ceph-nautilus buster main” | sudo tee /etc/apt/sources.list.d/ceph.list
-
# 添加完库后执行下更新
-
sudo apt update -y
-
sudo apt upgrade -y
安装Proxmox VE软件包
sudo apt install proxmox-ve postfix open-iscsi ksmtuned ceph-base
配置postfix
选择Internet Site
,其他配置选择默认。
-
# 重新配置
-
sudo dpkg-reconfigure postfix
配置网桥
新建Linux Bridge
迁移导入kvm主机
-
# 创建虚拟机
-
sudo qm create 104
-
# 导入磁盘
-
sudo qm importdisk 104 /kvm/disk/rancher-05.qcow2 kvm
FAQ
systemd-timesyncd启动失败问题
ntpd导致systemd-timesyncd无法正常启动
-
sudo mv /usr/sbin/ntpd /usr/sbin/ntpd.bk
-
sudo systemctl restart systemd-timesyncd
网络重装系统 DD一键脚本
#不支持openvz InstallNET.sh moeclub 萌咖:https://moeclub.org/
#安装所需软件
#Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file wget screen && screen -S os
#RedHat/CentOS:
yum install -y xz openssl gawk file glibc-common wget screen && screen -S os
#如果出现错误
#Debian/Ubuntu:
apt-get update
#RedHat/CentOS:
yum update
moeclub
#安装centos6.9 x64,不支持centos7 默认系统账号:root 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -c 6.9 -v 64 -a -p 自定义密码
#安装debian9 x64 默认系统账号:root 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -d 9 -v 64 -a -p 自定义密码
#安装ubuntu16.04 x64 默认系统账号:root 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -u 16.04 -v 64 -a -p 自定义密码
#安装win7 x86 默认系统账号:Administrator 默认系统密码:Vicer 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/moeclub/win7emb_x86.tar.gz'
#安装win8.1 x64 默认系统账号:Administrator 默认系统密码:Vicer 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/moeclub/win8.1emb_x64.tar.gz'
#安装win10ltsc x64 默认系统账号:Administrator 默认系统密码:Vicer 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/moeclub/win10ltsc_x64.tar.gz'
#自定义网络参数示例:
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd '
#国内推荐使用USTC源
#--mirror 'http://mirrors.ustc.edu.cn/debian/'
dansnow
#centos7 建议使用此DD包
#安装centos7.x x64 默认系统账号:root 默认系统密码:Pwd@CentOS 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/dansnow/CentOS-7.img.gz'
meowlove
cxthhhhh:https://tech.cxthhhhh.com
#安装centos7.x x64 默认系统账号:root 默认系统密码:cxthhhhh.com 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/cxthhhhh/CentOS_7.X_NetInstallation.vhd.gz'
#注意:重复重装此系统前,在主机上面板重装一次系统。
#在一些主机商上安装的成功率似乎并不是很高。
#如果安装成功无法联网,vnc手动修改为静态ip:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
#修改
BOOTPROTO=static #dhcp改为static
IPADDR=192.168.1.100 #静态IP
GATEWAY=192.168.1.255 #默认网关
NETMASK=255.255.255.0 #子网掩码
#保存后重启
reboot
#安装Windows Server 2003 x86 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/cxthhhhh/Disk_Windows_Server_2003_DataCenter_CN.vhd.gz'
#安装Windows 7 Vienna x86 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/cxthhhhh/Disk_Windows_7_Vienna_Ultimate_CN.vhd.gz'
#安装Windows Server 2008 R2 x64 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/cxthhhhh/Disk_Windows_Server_2008R2_DataCenter_CN.vhd.gz'
#安装Windows Server 2012 R2 x64 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/cxthhhhh/Disk_Windows_Server_2012R2_DataCenter_CN.vhd.gz'
#安装Windows Server 2016 x64 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/cxthhhhh/Disk_Windows_Server_2016_DataCenter_CN.vhd.gz'
#安装Windows Server 2019 x64 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/cxthhhhh/Disk_Windows_Server_2019_DataCenter_CN.vhd.gz'
teddysun
秋水逸冰:https://teddysun.com
#安装Windows Server 2012 R2 Datacenter x64 默认系统账号:Administrator 默认系统密码:Password147 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/teddysun/cn_windows2012r2.gz'
#安装Windows Server 2016 Datacenter x64 默认系统账号:Administrator 默认系统密码:Password147 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/teddysun/cn_windows2016.gz'
#安装Windows Server 2019 Datacenter x64 默认系统账号:Administrator 默认系统密码:Password147 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/teddysun/cn_windows2019.gz'
laosiji
老司机:https://www.hostloc.com/space-uid-23758.html https://www.hostloc.com/space-uid-22920.html
#安装Windows Server 2008 R2 数据中心版 (64位) 默认系统账号:Administrator 默认系统密码:www.nat.ee 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/cn_windows_server_2008_r2_dc_x64.gz'
#安装Windows Server 2012 R2 数据中心版 (64位) 默认系统账号:Administrator 默认系统密码:www.nat.ee 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/cn_windows_server_2012_r2_dc_x64.gz'
#安装Windows 10 企业版 LTSC 2019 (64位)- 默认系统账号:Administrator 默认系统密码:www.nat.ee 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/cn_windows_10_enterprise_ltsc_2019_x64.gz'
#安装精简版Windows Server 2003 Enterprise SP2 x86 默认系统账号:Administrator 默认系统密码:WinSrv2003x86-Chinese 默认远程端口:3389
#C盘5G
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/WinSrv2003x86-Chinese-C5G.vhd.gz'
#C盘10G
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/WinSrv2003x86-Chinese-C10G.vhd.gz'
#安装精简版Windows 7 Ultimate SP1 x86 默认系统账号:Administrator 默认系统密码:Windows7x86-Chinese 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/Windows7x86-Chinese.vhd.gz'
#安装精简版Windows 7 Ultimate SP1 x64 默认系统账号:Administrator 默认系统密码:www.nat.ee 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/Win7_x64.vhd.gz'
#安装精简版Windows 7 Ultimate SP1 x64 IIS 默认系统账号:Administrator 默认系统密码:www.nat.ee 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/Win7_x64_iis.gz'
#安装精简版Windows 10 企业版 LTSC x64 默认系统账号:Administrator 默认系统密码:www.nat.ee 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/Win10_x64.vhd.gz'
#安装精简版Windows Server 2008 R2 Datacenter x64 默认系统账号:Administrator 默认系统密码:WinSrv2008x64-Chinese 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/WinSrv2008x64-Chinese.vhd.gz'
#安装精简版Windows Server 2012 R2 Datacenter x64(V1) 默认系统账号:Administrator 默认系统密码:WinSrv2012r2x64-Chinese 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/WinSrv2012r2x64-Chinese.vhd.gz'
#安装精简版Windows Server 2012 R2 Datacenter x64(V2) 默认系统账号:Administrator 默认系统密码:WinSrv2012r2 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/WinSrv2012r2_v2.vhd.gz'
#安装精简版Windows Server 2019 Datacenter x64 默认系统账号:Administrator 默认系统密码:WinSrv2019dc-Chinese 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://download.zkxblog.com/os/shell/InstallNET.sh') -dd 'https://download.zkxblog.com/os/dd/laosiji/WinSrv2019dc-Chinese.vhd.gz'
windows to linux
Windows 一键重装系统为 Linux win32loader.bat
@ECHO OFF&@PUSHD %~DP0 &TITLE Win32Loader
setlocal enabledelayedexpansion
::Author MoeClub.org
color 87
cd.>%windir%\GetAdmin
if exist %windir%\GetAdmin (del /f /q "%windir%\GetAdmin") else (
echo CreateObject^("Shell.Application"^).ShellExecute "%~s0", "%*", "", "runas", 1 >> "%temp%\Admin.vbs"
"%temp%\Admin.vbs"
del /s /q "%temp%\Admin.vbs"
exit /b 2)
cls
echo * Init Win32Loader.
set download=0
set try_download=1
set URL=https://moeclub.org/attachment/WindowsSoftware
:InitCheck
mkdir "%SystemDrive%\win32-loader" >NUL 2>NUL
if exist "%SystemDrive%\Windows\System32\WindowsPowerShell" (
set use_ps=1
) else (
set use_ps=0
echo Not found PowerShell.
)
:Init
if %use_ps% equ 1 (
goto InitIt
) else (
goto InitFail
)
:InitIt
set try_download=0
call:DownloadFile "!URL!/g2ldr/g2ldr","%SystemDrive%\g2ldr"
call:DownloadFile "!URL!/g2ldr/g2ldr.mbr","%SystemDrive%\g2ldr.mbr"
call:DownloadFile "!URL!/g2ldr/grub.cfg","%SystemDrive%\win32-loader\grub.cfg"
goto InitDone
:InitFail
echo.
echo Go to "!URL!/g2ldr",
echo Please download them by yourself.
echo '%SystemDrive%\g2ldr'
echo '%SystemDrive%\g2ldr.mbr'
echo '%SystemDrive%\win32-loader\grub.cfg'
echo Press [ENTER] when you finished.
pause >NUL 2>NUL
goto InitDone
:InitDone
if !try_download! equ 0 (
set InitOption=InitFail
) else (
set InitOption=Init
)
if not exist "%SystemDrive%\g2ldr" goto !InitOption!
if not exist "%SystemDrive%\g2ldr.mbr" goto !InitOption!
if not exist "%SystemDrive%\win32-loader\grub.cfg" goto !InitOption!
:Image
echo.
echo * Please select initrd mode.
echo [1] Online download
echo [2] Local file
choice /n /c 12 /m Select:
if errorlevel 2 goto LocalMode
if errorlevel 1 goto OnlineMode
goto Image
:OnlineMode
echo.
echo * Please select source.
echo [1] by MoeClub [Linux](Debian8, DHCP or VNC Support)
echo [2] by MoeClub [Windows](Win7EMB, DHCP or VNC Support)
echo [3] by MoeClub [Windows](Win8.1EMB, DHCP or VNC Support)
echo [4] by yourself
choice /n /c 1234 /m Select:
if errorlevel 4 goto Yourself
if errorlevel 3 goto MoeClub_Win8.1EMB
if errorlevel 2 goto MoeClub_Win7EMB
if errorlevel 1 goto MoeClub
goto OnlineMode
:Yourself
echo.
echo if 'initrd.img' URL is 'https://moeclub.org/onedrive/IMAGE/Loader/DebianJessie/initrd.img',
echo Please input 'https://moeclub.org/onedrive/IMAGE/Loader/DebianJessie'.
set /p IMG_URL_TMP=URL :
if defined IMG_URL_TMP (
set IMG_URL=%IMG_URL_TMP%
goto Download
) else (
goto MoeClub
)
:MoeClub_Win8.1EMB
set IMG_URL=https://moeclub.org/onedrive/IMAGE/Loader/Win8.1EMB
set INITRD_SHA1=473617320316CCB5A88EDE72CBA6AF501B148071
set VMLINUZ_SHA1=C84BF89869868B0325F56F1C0E62604A83B9443F
goto Download
:MoeClub_Win7EMB
set IMG_URL=https://moeclub.org/onedrive/IMAGE/Loader/Win7EMB
set INITRD_SHA1=C1BF2A50802BC23A7EC7373AB4CB8F5A905D5860
set VMLINUZ_SHA1=C84BF89869868B0325F56F1C0E62604A83B9443F
goto Download
:MoeClub
set IMG_URL=https://moeclub.org/onedrive/IMAGE/Loader/DebianJessie
set INITRD_SHA1=934CFCD5DC855F360AE72AFCB8E6276FABFBCDD5
set VMLINUZ_SHA1=C84BF89869868B0325F56F1C0E62604A83B9443F
goto Download
:Download
if %use_ps% equ 1 (
echo.
echo Downloading 'initrd.img'...
call:DownloadFile "!IMG_URL!/initrd.img","%SystemDrive%\win32-loader\initrd.img"
call:CheckFile "%SystemDrive%\win32-loader\initrd.img"
call:CheckSUM "%SystemDrive%\win32-loader\initrd.img","%INITRD_SHA1%"
echo Downloading 'vmlinuz'...
call:DownloadFile "!IMG_URL!/vmlinuz","%SystemDrive%\win32-loader\vmlinuz"
call:CheckFile "%SystemDrive%\win32-loader\vmlinuz"
call:CheckSUM "%SystemDrive%\win32-loader\vmlinuz","%VMLINUZ_SHA1%"
set download=1
) else (
echo Not support online download, auto change Local initrd.
goto LocalMode
)
:LocalMode
if !download! equ 0 (
echo.
echo Please put 'initrd.img' and 'vmlinuz' to '%SystemDrive%\win32-loader' .
echo Press [ENTER] when you finished.
pause >NUL 2>NUL
)
:Done0
set download=0
if exist "%SystemDrive%\win32-loader\initrd.img" (
goto Done1
) else (
echo Not found '%SystemDrive%\win32-loader\initrd.img' .
goto LocalMode
)
:Done1
set download=0
if exist "%SystemDrive%\win32-loader\vmlinuz" (
goto Done
) else (
echo Not found '%SystemDrive%\win32-loader\vmlinuz' .
goto LocalMode
)
:Done
echo.
echo Press [ENTER] to continue...
echo IT WILL REBOOT IMMEDIATELY
pause >NUL 2>NUL
echo.
call:CheckFile "%SystemDrive%\g2ldr"
call:CheckFile "%SystemDrive%\g2ldr.mbr"
call:CheckFile "%SystemDrive%\win32-loader\grub.cfg"
call:CheckFile "%SystemDrive%\win32-loader\initrd.img"
call:CheckFile "%SystemDrive%\win32-loader\vmlinuz"
call:CheckSUM "%SystemDrive%\g2ldr","2FCB1009A64C127AD3CC39FF0B5E068B38CBA772"
call:CheckSUM "%SystemDrive%\g2ldr.mbr","29401C8BC951F0AEFD30DC370A3797D1055D64B4"
call:CheckSUM "%SystemDrive%\win32-loader\grub.cfg","58C499EFEE7E60790B3FE2166B536C04B6717B14"
set id={01234567-89ab-cdef-fedc-ba9876543210}
bcdedit /create %id% /d "Debian GUN/Linux" /application bootsector >NUL 2>NUL
bcdedit /set %id% device partition=%SystemDrive% >NUL 2>NUL
bcdedit /set %id% path \g2ldr.mbr >NUL 2>NUL
bcdedit /displayorder %id% /addlast >NUL 2>NUL
bcdedit /bootsequence %id% /addfirst >NUL 2>NUL
shutdown -r -t 0
:CheckSUM
for /f "delims=: tokens=2" %%i in ('powershell.exe "& {Get-FileHash -Algorithm SHA1 -Path %1|Format-List -Property HASH}"') do (set tmp_var=%%i)
set var=%tmp_var:~1%
if "%var%" == %2 (
echo Check %1 SHA1 OK.
) else (
if "%var%" == "CommandNotFoundException" (
echo Check %1 SHA1 SKIP.
) else (
echo Check %1 SHA1 FAIL.
call:ErrorExit
)
)
GOTO:EOF
:CheckFile
if not exist %1 (
echo Not found %1 .
call:ErrorExit
)
GOTO:EOF
:DownloadFile
powershell.exe -command "& {$client = new-object System.Net.WebClient; $client.DownloadFile('%1','%2')}" >NUL 2>NUL
GOTO:EOF
:ErrorExit
echo.
echo Error, Clear CACHE...
del /S /F /Q "%SystemDrive%\g2ldr" >NUL 2>NUL
del /S /F /Q "%SystemDrive%\g2ldr.mbr" >NUL 2>NUL
rd /S /Q "%SystemDrive%\win32-loader" >NUL 2>NUL
echo Press [ENTER] to exit.
pause >NUL 2>NUL
exit 1
GOTO:EOF
kms activation
KMS激活 任选其一
#管理员身份打开命令提示符
slmgr /skms kms.asuhu.com
slmgr /ato
slmgr /xpr
#管理员身份打开命令提示符
slmgr /skms kms.03k.org
slmgr /ato
slmgr /xpr
#管理员身份打开命令提示符
slmgr /skms kms.moeclub.org
slmgr /ato
slmgr /xpr
常用脚本
#一键开启bbr脚本
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
#bbr 原版/魔改/plus+锐速 四合一脚本 使用说明:https://www.zkxblog.com/technology/49.html
wget --no-check-certificate https://github.com/cx9208/Linux-NetSpeed/raw/master/tcp.sh && chmod +x tcp.sh && ./tcp.sh
#superbench 检测脚本
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
#bench 检测脚本
wget -qO- bench.sh | bash
#zbench(中文)检测脚本
wget --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
#zbench(英文)检测脚本
wget --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh
#LemonBench 综合检测脚本(检测耗时较长,建议screen)
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full
#硬盘通电时间 检测脚本
wget -q https://github.com/Aniverse/A/raw/i/a && bash a
#unixbench 性能跑分脚本
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh && chmod +x unixbench.sh && ./unixbench.sh
更多资源
https://download.zkxblog.com/?dir=os
更新日志
2020年7月1日 新的centos7 DD包
2019年12月5日 硬盘通电时间检测脚本
2019年11月29日 常用脚本
2019年9月18日 老司机 精简版Windows 7 Ultimate SP1 x64 IIS