Difference between revisions of "Fall 2008 SYA710 Weekly Schedule"

From CDOT Wiki
Jump to: navigation, search
(Week 5 (Sept 29) - Building a New Kernel)
(Week 12 (Nov 24) - Making Live CDs)
 
(25 intermediate revisions by 3 users not shown)
Line 58: Line 58:
 
== Week 4 (Sept 22) - Linux Package Management ==
 
== Week 4 (Sept 22) - Linux Package Management ==
 
* Activity for this week
 
* Activity for this week
Each student should add one correct item to the table below and email your teacher detailing your contribution. Don't forget your Seneca ID in the email. This will count as Lab 03.
+
Each student should add one correct item to the table below and email your teacher detailing your contribution. Don't forget your Seneca ID in the email. This will count as [[SYA710 Lab 03]].
  
 
<table class="News" border="1">
 
<table class="News" border="1">
Line 183: Line 183:
 
<td class="News" style="width: 20%; text-align: left;">-</td>
 
<td class="News" style="width: 20%; text-align: left;">-</td>
 
<td class="News" style="width: 20%; text-align: left;">pkcon get-details <pkg name></td>
 
<td class="News" style="width: 20%; text-align: left;">pkcon get-details <pkg name></td>
 +
</tr>
 +
<tr>
 +
<td class="News" style="text-align: left; width: 20%;">Print a picture of a cow</td>
 +
<td class="News" style="width: 20%; text-align: left;">apt-get moo</td>
 +
<td class="News" style="width: 20%; text-align: left;">-</td>
 +
<td class="News" style="width: 20%; text-align: left;">-</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 189: Line 195:
  
 
* Activity for this week
 
* Activity for this week
** Please do lab 05
+
** Please do [[SYA710 Lab04]]
* download source from kernel.org
+
** Here's some notes on [[SYA710 Building a New Kernel]]
** wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2
+
** Also some notes on [[SYA710 Booting with GRUB]]
* unpack source
+
* Concepts/Commands learned/used in this week's lecture
** tar xvjf linux-2.6.26.tar.bz2
+
** ar command - usually used to archive object files
* create configuration (.config) file
+
*** ar t /usr/lib/libz.a
** cd linux-2.6.26
+
** cpio command to copy files to/from archives
** cp /proc/config.gz .
+
*** cat initrd-uncompressed-file | cpio -i
** gzip -d config.gz
+
** ldd command to print shared library dependencies
** mv config .config
+
*** ldd /usr/bin/ssh
** make oldconfig
+
 
* customize your configuration
+
== Week 6 (Oct 6) - Automated Installations ==
** make menuconfig
 
* compile kernel and modules
 
** make
 
* copy kernel image to /boot
 
** cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.26
 
* copy system map to /boot
 
** cp System.map /boot/System.map-2.6.26
 
* install the modules
 
** make modules_install
 
* create initial ram disk image
 
** mkinitrd -k vmlinuz-2.6.26 -i initrd-2.6.26
 
* update GRUB
 
** vi /boot/grub/menu.lst
 
* reboot
 
<br />
 
<h4>How to boot up Fedora 9 from /dev/sdb in room T2107</h4>
 
These instructions assume that Fedora 9 has been installed on /dev/sdb with the following partition setup:<br />
 
/dev/sdb1 = /boot<br />
 
/dev/sdb2 = /<br />
 
/dev/sdb3 = swap<br />
 
/dev/sdb4 = extended<br />
 
/dev/sdb5 = /home<br />
 
  
Boot up the system and when the data recovery card displays a menu of OS choices, choose Fedora 8.  A boot screen will be displayed with a 3 second countdown before booting. Press the <ESC> key before the countdown reaches 0. Another menu is displayed listing two Fedora 8 kernels to boot from:
+
* Activity for this week
* Fedora (2.6.24.5-85.fc8)
+
** Complete [[SYA710 Lab05]]
* Fedora (2.6.24.4-64.fc8)
+
* Automating Linux Installations
<p>Do not choose either of these. Instead press the "c" key to display a command line.  Issue the following commands:</p>
+
** [[http://faiwiki.informatik.uni-koeln.de/index.php/Main_Page Debian Fully Automatic Installation]]
<b>
+
** [[http://fedoraproject.org/wiki/Anaconda/Kickstart Fedora Kickstart]]
root (hd1,0)<br />
+
** [[http://en.opensuse.org/AutoYaST Opensuse AutoYaST]]
kernel /vmlinuz-2.6.26.5-45.fc9.i686 root=/dev/sdb2<br />
+
** [[http://docs.sun.com/app/docs/doc/817-5506 SUN Solaris Jumpstart]]
initrd /initrd-2.6.26.5-45.fc9.i686.img<br />
+
** HD Cloning
boot<br />
+
*** [[SYA710 SSH | Using ssh]]
</b>
+
*** [[http://udpcast.linux.lu/ UDPCast]]
<p>Fedora 9 will now boot.</p>
+
*** [[http://www.clonezilla.org/ Clonezilla]]
OR - another way
+
*** [[http://www.partimage.org/Main_Page Partimage]]
<p><b>
 
root (hd1,1)<br />
 
kernel (hd1,0)/vmlinuz-2.6.26.5-45.fc9.i686<br />
 
initrd (hd1,0)/initrd-2.6.26.5-45.fc9.i686.img<br />
 
boot<br />
 
  
== Week 6 (Oct 6) - Automated Installations ==
 
 
== Week 7 (Oct 13) - Midterm Test ==
 
== Week 7 (Oct 13) - Midterm Test ==
 +
 +
* The second half of our midterm test is scheduled for Tuesday, November 25, 2008. This test is worth 20% of your final mark. You will be allowed to bring in one letter-sized, hand-written original reference sheet. No electronic aids are allowed. The test will take place in room S2149 starting at 11:45am. Test will end at 1:15pm.
 +
* Test topics will include all material covered up to end of lab 5.
 +
* Here is one example [[SYA710-midterm | question]] - feel free to add more.
 +
* Here's our [[SYA710-test2 | 2nd test]] held on Nov 25, 2008
 +
* Now it's your turn to add [[SYA710-student-questions | test questions]].
 +
 
== FSOSS and Break Week (Oct 20) ==
 
== FSOSS and Break Week (Oct 20) ==
  
 
== Week 8 (Oct 27) - Virtual Machines ==
 
== Week 8 (Oct 27) - Virtual Machines ==
 +
 +
* Activities for this week
 +
** Please complete [[SYA710 Lab06]]
 +
* Virtual Machines
 +
** [[http://en.wikipedia.org/wiki/Virtual_machine Wikipedia Article]]
 +
 
== Week 9 (Nov 3) -  VM Management==
 
== Week 9 (Nov 3) -  VM Management==
 +
 +
* [[http://www.vmware.com VMware]]
 +
* [[http://www.virtualbox.org Virtual Box]]
 +
* [[http://virt-manager.et.redhat.com/ Virtual Machine Manager]]
 +
 
== Week 10 (Nov 10) - Creating Custom Spins ==
 
== Week 10 (Nov 10) - Creating Custom Spins ==
 +
* Making your own custom (spin) Fedora CD
 +
** Please complete [[SYA710 Lab07]]
 +
 
== Week 11 (Nov 17) - More Spinning ==
 
== Week 11 (Nov 17) - More Spinning ==
 
== Week 12 (Nov 24) - Making Live CDs ==
 
== Week 12 (Nov 24) - Making Live CDs ==
 +
* Making your own Fedora Live CD
 +
** Please do [[SYA710-lab08 | Lab08]]
 +
REFERENCE:
 +
[http://fedoraproject.org/wiki/How_to_create_and_use_Fedora_LiveCD Fedora LiveCD How TO ]
 +
 
== Week 13 (Dec 1) - Exam review ==
 
== Week 13 (Dec 1) - Exam review ==
 
== Exam Week (Dec 8) ==
 
== Exam Week (Dec 8) ==
  
 
[[Category:LUX]]
 
[[Category:LUX]]

Latest revision as of 14:09, 2 December 2008

The tentative weekly schedule shown here is subject to change.

Week 1 (Sept 1) - Intro to SYA710 / Installing Linux

  • Course introduction
  • Introduction to Open Source and Linux
  • Introduction to our labs
    • Lab T2107 - data recovery cards
  • Activities for this week
    • Set up your accounts as described on the LUX Communication page.
    • Complete the SYA710 Lab #0 and blog about the experience.
    • Lab #0 is due before midnight Wednesday, September 10, 2008

Week 2 (Sept 8) - File Systems and Logical Volume Management

  • Activities for this week
    • Complete the SYA710 Lab01 and blog about the experience.
    • Lab01 is due before midnight Wednesday, September 17, 2008
  • Concepts/Commands learned/used in this week's lecture
    • File System: A way to organize data for efficient and easy access
    • Containers: Objects (partitions, files, volumes) that hold file systems
    • Virtual File System: Allows transparent access to files on different file systems
    • Commands: mkfs, fsck, fdisk, mount, umount, e2label, resize2fs
  • Using UUIDs (universally unique identifiers)
    • 128-bit numbers make hard disk management easier
    • add UUID= entry in /etc/fstab
    • Linux file systems support UUIDs, Windows not so much
    • Commands: blkid, vol_id, uuidgen, tune2fs, findfs
  • Working with Logical Volumes (LVM)
    • Physical Volumes (eg partitions) are joined into Volume Groups
    • Logical Volumes are drawn from Volume Groups
    • Commands: pvcreate, vgcreate, lvcreate

Week 3 (Sept 15) - Linux Startup

  • Activities for this week
    • Complete the SYA710 Lab02 and blog about the experience.
    • Lab02 is due before midnight Wednesday, September 24, 2008
  • Concepts/Commands learned/used in this week's lecture
    • Linux Boot Process
      • Power on - Code in ROM BIOS finds and loads 1st stage loader from boot device (MBR)
      • 1st stage loader finds and loads 2nd stage loader (GRUB)
      • 2nd stage loader finds and loads Linux kernel and initial ram disk
      • kernel checks the system hardware, mounts the root device and loads the needed kernel modules
      • kernel runs init program (PID=1)
    • Init Process (System V)
      • init reads /etc/inittab to get default run level
      • init runs rc
      • rc runs runlevel scripts
    • Init Process (Upstart)
      • init gets jobs/tasks from /etc/events.d/
      • init emits startup event to start system
      • init waits for more events
      • fully compatible with System V

Week 4 (Sept 22) - Linux Package Management

  • Activity for this week

Each student should add one correct item to the table below and email your teacher detailing your contribution. Don't forget your Seneca ID in the email. This will count as SYA710 Lab 03.

Task Ubuntu - apt Opensuse - zypp Fedora - yum/pkcon
Install  a package apt-get install <pkg> zypper install <pkg> yum install <pkg>
pkcon install <pkg>
Remove a package apt-get remove <pkg> zypper remove <pkg> yum erase <pkg>
pkcon remove <pkg>
Update package list apt-get update zypper refresh yum check-update
pkcon get-updates
Update system apt-get upgrade zypper update yum update
pkcon update-system
List all repositories cat /etc/apt/sources.list zypper repos yum repolist
Add a repository (edit /etc/apt/sources.list) zypper addrepo <path> <name> (add <repo> to /etc/yum.repos.d/)
Assuming "yes" in all prompt atp-get -y zypper assumeyes yum -y
Remove a repository (edit /etc/apt/sources.list) zypper removerepo <name> (remove <repo> from /etc/yum.repos.d/)
Search for a package apt-cache search <pkg> zypper search <pkg> yum search <pkg>
pkcon search details <pkg>
List all installed packages dpkg -l zypper search i * rpm -qa
pkcon get-packages
yum list installed
Display dependency information pkcon get depends <packagename> - yum deplist <packagename>
Look up for a specific package information - - yum info <packagename>
pkcon get description <package_id>
Display Details about the package - - pkcon get-details <pkg name>
Print a picture of a cow apt-get moo - -

Week 5 (Sept 29) - Building a New Kernel

  • Activity for this week
  • Concepts/Commands learned/used in this week's lecture
    • ar command - usually used to archive object files
      • ar t /usr/lib/libz.a
    • cpio command to copy files to/from archives
      • cat initrd-uncompressed-file | cpio -i
    • ldd command to print shared library dependencies
      • ldd /usr/bin/ssh

Week 6 (Oct 6) - Automated Installations

Week 7 (Oct 13) - Midterm Test

  • The second half of our midterm test is scheduled for Tuesday, November 25, 2008. This test is worth 20% of your final mark. You will be allowed to bring in one letter-sized, hand-written original reference sheet. No electronic aids are allowed. The test will take place in room S2149 starting at 11:45am. Test will end at 1:15pm.
  • Test topics will include all material covered up to end of lab 5.
  • Here is one example question - feel free to add more.
  • Here's our 2nd test held on Nov 25, 2008
  • Now it's your turn to add test questions.

FSOSS and Break Week (Oct 20)

Week 8 (Oct 27) - Virtual Machines

Week 9 (Nov 3) - VM Management

Week 10 (Nov 10) - Creating Custom Spins

  • Making your own custom (spin) Fedora CD

Week 11 (Nov 17) - More Spinning

Week 12 (Nov 24) - Making Live CDs

  • Making your own Fedora Live CD

REFERENCE: Fedora LiveCD How TO

Week 13 (Dec 1) - Exam review

Exam Week (Dec 8)