rhel 5.3 安装系统服务器相关资料备份

yum -y install syslinux # cp /usr/lib/syslinux/pxelinux.0 /tftpboot  cp /usr/lib/syslinux/menu.c32 /tftpboot  cp /usr/lib/syslinux/memdisk /tftpboot cp /usr/lib/syslinux/mboot.c32 /tftpboot  cp /usr/lib/syslinux/chain.c32 /tftpboot

 

 

[/tftpboot/pxelinux.cfg]#cat default
#default 2
#display pxelinux.cfg/list boot.msg

default  menu.c32
prompt 0
timeout 60

ONTIMEOUT local
MENU TITLE Main Menu
MENU INCLUDE pxelinux.cfg/graphics.conf
MENU AUTOBOOT Starting Local System in 300 seconds
LABEL local
        MENU LABEL ^Boot local hard drive
        LOCALBOOT 0
LABEL os install
        MENU LABEL ^Operating System install Menu
        KERNEL menu.c32
        APPEND pxelinux.cfg/install
LABEL tools
        MENU LABEL ^Setup ToolBox Menu
        KERNEL menu.c32
        APPEND pxelinux.cfg/tools

#label 2
#  kernel images/centos-5.3/i386/vmlinuz
# append ks=nfs:192.168.5.2:/var/ftp/ks/centos-5.3-i386-ks.cfg initrd=images/centos-5.3/i386/initrd.img ksdevice=eth0

 

 

[/tftpboot/pxelinux.cfg]#cat graphics.conf
menu color tabmsg 37;40         #80ffffff #00000000
menu color hotsel 30;47         #40000000 #20ffffff
menu color sel 30;47            #40000000 #20ffffff
menu color scrollbar 30;47      #40000000 #20ffffff
MENU WIDTH 80
MENU MARGIN 22
MENU ROWS 6
MENU TABMSGROW 15
MENU CMDLINEROW 15
MENU ENDROW 24
MENU TIMEOUTROW 13
MENU VSHIFT 6
#MENU MASTER PASSWD yourpassword
#MENU PASSPROMPT Enter Password:
#MENU PASSWORDROW 12
#MENU PASSWORDMARGIN 26
NOESCAPE 0
ALLOWOPTIONS 0

 

 

[/tftpboot/pxelinux.cfg]#cat tools
MENU TITLE Setup ToolBox Menu
LABEL Main Menu
        MENU LABEL ^Return to Main Menu
        KERNEL menu.c32
        APPEND pxelinux.cfg/default
LABEL rescue
        MENU LABEL ^CentOS Rescue Mode
        kernel images/centos-5.3/i386/vmlinuz
append ks=nfs:192.168.5.2:/var/ftp/ks/rescue.cfg initrd=images/centos-5.3/i386/initrd.img text rescue

LABEL Clonezilla
        MENU LABEL ^Clonezilla Live
        KERNEL images/clonezilla/vmlinuz1
        APPEND initrd=images/clonezilla/initrd1.img boot=live union=aufs noswap noprompt vga=788 ocs_live_keymap=NONE ocs_lang=zh_CN.UTF-8 fetch=tftp://192.168.5.2/filesystem.squashfs

 

 

 

[/tftpboot/pxelinux.cfg]#cat install
MENU TITLE Operating System install Menu
LABEL Main Menu
        MENU LABEL ^Return to Main Menu
        KERNEL menu.c32
        APPEND pxelinux.cfg/default
LABEL RHEL 5.3
        MENU LABEL ^1 RHEL   5.3  i386
        KERNEL images/rhel-5.3/i386/vmlinuz
        APPEND ks=nfs:192.168.5.2:/var/ftp/ks/rhel-5.3-i386-ks.cfg ksdevice=eth0 initrd=images/rhel-5.3/i386/initrd.img
LABEL CentOS 5.3
        MENU LABEL ^2 CentOS 5.3  i386
        KERNEL images/centos-5.3/i386/vmlinuz
        APPEND ks=nfs:192.168.5.2:/var/ftp/ks/centos-5.3-i386-ks.cfg sdevice=eth0 initrd=images/centos/5.3-i386/initrd.img

 

 

[/tftpboot/pxelinux.cfg]#cat list
choose one id of the following linux distribution for your in
stallation
Id      Name           Install type          Install location
1      rhel-5.3-32     auto   install        /var/ftp/linuxos
/rhel5.3/i386/
2      centos-5.3-32   auto   install        /var/ftp/linuxos
/centos-5.3/i386/

 

 

[/var/ftp/ks]#cat centos-5.3-i386-ks.cfg
# System authorization information
auth  --useshadow  --enablemd5
# System bootloader configuration
key --skip
bootloader --location=mbr
# Partition clearing information
clearpart --all --initlabel
# Use graphical install
#graphical
text
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use NFS installation media
nfs --server=192.168.5.2 --dir=/var/ftp/linuxos/centos-5.3/i386/
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
#network --bootproto=dhcp --device=eth1 --onboot=on
#Root password
rootpw --iscrypted $1$t7h0t0Kl$jKXN56yAhrDUn84XbWFZz.
# SELinux configuration
selinux --disabled
# System timezone
timezone  Asia/Shanghai
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=24 --resolution=1024x768 --startxonboot
# Disk partitioning information
part / --bytes-per-inode=4096 --fstype="ext3" --size 1 --grow
part /boot --bytes-per-inode=4096 --fstype="ext3" --size=100
part swap --bytes-per-inode=4096 --fstype="swap" --size=2000
%packages
@development-libs
@gnome-software-development
@x-software-development
@chinese-support
@development-tools
@gnome-desktop
@base-x
@kde-desktop
@legacy-software-development
@kde-software-development
@legacy-software-support
@java-development
@editors
@ruby

 

 

[/var/ftp/ks]#cat rescue.cfg
lang zh_CN.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard us
mouse none
nfs --server=192.168.5.2 --dir=/var/ftp/linuxos/centos-5.3/i386/
network --bootproto=dhcp

 

 

image

你可能感兴趣的:(服务器,系统,资料,RHEL,休闲)