歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> 更多Linux

菜鳥 RedHat Fedora Core 2安裝手記

  從網上下載fedora core2 的安裝光盤  http://www.Linuxsir.com/bbs/showthread.PHP?s=&threadid=109335&perpage=15&pagenumber=1    用md5sum命令驗證完整性:# md5sum <filename>    強烈建議安裝前先看看release note,對新版本有哪些變化,硬件需求心裡先有個譜,免得安裝的時候出錯。 比如,新版的fedora萬全安裝6.9G,我的硬盤分區不夠,就不能選擇完全安裝;又如,asus的P4P800系列主板暫時安裝不了fc2等。    硬盤安裝有多種方式──光盤引導,軟驅引導,grub引導等,具體地可以參考論壇上的置頂貼,北南老大給咱們新手早就指好路了  Grub安裝:http://www.linuxsir.org/bbs/showthread.php?s=&postid=164822  加載iso文件# mount /path/FC2-i386-disc1.iso /mnt/cdrom  拷貝vmlinuz,initrd.img 到/boot目錄下  # cp /mnt/cdrom/isolinux/initrd.img /boot/initrd-fc2setup.img  # cp /mnt/cdrom/isolinux/vmlinuz /boot/vmlinuz-fc2setup  修改grub.conf,添加:  title Fedora core 2 Setup  root (hd0,6)  kernel /boot/vmlinuz-fc2setup root=/dev/hda7  initrd /boot/initrd-fc2setup.img  重新啟動選擇該項,就可安裝。  硬盤安裝:http://www.linuxsir.org/bbs/showthread.php?s=&threadid=71740  光盤目錄~/images下的diskboot.img是fat格式的引導文件映象,如果有優盤,系統又支持,可以用rawrite,hdcopy等將它寫入優盤引導;      我有刻錄機,可擦寫盤,又不想刻盤,所以選擇了光盤引導進行硬盤安裝:  在fedora core 1下加載第一張安裝光盤  # mount /mnt/WinE/fc2/FC2-i386-disc1.iso /mnt/cdrom -o loop  #在光盤目錄~images/下的boot.iso可以用來制作引導光盤  利用k3b刻錄映象文件功能,刻錄出引導盤。  將原來系統裡需要備份的文件、目錄備份,以減少損失。比如用戶主目錄# tar czvf ./backup.tgz ~/你的主目錄/。    重啟系統,設置為光驅啟動,將引導盤放入光驅,出現安裝界面,安裝直接回車;詢問安裝過程的語言,選擇中文,提示找到安裝介質前是英文;  出現菜單尋找iso文件,上邊是分區/dev/hda1....下面是文件名/目錄,選擇iso文件位置,我的就是/dev/hda6, fc2/回車,開始安裝;  安裝程序自動找到/dev/hda7的fedora core1,選擇全新安裝;  分區選擇手動分區,自動分區會自作主張,除非是只裝這一個系統,一般不要選擇;  配置網卡,如果不是小區寬帶等在lan內上網的情況,手動分配地址就行,比如我有兩個網卡,eth0接adsl上網,192.168.1.6/255.255.255.0(設為與modem默認同一網段),eth1接內網192.168.0.1/255.255.255.0/網關192.168.0.1,主機地址就設為localhost.localdomain就行;  選擇安裝模式的時候看自己的情況,想省事又有空間,就完全安裝,定制安裝最好把開發工具都選上:開發工具/內核開發(fc2的內核有問題,安裝nvidia驅動要編譯內核)/x軟件開發/gnome開發/kde開發;  接下來就讓機器自己勞動吧,有40分鐘就差不多裝完了。  安裝完成,重新啟動,出現grub啟動引導菜單,如果是多系統,會看到其他的選項,如我是雙系統,fedora core (2.6.5-1.358)下面還有一個other,就是windows,如果選它,就由ntloader引導進入windows;    第一次進入fc2,是gnome桌面;    首先修改/etc/inittab,將id:5:initdefault:改為id:3:initdefault:    修改/boot/grub/grub.conf,將title other改為 windows XP/2000/2003等,其他不用動;  linux不在主分區可以這樣,如果是主分區,那麼啟動windows,還要激活分區,在grub.conf裡windows那一段添加為   title windows XXX  rootnoverify (hd0,x)  makeactive  chainloader +1  boot (可以不加)    修改/etc/fstab/  建立目錄/mnt/WinXP /mnt/WinD /mnt/WinE  #mkdir /mnt/WinXP  #mkdir /mnt/WinD  #mkdir /mnt/WinE  改變權限#chmod 777 /mnt/WinD /mnt/WinE  添加windows分區的加載信息如:  /dev/hda1 /mnt/WinXP ntfs auto,ro,nls=cp936,uid=1000,gid=1000,umask=000 0 0  /dev/hda5 /mnt/WinD vfat umask=0,rw,iocharset=cp936 0 0  /dev/hda6 /mnt/WinE vfat umask=0,rw,iocharset=cp936 0 0  我這裡的設置跟有些兄弟說的不一樣,還是加了cp936的項,而且文件名讀取正常;相反,如果不加,倒是亂碼。    添加xdsl連接:  圖形工具# system-config-network,新建xdsl>填寫網卡、供應商、賬戶、密碼即可;  用adsl-setup# adsl-setup,按照提示一步步填寫即可;  ====================================================================  Welcome to the ADSL client setup. First, I will run some checks on  your system to make sure the PPPoE client is installed properly...      LOGIN NAME    Enter your Login Name (default root): ( 填寫賬戶名)    INTERFACE    Enter the Ethernet interface connected to the ADSL modem  For Solaris, this is likely to be something like /dev/hme0.  For Linux, it will be ethX, where 'X' is a number.  (default eth0): (上網用的網卡接口,默認eth0)    Do you want the link to come up on demand, or stay up continuously?  If you want it to come up on demand, enter the idle time in seconds  after which the link should be dropped. If you want the link to  stay up permanently, enter 'no' (two letters, lower-case.)  NOTE: Demand-activated links do not interact well with dynamic IP  addresses. You may have some problems with demand-activated links.  Enter the demand value (default no): (是按需撥號,還是持續連接;按需撥號,填寫空閒時間,如60(秒);默認持續連接)    DNS    Please enter the IP address of your ISP's primary DNS server.  If your ISP claims that 'the server will provide dynamic DNS addresses',  enter 'server' (all lower-case) here.  If you just press enter, I will assume you know what you are  doing and not modify your DNS setup.  Enter the DNS information here: (域名解析服務器,可以填server,自動尋找;也可以直接填地址)    PASSWord    Please enter your Password:  Please re-enter your Password: (輸入口令並確認)    USERCTRL    Please enter 'yes' (two letters, lower-case.) if you want to allow  normal user to start or stop DSL connection (default yes): (用戶控制,yes允許普通用戶啟動、關閉連接;默認yes)    FIREWALLING    Please choose the firewall rules to use. Note that these rules are  very basic. You are strongly encouraged to use a more sophisticated  firewall setup; however, these will provide basic security. If you  are running any servers on your machine, you must choose 'NONE' and  set up firewalling yourself. Otherwise, the firewall rules will deny  Access to all standard servers like Web, e-mail, FTP, etc. If you  are using SSH, the rules will block outgoing SSH connections which  allocate a privileged source port.    The firewall choices are:  0 - NONE: This script will not set any firewall rules. You are responsible  for ensuring the security of your machine. You are STRONGLY  recommended to use some kind of firewall rules.  1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation  2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway  for a LAN  Choose a type of firewall (0-2)防火牆規則,0-無有,1-基本工作站,2-局域網網關;一般選1就行)    Start this connection at boot time    Do you want to start this connection at boot time?  Please enter no or yes (default no): (是否隨系統啟動,如果包月yes)    ** Summary of what you entered **    Ethernet Interface: eth0  User name: *********  Activate-on-demand: No  DNS addresses: Supplied by ISP's server  Firewalling: STANDALONE  User Control: yes  Accept these settings and adjust configuration files (y/n)? (是否接受這些設置,並調整配置文件)    Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0  Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets      Congratulations, it should be all set up!    Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'  to bring it down.  Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0'  to see the link status. (配置完成,啟




Copyright © Linux教程網 All Rights Reserved