全球主机交流论坛
标题:
Windows/Linux 从 iso 启动 mfslinux 然后 DD 新系统
[打印本页]
作者:
zxxx
时间:
2022-5-7 17:20
标题:
Windows/Linux 从 iso 启动 mfslinux 然后 DD 新系统
本帖最后由 zxxx 于 2022-5-8 23:42 编辑
========================================================================
Windows 系统
========================================================================
1. 下载 EasyBCD 和 mfslinux
https://sm.myapp.com/original/System/EasyBCD_v2.3.exe
https://mfsbsd.vx.sk/files/iso/mfslinux/mfslinux-0.1.10-f9c75a4.iso
2. 安装 EasyBCD 添加 mfslinux 启动菜单并设置为默认选项
3. 重新启动
4. 通过 SSH 连接
username: root
password: mfsroot
========================================================================
Linux 系统
========================================================================
1. 控制面板安装 Debian 11
2. 下载、安装、启动 mfslinux
apt update && apt install grub2 grub-imageboot && \
mkdir -p /boot/images/ && \
wget --no-check-certificate -O /boot/images/mfslinux.iso https://mfsbsd.vx.sk/files/iso/mfslinux/mfslinux-0.1.10-f9c75a4.iso && \
sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT=2/g' /etc/default/grub && \
update-grub2
reboot
复制代码
3. SSH 连接
username: root
password: mfsroot
========================================================================
DD Windows
========================================================================
安装进度条 -- 可选
opkg update && opkg install pv
复制代码
DD 无进度
wget -O- "https://dl.lamp.sh/vhd/zh-cn_win2022.xz" | xzcat | dd of=/dev/vda
复制代码
DD 带进度
wget -O- "https://dl.lamp.sh/vhd/zh-cn_win2022.xz" | xzcat | pv | dd of=/dev/vda
复制代码
重启
reboot
RDP 连接
username: Administrator
password: Teddysun.com
========================================================================
DD Debian
========================================================================
安装进度条 -- 可选
opkg update && opkg install pv
复制代码
DD 无进度
wget -O- "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-nocloud-amd64.raw" | dd of=/dev/vda
复制代码
DD 带进度
wget -O- "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-nocloud-amd64.raw" | pv | dd of=/dev/vda
复制代码
修复分区表
fdisk /dev/vda << EOF
w
q
EOF
复制代码
设置root密码
mkdir /mnt/vda1 && mount /dev/vda1 /mnt/vda1 && chroot /mnt/vda1
复制代码
ssh-keygen -A && \
sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed -i 's/.*PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config && \
passwd root
复制代码
********
********
复制代码
重启
reboot
SSH 连接
username: root
password: ********
作者:
tomcb
时间:
2022-5-7 17:26
很好,支持点赞
作者:
子尘
时间:
2022-5-7 17:54
占个前排
作者:
污基灰
时间:
2022-5-7 18:09
感谢教程贴。
作者:
鸡不择食
时间:
2022-5-7 18:43
大胆MJJ,竟然敢带上DD 进度条功能.你不知道你已经侵权了吗?
欢迎光临 全球主机交流论坛 (https://sunk.eu.org/)
Powered by Discuz! X3.4