VPS DD 操作系统教程记录


安装 curl & wget

apt update && apt install curl -y && apt install -y wget

DD Linux 脚本(一)

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd 'bbsxp@789'
  • 用户: root
  • 密码:bbsxp@789

DD Linux 脚本(二)

1️⃣ 下载脚本

curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_

2️⃣ 选择要安装的系统

bash reinstall.sh anolis      7|8|23
                  rocky       8|9|10
                  oracle      8|9|10
                  almalinux   8|9|10
                  opencloudos 8|9|23
                  centos      9|10
                  fnos        1
                  nixos       25.11
                  fedora      42|43
                  debian      9|10|11|12|13
                  alpine      3.20|3.21|3.22|3.23
                  opensuse    15.6|16.0|tumbleweed
                  openeuler   20.03|22.03|24.03|25.09
                  ubuntu      16.04|18.04|20.04|22.04|24.04|25.10 [--minimal]
                  kali
                  arch
                  gentoo
                  aosc
                  redhat      --img="http://access.cdn.redhat.com/xxx.qcow2"

✅ 示例: 安装 Debian 12(注释:bash reinstall.sh 系统 版本号)

bash reinstall.sh debian 12

3️⃣ 设置密码,根据脚本提示设置root密码:

  • 用户名:root
  • 默认密码:123@@@

重启后等待10分钟,系统安装完成。


DD Windows

wget -qO- inst.sh | bash -s - -p sda -n 107.174.108.26,255.255.255.252,107.174.108.25 -t https://dl.lamp.sh/vhd/zh-cn_win2022.xz
  • 用户: administrator
  • 密码: Teddysun.com

重要提示

  1. 在命令中,需要将 sdaIP子网掩码网关 替换为您自己服务器的实际信息。
  2. 根据您的主板 BIOS / UEFI 选择对应的windows版本

常见问题

1、查看配置网络参数信息

执行:

ip route show && ifconfig

⚠️ 新版系统可能没装 ifconfig 执行:

apt install net-tools

2、查看VPS启动方式是 UEFIBIOS

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

3、查看安装硬盘路径

lsblk

BIOS 系统

1、Windows Server 2022 Datacenter

https://dl.lamp.sh/vhd/zh-cn_win2022.xz

2、Windows 10 Enterprise LTSC

https://dl.lamp.sh/vhd/zh-cn_windows10_ltsc.xz

3、Windows Server 2012 R2 Datacenter

https://dl.lamp.sh/vhd/cn_win2012r2.xz


UEFI 系统

1、Windows Server 2022 Datacenter

https://dl.lamp.sh/vhd/zh-cn_win2022_uefi.xz

2、Windows 10 Enterprise LTSC

https://dl.lamp.sh/vhd/zh-cn_win10_ltsc_uefi.xz

3、Windows Server 2012 R2 Datacenter

https://dl.lamp.sh/vhd/cn_win2012r2_uefi.xz

激活系统

irm https://get.activated.win | iex

精简版

https://p.wpxx.de/public/%E7%B3%BB%E7%BB%9F/win10-pro-22h2-superlite-bwcx.img.xz


  • 用户名:administrator
  • 密码:tg@wanglong6
精简版,只有5G,所以不带任何浏览器,需要手动下载

下载浏览器

开始 Windows PowerShell 输入以下命令手动下载,默认文件保存桌面:

Invoke-WebRequest -Uri "文件的下载链接" -OutFile "$env:USERPROFILE\Desktop\文件名.扩展名"

示例:

Invoke-WebRequest -Uri "https://p.wpxx.de/public/Soft/Vivaldi.7.6.3797.63.x64.exe" -OutFile "$env:USERPROFILE\Desktop\Vivaldi.7.6.3797.63.x64.exe"