110 likes | 125 Views
Lab 1 introduction, debrief. Information Systems 337 Prof. Harry Plantinga. Lab 1: Linux, Apache. We’ll use Linux for this course First lab Set up your Linux environment Learn some Linux commands Configure apache Publish a first Web page. Virtual Machines.
E N D
Lab 1 introduction, debrief Information Systems 337 Prof. Harry Plantinga
Lab 1: Linux, Apache • We’ll use Linux for this course • First lab • Set up your Linux environment • Learn some Linux commands • Configure apache • Publish a first Web page
Virtual Machines • Each student gets a VM from dreamhost • E.g. job4.calvincs.com • aka vm-is337-04.cs.calvin.edu • aka 153.106.116.174 • Access via ssh • Not in the cs.calvin.edu domain? Connect through cs-ssh.calvin.edu • Set up public/private key pair • Eventually, you’ll publish your site to a web host
Ubuntu Linux • Basic commands: • ssh job4@job4.calvincs.com • ls, cd, pwd, mkdir • mv, rm • chown
Ubuntu Linux • In Ubuntu Linux how would I… • Log in to my computer remotely? • List the files in my home directory? • Create a new directory? • Edit a file, e.g. create a web page? • List the contents of a file? • Move, rename, or delete a file? • Make a file world readable? • Execute a command with root permissions? • Find the IP address of my machine? • Get help on a Linux command? • Install a software package? • Determine what processes are running?
Linux file permissions • Permissions for read, write, and ‘eXecute’ • User, group, world permissions • chmod • chown
Problems… • If you mis-configure a file, your system can stop running • If you forget what you did, you may have to start over from the beginning of the semester… • What to do?
git • git is a source control system – • Make snapshots of your files • Keep old versions • Branches • Reconcile branches • git init • git add * • git commit
Apache • What does apache2 do, exactly? • Where can I get apache2? • In apache2, how would I • Start and stop the server? • Specify what files it will serve? • Specify the default character set? • Enable or disable modules? • View the access or error logs?
Lab 1 debrief • Questions about the lab? • Why abc123@abc123.calvincs.com? • What if your web page doesn’t appear? • How do you install an apache module? • Any gaps on your linux handout? • How to tell if your Web server is running? • How to print info about the network?