偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

RHEL5無人值守安裝圖文攻略

系統(tǒng) Linux
本文介紹RHEL5無人值守安裝的操作方法。文中所用系統(tǒng)為RHEL 5.3,一共八個步驟。無人值守安裝免去了系統(tǒng)管理員因安裝過程中多次重新啟動和信息輸入所花費的時間,大大簡化了系統(tǒng)的安裝過程。

之前,發(fā)的一個文字版本,現(xiàn)在整理一個圖解詳細版,讓每個人都可以實現(xiàn)RHEL5的無人值守安裝。

測試環(huán)境:Redhat 5.3 關(guān)閉iptables 和Selinux

所需服務(wù):Dhcp Vsftp Tftp Xinted

一、搭建好Yum源:

詳細方法見:http://iminmin.blog.51cto.com/689308/162666 (使用第二種方法,光盤映像搭建YUM)

二、安裝Vsftp服務(wù):

----------------------------------------------

[root@rhce ~]# yum install vsftpd* -y

[root@rhce ~]# chkconfig vsftpd on

[root@rhce ~]# service vsftpd restart

關(guān)閉 vsftpd:            [失敗]

為 vsftpd 啟動 vsftpd:  [確定]

-----------------------------------------------

三、復(fù)制PXE啟動時需要的文件資料:

1、復(fù)制必要的文件:

----------------------------------------------

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

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

[root@rhce ~]# cp /cdrom/isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default

[root@rhce ~]# cp /cdrom/images/pxeboot/initrd.img /tftpboot/

[root@rhce ~]# cp /cdrom/images/pxeboot/vmlinuz /tftpboot/

----------------------------------------------

2、修改/tftpboot/pxelinux.cfg/default文件

----------------------------------------------

[root@rhce ~]# chmod u+w /tftpboot/pxelinux.cfg/default //文件默認只讀

[root@rhce ~]# vim /tftpboot/pxelinux.cfg/default

default linux

prompt 1

timeout 6 //超時時間,默認600,可以不改。

display boot.msg

F1 boot.msg

F2 options.msg

F3 general.msg

F4 param.msg

F5 rescue.msg

label linux

kernel vmlinuz

append initrd=initrd.img ks=ftp://192.168.1.8/ks.cfg //ks.cfg是kickstart安裝配置文件,系統(tǒng)就是按照ks.cfg來安裝的。我們將在后面配置他

......下面省略

------------------------------------------------

#p#

四、安裝配置DHCP服務(wù):

1、安裝DHCP服務(wù):

------------------------------------------------

[root@rhce ~]# yum list dhcp*

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Installed Packages

dhcpv6-client.i386 1.0.10-16.el5  installed

Available Packages

dhcp.i386 12:3.0.5-18.el5         cdrom

dhcp-devel.i386 12:3.0.5-18.el5   cdrom

dhcpv6.i386 1.0.10-16.el5         cdrom

[root@rhce ~]# yum install dhcp.i386 dhcp-devel.i386 -y

--------------------------------------------------

2、生成主配置文件dhcpd.conf:

--------------------------------------------------

[root@rhce ~]# rpm -ql dhcp | more

......前面省略

/usr/share/doc/dhcp-3.0.5/api+protocol

/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample

......后面省略

[root@rhce ~]# cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf

cp:是否覆蓋“/etc/dhcpd.conf”? y

--------------------------------------------------

3、修改主配置文件dhcpd.conf

--------------------------------------------------

[root@rhce ~]# vim /etc/dhcpd.conf

ddns-update-style interim;

ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 { //所屬網(wǎng)段及掩碼。

# --- default gateway

option routers 192.168.1.8; //路由器IP,可以寫網(wǎng)關(guān)IP

option subnet-mask 255.255.255.0;

filename "pxelinux.0"; //PXE得到IP以后的引導(dǎo)文件

next-server 192.168.1.8; //服務(wù)器IP地址。

# option nis-domain "domain.org";    //注銷

# option domain-name "domain.org";   //注銷

option domain-name-servers 192.168.1.8; //DNS服務(wù)器IP

option time-offset -18000; # Eastern Standard Time

# option netbios-node-type 2;

range dynamic-bootp 192.168.1.100 192.168.1.200; //IP地址池范圍。

default-lease-time 21600;

......后面省略 //寫配置文件的時候注意每句后面的分號(;)不要丟了。

---------------------------------------------------

4、啟動DHCP服務(wù):如果啟動錯誤檢查/var/log/message

---------------------------------------------------

[root@rhce ~]# service dhcpd restart

啟動 dhcpd: [確定]

---------------------------------------------------

#p#

五、kickstart配置文件的生成:

1、安裝kickstart包:

---------------------------------------------------

[root@rhce ~]# yum list *kic*

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Available Packages

pykickstart.noarch 0.43.3-1.el5 cdrom

system-config-kickstart.noarch 2.6.19.8-2.el5 cdrom

[root@rhce ~]# yum install system-config-kickstart.noarch

---------------------------------------------------

2、生成ks.cfg安裝配置文件:

1)圖形化界面配置:(終端中運行system-config-kickstart命令

圖一:基本配置里要修改的項目

圖二:安裝方法里要修改的項目

圖三:分區(qū)信息,創(chuàng)建目標工作站的分區(qū)表

圖四:網(wǎng)絡(luò)配置,點“添加網(wǎng)絡(luò)設(shè)備”——“確定”

圖五:單擊“文件——保存文件”單擊“保存”

2)修改新生成的ks.cfg文件:我們沒有配置安裝的軟件包,因為系統(tǒng)沒有這部分服務(wù)。

----------------------------------------------------

[root@rhce ~]# cat /root/anaconda-ks.cfg //安裝系統(tǒng)時自動記錄的安裝信息

......前面省略

%packages

@office

@editors

@text-internet

@gnome-desktop

@dialup

......后面省略 //%pachages 后的部分記錄系統(tǒng)安裝時的軟件包的安裝情況,復(fù)制下來全部復(fù)制到ks.cfg文件后面。

[root@rhce ~]# vim ks.cfg

......前面省略

# Partition clearing information

clearpart --none

key --skip //跳過輸入序列號環(huán)節(jié)

...... 中間省略

%packages //這里及以后的內(nèi)容是從/root/anaconda-ks.cfg 復(fù)制來的

@office

@editors

@text-internet

@gnome-desktop

@dialup

......下面省略

----------------------------------------------------

3、將配置文件復(fù)制到制定位置:

我們在/tftpboot/pxelinux.cfg/default文件中曾設(shè)置ks=ftp://192.168.1.8/ks.cfg

將文件復(fù)制到該位置:

----------------------------------------------------

[root@rhce ~]# cp ks.cfg /var/ftp/ // /var/ftp 目錄是VSFTP服務(wù)的根目錄

----------------------------------------------------

#p#

六、復(fù)制Linux系統(tǒng)安裝文件:

在配置ks.cfg文件時,我們設(shè)置的路徑為/pub,如圖:

------------------------------------------------------

[root@rhce ~]# umount /dev/hdc

[root@rhce ~]# mount /dev/hdc /var/ftp/pub/

mount: block device /dev/hdc is write-protected, mounting read-only

------------------------------------------------------

七、確定相關(guān)服務(wù)的狀態(tài):

------------------------------------------------------

[root@rhce ~]# service iptables stop

清除防火墻規(guī)則: [確定]

把 chains 設(shè)置為 ACCEPT 策略:filter [確定]

正在卸載 Iiptables 模塊: [確定]

[root@rhce ~]# setenforce 0 //關(guān)閉selinux

[root@rhce ~]# chkconfig tftp on //TFTP 服務(wù)開啟命令

[root@rhce ~]# chkconfig dhcpd on

[root@rhce ~]# chkconfig vsftpd on

[root@rhce ~]# service xinetd restart //TFTP服務(wù)屬于他的子服務(wù)

停止 xinetd: [確定]

啟動 xinetd: [確定]

[root@rhce ~]# service dhcpd restart

關(guān)閉 dhcpd: [確定]

啟動 dhcpd: [確定]

[root@rhce ~]# service vsftpd restart

關(guān)閉 vsftpd: [確定]

為 vsftpd 啟動 vsftpd: [確定]

------------------------------------------------------

八、測試工作站:

跳過DHCP,通過TFTP 開始啟動計算機

下面就讓他自己啟動就好了!出去轉(zhuǎn)一圈回來就 OK了!

【編輯推薦】

  1. Red Hat旗艦產(chǎn)品RHEL 6 beta版特性嘗鮮
  2. 全面了解幾種Red Hat的版本
  3. KVM的潤滑油---RHEL 5.5

 

責(zé)任編輯:yangsai 來源: 51CTO論壇
相關(guān)推薦

2010-12-15 10:33:16

RHEL 6無人值守

2010-05-27 13:29:08

RHEL 5.4無人值守安裝

2009-10-09 16:40:45

RHEL5安裝

2010-08-04 09:52:48

RHEL5 nfs

2009-10-10 11:29:41

RHEL5 Xen 虛

2009-09-03 13:50:31

AudacityRHEL5源碼編譯

2009-10-10 14:03:44

RHEL5 DNS配置

2009-09-03 14:45:05

設(shè)置網(wǎng)絡(luò)RHEL5紅帽

2009-09-03 14:52:59

RHEL5配置局域網(wǎng)紅帽

2009-09-03 15:08:14

RHEL5DNS服務(wù)配置紅帽

2011-07-29 11:24:12

SQL Server

2009-10-12 10:52:47

RHEL5安全性

2009-12-07 16:15:08

RHEL5 mysql

2010-09-01 11:43:06

KickstartPXE無人值守

2009-10-09 16:32:16

遠程RHEL5安裝

2011-03-22 15:47:59

Linux系統(tǒng)安全

2012-02-01 14:35:04

紅帽RHEL5RHEL 6

2009-09-03 15:11:18

RHEL5vi高亮

2009-09-03 15:19:06

RHEL5下DNS服務(wù)器紅帽

2011-03-22 15:47:43

Linux系統(tǒng)安全
點贊
收藏

51CTO技術(shù)棧公眾號