当前位置: 首页 > news >正文

简单几步通过DD工具把云服务器系统Linux改为windows

简单几部通过DD安装其他系统,当服务器的web控制台没有我们要装的系统,就需要通过DD(Linux磁盘)工具来更改系统,(已知支持KVM系统)

本文如何简单的更换系统,不通过web控制台来更换,对于国外服务器不支持的系统,可以进行更换:

一、更新系统(本文以ubuntu为例)

sudo apt update && sudo apt install wget -y

root@VM-8-2-ubuntu:/# sudo apt update
Hit:1 http://mirrors.tencentyun.com/ubuntu jammy InRelease
Get:2 http://mirrors.tencentyun.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://mirrors.tencentyun.com/ubuntu jammy-security InRelease [110 kB]
Get:4 http://mirrors.tencentyun.com/ubuntu jammy-updates/main amd64 Packages [1,377 kB]
Get:5 http://mirrors.tencentyun.com/ubuntu jammy-updates/main Translation-en [273 kB]
Get:6 http://mirrors.tencentyun.com/ubuntu jammy-updates/restricted amd64 Packages [1,431 kB]
Get:7 http://mirrors.tencentyun.com/ubuntu jammy-updates/restricted Translation-en [235 kB]
Get:8 http://mirrors.tencentyun.com/ubuntu jammy-updates/universe amd64 Packages [1,049 kB]
Get:9 http://mirrors.tencentyun.com/ubuntu jammy-updates/universe Translation-en [237 kB]
Get:10 http://mirrors.tencentyun.com/ubuntu jammy-updates/multiverse amd64 Packages [42.1 kB]
Get:11 http://mirrors.tencentyun.com/ubuntu jammy-security/main amd64 Packages [1,161 kB]
Get:12 http://mirrors.tencentyun.com/ubuntu jammy-security/main Translation-en [213 kB]
Get:13 http://mirrors.tencentyun.com/ubuntu jammy-security/restricted amd64 Packages [1,401 kB]
Get:14 http://mirrors.tencentyun.com/ubuntu jammy-security/restricted Translation-en [231 kB]
Get:15 http://mirrors.tencentyun.com/ubuntu jammy-security/universe amd64 Packages [842 kB]
Get:16 http://mirrors.tencentyun.com/ubuntu jammy-security/universe Translation-en [161 kB]
Get:17 http://mirrors.tencentyun.com/ubuntu jammy-security/multiverse amd64 Packages [37.1 kB]
Fetched 8,920 kB in 5s (1,699 kB/s)  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
155 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@VM-8-2-ubuntu:/# sudo apt install wget -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21.2-2ubuntu1).
wget set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 155 not upgraded.
root@VM-8-2-ubuntu:/# 

 

二、下载脚本:

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

中国大陆服务器:

wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

三、快速启动

如果需要添加其他参数,则必须分配特定的发行版名称!

Debian 12 版本

bash InstallNET.sh -debian

KALI版本

bash InstallNET.sh -kali

Alpine Linux Edge

bash InstallNET.sh -alpine

Alpine Linux 是一种轻量级的 Linux 版本,它对那些性能较低的机器很友好,至少需要 256MB 的系统内存。大部分Docker内系统以此为基础搭建系统容器。

CentOS 9 流

bash InstallNET.sh -centos

AlmaLinux 9

bash InstallNET.sh -almalinux

rock Linux 9

bash InstallNET.sh -rockylinux

fedora 39

bash InstallNET.sh -fedora

Ubuntu  22.04

bash InstallNET.sh -ubuntu

适用于工作站的 Windows 11 专业版

bash InstallNET.sh -windows

win10 中文版

bash InstallNET.s

bash InstallNET.sh -windows 10 -lang "cn"

四、安装windows10 中文版

运行:bash InstallNET.sh -windows 10 -lang "cn"


然后reboot重启,重启后会自动下载安装,以轻量云为例子,大概50分钟左右。

root@VM-8-2-ubuntu:/home/ubuntu# wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
root@VM-8-2-ubuntu:/home/ubuntu# bash InstallNET.sh -windows 10 -lang "cn"
Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
no label, UUID=c6ba0084-87dc-4457-86f7-8a93222f2ac0
vm.swappiness = 70
Hit:1 http://mirrors.tencentyun.com/ubuntu jammy InRelease
Hit:2 http://mirrors.tencentyun.com/ubuntu jammy-updates InRelease
Hit:3 http://mirrors.tencentyun.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
150 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu4).
The following packages were automatically installed and are no longer required:crash libsnappy1v5 makedumpfile
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 150 not upgraded.
grep: /etc/yum.repos.d/: No such file or directory
InstallNET.sh: line 1341: yum: command not found
cat: /etc/redhat-release: No such file or directory
cat: /etc/system-release: No such file or directory
InstallNET.sh: line 1358: apk: command not found
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'kdump-tools' is not installed, so not removed
Package 'kexec-tools' is not installed, so not removed
Package 'inetutils-ping' is not installed, so not removed
The following packages were automatically installed and are no longer required:crash libsnappy1v5 makedumpfile
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 150 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
cpio is already the newest version (2.13+dfsg-7).
efibootmgr is already the newest version (17-1ubuntu2).
fdisk is already the newest version (2.37.2-4ubuntu3).
iputils-ping is already the newest version (3:20211215-1).
jq is already the newest version (1.6-2.1ubuntu3).
net-tools is already the newest version (1.60+git20181103.0eebece-1ubuntu5).
util-linux is already the newest version (2.37.2-4ubuntu3).
wget is already the newest version (1.21.2-2ubuntu1).
xz-utils is already the newest version (5.2.5-2ubuntu1).
tuned is already the newest version (2.15.0-1).
virt-what is already the newest version (1.21-1).
curl is already the newest version (7.81.0-1ubuntu1.15).
dmidecode is already the newest version (3.3-3ubuntu0.1).
file is already the newest version (1:5.41-3ubuntu0.1).
gzip is already the newest version (1.10-4ubuntu4.1).
openssl is already the newest version (3.0.2-0ubuntu1.14).
dnsutils is already the newest version (1:9.18.18-0ubuntu0.22.04.2).
The following packages were automatically installed and are no longer required:crash libsnappy1v5 makedumpfile
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 150 not upgraded.
InstallNET.sh: line 1420: yum: command not found
ping: connect: Network is unreachable
ping: connect: Network is unreachable
ping: connect: Network is unreachable
ping: connect: Network is unreachable
ping: connect: Network is unreachable
ping: connect: Network is unreachable
ping: connect: Network is unreachable
ping: connect: Network is unreachable
EFI variables are not supported on this system.
ls: cannot access '/sys/firmware/efi/efivars/': No such file or directory
ls: cannot access '/sys/firmware/efi/vars/': No such file or directory
ls: cannot access '/sys/firmware/efi/runtime-map/': No such file or directory
ls: cannot access '/sys/firmware/efi/mok-variables/': No such file or directory
find: ‘/boot/efi/EFI/’: No such file or directory
find: ‘/boot/efi/EFI/’: No such file or directory
InstallNET.sh: line 1114: type: grub2-mkconfig: not found# System Memory4095 MB# Virtualization and Manufacturerkvm tencentcloud# Check Dependence[ok]            awk
[ok]            basename
[ok]            cat
[ok]            cpio
[ok]            curl
[ok]            cut
[ok]            dirname
[ok]            file
[ok]            find
[ok]            grep
[ok]            gzip
[ok]            iconv
[ok]            ip
[ok]            lsblk
[ok]            openssl
[ok]            sed
[ok]            wget
find: ‘/proc/5518’: No such file or directory
find: ‘/proc/5523’: No such file or directory# Network Details[Adapter Name]  eth0
[Network File]  /etc/netplan/50-cloud-init.yaml
[Server Stack]  IPv4Stack[IPv4  Method]  isDHCP
[IPv4 Address]  10.0.8.2
[IPv4  Subnet]  255.255.252.0
[IPv4 Gateway]  10.0.8.1
[IPv4     DNS]  119.29.29.29 223.6.6.6
[IPv4  Amount]  1[IPv6  Method]  N/A
[IPv6 Address]  N/A
[IPv6  Subnet]  N/A
[IPv6 Gateway]  N/A
[IPv6     DNS]  N/A
[IPv6  Amount]  N/A# User TimezoneAsia/Shanghai# HostnameVM-8-2-ubuntu# SSH or RDP Port, Username and Password3389
Administrator
Teddysun.com# Formatting and Installing Drives/dev/vda# Motherboard FirmwareBIOS# Check DISTSuccess# Installation StartingOverwriting Packaged Image Mode Target System [Windows 10 Enterprise LTSC]
https://dl.lamp.sh/vhd/zh-cn_windows10_ltsc.xz[AlpineLinux] [edge] [x86_64] Downloading...
[Mirror] http://mirror.nju.edu.cn/alpine/edge/releases/x86_64/netboot/initramfs-virthttp://mirror.nju.edu.cn/alpine/edge/releases/x86_64/netboot/vmlinuz-virt
46111 blocks# Directory of Grub and Unattended Disposition File/boot/grub/grub.cfg
/tmp/boot/init[Finish] Input 'reboot' to continue the subsequential installation.
root@VM-8-2-ubuntu:/home/ubuntu# 

执行reboot重启,此时通过VNC查看服务器下载情况,预计40分钟左右(腾讯轻量云以10MB/S计算)。

经过漫长的等待,已经安装完成(记得在控制台开启3389端口)

对于SSH或者RDP服务默认配置

默认用户名/密码

对于 Linux:root  LeitboGi0ro

对于 Windows:administration  Teddysun.com

默认端口

SSH:22

Windows:3389

远程访问:

好了,系统已经更换完毕

参数详细说明

-debian 7-12:Debian 7 及更高版本
 

-kali rolling/dev/experimental : Kali Rolling, Development and Experimental, “Kali Rolling” 显然是最推荐的。
 

-centos 7 或 8/9-stream:CentOS 7 及以上版本
 

-alpine 3.16-3.18/edge:Alpine Linux 3.16 及更高版本,为了不断更新到最新版本,显然最推荐使用“edge”。
 

-almalinux/alma 8/9:AlmaLinux 8 及更高版本
 

-rockylinux/rocky 8/9:RockyLinux 8 及更高版本
 

-Fedora 38/39:Fedora 38 及更新的版本
 

-ubuntu 20.04/22.04/24.04(测试,不稳定,请勿在生产环境中安装!
 

-windows 10/11/2012/2016/2019/2022:可选的发行版列表:
 

  • Windows 10 企业版 LTSC 22H2(简体中文和日语),23H2(英语)
  • Windows 11 Pro for Workstation 22H2 简体中文和日语,23H2 英文版
  • Windows 服务器 2012 R2
  • Windows 服务器 2016
  • Windows 服务器 2019
  • Windows 服务器 2022


注意:适用于英语的 Windows 10 和 11 23H2 首选使用 tiny10 和 tiny11 的基础映像,这些映像由 ntdev 开发和优化。

相关文章:

简单几步通过DD工具把云服务器系统Linux改为windows

简单几部通过DD安装其他系统,当服务器的web控制台没有我们要装的系统,就需要通过DD(Linux磁盘)工具来更改系统,(已知支持KVM系统) 本文如何简单的更换系统,不通过web控制台来更换&a…...

使用 package.json 配置代理解决 React 项目中的跨域请求问题

使用 package.json 配置代理解决 React 项目中的跨域请求问题 当我们在开发前端应用时,经常会遇到跨域请求的问题。为了解决这个问题,我们可以通过配置代理来实现在开发环境中向后端服务器发送请求。 在 React 项目中,我们可以使用 package…...

生成 Let‘s Encrypt 免费证书

文章目录 1. 安装 acme.sh2. 添加云服务商安全访问密钥并授权管理DNS记录3. 当前 Shell 添加安全访问密钥变量4. 生成证书5. 拷贝证书6. 清理安全访问密钥变量7. 打开脚本自动更新 代码仓库地址:https://github.com/Neilpang/acme.sh 1. 安装 acme.sh yum -y insta…...

int128的实现(基本完成)

虽然有一个声明叫_int128但是这并不是C标准: long long 不够用?详解 __int128 - FReQuenter - 博客园 (cnblogs.com) 网络上去找int128的另类实现方法,发现几乎都是在介绍_int128的 然后我就自己想了个办法,当时还没学C&#xf…...

【linux】使用 acme.sh 实现了 acme 协议生成免费的SSL 证书

acme.sh 实现了 acme 协议, 可以从 letsencrypt 生成免费的证书. 主要步骤: 安装 acme.sh生成证书copy 证书到 nginx/apache 或者其他服务更新证书更新 acme.sh出错怎么办, 如何调试 下面详细介绍. 1. 安装 acme.sh 安装很简单, 一个命令: curl https://get.acme.sh | sh…...

MACOS上面C/C++获取网卡索引,索引获取网卡接口名

依赖函数: if_nametoindex IF名字 to IF索引 if_indextoname IF索引 to IF名字 MACOS 10.7 版本支援(就是2011年发不OSX的第一个面向用的系统版本) int GetInterfaceIndex(const ppp::string& ifrName) noexcept{if (ifrName.empt…...

解决SSH远程登录开饭板出现密码错误问题

输入“adduser Zhanggong回车”,使用adduser命令创建开发板用户名为Zhanggong 输入密码“123456” 输入密码“123456”...

什么时候用ref和reactive

在Vue 3中,ref和reactive都是用于创建响应式数据的工具,但它们的使用场景有所不同。 使用ref的情况: 基本数据类型:当你需要响应式地处理基本数据类型(如数字、字符串、布尔值)时,应该使用ref…...

Java实战:Spring Boot实现邮件发送服务

本文将详细介绍如何在Spring Boot应用程序中实现邮件发送服务。我们将探讨Spring Boot集成邮件发送服务的基本概念,以及如何使用Spring Boot和第三方邮件服务提供商来实现邮件发送。此外,我们将通过具体的示例来展示如何在Spring Boot中配置和使用邮件发…...

重磅!MongoDB推出Atlas Stream Processing公共预览版

日前,MongoDB宣布推出Atlas Stream Processing公共预览版。 在Atlas平台上有兴趣尝试这项功能的开发者都享有完全的访问权限,可前往“阅读原文”链接点击了解更多详细信息或立即开始使用。 开发者喜欢文档型数据库的灵活性、易用性以及Query API查询方…...

dell戴尔电脑灵越系列Inspiron 15 3520原厂Win11系统中文版/英文版

Dell戴尔笔记本灵越3520原装出厂Windows11系统包,恢复出厂开箱预装OEM系统 链接:https://pan.baidu.com/s/1mMOAnvXz5NCDO_KImHR5gQ?pwd3nvw 提取码:3nvw 原厂系统自带所有驱动、出厂主题壁纸、系统属性联机支持标志、Office办公软件、MyD…...

k8s(3)

目录 一.K8S的三种网络 flannel的三种模式: 在 node01 节点上操作: calico的 三种模式: flannel 与 calico 的区别? 二.CoreDNS 在所有 node 节点上操作: 在 master01 节点上操作: ​编辑 DNS 解析测试&#…...

Java多线程并发学习

一、Java 中用到的线程调度 1. 抢占式调度: 抢占式调度指的是每条线程执行的时间、线程的切换都由系统控制,系统控制指的是在系统某种运行机制下,可能每条线程都分同样的执行时间片,也可能是某些线程执行的时间片较长&#xff0…...

Curfew e-Pass 管理系统存在Sql注入漏洞 附源代码

免责声明:本文所涉及的信息安全技术知识仅供参考和学习之用,并不构成任何明示或暗示的保证。读者在使用本文提供的信息时,应自行判断其适用性,并承担由此产生的一切风险和责任。本文作者对于读者基于本文内容所做出的任何行为或决…...

记阿里云mysql丢表丢数据的实践记录

第一时间挂工单,联系工程师指引,现在回过来想,第一时间要确认发生时间。 1.通过性能视图(马后炮的总结,实际凭记忆恢复了三四次才找到数据) 2.先恢复数据 通过Navicat工具,结构同步&#xff0…...

自然语言转SQL的应用场景探索

自然语言转SQL的应用场景探索 1. 自然语言转sql有哪些解决方案2. 自然语言转sql有哪些应用场景3. 自然语言转sql在智能制造领域有哪些应用场景 1. 自然语言转sql有哪些解决方案 自然语言转SQL(NL2SQL)是一个涉及自然语言处理(NLP&#xff09…...

Python学习笔记——PySide6设计GUI应用之UI与逻辑分离

1、打开PySide6的UI设计工具pyside6-designer,设计一个主窗口,保存文件名为testwindow.ui 2、使用PySide6的RCC工具把testwindow.ui文件转换为testwindow_rc.py文件,此文件中有一个类Ui_MainWindow(包含各种控件对象)…...

【智能家居入门2】(MQTT协议、微信小程序、STM32、ONENET云平台)

此篇智能家居入门与前两篇类似,但是是使用MQTT协议接入ONENET云平台,实现微信小程序与下位机的通信,这里相较于使用http协议的那两篇博客,在主程序中添加了独立看门狗防止程序卡死和服务器掉线问题。后续还有使用MQTT协议连接MQTT…...

Java架构师之路九、设计模式:常见的设计模式,如单例模式、工厂模式、策略模式、桥接模式等

目录 常见的设计模式: 单例模式: 工厂模式: 策略模式: 桥接模式: 责任链模式: Java架构师之路八、安全技术:Web安全、网络安全、系统安全、数据安全等-CSDN博客Java架构师之路十、框架和工…...

【OpenAI官方课程】第三课:ChatGPT文本总结Summarizing

欢迎来到ChatGPT 开发人员提示工程课程(ChatGPT Prompt Engineering for Developers)!本课程将教您如何通过OpenAI API有效地利用大型语言模型(LLM)来创建强大的应用程序。 本课程由OpenAI 的Isa Fulford和 DeepLearn…...

跨越千年医学对话:用AI技术解锁中医古籍知识,构建能够精准问答的智能语言模型,成就专业级古籍解读助手(LLAMA)

介绍:首先在 Ziya-LLaMA-13B-V1基线模型的基础上加入中医教材、中医各类网站数据等语料库,训练出一个具有中医知识理解力的预训练语言模型(pre-trained model),之后在此基础上通过海量的中医古籍指令对话数据及通用指令…...

初识表及什么是数据表

一、了解表 1.1.概述 表是处理数据和建立关系型数据库及应用程序的基本单元,是构成数据库的基本元素之一,是数据库中数据组织并储存的单元,所有的数据都能以表格的形式组织,目的是可读性强。 1.2.表结构简述 一个表中包括行和列…...

使用Docker部署DataX3.0+DataX-Web

1、准备基础镜像,开通所需端口 先查看3306和9527端口是否开放,如果未开放先在防火墙添加 firewall-cmd --zonepublic --add-port3306/tcp --permanent firewall-cmd --zonepublic --add-port9527/tcp --permanent firewall-cmd --reload systemctl sto…...

庖丁解牛-二叉树的遍历

庖丁解牛-二叉树的遍历 〇、前言 01 文章内容 一般提到二叉树的遍历,我们是在说 前序遍历、中序遍历、后序遍历和层序遍历 或者说三序遍历层序遍历,毕竟三序和层序的遍历逻辑相差比较大下面讨论三序遍历的递归方法、非递归方法和非递归迭代的统一方法然…...

一文了解LM317T的引脚介绍、参数解读

LM317T是一种线性稳压器件,它具有稳定输出电压的特性。LM317T可以通过调整其输出电阻来确保输出电压的稳定性,因此被广泛应用于各种电子设备中。 LM317T引脚图介绍 LM317T共有3个引脚,分别是: 输入引脚(输入电压V_in&…...

【2024.02.22】定时执行专家 V7.0 发布 - TimingExecutor V7.0 Release - 龙年春节重大更新版本

目录 ▉ 新版本 V7.0 下载地址 ▉ V7.0 新功能 ▼2024-02-21 V7.0 - 更新日志▼ ▉ V7.0 新UI设计 ▉ 新版本 V7.0 下载地址 BoomWorks软件的最新版本-CSDN博客文章浏览阅读10w次,点赞9次,收藏41次。▉定时执行专家—毫秒精度、专业级的定时任务执行…...

☀️将大华摄像头画面接入Unity 【1】配置硬件和初始化摄像头

一、硬件准备 目前的设想是后期采用网口供电的形式把画面传出来,所以这边我除了大华摄像头还准备了POE供电交换机,为了方便索性都用大华的了,然后全都连接电脑主机即可。 二、软件准备 这边初始化摄像头需要用到大华的Configtool软件&#…...

直流电流电压变送器4-20mA 10V信号隔离转换模拟量精度变送器

品牌:泰华仪表 型号:TB-IP(U)XX 产地:中国大陆 省份:安徽省 地市:宿州市 颜色分类:4-20mA转4-20mA,4-20mA转0-10V,4-20mA转0-20mA,4-20mA转0-5V,0-20mA转0-20mA,0-20mA转4-20mA,0-20mA转0-10V,0-20mA转…...

1.1 计算机网络的概念、功能、组成和分类

文章目录 1.1 计算机网络的概念、功能、组成和分类(一)计算机网络的概念(二)计算机网络的功能(三)计算机网络的组成1.组成部分2.工作方式3.功能组成 (四)计算机网络的分类 总结 1.1 …...

排序算法整理

排序种类排序特性代码背景 基于插入的排序直接插入排序原理代码 折半查找排序2路查找排序希尔排序(shell) 缩小增量排序原理代码 基于交换的排序冒泡排序原理代码 快速排序(重要!)原理我的思考 代码 基于选择的排序(简单)选择排序…...