加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

使用Cobbler自动化和管理系统安装:使用Cobbler轻松设置和管理网络安装环境

发布时间:2016-10-28 07:23:27 所属栏目:Linux 来源:网络整理
导读:设置一个网络环境可能涉及到许多步骤,才能为开始安装做好准备。您必须: 配置服务,比如 DHCP、TFTP、DNS、HTTP、FTP 和 NFS 在 DHCP 和 TFTP 配置文件中填入

清单 6. 验证 kickstart 内容

cobbler profile getks --name=Fedora17-xfce
    
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all --initlabel
# Run the Setup Agent on first boot
firstboot --disable
# Activate X
xconfig --startxonboot
# Use network installation
url --url=http://192.168.122.1/cblr/links/Fedora17-x86_64
# additional repostories get added here
repo --name=Flash-plugin --baseurl=http://192.168.122.1/cobbler/repo_mirror/Flash-plugin
repo --name=source-1 --baseurl=http://192.168.122.1/cobbler/ks_mirror/Fedora17-x86_64
    
# Reboot after installation
reboot
# System keyboard
keyboard us
# System language
lang en_US
# System timezone
timezone  America/New_York
# Root password
rootpw --iscrypted $1$mF86/UHC$WvcIcX2t6crBz2onWxyac.
# Install OS instead of upgrade
install
# Clear the Master Boot Record
zerombr
# Allow anaconda to partition the system as needed
autopart
    
%packages
@base
@base-x
firefox
flash-plugin
@xfce-desktop
%end
    
%post
# create a user we can use to log on X
useradd desktop-user
passwd -d desktop-user
    
# adds the yum repositories to the installed system
wget "http://192.168.122.1/cblr/svc/op/yum/profile/Fedora17-xfce" 
   --output-document=/etc/yum.repos.d/cobbler-config.repo
    
# cobbler final steps
    
    
wget "http://192.168.122.1/cblr/svc/op/ks/profile/Fedora17-xfce" -O /root/cobbler.ks
wget "http://192.168.122.1/cblr/svc/op/trig/mode/post/profile/Fedora17-xfce" -O /dev/null
%end

变量 $dekstop_pkg_group 已被正确替换为 @xfce-desktop,它告诉 Anaconda 安装程序安装 Xfce 桌面包分组。

本文URL地址:http://www.bianceng.cn/OS/Linux/201410/45339.htm

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读