How To Use WebHawks

On This Page

Overview

The domain name WebHawks.org allows current Cabrillo College students to post web documents on the Internet. To make use of this web site, you must be currently enrolled at Cabrillo College in one of the courses making use of the WebHawks.org site.

These instructions for accessing WebHawks.org assume use of the CTC computers running Window XP.

Logging In

To login in, you will need both a login name and password. All login names and passwords are lower case.

  • Login name: Course Name + Last Name (first 6 letters) + First Name (first 2 letters)
  • Password: CTC password + Student ID (Last 4 digits)

Thus, Isaac Newton's login for this course would be: cis165newtonis. To find his password, he would visit the CTC or type lookup in the address bar of a browser.

After you know your user name and password, you can login to WebHawks.org using PuTTY. PuTTY is a free Telnet/SSH client for Win32 and Unix platforms. It is installed on all the CTC machines and you can install it at home as well.

Once you start PuTTY, you will see a window like the following:

You need to make sure that:

  • SSH is selected
  • Host Name is: www.webhawks.org

When you press the Open button, you will be taken to a screen like the following:

To complete the login process, you enter your user name at the login prompt and your password at the password prompt. In this example, the user name is cis165newtonis.

After you login, you will have terminal-level access to your account on WebHawks. You will be able to list files and change directories. For tutorial information on Linux, see:

Transferring Files

The CTC has installed Core FTP Lite on their computers. Core FTP Lite is a free FTP client that supports SSH. You can view instructions for uploading files to WebHawks at How to Upload to WebHawks.org with CoreFTP Lite.

Using MySQL on WebHawks

To use MySQL on WebHawks, you must either use the command line or install phpMyAdmin in your public_html directory.

Each student is supplied with one database, in addition to test, which has the same name as their WebHawks login. Also, each student has a MySQL login and password that is the same as their WebHawks login and password.

Installing a Database

You can install a database file on WebHawks using the mysql command line client and input redirection. After transferring your dbname.sql file to your account on WebHawks, you can import a database using:

mysql -u userName -p yourdbname < dbname.sql
Enter password:

For example:

-bash-2.05b$ mysql -u cis165newtonis -p cis165newtonis < artzy.sql
Enter password:

Exporting a Database

You can export a database to a file using the mysqldump command line client and output redirection. The syntax is:

mysqldump -u userName -p --add-drop-table yourdbname > outfile.sql

For example:

-bash-2.05b$ mysqldump -u cis165newtonis -p --add-drop-table cis165newtonis < artzy.sql
Enter password:

Using dbconvars.php

  • You must use the correct settings for dbconvars.php in WebHawks
  • You will need to use your Webhawks user name, login and database name
  • For example, Isaac Newton's dbconvars.php file would be:

    <?php
    $dbhost = "localhost";
    $dbuser = "cis165newtonis";
    $dbpwd = "theSecretPassword";
    $dbname = "cis165newtonis";
    ?>
    

Home | WebCT | Announcements | Course info | Expectations | Schedule
Project | Help | FAQ's | HowTo's | Links

Last Updated: September 07 2005 @13:51:57

 

-bash-2.05b$