Module 1

From CSE330 Wiki
Revision as of 07:38, 1 December 2012 by Shane (talk | contribs) (→‎Assignments)
Jump to navigationJump to search

In Module 1, you will learn about Linux System Administration, and you will set up a web server on Amazon Web Services.

This article contains your assignments for Module 1.


Learn About Linux

Linux is an open-source operating system based on UNIX. Linux is highly versatile and is used in a wide range of applications.

If you are not a Linux guru, read the Linux guide to get started: Linux

Create an AWS EC2 Instance

Once you understand Linux, you need to set up your Amazon EC2 Instance. Use the AWS article to guide you through the process: Amazon Web Services

Configuring Your Instance

Installing Essential Packages

Recall that software installation in Linux instances is usually handled through apt (Debian) or yum (RHEL). For more information, refer to the Linux guide.

To make sure everything is working properly, install your first package(s) according to the Essential Packages subsection in the Linux guide above.

Add your Own User Account

On your EC2 instance, set up your own personal account.

For information on how to add a user account, see the Linux guide: Linux#User Management

You need to do the following things once you've created your account:

  1. Add your account to the Sudoers list. Instructions are in the Linux guide.
  2. Allow your user to log in via SSH. Instructions are in the Web Server Configuration guide: Web Server Configuration

From now on, you should log into your EC2 instance using only your own username and not the default username that Amazon gives you (ec2-user or ubuntu).

Set the Timezone

Set your server to use US Central time. Instructions are in the Linux guide: Linux#Synchronizing Date and Time

Set Up the Apache Web Server

You need to install the Apache web server on your EC2 instance. Instructions are in the Web Server Configuration guide: Web Server Configuration#Apache

In order for your web server to be accessible, you need to open up Port 80 on your EC2 instance. Instructions are in the AWS guide: Amazon Web Services#Enabling Web Access to your EC2 Instance

Enable the UserDir module in Apache. Instructions are in the Web Server Configuration guide: Web Server Configuration#Enabling the UserDir Module

Remap the UserDir module to .html Instructions are also in the Web Server Configuration guide in the same section as above.

Set Up Subversion

You need to set up subversion on your EC2 instance as well as your desktop.

This semester's Subversion repository is:

  • Replace Lastname with your last name (capitalize the first letter in the last name) and studentid with your student ID
  • Do not forget the underscore between cse330 and fl12 (NOT A SPACE)

Instructions for configuring Subversion are in the Web Server Configuration guide: Web Server Configuration#Subversion


Due Date: Sept 10th 2012 by 1 PM

If you have questions, head on over to the CSE 330 Google Group. The TA's will be busy grading on Monday and likely won't be able to provide assistance in class.

Make sure to read the Web Server Configuration wiki for more specific instructions on tasks 3 and 4: Web Server Configuration

You will be asked to do the following in front of a TA (you should make sure everything is working properly and you know what to do before you sign up to demo):

  1. Connect to your ec2 instance
  2. Display the current time on your ec2 instance
  3. Show the test file at (note that ~yourUserName cannot be ec2-user!)
  4. Show the text helloFrom___ files connected to your subversion repository. You will be asked to make and commit changes in front of the TA.

Assignment Points
Creating your VM 1
Working SSH 1
Working user account 1
Working NTP (correct time zone) 1
Remap userdir 1
Apache Setup 1
SVN setup on Amazon Instance 1
SVN setup on Eclipse 1

There is a 1 point penalty for each day late. Do not come to class at 12:59 and expect a TA to be available.