CS 1301 Fall 2008 Lab 2 Introduction to UNIX

Similar documents
CS 1301 Lab 2 Introduction to Webservers at GaTech

CS 200. User IDs, Passwords, Permissions & Groups. User IDs, Passwords, Permissions & Groups. CS 200 Spring 2017

CMPSCI 120 Fall 2017 Lab #1 Professor William T. Verts

CMPSCI 120 Fall 2013 Lab #2 Professor William T. Verts

CS CS Tutorial 2 2 Winter 2018

LAB #5 Intro to Linux and Python on ENGR

CMSC 201 Spring 2017 Lab 01 Hello World

CMSC 201 Spring 2018 Lab 01 Hello World

Remote Access to Unix Machines

Setting up my Dev Environment ECS 030

STAT 625: Statistical Case Studies

Session 1: Accessing MUGrid and Command Line Basics

oit Using HTPASSWD to Password Protect Pages on Campus Web Server Web sites UMass Offi ce of Information Technologies

oit

:

Find out where you currently are in the path Change directories to be at the root of your home directory (/home/username) cd ~

File Transfer with SSH

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011

Using Blackboard Drive to upload/manage content in Blackboard Learn

LAB 0: LINUX COMMAND LINE AND SVN

User Guide Version 2.0

Contact No office hours, but is checked multiple times daily. - Specific questions/issues, particularly conceptual

sftp - secure file transfer program - how to transfer files to and from nrs-labs

CS Operating Systems, Fall 2018 Project #0 Description

Principles of Bioinformatics. BIO540/STA569/CSI660 Fall 2010

CSC 101: Lab #1 Introduction and Setup Due Date: 5:00pm, day after your lab session

Datathon 2018 Connecting to MicroStrategy on AWS Cloud

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

STA 303 / 1002 Using SAS on CQUEST

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) First Name: Last Name: NetID:

About shells and command lines

Your departmental website

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

Introduction to the Linux Command Line

Cmpt 101 Lab 1 - Outline

Your Mission: Connect to a remote Linux target(s) disk using F-Response Consultant Edition.

ECE 2036 Lab 1: Introduction to Software Objects

Operating System Interaction via bash

CS101 Lecture 05: The World Wide Web. What You ll Learn Today Computer Science

Turn-in your project from your Windows PC

Adobe Dreamweaver CC 17 Tutorial

Intro. To Unix commands. What are the machines? Very basics

Bitnami MEAN for Huawei Enterprise Cloud

CSE 391 Editing and Moving Files

Dreamweaver MX 2004 Introduction

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

CSCI 201 Lab 1 Environment Setup

CSC209. Software Tools and Systems Programming.

File Upload Instructions Customer Access To Transcript Bulletin Publishing s FTP Site

CS 2316 Homework 9a Login Due: Friday, November 2nd, before 11:55 PM Out of 100 points. Premise

Adobe Dreamweaver CS5 Tutorial

CS Fundamentals of Programming II Fall Very Basic UNIX

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "

9 and 11-Jan CSCI 4152/6509 Natural Language Processing Lab 1: FCS Computing Environment, SVN Tutorial. FCS Computing Environment, SVN Tutorial

UoW HPC Quick Start. Information Technology Services University of Wollongong. ( Last updated on October 10, 2011)

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

One of the hardest things you have to do is to keep track of three kinds of commands when writing and running computer programs. Those commands are:

UNIVERSITY OF NORTH TEXAS DEPARTMENT OF LEARNING TECHNOLOGIES SPRING

ORF 201 Computer Methods in Problem Solving. Lab 2: My House, My Home (Page)

Subversion was not there a minute ago. Then I went through a couple of menus and eventually it showed up. Why is it there sometimes and sometimes not?

CSC209. Software Tools and Systems Programming.

CSE115 Lab exercises for week 1 of recitations Spring 2011

WinSCP. Author A.Kishore/Sachin

An Introduction to Cluster Computing Using Newton

SBCC Web File System - Xythos

Setting up PuTTY. CTEC1767 Data Communications & Networking CTEC1863 Operating Systems CTEC1906 Internet Computing

ECE112 - Lab 6. Purpose. Parts/tools needed: Make sure we have a properly working environment

Linux at the Command Line Don Johnson of BU IS&T

SIMICART USER GUIDE SERIES. SimiCart Install SimiConnector

When you first log in, you will be placed in your home directory. To see what this directory is named, type:

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

Parallel Programming Pre-Assignment. Setting up the Software Environment

CS101 Lecture 04: How the Web Works Publishing Web pages. What You ll Learn Today

Introduction. Overview of 201 Lab and Linux Tutorials. Stef Nychka. September 10, Department of Computing Science University of Alberta

You should see something like this, called the prompt :

DogeCash Masternode Setup Guide Version 1.2 (Ubuntu 16.04)

Introduction. Installation. Version 2 Installation & User Guide. In the following steps you will:

Working Outside the Lab

: the User (owner) for this file (your cruzid, when you do it) Position: directory flag. read Group.

Remote Access to Matlab at Mason. CDS-130: Computing for Scientists. Spring Jie Zhang

How to set up your wireless network

Bitnami Apache Solr for Huawei Enterprise Cloud

CHE3935. Lecture 1. Introduction to Linux

Setting up PuTTY. Version Updated for 2015 Fall (with corrections)

Setting up PuTTY. Software* Downoad PuTTY. Download PuTTY Download the putty.zip file. It contains several programs for SSH, SFTP, and SCP.

CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C

Spring 2017 Gabriel Kuri

Saint Louis University. Intro to Linux and C. CSCI 2400/ ECE 3217: Computer Architecture. Instructors: David Ferry

Step 1: Adding Darwin to your computer

FTP Frequently Asked Questions

COSC UNIX. Textbook. Grading Scheme

Automatic Creation of a Virtual Network with VBoxManage [1]

DropSend Getting Started Guide

Human-Computer Interaction Design

Lab 2 Building on Linux

Cheat Sheet on using Electric for Design and Simulations

Lab 5: Dreamweaver CS5, Uploading your Web site

Firewalls can prevent access to the Unix Servers. Please make sure any firewall software or hardware allows access through Port 22.

Lab 1: Getting Started with Linux The Extremely Illustrated Version. Graham Northup

Setting up PuTTY. Software* Download PuTTY 6/9/18. Microsoft Windows 7 (64-bit) PuTTY 0.70 (64-bit) PuTTYgen 0.70 (64-bit) WinSCP 5.13.

Transcription:

CS 1301 Fall 2008 Lab 2 Introduction to UNIX Due: Friday, September 19 th, at 6 PM (Monday, September 22 nd for 10% off) Notes: Do not wait until the last minute to do this assignment in case you run into problems. If you find an error in the homework assignment, let a TA know immediately. Background: Chances are that as you read this, you are using a computer running either Windows or Mac OS. However, what about other types of computer operating systems? In this lab, you will get a chance to interact with computers running the UNIX operating system using a console. Though you may not know it, the server where you get your e-mail, the server providing the website from which you downloaded this file, and countless others on the GT campus all run UNIX or some derivative thereof. Another interesting fact that you may not know: Georgia Tech provides a place for you to place a website, again on a UNIX machine. If you want to know more in-depth info for UNIX, see the other document for this lab. However, if you want to just jump into it, keep reading. If you ve used UNIX before, please do not be offended if we seem to be taking baby steps this is intended for those new to this stuff. Your Mission, Should You Choose To Accept It (acceptance recommended) Connect to the Georgia Tech acme system and familiarize yourself with the UNIX console. Create a public_html directory and lu.txt, containing information about yourself from the GT Directory. Place a copy of the CoC logo (coc.gif) in your public Georgia Tech webspace. Note: No T-Square submission is needed for this lab! Continue reading to see how easily these goals may be accomplished! This message will *not* self-destruct in 10 seconds. Sorry to disappoint you, there. Some Basic Terminology SSH This stands for Secure SHell. It allows you to securely connect to a remote UNIX server and log in to a console interface, where you can manipulate files, directories, and programs. Lab 3 CS 1301 Fall 2008 Page 1/6

SCP This is the Secure Copy Protocol. It allows you to connect to the server and upload/download files from it. Necessary Software Windows Users: The PuTTY SSH client is recommended for this lab. You can download it (it s just a simple.exe file) from here: http://www.puttyssh.org/ You could also SecureCRT 5.1.4 if you desire. You may download it for free from OIT at https:// software.oit.gatech.edu/request.php. For transferring files using SCP, we strongly recommend WinSCP. It allows you to copy files around using a simple, drag-and-drop interface. You can get it here: http://www.winscp.net/ (download the latest Installation Package on the download page). WinSCP is also available from http://software.oit.gatech.edu (though it is an older version). WinSCP will be especially useful in a future lab. More instructions on using these programs follow. Mac Users: You guys have it easier! As it turns out, modern Mac computers are secretly UNIX machines too! Thus, you already have what you need for SSH built-in. (So you do not need to download the putty program.) Be sure you know how to find and open the terminal program on your computer: (In the Dock click Finder -> Applications -> Utilities -> Terminal, or type Terminal into search). To connect to the server, all you will need to do is type this into the terminal: ssh yourusername@acme.gatech.edu Replace yourusername with your Georgia Tech account username (Such as gtgxxxx or gburdell3). When you connect, it will ask you for your password (your normal GT password). For transferring files using SCP, you can use FUGU. (This is comparable to WinSCP for Windows machines.) Download it here: http://rsug.itd.umich.edu/software/fugu/download.html If you re on Linux, follow the above Mac instructions. For SCP, ask someone if you need help. Part 1 Making Connections Lab 3 CS 1301 Fall 2008 Page 2/6

As hinted at above, Georgia Tech runs the acme system for public UNIX access. This server is available at the address acme.gatech.edu. The Prism server, located at http://www.prism.gatech.edu, is the web server that serves the files you want on the Internet. So, how do we connect to Acme? If you are on a Mac, see the Mac software instructions, above, to connect to the server using SSH in Terminal. If you are on Windows, fire up PuTTY. You will be presented with a dialog box asking you for a hostname, a port, and a connection type. Fill out the top of the dialog like this: After this, click connect. A new window will appear with a black background and white text, asking you for your GT username and password. If you enter them correctly you should be presented with a screen much like this: You re in! For everyone: At this point, for ease of use, type: bash This will appear to do nothing except provide you with a slightly different prompt. The difference is that bash will let you backspace and copy-paste commands easily. Part 2 Using the Shell For this part, you will create your publicly-accessible website directory, called public_html, and create a file to go in it. First, in your nifty new SSH shell, type: ls Congrats, your first UNIX command! This will list the files in the current directory (a.k.a. folder) on the acme server. If you have never used acme or your prism space before, there will not likely be much if anything there. We re going to change that! Note if you see a folder named public_html listed. If you do not already have a public_html folder (if you don t know what it is or have never used this before, you probably don t), type this: mkdir public_html Lab 3 CS 1301 Fall 2008 Page 3/6

You ve created a new directory (or folder) called public_html. Anything that goes in this folder will be made accessible on the Internet by the Prism web server. Next, execute these commands: chmod go+x ~/public_html chmod go+x ~ UNIX has file permission settings that control access to your files (including your access!). We need to make sure that the web server can access your stuff. The chmod command changes these settings. What you have basically done here is made your home directory (represented by a ~) and your new public_html directory executable for everyone. Good. Now type lu followed by your GT username. An example: lu gburdell3 lu stands for lookup. When you run this command, public information from the GT directory about you will display on the screen. Try this on a few of your friends for kicks if you want. Now, we want you to store this information in a file. First, change directories to your new public_html directory using the command: cd ~/public_html Now, type: lu yourusername > lu.txt (replacing yourusername with your username.) You won t see anything print out to the screen this time. Why not? Well, the > lu.txt part told the operating system to take the output of the lu command and store it in the file lu.txt. Cool, huh? To make sure that your new lu.txt file is also readable by the world, type the following: chmod go+r lu.txt Go to http://www.prism.gatech.edu/~yourusername/lu.txt (make sure to leave the ~!) and, if you ve done everything correctly, witness the awesomeness that is your GT directory data displayed to the world. If you get a 403 or 404 error, you ve made a mistake. (Please let us know if you keep having this issue we can help you fix it!) Part 3 Using SCP for File Transfers Our objective here is to transfer a small image to your public_html folder to show you how you would do this for the real web page you will build in a future lab. 1) Point your browser to the following URL: http://wwwstatic.cc.gatech.edu/classes/ay2008/cs1301_spring/labs/coc.gif Lab 3 CS 1301 Fall 2008 Page 4/6

Download a copy of this image to your computer, somewhere where it can be easily found in a moment when it is time to upload. Do not change the filename; leave it as coc.gif. By the way - please don t modify the image in any way, shape, or form prior to uploading it. 2) To begin the process of transferring this charming College of Computing logo to your webspace, fire up your WinSCP (if on Windows) or FUGU (if on Mac). For hostname, enter acme.gatech.edu, make sure that you re using SCP, and enter your GT username/password. Tell it to connect. If the connection works, you will be presented with a simple drag-and-drop interface with your computer files listed on the left and your home directory and the files you have on the acme system on the right. Above is a screenshot of roughly what this should look like in WinSCP. If you completed Part 2 correctly, there should be a public_html directory on the right side of the screen. Click it to switch to that directory. On the left side of your SCP program be sure you can see coc.gif change directories to find it if needed. Then, simply drag-and-drop the image file from your computer (left side) to your account on the GT server (right side). Now, set permissions. Right-click on the image file on the server (right side) and locate the file properties. If in FUGU, click the properties tab of the dialog that appears; if using WinSCP the properties checkboxes should be at the bottom. Then, make sure all of the Read or R checkboxes are selected, and click OK to save. This should make the image file readable/viewable by the world. Again, go visit 1) http://www.prism.gatech.edu/~yourusername/lu.txt 2.) http://www.prism.gatech.edu/~yourusername/coc.gif Make sure both work and are visible. If it does, rock on you have learned how to use SCP properly, and will have a useful skill ready to go for the next lab. Lab 3 CS 1301 Fall 2008 Page 5/6

Good luck! If you need help, all of the normal sources of assistance (your TAs, office hours, etc) are available. Again, there is nothing to turn in on T-Square; you have done it correctly if you can access both lu.txt and coc.gif in your public_html directory from the web. Make sure that you get this done before the deadline! Note: Once this assignment is due, do not alter anything relating to your public_html folder or those files. Doing so will change the date on those files. If the date is past the due date, you will receive 0. Seriously, no exceptions. So yes, this means, do not go back and edit something or move things around in that folder! Based on previous 1321/1301 Unix labs. Rewritten and remixed by Eric Goodwin, Spring 2008 Lab 3 CS 1301 Fall 2008 Page 6/6