免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1153 | 回复: 0
打印 上一主题 下一主题

Ubuntu远程启动(nfs) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-04 10:52 |只看该作者 |倒序浏览

                前言:
       本文旨在使一个硬盘安装的能够正常启动的Ubunt系统能够远程启动,且需尽量保证客户端硬件配置与系统安装机相同。
步骤:
       1.在C0(IP:192.168.0.100~255)机安装OS
在一台PC上正常安装Ubuntu,并将其调整到满意状态。
       2.在S机(IP:192.168.0.2)配置Server
2.1
S机要求安装了以下服务:
       DHCP
sudo apt-get install dhcp3-server
       TFTP
sudo apt-get install tftpd-hpa tftp-hpa xinetd
       NFS
sudo apt-get install nfs-kernel-server
2.2NFS的配置
sudo vim /etc/exports
###exports Start
#remote start OS
/desktop   192.168.0.0/24(rw,no_root_squash,sync)
###exports End
exportfs -rv
sudo /etc/init.d/nfs-kernel-server restart
sudo mount -t nfs -o nolock 192.168.0.2:/desktop /mnt         //测试nfs是否奏效
2.3TFTP配置
sudo mkdir /tftpboot
sudo vim /etc/default/tftpd-hpa
###tftpd-hpa Start
#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /tftpboot"            //设置tftp的根目录
###tftpd-hpa End
sudo vim /etc/xinetd.d/tftp
###tftp Start
service tftp
{
        socket_type = dgram
        protocol = udp
        wait = yes
        user = tftp
        server = /usr/sbin/in.tftpd
        server_args = -l /tftpboot
        #only_from = client.test.net
}
###tftp End
sudo /etc/init.d/xinetd restart
sudo /etc/init.d/tftp-hpa restart
2.4配置dhcp
cd /etc/dhcp3/
sudo vim dhcpd.conf
按自己需求配置dhcp,使之能够运行。
在其后面加入如下两句:
next-server jack;                //此处jack为tftp服务器IP
filename "pxelinux.0";
参考地址:
   
Ubuntu DiskLessHowTo
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/11171/showart_270747.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP