linux-oefening operationele aspecten van besturingssystemen prof. koen de bosschere ir. ronny blomme

21
Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Upload: pablo-suite

Post on 01-Apr-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Linux-oefening

Operationele Aspecten van Besturingssystemen

Prof. Koen De Bosschereir. Ronny Blomme

Page 2: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Overzicht

! Doelstelling van deze oefening

! Installatie van Linux

! Beheer van Linux

! Oefening in de PC-klas

Page 3: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Doel van deze oefening

! Besturingssystemen in de praktijk

! Systeembeheer

! Unix vs Windows

Z Gebruik makend van VMware

Page 4: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Voorbereiding

! Hardware Compatibility List

! Free Disk space?" Workstation: 2 GB

" Server: 2.1 GB

" Personal desktop: 1.5 GB

" Custom: 400MB tot 4.5 GB

Page 5: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

VMware

! Intel vs AMD processor

! PCklas B: Persistent disk

! PCklas A: Non-persistent disk

! NAT

Page 6: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Installatiemethode

! Bootable CDROM

! Bootfloppy + CDROM

! Bootfloppy + netwerk (nfs, ftp, http)

! Unattended: kickstartZ Linux Customization Guide

Page 7: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Disk-Partities

! fdisk / disk druid

! Partition Fields" Device /dev/sda1

" Size 110 MB

" Type ext3

" Mount Point /boot

Page 8: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Filesystem Type

! ext2

! ext3:

! software RAID

! swap

! VFAT: Windows 95/NT (long filenames)

Page 9: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Filesystem structure

/dev /etc /lib

/mnt /opt /proc

/sbin /usr /var

/home

Page 10: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Boot Loader

! LILO / GRUB

! The master boot record (MBR)[ The MBR is a special area on your hard drive that

is automatically loaded by your computer's BIOS, and is the earliest point at which the boot loader can take control of the boot process.

! The first sector of your root partition[ Recommended if you are already using another

boot loader on your system / NT bootloader

Page 11: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Firewall: iptables

packetfilter

FW

DMZ

LAN

Internet

Page 12: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

NIS domain

! vergelijk: Active Directory

! database van network-resources

! Master/slave servers - “replication”

! LDAP (lightweight directory access protocol)

Page 13: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Accounts

! root: vergelijk Administrator

! standard users: bin adm nobody ...

! users: user private group (UPG) scheme

! /etc/passwd: uid, gid

! /etc/shadow: encrypted password

! /etc/group (vs logingroup)

Page 14: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Home directory / Profile

! info in /etc/passwd

! /home/<username> (op fileserver?)

! Profiel:! displaygebonden profiel (vs roaming)

! onder homedirectory (vs afzonderlijke profiledirectory)

! ~/.kde en ~/Desktop

Page 15: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Permissions

! user, group, others (ugo)

! files: read, write, execute (rwx)

! directories: x=browse, w=create/delete

! UPG scheme (RedHat):! User Private Group

! umask 002 (u=rw-, g=rw-, o=r--)

! setgid bit on group-directories

Page 16: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Boot-sequentie

! BIOS (ROM)

! MBR: load the bootloader (LILO)

! /etc/lilo.conf : boot linux kernel /boot/vmlinuz-<version>

! start the init process ! /etc/rc.d/rc.sysinit

! /etc/inittab

! /etc/rc.d/init.d bootscripts

Page 17: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Run Levels: /etc/inittab

0 : Halt

1 : Single-user mode

2 : Not used (user-definable)

3 : Full multi-user mode

4 : Not used (user-definable)

5 : Full multi-user mode (with an X-based login screen)

6 : Reboot

Page 18: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Bootscripts

! Bijvoorbeeld runlevel 5: /etc/rc.d/rc5.d K01pppoe -> ../init.d/pppoe K05innd -> ../init.d/innd K10ntpd -> ../init.d/ntpd K15httpd -> ../init.d/httpd... S05kudzu -> ../init.d/kudzu S06reconfig -> ../init.d/reconfig S08ipchains -> ../init.d/ipchains S10network -> ../init.d/network

...

Page 19: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

RedHat Package management

! rpm commando

Page 20: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Process management

! ps (pid, ppid)

! top

! kill

! renice (scheduling priority)

Page 21: Linux-oefening Operationele Aspecten van Besturingssystemen Prof. Koen De Bosschere ir. Ronny Blomme

Niet in deze oefening...

! NFS / SAMBA

! SSH / Kerberos

! Automated tasks: cron

! BIND / Sendmail

! Webserver: Apache

! Kernel-configuratie

! ...