xp硬盘安装CentOS

XP 下硬盘安装 centos 的准备

1.      划出 20 逻辑分区未格式化,这是安装 centos 要用的分区。

2.      要有一个 FAT32 分区,而且该分区的根目录放着 CENTOS ISO (不能用 LIVE CD ISO ,安装会出错)解压出来的东东。例如,我的 E 盘是 FAT32 ,我把 centos iso 解压到 E 盘。

3.      Download grub4dos and wingrub ( http://sourceforge.net/projects/grub4dos )

Install wingrub and run it, select menu “Tools > Partition List”, get “Name” of logic drive. For example, “Name” of “E drive” is (hd0,5 )

 

Extract grub4dos.zip and copy following 3 files to C drive root path.

          grub.exe

          grldr

          menu.lst

4.      修改 menu.lst ,在最后添加下列行

title Install CentOS

kernel (hd0,5)/isolinux/vmlinuz

initrd (hd0,5)/isolinux/initrd.img

5.      修改 c:/boot.ini 文件

首先令到 boot.ini 文件可见:在 dos 窗口打下列命令

        attrib -s -r -h c:/boot.ini

然后修改该文件,在最后添加

        C:/grldr=”Start CentOS”

最后执行下列命令回复 boot.ini 原来属性

        attrib +s +r +h c:/boot.ini

6.      重启,选择 ”Start CentOS” ,然后选择 ”CentOS” ,开始安装!

 

 

安装过程:

1.      Choose Language as “English”, Keyboard as “us”

2.      Media type is “Hard Drive

3.      Select Partition 要选择 Cent ISO 解压后所在的 drive ,我的是 E 盘,所以选择 /dev/sda6

注意: /dev/sda5 指的是 d 盘,逻辑分区是从 5 开始编号, D 盘是第一个逻辑分区,所以是 sda5 。以此类推, e 盘就是 sda6

4.      回车后进入 GUI 安装界面,来到了最为重要的分区环节

5.      Select “Create custom layout.

6.      在出现的界面里,你应该会看到一个 Free partition ,这就是之前我们预留的未格式化的那 20G 分区。在 20G 里,我会进行下列划分和 mount

“/” 10G

“/boot” 200M

“swap” type: 2G

“/home”: 7.8G

1)      To create partition for root “/”, Click New button, “mount point” as “/”, type as “ext3”, file size is “10000”, Click OK

2)      To create partition for “/boot”, Click New button, “mount point” as “/boot”, type as “ext3”, file size is “200”, Click OK (it should tick “force to primary partition” option, but error when select the option, so I skip this option )

3)      To create partition for swap, Click New button, let “mount point” as empty, type as “swap”, file size is “2000”, Click OK

4)      To create partition for “/home”, Click New button, “mount point” as “/home”, type as “ext3”, file size is remain space, Click OK

 

7.      分好区后,来到 GRUB boot 设置界面 。会看到 2 items: CentOS and Other Other 指的是我已经安装了的 win xp 。为它改个名:选定 ”Other” item click Edit button, set Label as “Windows XP” 。并选择该 windows xp default boot target. Click Next

8.      后面的 network setting and region setting 略。

9.      然后来到选择要安装的软件,我选多了 Server and Server – GUI select “Customize later” click next

 

安装完毕后,先进入 xp 去掉放在 c 盘根目录的东东和修改 boot.ini

1.      删除 c 盘根目录的 3 个文件 grub.exe grldr menu.lst

2.      修改 c:/boot.ini 文件

首先令到 boot.ini 文件可见:在 dos 窗口打下列命令

        attrib -s -r -h c:/boot.ini

然后修改该文件,去掉安装时添加在最后的下列行

        C:/grldr=”Start CentOS”

最后执行下列命令回复 boot.ini 原来属性

                        attrib +s +r +h c:/boot.ini

 

安装后首次进入 CentOS 的设定。

首次启动 centos 需要 進行諸如防火牆、 SELinux 、慣用登入帳號 音效裝置的設定

Centos 启动的第一个画面显示了首先进行硬件侦测,并显示一些重要信息,见下图。 /vmlinuz-2.6.18-128.el5 是我們的 Linux 核心檔案

 

 

然后进入 load service ,完成后进入设定界面。

1.      Firewall > diable

2.      SELinux > Enforcing

SELinux Security Enhanced Linux 的縮寫 ,這個軟體是由美國國家安全局 (National Security Agency, NSA, 3 ) 所開發的,這東西並不是防火牆喔! SELinux 是一個 Linux 系統存取控制 (Access control) 的細部設定, 重點在於控制程式對於系統檔案的存取權限限制。由於 CentOS 5.x 以後的 Linux 版本對於 SELinux 的設定已經非常的妥當了, 因此建議您務必要打開這個功能

3.      Kdump > don’t select “enable” option

Kdump 就是,當核心出現錯誤的時候, 是否要將當時的記憶體內的訊息寫到檔案中,而這個檔案就能夠給核心開發者研究為啥會當機之用。 我們並不是核心開發者,而且記憶體內的資料實在太大了,因此常常進行 Kdump 會造成硬碟空間的浪費。 所以,這裡建議不要啟動 Kdump 的功能

4.      Create a user

操作 Linux 系統時,除非必要,否則不要使用 root 的權限,這是因為管理員 (root) 的權限太大了! 我們可能會隨時不小心搞錯了一個小咚咚,結果卻造成整個系統的掛點去 ..... 所以,建立一個一般身份使用者來操作才是好習慣。用這個帳號來操作 Linux 而當主機需要額外的 root 權限來管理時,才使用身份轉換指令來切換身份成為 root 來管理維護

5.      Sound Card

Additional software (optional)

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值