The content of this document may be incorrect or outdated.
Print this article Edit this article
Creating a personal homepage
This document contains local information useful only to people with accounts on Purdue University Engineering Computer Network (ECN) Sun hosts. These instructions will not work for Goulds or HPs.
Before attempting to create your own home page, you should probably familiarize yourself with the World Wide Web, URLs and HTML. You need only a basic knowledge of these topics to create a simple home page.
If your department has a faculty/staff/student directory, you can contact your site specialist and he/she can link your personal home page to the departmental listing. You may want to check the information your department is providing about you and customize your home page accordingly.
Using WEBINIT: Automated Web Page Builder
To activate the Webinit program, go to a Unix command line prompt on an ECN Sun account and enter webinit. Webinit will create your Web directory, change directory permissions as necessary, and install some startup files for you. It will return status messages as it runs and will print and e-mail information to you when it is finished.
To create a personal home page without WEBINIT
- Your home directory must have world and group search permission (chmod og+x ~your login).
- Create a new directory in your home directory called public-web (mkdir public-web). Your public-web must be world and group readable and searchable (chmod og+rx public-web).
- Type cd public-web to change directories into public-web.
- Using your favorite text editor, create a file called Index.html. In your Index.html file, type in the following:
<title>my home page</title>
<h1>My Home Page</h1>
<p>
This is where you put in text, pictures, any information you wish to present, using HTML. This information will make up your personal home page.
<p> - Save this Index.html file and quit the editor. Your Index.html file must be world and group readable (chmod og+r Index.html).
- Verify everything works by selecting the File/Open URL menu in Mosaic and entering your home page URL. Your home page URL will be:
http://<home directory hostname>.ecn.purdue.edu/~your-login/
This is the URL that people both on and off campus will use to reference your personal home page.
This is also the convention to use when you want to open another person's home page. For example, if you want to open debweb's home page, enter the URL:
http://harbor.ecn.purdue.edu/~debweb/
How To Figure Out Which Hostname To Use In Your Home Page URL
can also use this method to figure out other users URL hostname for their home page
What Should I Put In My Personal Home Page?
Just about anything you want. This is your home page, and you can either make it look very professional or have it display your "personal" side.
Technical Details
There are several things you may want to be aware of when modifying your home page.
- The URL to your home page is:
http://<home directory hostname>.ecn.purdue.edu/~your login/
- The public-web directory in your home directory can be a symbolic link to another directory if you choose.
- Symbolic links can be used within your public-web directory. This is a good way to make other files in your account or elsewhere on the system available via WWW. Users can view files and directories through symbolic links as long as the symbolic link and the file/directory have the same owner.
- Try to use relative paths rather than absolute paths as much as possible in hyperlinks and inline images. For example, if you would like to refer to the GIF file ~/public-web/me.gif, the relative hyperlink in your ~/public-web/Index.html should look something like
<a href="me.gif">My Picture</a>
. - When the WWW servers finds an Index.html file in a public-web directory, your personal home page will be displayed. If an Index.html file is not found in public-web, the contents of public-web will be displayed. If a public-web directory is not found, the user will see the error message:
404 Not Found
The requested URL ~login was not found on this server - If the hostname is incorrect in the URL you are attempting to access, you will receive the error message:
404 Not Found
The requested URL /<hostname>@ecn.purdue.edu/~login
was not found on this server - Any file that is world readable and can be accessed from your public-web directory can be read by the world. This means that if there exists a symbolic link from somewhere in your public-web directory to a directory outside of your public-web directory, anyone could read all world readable files contained in the referenced directory. Be very careful when making symbolic links to files outside your public-web directory.
- Graphics can be included at any point with the
<img src="...">
tag. The directory where image files are stored is/home/pier/b/htdocs/images
. This directory contains ECN standard GIF files that you can copy into your own directory. NOTE: You should copy these files. Do not make links to them as their names and/or location may change without notice.
You can advertise your URL however you like, you might want to include your URL in your .plan file.
Note: Before advertising your URL as http://<home directory hostname>.ecn.purdue.edu/~your-login/, it would be a good idea to read about Setting your Career URL in PH.
Last Modified:
Dec 19, 2016 11:12 am US/Eastern
Created:
Mar 21, 2007 12:03 pm GMT-4
by
admin
JumpURL: