惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
H
Heimdal Security Blog
Jina AI
Jina AI
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
AWS News Blog
AWS News Blog
C
Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Hacker News
The Hacker News
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threatpost
S
Securelist
P
Privacy International News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 聂微东
博客园 - 叶小钗
J
Java Code Geeks
V
V2EX
博客园 - Franky
Spread Privacy
Spread Privacy
K
Kaspersky official blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Simon Willison's Weblog
Simon Willison's Weblog
Project Zero
Project Zero
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
C
CERT Recently Published Vulnerability Notes
Latest news
Latest news
NISL@THU
NISL@THU
罗磊的独立博客
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
V
Visual Studio Blog

博客园 - Huntercat

手机流媒体技术介绍--转载 两个标签:EpiData和Nginx solaris10 网络配置 Ubuntu 8.10 Server Apache + SVN + SSL配置 Ubuntu install process show "dpkg was interrupted,you must manually run dpkg --configure -a to correct the problem" Ubuntu 8.10 Server Edition桌面系统的安装 通过PXE安装LINUX操作系统 NX远程连接认证失败的原因及解决方法 Ubuntu使用技巧 Ubuntu下文件移动|复制|打包|解包|挂载iso小结 Ubuntu下Reciteword的安装 SUN SL48磁带库总是离线的解决方案 Ubuntu下配置Telnet服务 Ubuntu下配置SSH服务 Ubuntu启动后死机 Xmanager远程连接Linux的配置 NX访问Ubuntu远程桌面配置 周末终于可以正常休息了 评估倒计时
ubuntu8.04做PXE安装服务器
Huntercat · 2008-11-07 · via 博客园 - Huntercat

首先安装需要的几个软件包
sudo apt-get install tftpd-hpa dhcp3-server portmap nfs-kernel-server
还有apache
安装完后tftpd服务自动启动,这个不用管,但是dhcpd出现错误,不知道怎么回事。不用管安,配置一下dhcp
vi /etc/dhcp3/dhcp.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option domain-name-servers 202.102.128.68, 202.102.134.68;
option domain-name "tm.net.my";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
filename "pxelinux.0";
}
现在启动dhcpd
sudo /etc/init.d/dhcp3-server restart

然后再配置nfs(这是其它linux用到的,ubuntu只有netboot方式)
vi /etc/exports
/mnt/iso 192.168.1.0/24(ro,sync)
其中/mnt/iso是我挂载光盘镜像的目录
启动nfs服务
sudo /etc/init.d/nfs-kernel-server restart

ubuntu是要用http的
mkdir /var/www/ubuntu
sudo mount -o loop ubuntu-8.04.1-alternate-i386.iso /var/www/ubuntu
在安装过程中会要求选择服务器,选最上面的手动输入,服务器填你的IP,目录就不用改了。这里你也可以同步官方服务器的这个目录,这样安装完成就不用再升级了

把光盘中的netboot目录中的所有都拷到/var/lib/tftpboot/中
sudo cp /mnt/iso/install/netboot/* /var/lib/tftpboot/
修改默认的配置文件
sudo vi /var/lib/tftpboot/pxelinux.cfg/default
把其中的
LABEL install
kernel linux
append vga=normal initrd=initrd.gz
改为
LABEL install
kernel linux
append vga=normal initrd=initrd.gz

OK了,现在就可以从另一台电脑用PXE启动安装ubuntu了

但是有一点要注意,上面安装的portmap是不自动启动的,如果不启动这个,nfs传输就是慢得出奇,所以这个也是必须启动的
sudo /etc/init.d/portmap restart