银河麒麟安装指南说明书
...................................................................................................... 1 .......................................................................................... 1 .............................................................................. 6 .............................................................................. 7 KYLIN 2.0 .............................................................................. 9 .......................................................................... 9 1.1 ............................................................. 9 ................................................................. 9 ................................................... 10 ................................................... 11 .................................................................... 12 ..................................... 12 ............................................................... 16 ................................................................................... 20 ................................................................... 20 ....................................................................... 21 3.2.1 ............................................................... 21 ............................................................... 25 ........................................................................... 26 ...................................................................... 27 3.5.1 NFS ....................................................... 30 ................................................... 33 3.6.1 ............................................................................... 34 2 3.6.2 ............................................................... 35 3.6.3 ....................................................... 44 3.6.4 ....................................................................... 47 3.6.5 ................................................................... 49 3.6.6 X ............................................................................... 52 3.6.7 ................................................................... 54 3.6.8 ............................................................... 56 3.6.9 ....................................................................... 57 3.6.10 ................................................................... 59 3.6.11 ....................................................................... 61 ............................................... 62 3.7.1 ........................................................... 63 3.7.2 ............................................................................... 65 3.7.3 ....................................................................... 65 3.7.4 ....................................................... 66 3.7.5 ....................................................................... 68 3.7.6 ................................................................... 69 3.7.7 X ............................................................................... 70 3.7.8 ................................................................... 70 3.7.9 ....................................................................... 72 ........................................................................................ 73 ............................................... 73 ............................................................... 74 4.2.1 GRUB 4.2.2 GRUB 4.2.3 4.2.4 4.2.5 Kylin ................................. 74 GRUB 77 ................................................... 78 Kylin ................. 79 ................................... 80 3 4.3 4.3.1 ............................................................................... 80 IP ................................................................. 81 4.3.2 ............................................................... 81 4.3.3 ........................................................... 82 1 Kylin Kylin command Kylin [Enter] cat testfile testfile filename 2 RPM Kylin /etc/fstab webalizer RPM application Mozilla Firefox Browser [key] [Tab] [key]-[combination] [Ctrl]-[Alt]-[Backspace] GUI [Tab] 3 GUI GUI GUI GUI GUI GNOME shell GUI => => XMMS GUI GUI computer output => 4 ls $ ls Desktop wallpaper.png Yu reports Kylin.html backupfiles logs mail prompt $ # [yu@localhost yu]$ login: user input GUI halt halt 5 Kylin KYLIN kylin Kylin localhost 6 Kylin 7 http://www.kylin.org.cn Kylin 410073 0086-731-8992676 Email kylincsos@hotmail.com 8 X http://www.kylin.org.cn 9 Kylin 2.0 1.1 Kylin Kylin HTML http://www.kylin.org.cn Kylin PDF 10 Kylin 2.0 MIPS SPARC Kylin 2.0 CPU x86 Itanium AMD64 Opteron PC SMP CC-NUMA Cluster http://www.kylin.org.cn disk partitions Kylin Kylin Kylin Windows Linux / swap 2.8G Kylin Kylin Kylin 11 Kylin Kylin BIOS 12 Windows Windows — 13 2-1 Windows — 14 2-2 Windows — + 15 2-3 Windows — SCSI IDE “IDE” — IDE ATA/ATAPI DVD/CD-ROM — — — X — IDE SCSI 16 — — SCSI SCSI SCSI , Kylin 2-1 IDE ad0=3.2 GB /dev/ad0s1a=/ /dev/ad0s1b=swap 17 64 MB, 128 MB SCSI IDE (ATAPI) SCSI BusLogic SCSI Adapter Adaptec 2940UW Tulip 3COM 3C590 3 PS/2 MouseMan 2 18 Q53 G773 Optiquest ViewSonic VRAM Creative Labs Graphics Blaster 3D 8MB S3 SonicVibes Sound Blaster 32/64 AWE IP DHCP BOOTP 172.19.11.113 255.255.0.0 19 IP 172.19.11.1 IP DNS 172.19.0.17 Kylin kylin.org.cn hello, kitty 20 Kylin Kylin shell virtual console Kylin 21 3-1 1 2 [Ctrl]-[Alt]-[F1] 3 [Ctrl]-[Alt]-[F2] F3 5 [Ctrl]-[Alt]-[F5] 6 [Ctrl]-[Alt]-[F6] shell X 1 3.2.1 Kylin 2.0 BIOS 22 BIOS [Del] [F1] BIOS BIOS BIOS Install Kylin 3-1 23 3-1 GRUB Install Kylin Install Kylin 10 [Enter] GRUB [Enter] “Install Kylin” 24 3-2 GRUB GRUB loader loader loader Kylin mute smp loader smp smp /boot/kernel/kernel_smp nosplash nosplash single noacpi acpi safe acpi dma 25 “smp” “mute” 3-3 smp “nosplash” 26 3-4 3-2 3-2 Cdrom NFS NFS Rescue Kylin OK Cdrom 27 IDE ATAPI 3-5 3-5 28 3-6 IP NFS 3-7 3-7 TCP/IP NFS IP 3-8 29 3-8 NFS 3-9 3-9 NFS NFS 3-10 30 3-10 3.5.1 NFS NFS IP NFS nfs /etc/exports exportfs –a /etc/exports restart ” NFS RedHat Linux mkdir Kylin “# service Kylin /mnt/source /mnt/source nfs 31 cd /mnt/cdrom /mnt/cdrom Kylin 2.0 1/2 cp -a KYLIN USR KYLIN USR umount /mnt/cdrom Kylin 2.0 cd /mnt/source /mnt/source Kylin 2.0 2/2 1/2 /mnt/cdrom /mnt/cdrom/Kylin/RPMS cp -a RPM * /mnt/source/Kylin/RPMS/ /mnt/source/Kylin/RPMS genhdlist genhdlist Kylin export Linux --fileorders RPM 2cd.order NFS /mnt/source IP 192.168.39.251 RedHat Kylin RedHat Linux /etc/exports /mnt/source no_root_squash) 192.168.39.251/24(sync, ro, export exportfs -a 2cd.order 32 exportfs /mnt/source 192.168.39.251/24 Kylin /etc/exports /mnt/source -maproot=0 –ro –network 192.168.39.251/24 service nfs restart mount_nfs 192.168.35.251:/mnt/source /mnt/nfs NFS eth1 10.0.0.3 IP NFS eth1 ifconfig eth1 eth0 192.168.39.251; mount_nfs down mount Kylin mkdir -p /mnt/test 33 mount_nfs /mnt/test 192.168.39.251:/mnt/source NFS umount /mnt/test Kylin 2 shell sleep 2 bash NFS NFS mount_devfs devfs mount_linprocfs ulimit myloader /dev proc -c 0 /proc proc core /dev/acd0 graphical user interface GUI [Tab] [Enter] 34 GUI (Choice Install mode) (Text) 3.6.1 anaconda Kylin 3-11 35 3.6.2 3.6.2.1 Kylin 3-3 3-3 unused Kylin/386 Native Unused part Kylin Part Kylin Kylin Kylin Kylin Kylin 7 Kylin “lable” “slice” Kylin Kylin Kylin Kylin 36 3.6.2.2 3-12 3-12 7692M ad0 ntfs 70594M “ ” “ : : Kylin : : Kylin : Kylin ” 37 3-13 3-13 ad0 9% 3.6.2.3 unused 3-14 38 3-14 3-15 child slice Parent 16M 3-16 “Kylin/386” Kylin 8500M 8500 slice 39 ad0 8495M ad0s2 8500M 3-17 “unused part” 1.2 Kylin Kylin unused part 3-18 40 3-18 Kylin / /home /home 32 MB — 32 MB 2.8 GB — “/” /boot Kylin 2.0 ”/boot” loader ”/boot” 8000 41 UFS2 Swap Swap UFS2 “UFS2” “ad0s2a” 3-19 3-19 Kylin Swap UFS2 unused part Swap 3-20 Kylin Kylin Soft Update “UFS2” UFS2 42 SWAP “ad0s2b” 3-21 3-21 Kylin Kylin 3-22 3-22 3.6.2.4 slice part 43 3-23 “ad0s2” “ “ “/” ” ” 44 3-24 3-25 3.6.3 GRUB GRUB GRand Unified Bootloader GRUB 45 DOS Windows 3-26 Kylin ”√” GRUB 46 Kylin MBR MBR System Commander MBR BIOS MBR GRUB Kylin 47 GRUB Kylin /boot/grub/grub.conf grub.conf splashimage # grub.conf grub.conf 3.6.4 48 3-27 DHCP 49 IP DNS localhost 3.6.5 RPM 50 3-28 su - shell - [Enter] su [Enter] 51 single GRUB GRUB e kernel e kernel Single [Enter] GRUB b password anaconda root 123456 52 IfMW3taw KJZlb2zf Kylin 3.6.6 X X X X X 53 3-29 X X X 54 3.6.7 LCD Kylin Generic LCD Display Generic Generic 55 3-30 56 3.6.8 X 3-31 57 3-32 X 3.6.9 Kylin /tmp/install.log 58 3-33 Security Reset [Control]-[Alt]-[Delete] 59 3.6.10 3-34 RPM RPM Cdrom Kylin 2 3-35 60 3-35 Kylin USB IDE 61 3.6.11 Kylin 3-36 3-36 3-37 62 3-37 Kylin Kylin “ — — [Space] ” 63 — — [ ] [ ] # — — [Tab] [Enter] — 3.7.1 [ ] [ ] [ ] [ ] 64 [Tab] [Alt]-[Tab] “ ” [Tab] [Space] [Enter] [Enter] [Space] [Space] [F12] Kylin 2.0 65 3.7.2 3-38 OK 3.7.3 3-39 66 “/” 3.7.4 3-40 GRUB GRUB MBR GRUB GRUB GRUB 67 3-41 Edit “My Kylin” 3-42 68 3.7.5 3-43 DHCP IP Kylin IP OK 69 3-44 ( 3.7.6 3-45 ) 70 3.7.7 X 3-46 X Kylin XFree86 3.7.8 3-47 71 “/tmp/install.log” OK 3-48 3-49 72 3.7.9 3-50 OK 73 3-4 Rescue “bash” 4-1 1 GRUB GRUB exit Kylin GRUB 74 Kylin 4.2.1 GRUB Kylin Kylin Windows MBR Windows GRUB Kylin 4-1 bash 4-2 grub grub 75 grub> find /boot/grub/stage2 (hd0,0,a) hd0,0,a /boot/grub/stage2 GRUB stage2 find Kylin Kylin hd0,0,a Grub hd1,d Kylin grub> root (hd0,0,a) Filesystem type is ufs2 partition type is 0xa5 GRUB GRUB GRUB hd0,0,a grub> setup (hd0) Checking if “/boot/grub/stage1” exists… yes UFS2 76 Checking if “/boot/grub/stage2” exists… yes Checking if “/boot/grub/ufs2_stage1_5” exists… yes Running “embed /boot/grub/ufs2_stage1_5 (hd0)” … 14 sectors are embedded. Succeeded Running “install /boot/grub/stage1(hd0) (hd0)1+14 p (hd0,0,a)/boot/grub/stage2 /boot/grub/menu.lst” … succeeded Done. GRUB stage1 Grub 1+14 hd0 MBR ufs2_stage1_5 15 /boot/grub/menu.lst grub> quit grub bash Kylin GRUB GRUB Kylin Windows Windows /boot/grub/menu.lst ATA title Windows root (hd0,1) chainloader +1 77 4.2.2 GRUB GRUB /boot/grub/stage2 4-3 4-3 grub # mount /dev/ad0s1a /mnt/sysimage /boot “ ” /dev/ad0s1a fsck # fsck_ffs –y /dev/ad0s1a “ ” 78 # cd /mnt/sysimage/boot/grub # cp –f /usr/grub/stage* . GRUB Kylin “exit” 4.2.3 Windows Windows “Ntloader missing…” fdisk ad0 # fdisk –u ad0 CHS CHS Windows Windows CHS Windows CHS 79 4.2.4 Kylin libc.so init inittab /sbin/init 4-4 init Kylin no init init 80 4.2.5 ad0s1a /dev/ad0s1a # mount /dev/ad0s1a /mnt/sysimage /mnt/sysimage mount: /dev/ad0s1a: Operation not permitted. /dev/ad0s1a “ ” # fsck_ffs –y /dev/ad0s1a 4-5 4-5 4.3 fsck 81 IP 4.3.1 IP ifconfig IP lnc0 eth0 ifconfig em0 eth1 # ifconfig –l lnc0 plip0 lo0 lnc0 plip0 p2p # ifconfig lnc0 192.168.10.111 lnc0 192.168.10.111 4.3.2 192.168.10.1 # route add default 192.168.10.1 add net default: gateway 192.168.10.1 lo0 82 4.3.3 /etc/resolv.conf nameserver 202.103.96.112