偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

講解介紹Linux內核版本虛擬機安裝

運維 系統(tǒng)運維
Linux虛擬機版本為Fedora5 ,內核版本為2.6.15,從網絡上下載得來,大小為3.02 GB ,下載地址好像找不到了,大家去可以google搜索。

Linux內核版本正式版已經發(fā)行,Linux內核版能提高更方便的使用性能。下面就這就來講術Linux內核版。因工作需要,需要升級Linux內核版本,系統(tǒng)為Fedora5 ,內核版本為2.6.15,需要升級為2.6.20,這個過程大概花了一個星期的時間,從一點不了解Linux內核版本,到升級成功,也經歷了不少困難,都是從google上搜索得來的。以下是整個過程.

一。安裝Linux內核版本虛擬機

Linux虛擬機版本為Fedora5 ,內核版本為2.6.15,從網絡上下載得來,大小為3.02 GB ,下載地址好像找不到了,大家去可以google搜索。就是下載需要花費點時間安裝過程沒什么需要注意的地方,大家按照正常安裝過程即可安裝完畢,下圖是安裝過程中的界面:

[ATTACH]29538[/ATTACH]
正在安裝中ing以下圖片是是安裝完成并顯示內核版本
[ATTACH]29549[/ATTACH]

二。下載Linux內核版本源碼

下載地址為:http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/5/SRPMS/
有很多選項,找到2.6.20,kernel-2.6.20-1.2320.fc5.src.rpm 21-Jun-2007 18:48 45M RPM Package
大小為45M,貌似還有點大

三。安裝重要

[CODE][shabi004@localhost ~]$ su root
口令:
[root@localhost shabi004]# cd Desktop/
[root@localhost Desktop]# ls
kernel-2.6.20-1.2320.fc5.src.rpm
[root@localhost Desktop]# rpm -ivh kernel-2.6.20-1.2320.fc5.src.rpm[/CODE]

出現提示:[CODE]warning: group brewbuilder does not exist - using root[/CODE]
不用理會,繼續(xù)即可。
[CODE][root@localhost Desktop]# cd ..
[root@localhost shabi004]# cd ..
[root@localhost home]# cd ..
[root@localhost /]# cd usr/src/redhat/
[root@localhost redhat]# ls
BUILD RPMS SOURCES SPECS SRPMS
[root@localhost redhat]# cd SPECS
[root@localhost SPECS]# ls
kernel-2.6.spec
[root@localhost SPECS]# rpmbuild -bp --target i686 kernel-2.6.spec
[/CODE]
這個過程大概會持續(xù)10分鐘的樣子,依照計算機配置而定,查看的話會發(fā)現有一些警告,不用理會,繼續(xù)即可

[CODE][root@localhost SPECS]# cd ..
[root@localhost redhat]# cd BUILD/
[root@localhost BUILD]# ls
kernel-2.6.20
[root@localhost BUILD]# cd kernel-2.6.20/
[root@localhost kernel-2.6.20]# ls
Config.mk linux-2.6.20.i686 vanilla xen
[root@localhost kernel-2.6.20]# cd linux-2.6.20.i686/
[root@localhost linux-2.6.20.i686]# ls
arch CREDITS fs Kbuild Makefile REPORTING-BUGS usr
block crypto include kernel mm scripts
configs Documentation init lib net security
COPYING drivers ipc MAINTAINERS README sound
[root@localhost linux-2.6.20.i686]#[/CODE]

接下來就是最重要的,配置Linux內核版本,命令是
[CODE]make menuconfig[/CODE]
會彈出一個GUI選框,你可以選擇Linux內核版本支持模塊,比如CPU,網卡,文件系統(tǒng)類型,驅動等等許多內容,具體設置依照硬件環(huán)境進行設置,我會把一些有用的資料以附件的形式發(fā)在文后。
如圖所示:
[ATTACH]29552[/ATTACH]
出現:
[CODE]  Load an Alternate Configuration File
Save an Alternate Configuration File [/CODE]

在這個地方進行保存,保存配置好的Linux內核版本模塊等等接下來,會出現.config界面,ENTER 回車,按OK即可
exit 退出 Linux內核版本配置界面

[CODE][root@localhost linux-2.6.20.i686]# make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf arch/i386/Kconfig
End of Linux kernel configuration.
Execute 'make' to build the kernel or try 'make help'.[/CODE]
開始下一步,需要使用到的命令是

[CODE]
make dep
make
make bzImage
make modules
make modules_install
make install[/CODE]
其中:
第一個命令make dep實際上讀取配置過程生成的配置文件,來創(chuàng)建對應于配置的依賴關系樹,從而決定哪些需要編譯而那些不需要;make zImage和make bzImage則實現完全編譯內核,二者生成的Linux內核版本都是使用gzip壓縮的,只要使用一個就夠了,它們的區(qū)別在于使用make bzImage可以生成大一點的內核。建議大家使用make bzImage命令。

后面三個命令只有在你進行配置的過程中,在回答Enable loadable module support (CONFIG_MODULES)時選了"Yes"才是必要的,make modules和make modules_install分別生成相應的模塊和把模塊拷貝到需要的目錄中

使用make這個命令的時候,花費的 時間比較長,需要耐心等待,中間會產生一些警告信息,不用理會即可
執(zhí)行到
[CODE][root@localhost linux-2.6.20.i686]# make install
sh /usr/src/redhat/BUILD/kernel-2.6.20/linux-2.6.20.i686/arch/i386/boot/install.sh 2.6.20-prep arch/i386/boot/bzImage System.map "/boot"[/CODE]

這里好像內核已經升級完畢了,由于Fedora5是有Grub引導的,需要確認下
使用命令如下:
[CODE][root@localhost shabi004]# cd ..
[root@localhost home]# cd ..
[root@localhost /]# cd boot
[root@localhost boot]# ls
config-2.6.15-1.2054_FC5 System.map-2.6.15-1.2054_FC5
grub System.map-2.6.20-prep
initrd-2.6.15-1.2054_FC5.img vmlinuz
initrd-2.6.20-prep.img vmlinuz-2.6.15-1.2054_FC5
lost+found vmlinuz-2.6.20-prep
System.map
[root@localhost boot]# cd grub
[root@localhost grub]# ls
device.map grub.conf minix_stage1_5 stage2
e2fs_stage1_5 iso9660_stage1_5 reiserfs_stage1_5 ufs2_stage1_5
fat_stage1_5 jfs_stage1_5 splash.xpm.gz vstafs_stage1_5
ffs_stage1_5 menu.lst stage1 xfs_stage1_5
[root@localhost grub]# vi grup.conf[/CODE]

顯示:
[CODE]# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.20-prep)
root (hd0,0)
kernel /vmlinuz-2.6.20-prep ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.20-prep.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
"grub.conf" 21L, 770C[/CODE]

關于其中的解釋,由于自己的水平有限,也解釋不清楚,還請大家去google下就可以得到完整答案。這里我只說自己懂得:
title Fedora Core (2.6.20-prep): Linux內核版本啟動版本
root (hd0,0):hd*表示第幾個硬盤,比如本例就是第一塊硬盤,后面的*表示所第一個分區(qū),本例為第一塊一硬盤,第一個分區(qū)。

現在重啟系統(tǒng),在重啟時按任意鍵進入grub引導界面
[ATTACH]29575[/ATTACH]選擇對應的2.6.20進入系統(tǒng)
[CODE][shabi004@localhost Desktop]$ uname -a
Linux localhost 2.6.20-prep #1 Thu Aug 6 17:39:48 CST 2009 i686 i686 i386 GNU/Linux[/CODE]

到此:此次升級Linux內核版本算是完成了。

【編輯推薦】

  1. 關于Linux內核版本的簡單介紹
  2. Linux內核統(tǒng)一設備系統(tǒng)操作
  3. 學會刪除舊Linux內核
  4. 簡單講述Linux內核系統(tǒng)應用
  5. 闡述Linux內核里面的APIC編程
責任編輯:佚名 來源: CSDN
相關推薦

2010-01-06 16:06:11

2010-03-03 09:57:37

Linux虛擬機

2009-09-07 22:01:52

虛擬機安裝Linux系

2009-03-30 18:24:41

Vmware虛擬化虛擬機

2009-11-17 10:41:28

2022-10-27 12:11:42

VirtualBoxLinux虛擬機

2017-03-01 20:08:36

PHP內核分析

2009-11-24 09:15:54

Linux內核虛擬機KVM架構

2009-12-31 10:24:20

2011-06-22 13:35:55

JVM

2009-12-16 13:44:12

2009-08-07 11:06:07

虛擬機安裝Vista系統(tǒng)

2009-06-22 14:04:00

2010-02-01 08:39:50

Linux虛擬機

2009-10-28 10:07:22

linux虛擬機添加硬盤

2009-09-07 22:08:24

虛擬機安裝Linux系

2009-05-20 19:33:34

Vista虛擬機Linux

2009-08-10 10:49:27

Linux下安裝VMw

2022-09-05 21:46:36

VirtualBox虛擬機開源

2012-05-18 10:22:23

點贊
收藏

51CTO技術棧公眾號