linux 系统安装方式大全1-引导盘安装

安装系统 

本地安装 和 服务器安装

使用工具anaconda , 需要安装

配置文件(选择)

1:手工配置

2:system-config-kickstart 必须在图形界面下

生成ks.cfg 文件 ,放在/root目录下

[root@zzu ~]# cp /root/ks.cfg  /var/ftp/nmyum/ks.cfg

[root@zzu ~]# vim /var/ftp/nmyum/ks.cfg

  1 #platform=x86, AMD64, or Intel EM64T
  2 # System authorization information
  3 auth  --useshadow  --enablemd5 
  4 #skip key check  忽略key的检测
  5 key --skip 
  6 # System bootloader configuration
  7 bootloader --append="quiet" --location=mbr
  8 # Clear the Master Boot Record
  9 zerombr
10 # Partition clearing information
11 clearpart --all --initlabel
12 # Use text mode install
13 text
14 # Firewall configuration
15 firewall --disabled
16 # Run the Setup Agent on first boot
19 keyboard us
26 # Network information
27 network --bootproto=dhcp --device=eth0 --onboot=on
28 # Reboot after installation
29 reboot
30 #Root password
31 rootpw --iscrypted $1$gRHec5Yp$H/VUCJqeWh5L8claEI6ND/
32
33 # SELinux configuration
34 selinux --permissive
35 # System timezone
36 timezone  Asia/Shanghai
37 # Install OS instead of upgrade
38 install
39 # X Window System configuration information
40 xconfig  --defaultdesktop=GNOME --depth=8 --resolution=8    00x600
41 # Disk partitioning information
42 part /boot --bytes-per-inode=4096 --fstype="ext3" --size    =100
43 part /  --bytes-per-inode=4096 --fstype="ext3" --size=10    000
44 part swap --bytes-per-inode=4096 --fstype="swap" --size=    512
45
46 %packages
47 @gnome-desktop
48 @development-tools
49 @system-tools
50 @admin-tools
51 @web-server
52 @graphical-internet
53 @dns-server
54 @text-internet
55 @editors

传递配置文件的方法

1.boot  linux ks= ()

2.boot  linux ks=url (ftp://192.168.3.100/nmyum/ks.cfg)

3.boot  linux ks=hd:device:目录 (ks=hd:sda1:/ks.cfg)

[root@zzu isolinux]# vim isolinux.cfg

 1 default linux ks=cdrom:/ks.cfg 
  2 prompt 1 
 
3 timeout 10 等待时间

4 display boot.msg
  5 F1 boot.msg
  6 F2 options.msg
  7 F3 general.msg
  8 F4 param.msg
  9 F5 rescue.msg
10 label linux
11   kernel vmlinuz
12   append initrd=initrd.img
13 label text
14   kernel vmlinuz
15   append initrd=initrd.img text
16 label ks
17   kernel vmlinuz
18   append ks initrd=initrd.img
19 label local
20   localboot 1
21 label memtest86
22   kernel memtest
23   append -
-- INSERT --                              1,31          Top

[root@zzu ~]# mkdir /tmp/iso/

[root@zzu ~]# cd /tmp/iso/              
[root@zzu iso]# cp /var/ftp/nmyum/ks.cfg ./

[root@zzu iso]# cd ..
[root@zzu tmp]# pwd
/tmp
[root@zzu tmp]# mkisofs  -o  myboot.iso -b isolinux/isolinux.bin  -c isolinux/boot.cat  -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T iso/

mkisofs 2.01 (cpu-pc-linux-gnu)o/
Scanning iso/
Excluded: iso/TRANS.TBL
Scanning iso/isolinux
Excluded: iso/isolinux/TRANS.TBL
Excluded by match: iso/isolinux/boot.cat
Writing:   Initial Padblock                        Start Block 0
Done with: Initial Padblock                        Block(s)    16
Writing:   Primary Volume Descriptor               Start Block 16
Done with: Primary Volume Descriptor               Block(s)    1
Writing:   Eltorito Volume Descriptor              Start Block 17
Size of boot image is 4 sectors -> No emulation
Done with: Eltorito Volume Descriptor              Block(s)    1
Writing:   Joliet Volume Descriptor                Start Block 18
Done with: Joliet Volume Descriptor                Block(s)    1
Writing:   End Volume Descriptor                   Start Block 19
Done with: End Volume Descriptor                   Block(s)    1
Writing:   Version block                           Start Block 20
Done with: Version block                           Block(s)    1
Writing:   Path table                              Start Block 21
Done with: Path table                              Block(s)    4
Writing:   Joliet path table                       Start Block 25
Done with: Joliet path table                       Block(s)    4
Writing:   Directory tree                          Start Block 29
Done with: Directory tree                          Block(s)    2
Writing:   Joliet directory tree                   Start Block 31
Done with: Joliet directory tree                   Block(s)    2
Writing:   Directory tree cleanup                  Start Block 33
Done with: Directory tree cleanup                  Block(s)    0
Writing:   Extension record                        Start Block 33
Done with: Extension record                        Block(s)    1
Writing:   The File(s)                             Start Block 34
Total translation table size: 5145
Total rockridge attributes bytes: 1602
Total directory bytes: 2048
Path table size(bytes): 26
Done with: The File(s)                             Block(s)    4331
Writing:   Ending Padblock                         Start Block 4365
Done with: Ending Padblock                         Block(s)    150
Max brk space used 0
4515 extents written (8 MB)

[root@zzu tmp]# ll
total 9104
drwx------ 2 root root    4096 Feb  9 07:03 gconfd-root
drwxr-xr-x 3 root root    4096 Feb  9 09:10 iso
drwx------ 2 root root    4096 Feb  8 03:05 keyring-1FAI0J
drwx------ 2 root root    4096 Feb  8 06:51 keyring-CIxnmZ
drwx------ 2 root root    4096 Feb  8 05:27 keyring-aREMWq
drwx------ 2 root root    4096 Feb  7 19:29 keyring-hrIMGF
srwxr-xr-x 1 root root       0 Feb  9 06:12 mapping-root
-rw-r--r-- 1 root root 9246720 Feb  9 09:39 myboot.iso
-rw-r--r-- 1 root root       5 Feb  8 06:51 scim-bridge-0.3.0.lockfile-0@localhost:7.0
srwxr-xr-x 1 root root       0 Feb  8 06:51 scim-bridge-0.3.0.socket-0@localhost:7.0
srw------- 1 root root       0 Feb  9 06:12 scim-panel-socket:0-root
srw------- 1 root root       0 Feb  8 06:51 scim-panel-socket:7-root
drwx------ 2 root root    4096 Feb  8 05:28 virtual-root.CpShzC
drwx------ 2 root root    4096 Feb  8 16:43 virtual-root.JilidW
drwx------ 2 root root    4096 Feb  7 19:29 virtual-root.U3nkNP
drwx------ 2 root root    4096 Feb  8 03:05 virtual-root.mgv6Xm
drwx------ 2 root root    4096 Feb  8 17:01 virtual-root.uYrVzo

将myiso。boot 考到windows下重新引导

image

image

image

image

image

查看客户机是否获得ip地址

image

安装过程

image

image

image

image

image

image


引导启动
1.系统光盘 包含boot。iso

2.引导光盘 myboot.iso (isolinux 目录boot.cat boot.msg,initrd.img isolinux。bin isolinux。cfg ,ks。cfg)

3.u盘  diskboot.img

image

本文出自 “心灵规划” 博客,转载请与作者联系!

你可能感兴趣的:(linux,安装,服务器,配置文件,休闲)