H A R V E Y
Ubuntu 13.10 Server

Linux version 3.11.0-26-generic (buildd@batsu) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #45-Ubuntu SMP Tue Jul 15 04:04:15 UTC 2014

One of A.H. most popular films
 
How to [ Access Your Webpages ] or [ Validate HTML ] on Harvey2
Using [ Command Line ],   [ the SSH Client ],   [ Putty ] or [ Mac OS X ] to log-on to Harvey2

Using: [ PERL ],   [ PHP ],   [ Python ],   [ Ruby ] or [ public_html/cgi-bin/ ] for Web Scripting
This is not a location to learn how to program in these languages,
but rather to describe what is needed to use, launch and envoke scripts
that use one of the languages mentioned above.

-- W3C --
-- PHP Info -- Python Info -- PERL Info --
Ubuntu 13.10
Linux version 3.11.0-26-generic (buildd@batsu) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) ) #45-Ubuntu SMP Tue Jul 15 04:04:15 UTC 2014
 




 
## Access Your Web Pages

Harvey2 can be used for testing Linux versions of mySQL, PERL, PHP, Python, Ruby as well as displayng web pages

Use the Linux Apache server on harvey2 replacing the typical bingweb with harvey2:
http://harvey2.cc.binghamton.edu/~<your user-id>

[ TOP ]




 
## Using Command Line to log-on to Harvey2
[ TOP ]




 
## Using the SSH Client to log-on to Harvey2

If you don't already have it, install the SSH client for windows supplied by BU.
Or install an SSH package on your linux machine.

  1. Click on the SSH icon : SSH icon
     
  2. SSH Initial Screen
     
    Click on the Quick Connect button : SSH Quick Connect Button
     
  3. SSH connect to remote host
    Enter harvey2.cc.binghamton.edu in the Host Name: entry point
    Enter your user-id in the User Name: entry point
    Enter 22 in the Point Number: entry point (it should be there already)
    Select Password in the Authentication Method entry point (if it is not already selected)
    Click on the Connect button : SSH Connect button
     
  4. SSH First Time Warning Screen
     
    You will get a warning screen the first time in.   Hit the Yes button Yes
     
  5. You will see the SSH issue/message screen
    SSH Message from Server
     
    Click on the OK button : SSH OK button
     
  6. SSH Enter Your Password
     
  7. Enter your password and click on the OK button : SSH OK button
     
  8. You should be logged in to your account.
    SSH Logged In

These are simple directions to guide you to log in for the first time. There are many other features and functions in the SSH client that you can learn and explore. In particular the FTP part of the client. This is essential to transferring files. You can also save login and ftp configurations for later use that will not require filling all the information in over and over again.

[ TOP ]




 
## Using Putty to log-on to Harvey2

If you don't already have it, install the PUTTY windows application supplied by BU.
There are several SSH GUI's in Linux.

  1. Click on the Putty icon : Putty Icon
     
    The Putty screen will appear:
    Putty Initial Screen
     
  2. Enter harvey2.binghamton.edu in the box under Host Name (or IP Address) and
    Enter harvey2.cc.binghamton.edu
     
    Click on the Open button : Putty Open Button
     
  3. You will get a security screen the first time in.
    Putty Security Warning Screen
     
    If the numbers match you should be OK, Hit the Yes button: Putty Yes Button
     
  4. Enter your user-id followed by the keyboard [Enter] key then
    Enter your password again followed by the keyboard [Enter] key.
    Putty Login Screen
     
    You should now be logged into harvey2.

Putty has many features and functions you can learn that will allow you to save login's and customise your environment.
These are simple instructions to help you with your first log in.

[ TOP ]



Mac OS X Links
[ TOP ]




 
## Using PERL for Web Scripting
  1. This will use mod_perl to execute code. Many references can be found on-line
  2. No magic line (#!/usr/bin/perl) should be used.
  3. A .pl extention should be used.
  4. These should not be in the cgi-bin directory.
[ TOP ]




 
## Using PHP for Web Scripting
 
This can be done two ways, using mod_php or using php as a cgi script.
[ TOP ]




 
## Using Python for Web Scripting

Python currently should only be used in cgi-bin scripts.

[ TOP ]




 
## Using Ruby for Web Scripting
  1. This will use mod_ruby to execute code. Many references can be found on-line
  2. No magic line (#!/usr/bin/ruby) should be used.
  3. A .cbx extention should be used.
  4. These should not be in the cgi-bin directory.
[ TOP ]




 
## public_html/cgi-bin
  1. Scripts for any installed language, as a good practice, should be in your cgi-bin directory under your public_html directory.
    ~<youruserid>/public_html/cgi-bin
  2. Typically and as a good practive use a .cgi extention.
  3. A magic line must be at the top of the script to indicate which and where the language executable is located.
    The following are correct magic line's for Harvey2.
  4. The script needs only and should only be executable for user.
    chmod u+x <filename>.cgi
    chmod go-x <filename>.cgi
  5. Files can be written from a script.
[ TOP ]




 
## Validate HTML
  1. Go to : http://validator.w3.org/
     
  2. W3C Main Page for Entry point for URL to be validated
    Mouse click the [ Check ] button to validate the HTML for the page entered.
     
  3. W3C Errors Found Page
    Mouse click the Validation Output jump to link to review the errors.
     
  4. W3C Example of Errors found Page
    Make corrections to your page with the editor you prefer.
    As you make corrections reload the page by
    Hitting the back button to go back to step 3 and hitting the [ Revalidate ] in the lower right of the page.
     
  5. W3C Errors Found Page
    Mouse click the Validation Output jump to link to review the new set of errors.
    Continue this process till the screen below appears.
     
  6. W3C NO Errors Found Page
    Click on the Congratulations Icons link to get the HTML to add the W3C Valication Icon to your page.
[ TOP ]




 

Valid HTML 4.0 Transitional

Thu Jul 24 07:09:43 EDT 2014