+ All Categories
Home > Documents > LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers,...

LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers,...

Date post: 29-Dec-2015
Category:
Upload: prudence-cummings
View: 226 times
Download: 3 times
Share this document with a friend
Popular Tags:
26
LOGO Linux Installation
Transcript
Page 1: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

LOGO Linux Installation

Page 2: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

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

Page 3: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Before Installation

Modify the boot sequence to boot your computer form CD-ROM

Make sure your hardware and device

A clear head and relaxed mind

Some drinks and food

Page 4: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Start

Page 5: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
Page 6: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Disks and Partitions

/dev/hda, /dev/hdb, /dev/hdc, …/dev/hda1, /dev/hda2, …

/dev/sda, /dev/scd0, …

Mount Points/

/swap

Page 7: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Partition Division

Four methodsResize 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.

Page 8: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Partition Division (cont.)

Page 9: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Partition Division (cont.)

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

Page 10: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

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

Page 11: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

ubuntu正體中文站鳥哥的私房菜

Page 12: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

LOGO Compiling Linux kernel

Page 13: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

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.

Page 14: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

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.

Page 15: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Where to D/L Linux Kernel?

http://www.kernel.org/

Page 16: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
Page 17: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

What Does Kernel Version Mean?

Naming using [主版本 ].[次版本 ].[修訂版本 ]-

[附版本 ].Odd minor number is testing version.

Even minor number is stable version.

Page 18: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Prepare Your Kernel Source Code

1. You need to be root to compile kernel.#su

2. D/L kernel source code.http://www.kernel.org

3. Unzip kernel source code.cd /usr/srctar -zxvf linux-2.x.x.tar.gz

4. Make the link “/usr/src/linux-2.x.x” to the kernel source directory.

#ln –s linux-2.x.x linuxYou may have many versions of Linux source codes

Page 19: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

make config

#make config

#make menuconfig

#make xconfig

Page 20: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

make config

Page 21: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

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

Page 22: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Kernel Compilation

1. #make clean

2. #make bzImage

3. #make modules

4. #make modules_install

5. #mkinitramfs –o /boot/filename 2.x.x

6. (/lib/modules/)

Page 23: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Booting using New Kernelcp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.x.x

Setup your boot manager.Lilo or Grub

Page 24: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Grub

# vim /boot/grub/menu.lst

Add the following section:title linux-2.x.x kernel (hd0,0)/boot/vmlinuz-2.x.x root=/dev/hda1

devfs=mount

Reboot.

Page 25: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Any problem

Google is your best friend.

2nd are Classmates.

鳥哥的私房菜

Page 26: LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,

Q&A

Thanks for your attention.


Recommended