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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值