banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix Cài đặt Fedora Core 6  XML
  [Document]   Cài đặt Fedora Core 6 07/12/2006 07:20:40 (+0700) | #1 | 28585
[Avatar]
tranvanminh
HVA Friend

Joined: 04/06/2003 06:36:35
Messages: 516
Location: West coast
Offline
[Profile] [PM]
* 1 Các bước chuẩn bị
o 1.1 Tải các CD ISO image
o 1.2 Kiểm tra checksum
o 1.3 Tạo DVD ISO từ các CD ISO
o 1.4 Ghi ISO image vào đĩa CD-R hoặc DVD-R
* 2 Cài đặt mới (fresh installation)
o 2.1 Sử dụng đĩa CD/DVD
o 2.2 Sử dụng yum
* 3 Nâng cấp từ phiên bản cũ hơn (FC5)
o 3.1 Sử dụng đĩa CD/DVD
o 3.2 Nâng cấp FC5 lên FC6 bằng cách dùng yum
* 4 Cài đặt các chương trình cần thiết khác


Các bước chuẩn bị

Tải các CD ISO image


Chọn mirror từ danh sách http://fedoraproject.org/wiki/Mirrors

$ wget ftp://mirror.address/FC6/SHA1SUM
$ wget ftp://mirror.address/FC6/FC6-disc1-5.i386.iso 


Sẽ thấy thông báo tương tự như sau, hiện ra khi đang tải file

james@FC5Xen0[~/FC6]: wget ftp://ftp.xxx.jp/pub/Linux/Fedora/core/6/i386/iso/FC-6-i386-disc1.iso
--23:21:33--
ftp://ftp.xxx.jp/pub/Linux/Fedora/core/6/i386/iso/FC-6-i386-disc1.iso
=> `FC-6-i386-disc1.iso'
Resolving proxy.xxx.xxx... x.x.x.x, y.y.y.y, z.z.z.z
Connecting to proxy.xxx.xxx|x.x.x.x|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]

[ <=> ] 708,780,032 6.29M/s

23:24:03 (5.05 MB/s) - `FC-6-i386-disc1.iso' saved [708780032] 


Một vài mirror cho phép tải cả DVD ISO image. Tuy nhiên người ta khuyến khích chỉ nên tải DVD ISO bằng các chương trình chia sẻ file (như BitTorrent).

Chúng ta cũng có thể tự tạo DVD ISO từ các CD ISO đã tải về. Phần sau sẽ giới thiệu cụ thể cách làm.

Kiểm tra checksum

Kiểm tra chữ kí điện tử của file SHA1SUM

$ /usr/bin/gpg --verify SHA1SUM
gpg: Signature made Thu 19 Oct 2006 05:34:54 AM JST using DSA key ID 4F2A6FD2
gpg: Can't check signature: public key not found 


Như vậy để kiểm tra chữ kí của file SHA1SUM, cần có khóa public-key mã số 0x4F2A6FD2. Trong máy chưa có khóa này nên phải tải về bằng lệnh sau đây.

$ gpg --keyserver www.keyserver.net --recv-keys 4F2A6FD2
gpg: requesting key 4F2A6FD2 from hkp server www.keyserver.net
gpg: key 4F2A6FD2: public key "Fedora Project <fedora@redhat.com>" imported
gpg: 3 marginal(s) needed, 1 complete(s) needed, classic trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: Total number processed: 1
gpg: imported: 1

$ gpg --fingerprint
/home/james/.gnupg/pubring.gpg
--------------------------------
pub 1024D/4F2A6FD2 2003-10-27
Key fingerprint = CAB4 4B99 6F27 744E 8612 7CDF B442 69D0 4F2A 6FD2
uid Fedora Project <fedora@redhat.com>
sub 1024g/FB939E34 2003-10-27
 

Khi đã có public key


$ gpg --verify SHA1SUM
gpg: Signature made Thu 19 Oct 2006 05:34:54 AM JST using DSA key ID 4F2A6FD2
gpg: Good signature from "Fedora Project <fedora@redhat.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: CAB4 4B99 6F27 744E 8612 7CDF B442 69D0 4F2A 6FD2
 

Sẽ có một vài dòng cảnh báo hiện ra như thế. Tuy nhiên với kĩ thuật hiện nay về an toàn bảo mật dựa trên cơ chế PKI, ta có thể yên tâm rằng file SHA1SUM là "hàng xịn" của Fedora Project.

Tiếp theo, dựa vào nội dung file SHA1SUM, so sánh với kết quả SHA1 checksum của các ISO nhằm kiểm tra sự toàn vẹn của các file ISO, đảm bảo rằng các file ISO này không bị biến đổi trước khi tải cũng như không bị lỗi trong quá trình tải về.

$ /usr/bin/sha1sum FC-6-i386-disc*
cc503d99c9d736af9052904a6ab14931b0850078 FC-6-i386-disc1.iso
3051710e6b2f1d17a14ede0ebb74761c29cda954 FC-6-i386-disc2.iso
5357ce21f8766db385b25923216a430b694bca5d FC-6-i386-disc3.iso
d6133ab5ccf19431c14fd2ad85bce03c9834ef87 FC-6-i386-disc4.iso
22327af62d6376916e209b0c4934540e14d5664a FC-6-i386-disc5.iso
 

So sánh với nội dung file SHA1SUM

$ cat SHA1SUM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

834fd761b9c0a5dc550d10d97307dac998103a68 FC-6-i386-rescuecd.iso
cc503d99c9d736af9052904a6ab14931b0850078 FC-6-i386-disc1.iso
3051710e6b2f1d17a14ede0ebb74761c29cda954 FC-6-i386-disc2.iso
5357ce21f8766db385b25923216a430b694bca5d FC-6-i386-disc3.iso
d6133ab5ccf19431c14fd2ad85bce03c9834ef87 FC-6-i386-disc4.iso
6722f95b97e5118fa26bafa5b9f622cc7d49530c FC-6-i386-DVD.iso
22327af62d6376916e209b0c4934540e14d5664a FC-6-i386-disc5.iso
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFFNo/utEJp0E8qb9IRAsf7AJ9ZqiDlKqJfAh8g5QHyDMmPOzNbTACfbyGw
hB8bkLBT+6ANW6y8iBmlxz8=
=O/Le
-----END PGP SIGNATURE----- 



Tạo DVD ISO từ các CD ISO

Chú ý: công việc này cần nhiều chỗ trống ở /tmp (ít nhất 4GB) và /home (ít nhất 4GB) Sử dụng script mkdvdiso.sh

$ wget http://james.dyndns.ws/pub/Software/Script/mkdvdiso.sh
# yum install anaconda-runtime 


Cho tất cả 5 CD ISO của FC6 vào một thư mục FC6-CD, và gõ lệnh

$ ./mkdvdiso.sh FC6-CD /path/to/FC6-i386-DVD.iso
 


Tùy vào khả năng của máy, nói chung mất khoảng 5-10 phút. Sau đây là một số thông báo hiện ra trong quá trình thực hiện

.............
Using JAKAR012.RPM;1 for ./Fedora/RPMS/jakarta-oro-2.0.8-3jpp.1.i386.rpm
(jakarta-commons-collections-testframework-javadoc-3.1-6jpp.1.i386.rpm)
Using OPENO021.RPM;1 for ./Fedora/RPMS/openoffice.org-langpack-es-2.0.4-5.3.i386.rpm
(openoffice.org-langpack-ve_ZA-2.0.4-5.3.i386.rpm)
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) 186
Writing: Joliet directory tree Start Block 215
Done with: Joliet directory tree Block(s) 121
Writing: Directory tree cleanup Start Block 336
Done with: Directory tree cleanup Block(s) 0
Writing: Extension record Start Block 336
Done with: Extension record Block(s) 1
Writing: The File(s) Start Block 337
0.29% done, estimate finish Wed Oct 24 23:21:56 2006
...
99.88% done, estimate finish Wed Oct 24 23:20:25 2006
Total translation table size: 566773
Total rockridge attributes bytes: 242950
Total directory bytes: 379800
Path table size(bytes): 138
Done with: The File(s) Block(s) 1721656
Writing: Ending Padblock Start Block 1721993
Done with: Ending Padblock Block(s) 150
Max brk space used 1aa000
1722143 extents written (3363 MB)
Inserting md5sum into iso image...
md5 = 713d865641a2d301649047b4cbb7bf4e
Inserting fragment md5sums into iso image...
fragmd5 = 1b6948d2b2a95625c34ffcc83fd757db1c8e6fe027f2a7715a1e1959eb82
frags = 20
Setting supported flag to 0

Process Complete!

 



Công việc tạo DVD ISO image đã hoàn tất. Ta có thể ghi ISO image này ra đĩa DVD-R để cài đặt, hoặc có thể "mount" để dùng như một local repository. Cách mount như sau

# mount -o loop /path/to/FC6-i386-DVD.iso /mnt/FC6 


Ghi ISO image vào đĩa CD-R hoặc DVD-R

Lệnh ghi


$ cdrecord FC-6-i386-disc1.iso
$ growisofs FC6-i386-DVD.iso 


Các thông báo hiện ra lúc ghi CD-R

cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent
defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01.01a03-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2005 Jörg
Schilling
NOTE: This version contains the OSS DVD extensions for cdrtools and thus may
have bugs related to DVD issues that are not present in the original
cdrtools. Please send bug reports or support requests to
http://bugzilla.redhat.com/bugzilla The original cdrtools author should
not be bothered with problems in this version.
scsidev: '/dev/cdrom'
devname: '/dev/cdrom'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily -
Red Hat-scsi-linux-sg.c-1.85-RH '@(#)scsi-linux-sg.c 1.85 05/05/16 Copyright
1997 J. Schilling').
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'CD-RW GCE-8400B '
Revision : 'B104'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Speed set to 7056 KB/s
Starting to write CD/DVD at speed 40.0 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
trackno=0
Turning BURN-Free on
Track 01: Total bytes read/written: 708780032/708780032 (346084 sectors). 



Cài đặt mới (fresh installation)

Sử dụng đĩa CD/DVD

Dùng đĩa CD số 1 hoặc DVD vừa ghi được, cho vào máy và khởi động. Lựa chọn "New Install".

Sử dụng yum

Xem bài Cài đặt máy ảo FC6 XenU

Nâng cấp từ phiên bản cũ hơn (FC5)

Sử dụng đĩa CD/DVD

Cho đĩa CD số 1 hoặc DVD vừa ghi được vào máy và khởi động. Lựa chọn "Upgrade".

Nâng cấp FC5 lên FC6 bằng cách dùng yum


* nâng cấp fedora-release

# rpm -Uvh fedora-release-6-4.noarch.rpm fedora-release-notes-6-3.noarch.rpm 


* nâng cấp chương trình yum

# yum update yum 


* cuối cùng, nâng cấp cả hệ thống

# yum update 


Tác giả đã thử nâng cấp một trong các máy FC5 của mình bằng cách trên. Chương trình nâng cấp tải về khoảng 350 gói RPM, từ khi gõ lệnh đến khi nâng cấp xong mất khoảng 30 phút trên máy Dell Dimension 8100 nối mạng (siêu tốc) gigabit network. Thời gian nâng cấp tùy vào cấu hình máy, tùy vào số lượng các chương trình cài trên máy, và tùy vào điều kiện nối mạng. YMMV.

Nguồn : http://james.dyndns.ws/Wiki/index.php/FC6_Installation
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|