Download presentation
Presentation is loading. Please wait.
Published byClarence Tyler Modified over 8 years ago
1
LOGO Linux Installation
2
Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian, Ubuntu, Gentoo… Live CDs You can make your own Linux distribution. This slide is based on Ubuntu
3
Before Installation Modify the boot sequence to boot your computer from CD-ROM Make sure your hardware and device A clear head and relaxed mind Some drinks and food
4
Start
6
Disks and Partitions /dev/hda, /dev/hdb, /dev/hdc, … /dev/hda1, /dev/hda2, … /dev/sda, /dev/scd0, … Mount Points / /swap …
7
Partition Division Four methods Resize the partition and use freed space Erase entire disk Use the largest continuous free space Manually edit partition table Choose a proper one or edit it manually.
8
Partition Division (cont.)
9
Swap partition is usually twice as RAM when it is less than 1GB No more than four primary partition including root partition and swap partition If four isn’t enough, use extend partition Make sure all your mount points are correct
10
End of Installation After dividing partitions, you only need to click your mouse. After installation, reboot and enjoy your Linux! Installation by text mode is the same as graphic mode
11
ubuntu 正體中文站 鳥哥的私房菜
12
LOGO Compiling Linux kernel
13
What is Linux Kernel? Kernel is the core of an operating system. Scheduler, task management, memory management, … You need to compile kernel source code to binary in order to run.
14
When Should We Compile Kernel? You don’t need to compile kernel after Linux installation to run. You can configure your Linux by compiling a new kernel. Add new feature, ex. patch kernel. Support new hardware. Disable functions you don’t need. Develop your own kernel. Etc.
15
Where to D/L Linux Kernel? Go to System/Administration/synaptic package Manager http://www.kernel.org/
16
What Does Kernel Version Mean? Naming using [ 主版本 ].[ 次版本 ].[ 修訂版本 ]-[ 附 版本 ]. Odd minor number is testing version. Even minor number is stable version.
17
Prepare Your Kernel Source Code 1.You need to be root to compile kernel # sudo -i 2.Download the necessary tools #apt-get update # apt-get install kernel-package libncurses5-dev bzip2 automake libc6-dev build-essential 3. Go to System/Administration/synaptic package Manager or http://www.kernel.org/ http://www.kernel.org/ to get the kernel source code
18
Prepare Your Kernel Source Code Unzip kernel source code. cd /usr/src bzip2 -d linux-source-2.6.X.tar.bz2 tar -xvf linux-2.6.x.tar 1.Make the link “/usr/src/linux-source-2.x.x” to the kernel source directory. #ln –s linux -source -2.6.x linux #cd linux You may have many versions of Linux source codes
19
# cp /boot/config-`uname -r`./.config or #make config #make menuconfig #make xconfig Prepare Your Kernel Source Code
20
make config
21
make config(cont.) If you meet some problems. (SATA) Device Drivers ---> SCSI device support ---> SCSI device support SCSI disk support Device Drivers ---> SCSI device support ---> SCSI low-level drivers ---> [*] Serial ATA (SATA) support
22
Kernel Compilation 1.#make clean 2.#make bzImage 3.#make modules 4.#make modules_install 5.#make install 6.#mkinitramfs –o /boot/initrd.img-2.x.x
23
Booting using New Kernel-Grub Setup your boot manager. # vim /boot/grub/menu.lst Add the following section: title linux-2.6.28 uuid 1444e9cd-9a3b-427b-8ac5-6948ba8eeac5 kernel /boot/vmlinuz-2.6.28.10 root=UUID=1444e9cd-9a3b-427b- 8ac5-6948ba8eeac5 ro initrd /boot/initrd.img-2.6.28.10 Reboot.
24
Any problem Google is your best friend. 鳥哥的私房菜
25
Q&A Thanks for your attention.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.