Raise student awareness of computing resources available at the University of Pittsburgh Students will access their Unix account Student will create a web page on their Unix account
Trang 1Computer Resources at Pitt and Introduction to the the Pitt Main Frame Computer
Trang 2Raise student awareness of computing resources available at the University of Pittsburgh
Students will access their Unix account
Student will create a web page on their Unix
account that contains 2 links and one image file Students will learn how to move files with FTP
Class Objectives
Trang 3Falk Library Benedum Hall Cathedral of Learning David Lawrence
Posvar Hall Hillman Library Sutherland Hall Alumni Hall
Computer Labs at Pitt
Trang 4More info at http://technology.pitt.edu/software_hardware.html
Adobe Acrobat Professional ($35) Microsoft Office ($0)
Trang 5CSSD Student Toolkit
CD
Trang 6Students, faculty and staff have access to the Pitt network, including:
an email account and
a unix account
Computer Accounts
Trang 7All Pitt faculty students and staff have access to the Pitt computer store Go there first to buy
Hardware and Software
Computer Store will help with configuration and installation
Computer Services
Trang 8The Technology Help Desk is staffed 24 hours per day, 7 days per week (closed holidays) and serves as a single point of contact for all information technology services
University of Pittsburgh students , faculty and staff can
contact the Help Desk regarding any computer issue
including e-mail, hardware, software, networking, ResNet, University Computer Accounts, computing labs,
and other services
Help desk 624-4357
Technology Help Desk
Trang 9Most Universities run mainframe (huge)
computers that use the unix operating system
If you’re a Pitt student you have a unix account Pitt maintains this account for you, backs up the data, keeps it running 24 hours a day, 7 days week
What’s a Unix Account?
Trang 10Stable
Used by Main Frame Computers
Allows many users to have separate accounts
on the same machine
Used world wide for web servers
UNIX Operating
System
Trang 11Maintained by University
Data backed up each night
Lots of free scientific software has been developed for Unix
Unix is the base for new OS’s for personal computers including Linux and Mac OSX
UNIX Operating
System
Trang 12Student and Faculty have Unix accounts by default
email address = username @ pitt.edu
Trang 13Not as easy to use, therefore less popularBut more powerful too!
UNIX is a Command
Line Environment
Trang 14Maybe you shouldn’t but
Almost all bioinformatics processes are run
in a Unix environment
Lots of FREE software for DNA/protein
sequence analysis is available on Unix
Sharing data/images with colleagues and friends
Why Should I Bother
to Learn Unix?
Trang 15Log on via Telnet ( HSLS programs > Internet aps > Telnet shortcuts > unixs)host = unixs.cis.pitt.edu
Enter username and password at prompt
ls command lists directories and files
How to Access your
Unix Account
Trang 16When you log on, you are in your home
directory
You can always return to your home directory
by typing cd (change directory)
You can go down the directory tree by typing
cd <dirname>
You can go up one level with cd
UNIX uses a Hierarchical
File system
Trang 17Your Home directory should have
directories called public and
Trang 18Basic commands are listed on a web page under Tutorial #1
Everybody should log in to their accounts
Basic UNIX Commands
Trang 19Create directory needed to host web pagesCreate your own web page
Address will be www.pitt.edu/~username
In-Class Exercise
Trang 20The command for creating a new directory
Trang 21Pitt allows web broswers to access web pages in your Unix account
Web pages must be inside a directory called ‘html’ that is located inside your
‘public’ directory
Create the ‘html’
Directory
Trang 22log on to you Unix account
go inside public cd public
create new directory called html
mkdir html
go inside html cd html
Create the ‘html’
Directory
Trang 23The path to a directory is
the listing of all directories
Trang 24The path to your html directory is
public/html
The Unix OS keeps track of your ‘current working directory’
You can always get the complete path by
typing pwd (print working directory)
The abbreviation for the current directory
is ./
More on paths
Trang 25Unix provides several text editors
The easiest to use is ‘pico’
To launch pico, type pico <file1>
If ‘file1’ already exists, you open it and can edit it If file1 does not exist, pico creates it
How do you create or
edit a text file?
Trang 26Pico is a simple text editor
Typing text will enter it into the file
Use the arrow keys to move your cursor
pico commands are listed at the bottom and are invoked with the Cntl key
(^X = Cntl X)
Using PICO
Trang 27Screen Shot of pico
Trang 28More Pico
To exit a file, type Cntl-X (^X)
If the file (buffer) was modified, you will
be asked whether you want to save the
changes The answer is yes (y) or no (n)
You can save to a new name or OVERWRITE the existing name
Once a file is OVERWRITTEN on Unix,
there is no UNDO caution
Trang 29More Pico: ^X
Trang 31Web pages are text files that are meant to
be ‘rendered’ or formatted by a browser
Browsers use HTTP (hypertext transfer
Trang 32HTML uses tags
tags are enclosed in <brackets>
(less than and greater than signs <>)
<b> = start bold text
</b> = stop bold text
HTML Basics
Trang 33<i> italics </i>
<u> underline </u>
Trang 34A Very Basic Web Page
<HTML>
This is my web page!
</HTML>
Trang 35Another Basic Web
Trang 36Make sure you are inside your public/html directory
Edit your page text with pico
Save your page as welcome.html
View your page with a browser The
address will be www.pitt.edu/~username
Make your own page
Trang 37<a href=”http://www.pitt.edu”>Pitt Home page</a>
complete address (URL) = http://www.pitt.edu
Link on your page will say “Pitt Home page”
Add a link to your page
Trang 38<img> tag needs a source of the image, usually a gif
Trang 39View source !!
How do you borrow (steal) from other
sites?
Trang 40View sample web pages on your browsersView source
Sample Web Pages
Trang 41You can create complex web pages using
programs like Microsoft ‘FrontPage’
You can create web pages with Microsoft Word using the save as web page command
Complex Web Pages
Trang 42Pitt allows you to host web pages in your
unix account - free
Your home directory for web pages is inside your public/html directory
The web address for public/html is
Trang 43Go to your home directory cd
Trang 44• Connect to your UNIX account using an FTP
program
• Transfer the image file as “Raw Data”
• Add the image to your page with the
<img src=“image.jpg”> tag
Add an Image to Your
Web Page