欢迎来到天天文库
浏览记录
ID:11121217
大小:28.85 KB
页数:5页
时间:2018-07-10
《debian7.5 网络安装总结》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Debian7.5网络安装总结-fitwate参考文档http://balingwangshi.blog.51cto.com/8944886/14211321、光盘安装系统2、更改debian的apt源配置文件/etc/apt/sources.list123root@duan:~# cat /etc/apt/sources.listdeb http://ftp.de.debian.org/debian wheezy main contrib non-freedeb-src http://ftp.de.debian.org/debia
2、n wheezy main contrib non-free单独安装软件Rsync和lrzsz已在aptcache中、更新apt,并配置网络安装所需要的服务(DHCP、TFTP、HTTP)# apt-get install isc-dhcp-server tftpd-hpa apache2修改相关配置文件并重启相关服务#### DHCP #####cat /etc/dhcp/dhcpd.confdefault-lease-time 600;max-lease-time 7200;allow booting;subnet 192.16
3、8.100.0 netmask 255.255.255.0 { range 192.168.100.128 192.168.100.253; option broadcast-address 192.168.100.255; option routers 192.168.100.100; # our router option domain-name-servers 192.168.100.100; filename "pxelinux.0"; # (this we will provide later)}gr
4、oup { next-server 192.168.100.100; # our Server host tftpclient { filename "pxelinux.0"; # (this we will provide later) }}###### TFTP #####root@debian:~# cat /etc/default/tftpd-hpa # /etc/default/tftpd-hpaTFTP_USERNAME="tftp"TFTP_DIRECTORY="/var/lib/tftpboot"T
5、FTP_ADDRESS="0.0.0.0:69"TFTP_OPTIONS="--secure"##### HTTP #####root@duan:~# mkdir -p /var/www/debian/root@duan:~# mkdir -p /var/www/pxe/5/5Debian7.5网络安装总结-fitwateroot@duan:/var/www/pxe# ls /var/www/pxepreseed.cfgroot@duan:/var/www/pxe# 复制光盘全部内容 /var/www/debian/mount/de
6、v/cdrom/mnt-rrsync-raHl/mnt//var/www/html/debian注:此处http的主要作用,就是将debian镜像及无人值守安装配置文件preseed.cfg,通过http服务提供给PXE客户端。4、配置pxe开机引导文件下载debian网络引导文件14.1root@duan:~# wget http://ftp.debian.org/debian/dists/Debian7.5/main/installer-amd64/current/images/netboot/netboot.tar.gz将其解
7、压到tftp根目录下mkdir/var/lib/tftpboot1root@duan:~# tar -zxvf netboot.tar.gz -C /var/lib/tftpboot将其中 pxelinux.0 pxelinux.cfg两个文件拷贝到tftp根目录下默认已完成12root@duan:/var/lib/tftpboot# lsdebian-installer pxelinux.0 pxelinux.cfg4.2、编辑开机引导文件pxelinux.cfg/default不需要修改root@debian:/var/li
8、b/tftpboot# cat pxelinux.cfg/default# D-I config version 2.0include debian-installer/amd64/boot-screens/menu.cfgdefau
此文档下载收益归作者所有