|
|
Assignment, Week 3 (due 8:35am, Monday, 4.February, 2008) Part 1: Using the skills we learned today, set up your hawk home directory as follows: Log into hawk using telnet. Make a folder in your home directory named working. Do this by typing mkdir working at the command prompt while in your home directory. hawk:/usr1/arch/bbalogh>mkdir working Type ls at the command prompt. You should see at least two folders. One named www and the other working. hawk:/usr1/arch/bbalogh>ls The working directory will hold all of your unfinished work. It will essentially be a remote backup of the files you have locally on your hard drive. You will FTP the files to that directory in the future. Change your directory to www. Do this by typing cd www while you are in your home directory. hawk:/usr1/arch/bbalogh>cd www Make a new folder named images in the www directory. Do this by typing mkdir images. hawk:/usr1/arch/bbalogh/www>mkdir images This folder will hold all the images for your website. All .html documents will go in the www directory. cd to your home directory by typing cd ~ at the prompt, then type ls. You should see something like the following: hawk:/usr1/arch/bbalogh/www>cd
~ if you now cd to the www directory and
type ls. You should now see something like this: hawk:/usr1/arch/bbalogh/www>ls Part 2: Make a simple webpage using a text editor (notepad, for instance), and email me the URL. It should include the following: 1. A title If you name it something like demo.html, the URL will be http://www.iit/edu/~yourusername/demo.html Take a look at my demo here: http://www.iit.edu/~bbalogh/demo.html If you're using firefox, you can see the html code that makes up the page by going to the view menu and selecting page source. If you're using internet explorer, go to the view menu and select source. Notice that the behavior of my text links is probably different from yours. I included an attribute in the <a> tag that loads the linked page in another window/tab. See if you can figure out how to use it. *Notes on using FTP 1. Using the command line (Start>Run>cmd), navigate to the directory where your *.jpg and *.html files are located and run FTP. C:\Documents and
Settings\bbalogh>cd
Desktop\html_demo Enter your login and password and change your directory to www and put your files. 230 User bbalogh logged in. Using your browser, plug your URL into the address bar, and you should see your page! If not, common errors such as misspellings, capitalization errors and being in the wrong directory may be the problem. If you get confused, start the process over. |