| |
drserver:ddosviadebianinstallerremote [2019/03/27 09:05] – 创建 liujia | drserver:ddosviadebianinstallerremote [2019/03/27 09:06] (当前版本) – liujia |
---|
| |
1.apt install kexec-tools # 安装 kexec 热内核切换工具 | 1.apt install kexec-tools # 安装 kexec 热内核切换工具 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/38786886642499.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/38786886642499.png}} |
| |
| |
5.vi build.py # 增加ntfs模块,ntfs-3g-udeb ntfs-modules-4.9.0-8-amd64-di fuse-modules-4.9.0-8-amd64-di | 5.vi build.py # 增加ntfs模块,ntfs-3g-udeb ntfs-modules-4.9.0-8-amd64-di fuse-modules-4.9.0-8-amd64-di |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/38786665014592.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/38786665014592.png}} |
| |
| |
7../build.py initrd.gz enp0s20f0 144.172.126.32 255.255.255.0 144.172.126.1 8.8.8.8 # 假设网卡名是enp0s20f0,设置静态网络信息 | 7../build.py initrd.gz enp0s20f0 144.172.126.32 255.255.255.0 144.172.126.1 8.8.8.8 # 假设网卡名是enp0s20f0,设置静态网络信息 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387863598593706.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387863598593706.png}} |
| |
8.kexec --command-line="auto=true priority=critical mirror/http/hostname=deb.debian.org" --initrd=initrd.gz linux # 热切换到网络安装的内核上 | 8.kexec --command-line="auto=true priority=critical mirror/http/hostname=deb.debian.org" --initrd=initrd.gz linux # 热切换到网络安装的内核上 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387862646970869.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387862646970869.png}} |
| |
| |
10.选择菜单 Start installer (expert mode) | 10.选择菜单 Start installer (expert mode) |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387861993288633.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387861993288633.png}} |
| |
11.选择菜单, Detect disks # 识别硬盘 | 11.选择菜单, Detect disks # 识别硬盘 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387872166661860.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387872166661860.png}} |
| |
12.选择菜单,Execute a shell # 切换到命令控制台 | 12.选择菜单,Execute a shell # 切换到命令控制台 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387872535503308.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387872535503308.png}} |
| |
13.Continue # 进到ash | 13.Continue # 进到ash |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387871772116181.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387871772116181.png}} |
| |
14.fdisk -l /dev/sda # 查看当前的分区信息,有多个Linux分区 | 14.fdisk -l /dev/sda # 查看当前的分区信息,有多个Linux分区 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387871270510206.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387871270510206.png}} |
| |
15.wget -O- http://url/w2k19-virtio-nic-unattend.vhd.gz | gunzip | dd of=/dev/sda # dd安装 | 15.wget -O- http://url/w2k19-virtio-nic-unattend.vhd.gz | gunzip | dd of=/dev/sda # dd安装 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387872472948644.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387872472948644.png}} |
| |
16.fdisk -l /dev/sda # 再次查看分区信息,dd后是仅有一个Windows分区 | 16.fdisk -l /dev/sda # 再次查看分区信息,dd后是仅有一个Windows分区 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/38787842451121.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/38787842451121.png}} |
| |
17.mount.ntfs /dev/sda1 /mnt # 会提示错误,Invalid argument,可能是因为内核没有更新分区表 | 17.mount.ntfs /dev/sda1 /mnt # 会提示错误,Invalid argument,可能是因为内核没有更新分区表 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/38787387554883.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/38787387554883.png}} |
| |
18.新开一个ssh会话,选择菜单 Partition disks ,选择 Guided - use the largest continuous free space | 18.新开一个ssh会话,选择菜单 Partition disks ,选择 Guided - use the largest continuous free space |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387872121637884.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387872121637884.png}} |
| |
19.选择菜单 All files in one pration (recommended for new users) | 19.选择菜单 All files in one pration (recommended for new users) |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/38788309893754.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/38788309893754.png}} |
| |
20.选择菜单 Finish partitioning and write changes to disk # 确认第一个Windows分区信息无误的话,更新分区信息 | 20.选择菜单 Finish partitioning and write changes to disk # 确认第一个Windows分区信息无误的话,更新分区信息 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387883544209158.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387883544209158.png}} |
| |
21.再次确认分区更改 | 21.再次确认分区更改 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387881508883195.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387881508883195.png}} |
| |
| |
23.nano /mnt/Windows/panther/Unattend.xml # 编辑Windows无人值守安装文件,更改里边的IP设置 | 23.nano /mnt/Windows/panther/Unattend.xml # 编辑Windows无人值守安装文件,更改里边的IP设置 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387882094751961.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387882094751961.png}} |
| |
| |
26.Windows完成安装 | 26.Windows完成安装 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/38788529394441.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/38788529394441.png}} |
| |
27.debian-installer还有日志文件,如遇到错误,可通过web查看 | 27.debian-installer还有日志文件,如遇到错误,可通过web查看 |
| |
{{https://alioss.anqun.org/typecho/2019/03/24/387873000458318.png}} | {{https://alioss.anqun.org/typecho/2019/03/24/387873000458318.png}} |
| |