特殊:Badtitle/NS100:Forum/software/CustomKernel:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第13行: | 第13行: | ||
sudo dpkg -i ../kernel-image-2.6.5.10MyCustomKernel_1 | sudo dpkg -i ../kernel-image-2.6.5.10MyCustomKernel_1 | ||
</nowiki></pre> | </nowiki></pre> | ||
It is easier to install and remove that way. It also guarantees that your system is not left unbootable (by not screwing up your | It is easier to install and remove that way. It also guarantees that your system is not left unbootable (by not screwing up your BootLoader and leaving you other options). | ||
=== See also === | |||
* https://help.ubuntu.com/community/Kernel/Compile | |||
* [[UbuntuHelp:Fakeroot|Fakeroot]] | |||
* http://packages.debian.org/fakeroot | |||
* http://freshmeat.net/projects/fakeroot | |||
* http://www.linuxpackages.net/pkg_details.php?id=11426 | |||
* http://sourceforge.net/projects/fakerootng | |||
* http://www.pinkdragon.net/doc_lib/contents/en/linux_man/fakeroot.1.html | |||
---- | ---- | ||
[[category:CategoryKernel]] [[category:CategoryDocumentation]] [[category:CategoryForum]] | [[category:CategoryKernel]] [[category:CategoryDocumentation]] [[category:CategoryForum]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年4月23日 (三) 10:44的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/forum/software/CustomKernel }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/af | • {{#if: UbuntuHelp:forum/software/CustomKernel|Afrikaans| [[::Forum/software/CustomKernel/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/ar | • {{#if: UbuntuHelp:forum/software/CustomKernel|العربية| [[::Forum/software/CustomKernel/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/az | • {{#if: UbuntuHelp:forum/software/CustomKernel|azərbaycanca| [[::Forum/software/CustomKernel/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/bcc | • {{#if: UbuntuHelp:forum/software/CustomKernel|جهلسری بلوچی| [[::Forum/software/CustomKernel/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/bg | • {{#if: UbuntuHelp:forum/software/CustomKernel|български| [[::Forum/software/CustomKernel/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/br | • {{#if: UbuntuHelp:forum/software/CustomKernel|brezhoneg| [[::Forum/software/CustomKernel/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/ca | • {{#if: UbuntuHelp:forum/software/CustomKernel|català| [[::Forum/software/CustomKernel/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/cs | • {{#if: UbuntuHelp:forum/software/CustomKernel|čeština| [[::Forum/software/CustomKernel/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/de | • {{#if: UbuntuHelp:forum/software/CustomKernel|Deutsch| [[::Forum/software/CustomKernel/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/el | • {{#if: UbuntuHelp:forum/software/CustomKernel|Ελληνικά| [[::Forum/software/CustomKernel/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/es | • {{#if: UbuntuHelp:forum/software/CustomKernel|español| [[::Forum/software/CustomKernel/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/fa | • {{#if: UbuntuHelp:forum/software/CustomKernel|فارسی| [[::Forum/software/CustomKernel/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/fi | • {{#if: UbuntuHelp:forum/software/CustomKernel|suomi| [[::Forum/software/CustomKernel/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/fr | • {{#if: UbuntuHelp:forum/software/CustomKernel|français| [[::Forum/software/CustomKernel/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/gu | • {{#if: UbuntuHelp:forum/software/CustomKernel|ગુજરાતી| [[::Forum/software/CustomKernel/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/he | • {{#if: UbuntuHelp:forum/software/CustomKernel|עברית| [[::Forum/software/CustomKernel/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/hu | • {{#if: UbuntuHelp:forum/software/CustomKernel|magyar| [[::Forum/software/CustomKernel/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/id | • {{#if: UbuntuHelp:forum/software/CustomKernel|Bahasa Indonesia| [[::Forum/software/CustomKernel/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/it | • {{#if: UbuntuHelp:forum/software/CustomKernel|italiano| [[::Forum/software/CustomKernel/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/ja | • {{#if: UbuntuHelp:forum/software/CustomKernel|日本語| [[::Forum/software/CustomKernel/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/ko | • {{#if: UbuntuHelp:forum/software/CustomKernel|한국어| [[::Forum/software/CustomKernel/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/ksh | • {{#if: UbuntuHelp:forum/software/CustomKernel|Ripoarisch| [[::Forum/software/CustomKernel/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/mr | • {{#if: UbuntuHelp:forum/software/CustomKernel|मराठी| [[::Forum/software/CustomKernel/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/ms | • {{#if: UbuntuHelp:forum/software/CustomKernel|Bahasa Melayu| [[::Forum/software/CustomKernel/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/nl | • {{#if: UbuntuHelp:forum/software/CustomKernel|Nederlands| [[::Forum/software/CustomKernel/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/no | • {{#if: UbuntuHelp:forum/software/CustomKernel|norsk| [[::Forum/software/CustomKernel/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/oc | • {{#if: UbuntuHelp:forum/software/CustomKernel|occitan| [[::Forum/software/CustomKernel/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/pl | • {{#if: UbuntuHelp:forum/software/CustomKernel|polski| [[::Forum/software/CustomKernel/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/pt | • {{#if: UbuntuHelp:forum/software/CustomKernel|português| [[::Forum/software/CustomKernel/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/ro | • {{#if: UbuntuHelp:forum/software/CustomKernel|română| [[::Forum/software/CustomKernel/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/ru | • {{#if: UbuntuHelp:forum/software/CustomKernel|русский| [[::Forum/software/CustomKernel/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/si | • {{#if: UbuntuHelp:forum/software/CustomKernel|සිංහල| [[::Forum/software/CustomKernel/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/sq | • {{#if: UbuntuHelp:forum/software/CustomKernel|shqip| [[::Forum/software/CustomKernel/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/sr | • {{#if: UbuntuHelp:forum/software/CustomKernel|српски / srpski| [[::Forum/software/CustomKernel/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/sv | • {{#if: UbuntuHelp:forum/software/CustomKernel|svenska| [[::Forum/software/CustomKernel/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/th | • {{#if: UbuntuHelp:forum/software/CustomKernel|ไทย| [[::Forum/software/CustomKernel/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/tr | • {{#if: UbuntuHelp:forum/software/CustomKernel|Türkçe| [[::Forum/software/CustomKernel/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/vi | • {{#if: UbuntuHelp:forum/software/CustomKernel|Tiếng Việt| [[::Forum/software/CustomKernel/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/yue | • {{#if: UbuntuHelp:forum/software/CustomKernel|粵語| [[::Forum/software/CustomKernel/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/zh | • {{#if: UbuntuHelp:forum/software/CustomKernel|中文| [[::Forum/software/CustomKernel/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/zh-hans | • {{#if: UbuntuHelp:forum/software/CustomKernel|中文(简体)| [[::Forum/software/CustomKernel/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:forum/software/CustomKernel | UbuntuHelp:forum/software/CustomKernel | {{#if: | :}}Forum/software/CustomKernel}}/zh-hant | • {{#if: UbuntuHelp:forum/software/CustomKernel|中文(繁體)| [[::Forum/software/CustomKernel/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:forum/software/CustomKernel|:Forum/software/CustomKernel|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Forum/software/CustomKernel/zh | | {{#ifexist: Forum/software/CustomKernel/zh | | {{#ifeq: {{#titleparts:Forum/software/CustomKernel|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Forum/software/CustomKernel|1|-1|}} | zh | | }}
You may grab the latest kernel source from Linus at kernel.org and compile your own kernel. It is easier to just make a package for your kernel image. Install fakeroot and kernel-package. Also, install linux-tree. Linux-tree is the linux source, packaged by Ubuntu. It is a better starting point because it contains a lot of patches, bugfixes and configuration you need for ubuntu. You can make menuconfig and remove the options you do not need. cd to the top of the linux tree and do
fakeroot make-kpkg --revision=1 --append-to-version=MyCustomKernel --initrd kernel_image kernel_headers
That will compile and build a kernel-image package that you can install with dpkg -i.
sudo dpkg -i ../kernel-image-2.6.5.10MyCustomKernel_1
It is easier to install and remove that way. It also guarantees that your system is not left unbootable (by not screwing up your BootLoader and leaving you other options).
See also
- https://help.ubuntu.com/community/Kernel/Compile
- Fakeroot
- http://packages.debian.org/fakeroot
- http://freshmeat.net/projects/fakeroot
- http://www.linuxpackages.net/pkg_details.php?id=11426
- http://sourceforge.net/projects/fakerootng
- http://www.pinkdragon.net/doc_lib/contents/en/linux_man/fakeroot.1.html