Prak%kum The Bioinforma%cs Lab Week 1: Installing a Linux - - PowerPoint PPT Presentation

prak kum the bioinforma cs lab week 1 installing a linux
SMART_READER_LITE
LIVE PREVIEW

Prak%kum The Bioinforma%cs Lab Week 1: Installing a Linux - - PowerPoint PPT Presentation

Prak%kum The Bioinforma%cs Lab Week 1: Installing a Linux OS Stefan Seemayer Boot CD prepara%on Can boot from USB s%ck (on most


slide-1
SLIDE 1

Prak%kum ¡“The ¡Bioinforma%cs ¡Lab” ¡ Week ¡1: ¡Installing ¡a ¡Linux ¡OS ¡ ¡

Stefan ¡Seemayer ¡

slide-2
SLIDE 2

Boot ¡CD ¡prepara%on ¡

  • Can ¡boot ¡from ¡USB ¡s%ck ¡ ¡

(on ¡most ¡systems, ¡but ¡not ¡on ¡mine), ¡

  • But ¡burning ¡a ¡CD ¡ISO ¡image ¡is ¡much ¡easier ¡and ¡

more ¡reliable, ¡CD-­‑Rs ¡are ¡cheap ¡

  • Images ¡available ¡from ¡

www.debian.org/distrib/ ¡

  • Security ¡updates ¡need ¡to ¡be ¡applied ¡anyway, ¡

why ¡not ¡download ¡packages ¡from ¡the ¡internet ¡ right ¡away? ¡ ¡ne%nst ¡ISOs ¡

2 ¡

slide-3
SLIDE 3

Par%%oning ¡ ¡(unencrypted) ¡

  • Manual ¡par%%oning ¡is ¡

always ¡recommended ¡

  • Locate ¡USB ¡S%ck ¡ ¡

(e.g. ¡/dev/sdb) ¡ ¡

  • Don‘t ¡touch ¡ ¡

anything ¡else! ¡

  • Empty ¡s%ck ¡
  • Create ¡new ¡par%%ons ¡

3 ¡

/dev/sdb ¡

/boot ¡: ¡512 ¡MB ¡ext3 ¡(bootable) ¡ /swap: ¡512 ¡MB ¡swap ¡area ¡ / ¡: ¡7 ¡GB ¡ext3 ¡ ¡

slide-4
SLIDE 4

Par%%oning ¡(encrypted) ¡

  • Physical ¡volume ¡for ¡

encryp7on ¡ ¡  ¡provides ¡encrypted ¡ logical ¡volume ¡

  • Physical ¡volume ¡for ¡

Logical ¡Volume ¡Manager ¡  ¡provides ¡mul%ple ¡ logical ¡volumes ¡

  • See ¡protocol ¡for ¡full ¡

instruc%ons ¡

4 ¡

/dev/sdb ¡

/boot ¡: ¡512 ¡MB ¡ext3 ¡(bootable) ¡ 7.5 ¡GB ¡phys. ¡vol. ¡for ¡encryp%on ¡ ¡

Logical ¡volume ¡for ¡encryp%on ¡

7.5 ¡GB ¡phys. ¡vol. ¡for ¡LVM ¡

LVM ¡volume ¡group ¡

/swap ¡: ¡512 ¡MB ¡swap ¡area ¡ / ¡: ¡7 ¡GB ¡ext ¡

slide-5
SLIDE 5

Installa%on ¡

  • Everything ¡works ¡smoother ¡with ¡a ¡working, ¡

wired ¡internet ¡connec%on ¡(or ¡you ¡have ¡to ¡ configure ¡network ¡and ¡package ¡mirrors ¡ manually ¡later ¡on) ¡

  • Choose ¡strong ¡root ¡password ¡– ¡a^ack ¡point! ¡
  • Do ¡a ¡minimal ¡installa%on, ¡but ¡choose ¡at ¡least ¡

the ¡“basic ¡system” ¡package ¡for ¡a ¡li^le ¡comfort ¡

  • Bootloader ¡installa%on: ¡manually ¡pick ¡the ¡USB ¡

s%ck ¡Master ¡Boot ¡Record ¡(e.g. ¡/dev/sdb) ¡

5 ¡

slide-6
SLIDE 6

Making ¡it ¡work ¡

  • GRUB ¡boots ¡the ¡wrong ¡par%%on ¡

– Run-­‑%me ¡volume ¡numbers ¡<-­‑> ¡install-­‑%me ¡numbers ¡ – Edit ¡boot ¡entry ¡and ¡guess ¡hard ¡disk ¡numbers ¡(hdX, ¡0) ¡ – Upgrade ¡to ¡GRUB2 ¡(unique ¡volume ¡IDs ¡to ¡iden%fy ¡ volumes): ¡$ ¡aptitude ¡install ¡grub2 ¡ ¡

  • Encrypted ¡volumes ¡cannot ¡be ¡found ¡

– On ¡Kernel ¡load, ¡it ¡takes ¡some ¡%me ¡for ¡USB ¡device ¡to ¡ work ¡ – Add ¡%meout ¡to ¡boot ¡op%ons ¡so ¡that ¡encrypted ¡ volume ¡data ¡can ¡be ¡found: ¡rootdelay=10 ¡ – Make ¡permanent ¡by ¡edi%ng ¡/boot/grub/grub.cfg ¡

6 ¡