Difference between revisions of "Operating Systems (Fall 2014)"

From Soma-notes
Jump to navigation Jump to search
Line 460: Line 460:
     </tr>
     </tr>
</table>
</table>
==Course Software==
In this course we will primarily working with [http://www.lubuntu.net/ Lubuntu], a low-resource variant of [http://www.ubuntu.com/ Ubuntu] Linux distribution.  You may use other Linux distributions in the tutorials to complete the assigned work; there will be differences, however, in some aspects (such as installing software), particularly if you use a distribution not based on Ubuntu or Debian.
===In the labs===
In the SCS labs you should be able to run the course VM by starting Virtualbox (listed in the Applications menu) and selecting the COMP 2406/3000 virtual machine image.  After the VM has fully booted you will be automatically logged into the student account; this account has admin privileges and its password is "tneduts!".
We highly recommend running your VM in full-screen mode (select from the menu, not by maximizing the window).  Do all of your work inside of the VM; it should be fast enough and you won't have any issues with sharing files or with firewalls/network connectivity.
You can save the work you do from the course VM (in the student account) to your SCS account and restore it to any other copy of the class VM (on your machines or in the labs) by running using the following commands:
  save3000 <SCS username>
  restore3000 <SCS username>
  compare3000 <SCS username>
If you use these commands, '''use them consistently'''.  That means run <tt>restore3000</tt> when you first log in, and run <tt>save3000</tt> just before logging out.  If you don't do this, you will '''erase''' the work that you had done previously when you save.
If you forgot to restore and you want to save, try running this:
  rsync -a -v --progress ~/ <SCS username>@access.scs.carleton.ca:COMP3000/
This is the same as the <tt>save3000</tt> command minus the options (--delete and --force) that deletes files in the destination that don't exist in the source.  As a check, you may want to add the <tt>-n</tt> option to do a dry run.
===Running the VM on your own machines===
If you want to run the VM appliance on your own system (running essentially any desktop operating system you want), just download the [http://homeostasis.scs.carleton.ca/~soma/VMs/COMP%202406-3000%20Fall%202014.ova virtual appliance file] and import.  The SHA1 hash of this file is:
  e5613881b28be41f49b82730282d40093388ee71  [http://homeostasis.scs.carleton.ca/~soma/VMs/COMP%202406-3000%20Fall%202014.ova COMP 2406-3000 Fall 2014.ova]
On Windows you can compute this hash for your downloaded file using the command <a href="http://support.microsoft.com/kb/889768"><tt>FCIV -sha1 COMP 2406-3000 Fall 2014.ova</tt></a>.  If the hash is different from above, your download has been corrupted.
If the application is not VirtualBox, you'll need to:
* Have the VM platform ignore any errors in the structure of the appliance found during the import process;
* Uninstall the VirtualBox guest additions by typing starting a terminal application and running
  sudo apt-get purge virtualbox-guest-x11 virtualbox-guest-utils
* Install your platform's own Linux guest additions, if available.

Revision as of 06:39, 5 September 2014

Course Outline

Here is the course outline for COMP 3000: Operating Systems.

Lectures

The course will be using the textbook Operating Systems: Three Easy Pieces. The chapters of this textbook are available for free online; you can also buy a full epub, PDF, or paper copy if you wish.

Lectures and Exams

The course will be using the textbook Operating Systems: Three Easy Pieces. The chapters of this textbook are available for free online; you can also buy a full epub, PDF, or paper copy if you wish.


Date

Topic

Jan. 8

Lecture 1

Jan. 10

Lecture 2

Jan. 15

Lecture 3

Jan. 17

Lecture 4

Jan. 22

Lecture 5

Jan. 24

Lecture 6

Jan. 29

Lecture 7

Jan. 31

Lecture 8

Feb. 5

Lecture 9

Feb. 7

Lecture 10

Feb. 12

Midterm Review

Feb. 14

Midterm (in class)

Feb. 26

Lecture 12

Feb. 28

Lecture 13

Mar. 5

Lecture 14

Mar. 7

Lecture 15

Mar. 12

Lecture 16

Mar. 14

Lecture 17

Mar. 19

Lecture 18

Mar. 21

Lecture 19

Mar. 26

Lecture 20

Mar. 28

Lecture 21

Apr. 2

Lecture 22

Apr. 4

Lecture 23

April 21, 12-1:30 PM

Exam Review, LA C164

April 24, 9 AM

Final Exam, FH Rows 1-8 (solutions)

Tutorials

Each week you will get a progress grade from 0-4, given to you by a TA. If you are being diligent, you should be able to get 4's every week. The easiest way to get your grade is to come to tutorial and meet with your TA; alternately, you can meet a TA in their office hours or, at their discretion, discuss things with them online.

Date

Tutorials

Jan. 9, 10, 13

Setup VMs, Run node.js, JavaScript basics

Jan. 16, 17, 20

Web Form demo

Jan. 23, 24, 27

Session demo

Jan. 30, 31, Feb. 3

Secure, Persistent Sessions

Feb. 6, 7, 10

Adventure Demo

Feb. 27, 28, Mar. 3

AJAX Adventure

Mar. 6, 7, 10

Adventure Editor

Mar. 13, 14, 17

Letterpaint Demo

Mar. 20, 21, 24

Tiny web server

Mar. 27, 28, 31

Web Sockets

Apr. 3, 4, 7

No Tutorial, office hours in lab

Assignments

Due Date

Assignments

Jan. 30, 4 PM

Assignment 1

Feb. 12

Assignment 2

Mar. 22 (extended)

Assignment 3

Apr. 4

Assignment 4

Course Software

In this course we will primarily working with Lubuntu, a low-resource variant of Ubuntu Linux distribution. You may use other Linux distributions in the tutorials to complete the assigned work; there will be differences, however, in some aspects (such as installing software), particularly if you use a distribution not based on Ubuntu or Debian.

In the labs

In the SCS labs you should be able to run the course VM by starting Virtualbox (listed in the Applications menu) and selecting the COMP 2406/3000 virtual machine image. After the VM has fully booted you will be automatically logged into the student account; this account has admin privileges and its password is "tneduts!".

We highly recommend running your VM in full-screen mode (select from the menu, not by maximizing the window). Do all of your work inside of the VM; it should be fast enough and you won't have any issues with sharing files or with firewalls/network connectivity.

You can save the work you do from the course VM (in the student account) to your SCS account and restore it to any other copy of the class VM (on your machines or in the labs) by running using the following commands:

 save3000 <SCS username>
 restore3000 <SCS username>
 compare3000 <SCS username>

If you use these commands, use them consistently. That means run restore3000 when you first log in, and run save3000 just before logging out. If you don't do this, you will erase the work that you had done previously when you save.

If you forgot to restore and you want to save, try running this:

  rsync -a -v --progress ~/ <SCS username>@access.scs.carleton.ca:COMP3000/

This is the same as the save3000 command minus the options (--delete and --force) that deletes files in the destination that don't exist in the source. As a check, you may want to add the -n option to do a dry run.

Running the VM on your own machines

If you want to run the VM appliance on your own system (running essentially any desktop operating system you want), just download the virtual appliance file and import. The SHA1 hash of this file is:

 e5613881b28be41f49b82730282d40093388ee71  COMP 2406-3000 Fall 2014.ova

On Windows you can compute this hash for your downloaded file using the command <a href="http://support.microsoft.com/kb/889768">FCIV -sha1 COMP 2406-3000 Fall 2014.ova</a>. If the hash is different from above, your download has been corrupted.

If the application is not VirtualBox, you'll need to:

  • Have the VM platform ignore any errors in the structure of the appliance found during the import process;
  • Uninstall the VirtualBox guest additions by typing starting a terminal application and running
  sudo apt-get purge virtualbox-guest-x11 virtualbox-guest-utils
  • Install your platform's own Linux guest additions, if available.