日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux搭建windows无盘系统,PXE+HTTP 无盘安装linux系统

發(fā)布時(shí)間:2024/8/5 linux 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux搭建windows无盘系统,PXE+HTTP 无盘安装linux系统 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

前一段時(shí)間買了一臺(tái)小本子,IBM的x60,輕是輕,但是沒有光驅(qū)。而且系統(tǒng)安裝的XP的系統(tǒng),不喜歡。于是自己用PXE+HTTP重做了系統(tǒng)。

1.???? 建立服務(wù)器

服務(wù)器需要安裝DHCP、TFTP、WEB組件。

2.???? 配置服務(wù)器

2.1???? DHCP

[root@WORKCENTRE ~]# touch /etc/dhcpd.conf

[root@WORKCENTRE ~]# vi /etc/dhcpd.conf

#--DHCP conf file begin

ddns-update-style interim;

ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

# --- default gateway

option routers?????????????????? 192.168.1.1;

option subnet-mask?????????????? 255.255.255.0;

#???? option nis-domain??????????????? "domain.org";

#??? option domain-name?????????????? "domain.org";

option domain-name-servers?????? 203.196.0.6;

option time-offset?????????????? -18000; # Eastern Standard Time

#??????? option ntp-servers?????????????? 192.168.1.1;

#??????? option netbios-name-servers????? 192.168.1.1;

# --- Selects point-to-point node (default is hybrid). Don't change this unless

# -- you understand Netbios very well

#??????? option netbios-node-type 2;

range dynamic-bootp 192.168.1.228 192.168.1.236;

default-lease-time 21600;

max-lease-time 43200;

# we want the nameserver to appear at a fixed address

host WORK-LAPTOP {

next-server 192.168.1.88;???????? //tftp服務(wù)器的地址

hardware ethernet 00 : 16 : D3 : 3B : 77 :63;

fixed-address 192.168.1.90;

filename "pxelinux.0";

}

}

#--DHCP conf file end

2.2 TFTP

[root@WORKCENTRE ~]# mkdir /tftpboot

[root@WORKCENTRE ~]# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/

[root@WORKCENTRE ~]# mkdir /tftpboot/pxelinux.cfg/

[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc1.iso /mnt/

[root@WORKCENTRE ~]# cp /mnt/p_w_picpaths/pxeboot/initrd.img /tftpboot/

[root@WORKCENTRE ~]# cp /mnt/p_w_picpaths/pxeboot/vmlinuz /tftpboot/

[root@WORKCENTRE ~]# touch /tftpboot/pxelinux.cfg/default

[root@WORKCENTRE ~]# vi /tftpboot/pxelinux.cfg/default

#--default file begin

default linux

label linux

kernel vmlinuz

append initrd=initrd.img

#--default file end

3.???? 拷貝安裝文件

[root@WORKCENTRE ~]# mkdir /var/www/html/FC6

[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc1.iso /mnt/

[root@WORKCENTRE ~]# cp -r /mnt/p_w_picpaths/ /var/www/html/FC6/

[root@WORKCENTRE ~]# cp -r /mnt/repodata/ /var/www/html/FC6/

[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/

[root@WORKCENTRE ~]# umount /mnt/

[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc2.iso /mnt/

[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/

[root@WORKCENTRE ~]# umount /mnt/

[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc3.iso /mnt/

[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/

[root@WORKCENTRE ~]# umount /mnt/

[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc4.iso /mnt/

[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/

[root@WORKCENTRE ~]# umount /mnt/

[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc5.iso /mnt/

[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/

[root@WORKCENTRE ~]# umount /mnt/

[root@WORKCENTRE ~]# mount -o loop /FC-6-x86_64-disc6.iso /mnt/

[root@WORKCENTRE ~]# cp -r /mnt/Fedora/ /var/www/html/FC6/

4.??? 啟動(dòng)服務(wù)

[root@WORKCENTRE ~]# /etc/init.d/dhcpd start

[root@WORKCENTRE ~]# /etc/init.d/httpd start

[root@WORKCENTRE ~]# chkconfig tftp on

5.???? 開始安裝

打開筆記本,F12選擇從網(wǎng)絡(luò)引導(dǎo)。

安裝文件選擇HTTP。輸入網(wǎng)址和路徑。

其他和光盤安裝一樣

與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖

總結(jié)

以上是生活随笔為你收集整理的linux搭建windows无盘系统,PXE+HTTP 无盘安装linux系统的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。