Create a simple WWW page accessible at your home directory on the class computer (see Class Resources). For those of you with web experience, yes, you may use CSS rather than the tags covered in this chapter. But for those of you just starting out, the simple tags are probably easiest for this first assignment.
The fictional Beartooth Hiking Company (BHC) is thinking about making a simple web page that shows some of their services and a few photos. You’ll get to love the BHC, as they provide oh so many homework opportunites in weeks to come!
They’d like you, the expert HTML designer, to come up with something. The web page should use HTML and include all of the following:
A link to another document, in this case the wilderness.net website with more information on the area. The URL is http://www.wilderness.net/index.cfm?fuse=NWPS&sec=wildView&WID=1 At least one embedded image. Some images are found at the bottom of this page, you can save the images and then use them in your web page.
A list. The list should show three hiking tours. It should include Gardiner Lake, the Hellroaring Plateau, and The Beaten Path.
A table showing tour options to the above destinations shown in the list. The Gardiner Lake tour is 3 or 5 days, and is intermediate, the cost is $40/day. The Hellroaring Plateau is 2, 3, or 4 days and is $35/day and is an easy hike. The Beaten Path trip is 5 or 7 days and is $45/day and is a difficult hike. All hikes have a 50% surcharge for Sat/Sun hikes.
Upload the files to the Tomcat web server on the web6.jhuep.com. Include in your blackboard submission comments the URL to your web page.
Once you have the HTML files created, you need to upload them to the course computer. (the sftp/scp/pscp option below is probably easiest).
To use SFTP (FTP is a bad thing) the files to the public_html directory on you account on the class computer. Remember, SFTP/SCP use port 22 to connect! If you haven’t used sftp before, you would do something like:
- sftp <your JHU username>@<the class computer>
- <enter your password>
- if you started the sftp process other than in the directory that contains the files, use the “lcd” command to change “local” directory to where the files are located
- use the “put” command to now upload the files
To use SCP,
Open a shell window and then cd to the directory that contains the files, then
- scp SourceFile.ext <your JHU username>@<the course computer>:public_html/TargetFile.ext
To use Putty SCP (pscp.exe)
- pscp SourceFile.ext <your JHU username>@<the course computer>:public_html/TargetFile.ext Your final step is to include the URL to your homework in your blackboard comments.
You can also use FileZilla, which is a GUI based file transfer application.
One issue that students have had problems with before is file permissions on the Unix host.
When you upload, you can see file permissions on files in a directory by typing
All of your directories should be at least drwxr-xr-x, your files should be -rw-r–r–.
If they aren’t you can change directory permissions with
chmod 755 <directory name>
And you can change file permissions with
chmod 644 <file names>
You can use wildcards as part of the file/directory names.
- of 2 9/1/18, 1:20 PM Homework