1.系統安裝

1 Linux分區:

可獨立分區:/home,/usr,/var,/tmp
根目錄下:/dev,/etc,/sbin,/bin,/lib
/dev/sda1:主分區2:/boot 100MB
/dev/sda2:主分區2:BootLoaderConfiguration中

2 LCI安裝重點:

1) 輸入linux text
2) 去掉Virtualization組件
3) 選擇Customize software selection

添加Development Libraries和Development Tools

4) 默認不是圖形界面啓動:startx

修改/etc/inittab,把id:3改成id:5

3 修復模式:

1)進入:F5或者輸入linux rescue
2) Rescue標題(包含/mnt/sysimage):continue
3) chroot /mnt/sysimage
4) 安裝kernel: rpm -Uvh --force kernel***.rpm

4 日誌文件:

/root/install.log
/root/install.log.syslog
/root/anaconda-ks.cfg

#—————————-引用文字-開始—————————-
# Kickstart file automatically generated by anaconda.
# 光盤安裝
install
cdrom


key --skip


#安裝時選擇的語言和鍵盤佈局
lang zh_CN.UTF-8
keyboard us


xconfig --startxonboot


#網絡配置信息
network --device eth0 --bootproto static --ip 10.10.61.189 --netmask 255.255.255.0 --gateway 10.10.61.20 --nameserver 202.119.230.8 --hostname EDAServer1
network --device eth1 --onboot no --bootproto dhcp --hostname EDAServer1
#root密碼
rootpw --iscrypted $1$4Mty68xr$nTXev./kVNaetLuKbkqJF1
#防火牆開啓的端口
firewall --enabled --port=22:tcp
#認證加密方法
authconfig --enableshadow --enablemd5
#selinux的配置信息
selinux --enforcing
#時區
timezone --utc Asia/Shanghai
#啓動引導分區
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work


#磁盤配置信息
#clearpart --linux
#part /boot --fstype ext3 --onpart sda1
#part /home --fstype ext3 --onpart sda3
#part / --fstype ext3 --onpart sda2
#part /bak --fstype ext3 --noformat --onpart sda6
#part swap --noformat --onpart sda5


#安裝時選擇的軟件包
%packages


@爲未安裝的包
@admin-tools
@authoring-and-publishing
@base
@british-support
@chinese-support
@core
@dns-server
@development-libs
@development-tools
@dialup
@editors
@engineering-and-scientific
@ftp-server
@gnome-desktop
@gnome-software-development
@games
@graphical-internet
@graphics
@java
@java-development
@kde-desktop
@legacy-software-support
@mail-server
@network-server
@office
@printing
@server-cfg
@sound-and-video
@system-tools
@text-internet
@web-server
@x-software-development
@base-x
kexec-tools
iscsi-initiator-utils
fipscheck
device-mapper-multipath
sgpio
perl-Convert-ASN1
python-dmidecode
imake
emacs
libsane-hpaio
vnc-server
dnsmasq
audit
mesa-libGLU-devel
xorg-x11-utils
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
-gnome-screensaver
#—————————-引用文字-結束—————————-
安裝系統時:linux ks=/dev/sdb:/yourpath/ks.cfg

5 手動安裝A:

1) USB啓動盤
2) menu.lst 
3) iso中的vmlinuz和initrd解壓到根目錄(\images\pxeboot)
4) 手動操作grub

6 手動安裝B:

1) 將iso的images/boot.iso解壓出來
2) UltraISO:啓動->寫入硬盤映像

寫入方式:USB-HDD+

3) 把iso複製到U盤(不能含有中文)
4) boot:/syslinux/vmlinuz initrd=/syslinux/initrd.img

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章