在windows上用 serva 给老电脑安装ubuntu18.04.3LTS - wupeifu

时间:2024-03-07 22:17:47
  • 背景:

  想把树莓派的系统备份一下,发现在windows下备份的话,打包会比较大。网上教程提到可以linux下备份。现在自己用笔电是只有windows系统。身边有一台老电脑空着,可以安装一个ubuntu,但是身边没有u盘。查了下资料,发现可以用serva工具通过网线给老笔记本安装系统。

  • 实现:

  准备:

  1,ubuntu-18.04.3-desktop-arm64.iso

  2,serva 软件【Serva_Community_32_64_v3.2.0】

  3,一根网线

  开干:  

  1,用网线把两台笔电连接起来。设置带windows系统的新电脑作为server,ip设置为192.168.1.11,网关也是192.168.1.11,mask为255.255.255.0;

  2,打开serva,设置如下:

点击坐上角,可以设置HTTP,TFTP,DHCP服务器,如下

DHCP选项库中的Sevice Add-On BINL前勾 务必选上

此时 E:\netboot下面应该是如下目录

然后重启serva。

 

3,将ubuntu-18.04.3-desktop-amd64.iso解压到E:\netboot\NWA_PXE\ubuntu-18.04.3-desktop-amd64中,然后在改目录下新建ServaAsset.inf文件[参考:https://www.vercot.com/~serva/an/NonWindowsPXE3.html]

;-Serva v3.0 Non-Windows Asset Information File
;-Boot/Install:
; Ubuntu LTS 18.04/16.04/14.04/12.04, Ubuntu/Gnome/Mate/Kylin/etc. Desktop Live
;-Tested on:
; ubuntu-18.04-desktop-amd64.iso
; ubuntu-mate-18.04-desktop-amd64.iso
; ubuntukylin-18.04-desktop-amd64.iso
;
; ubuntu-16.04.4-desktop-amd64.iso / ubuntu-16.04.4-desktop-i386.iso
; ubuntu-16.04.3-desktop-amd64.iso / ubuntu-16.04.3-desktop-i386.iso
; ubuntu-16.04.2-desktop-amd64.iso / ubuntu-16.04.2-desktop-i386.iso
; ubuntu-16.04.1-desktop-amd64.iso / ubuntu-16.04.1-desktop-i386.iso
; ubuntu-16.04-desktop-amd64.iso / ubuntu-16.04-desktop-i386.iso
;
; ubuntu-gnome-16.04.4-desktop-amd64.iso / ubuntu-gnome-16.04.4-desktop-i386.iso
; ubuntu-gnome-16.04.3-desktop-amd64.iso / ubuntu-gnome-16.04.3-desktop-i386.iso
; ubuntu-gnome-16.04.2-desktop-amd64.iso / ubuntu-gnome-16.04.2-desktop-i386.iso
; ubuntu-gnome-16.04.1-desktop-amd64.iso / ubuntu-gnome-16.04.1-desktop-i386.iso
; ubuntu-gnome-16.04-desktop-amd64.iso / ubuntu-gnome-16.04-desktop-i386.iso
;
; ubuntu-mate-16.04.4-desktop-amd64.iso / ubuntu-mate-16.04.4-desktop-i386.iso
; ubuntu-mate-16.04.3-desktop-amd64.iso / ubuntu-mate-16.04.3-desktop-i386.iso
; ubuntu-mate-16.04.2-desktop-amd64.iso / ubuntu-mate-16.04.2-desktop-i386.iso
; ubuntu-mate-16.04.1-desktop-amd64.iso / ubuntu-mate-16.04.1-desktop-i386.iso
; ubuntu-mate-16.04-desktop-amd64.iso / ubuntu-mate-16.04-desktop-i386.iso
;
; ubuntukylin-16.04.4-desktop-amd64.iso / ubuntukylin-16.04.4-desktop-i386.iso
; ubuntukylin-16.04.3-desktop-amd64.iso / ubuntukylin-16.04.3-desktop-i386.iso
; ubuntukylin-16.04.2-desktop-amd64.iso / ubuntukylin-16.04.2-desktop-i386.iso
; ubuntukylin-16.04.1-desktop-amd64.iso / ubuntukylin-16.04.1-desktop-i386.iso
; ubuntukylin-16.04-desktop-amd64.iso / ubuntukylin-16.04-desktop-i386.iso
;
; ubuntu-14.04.5-desktop-amd64.iso / ubuntu-14.04.5-desktop-i386.iso
; ubuntu-14.04.4-desktop-amd64.iso / ubuntu-14.04.4-desktop-i386.iso
; ubuntu-14.04.3-desktop-amd64.iso / ubuntu-14.04.3-desktop-i386.iso
; ubuntu-14.04.2-desktop-amd64.iso / ubuntu-14.04.2-desktop-i386.iso
; ubuntu-14.04.1-desktop-amd64.iso / ubuntu-14.04.1-desktop-i386.iso
; ubuntu-14.04-desktop-amd64.iso / ubuntu-14.04-desktop-i386.iso
;
; ubuntukylin-14.04.5-desktop-amd64.iso / ubuntukylin-14.04.5-desktop-i386.iso
; ubuntukylin-14.04.4-desktop-amd64.iso / ubuntukylin-14.04.4-desktop-i386.iso
; ubuntukylin-14.04.3-desktop-amd64.iso / ubuntukylin-14.04.3-desktop-i386.iso
; ubuntukylin-14.04.2-desktop-amd64.iso / ubuntukylin-14.04.2-desktop-i386.iso
;
; ubuntu-12.04.5-desktop-amd64.iso / ubuntu-12.04.5-desktop-i386.iso
; ubuntu-12.04.4-desktop-amd64.iso / ubuntu-12.04.4-desktop-i386.iso
; ubuntu-12.04.3-desktop-amd64.iso / ubuntu-12.04.3-desktop-i386.iso
; ubuntu-12.04.2-desktop-amd64.iso / ubuntu-12.04.2-desktop-i386.iso
; ubuntu-12.04-desktop-amd64.iso / ubuntu-12.04-desktop-i386.iso
;-Require:
; \NWA_PXE\ offered as MS share NWA_PXE_SHARE user=serva password=avres
; ubuntu-xx.yy.zz-desktop-amd64.iso older than 18.04 requires renaming \casper\vmlinuz.efi to \casper\vmlinuz
;-Notes:
; 18.04 and up - Get INITRD_N11.2.4.GZ from www.vercot.com/~serva/download/INITRD_N11.2.4.GZ (10 Kb)
; 16.04.2 and up - Get INITRD_N11.2.2.GZ from www.vercot.com/~serva/download/INITRD_N11.2.2.GZ (10 Kb)
; 14.04.3 to 16.04.1 - Get INITRD_N11.2.1.GZ from www.vercot.com/~serva/download/INITRD_N11.2.1.GZ (97 Kb)
; 14.04 to 14.04.2 - Get INITRD_N11.GZ from www.vercot.com/~serva/download/INITRD_N11.GZ (95 Kb)
; 12.04 to 12.02.5 - Get INITRD_N02.3.GZ from www.vercot.com/~serva/download/INITRD_N02.3.GZ (164 Kb)
; When using Serva as proxyDHCP the external DHCP server must be able to answer
; to BOOTP requests; if it fails try replacing ip=bootp by ip=dhcp
[PXESERVA_MENU_ENTRY]
asset = Ubuntu LTS 18.04 Desktop Live
platform = amd64

kernel_bios = /NWA_PXE/$HEAD_DIR$/casper/vmlinuz
append_bios = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N11.2.4.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,sec=ntlm,vers=1.0,ro ip=dhcp ro ipv6.disable=1
;append_bios = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N11.2.2.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,sec=ntlm,vers=1.0,ro ip=dhcp ro ipv6.disable=1
;append_bios = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N11.2.1.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,ro ip=dhcp ro ipv6.disable=1
;append_bios = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N11.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,ro ip=dhcp ro ipv6.disable=1
;append_bios = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N02.3.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,ro,sec=ntlmssp ip=dhcp ro ipv6.disable=1

kernel_efi64 = /NWA_PXE/$HEAD_DIR$/casper/vmlinuz
append_efi64 = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N11.2.4.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,sec=ntlm,vers=1.0,ro ip=dhcp ro ipv6.disable=1
;append_efi64 = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N11.2.2.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,sec=ntlm,vers=1.0,ro ip=dhcp ro ipv6.disable=1
;append_efi64 = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N11.2.1.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,ro ip=dhcp ro ipv6.disable=1
;append_efi64 = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N11.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,ro ip=dhcp ro ipv6.disable=1
;append_efi64 = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd.lz,/NWA_PXE/$HEAD_DIR$/casper/INITRD_N02.3.GZ boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,ro,sec=ntlmssp ip=dhcp ro ipv6.disable=1

 

由于我安装的是ubuntu18

下载 INITRD_N11.2.4.GZ from www.vercot.com/~serva/download/INITRD_N11.2.4.GZ (10 Kb),然后放入E:\netboot\NWA_PXE\ubuntu-18.04.3-desktop-amd64\casper中

另外将E:\netboot\NWA_PXE\ubuntu-18.04.3-desktop-amd64\casper\initrd 重命名为initrd.lz

  4,启动老电脑,按F2或者F12进入bios,设置优先从网络启动 NetBoot(可以百度一下),ok

正常的话,在老电脑上就可以安装ubuntu了

 

我这边遇到个小问题,摸索了一下。把卡巴斯基关掉,然后问题就解决了,如果有谁也遇到问题,可以关闭防火墙和杀毒软件,应该可以解决。

posted on 2020-01-29 22:02  wupeifu  阅读(708)  评论(0编辑  收藏  举报