Need Help?    Filtering  

Your HALNet Personal Web Page

So. . .you've built the ultimate home page and you want to publish it in your HALNet account so the world will fall at your feet? It's easy. Follow these step by step instructions and you're there! Before you try to publish your home page, take a quick look at your files to make sure they will work properly when uploaded:
  1. The main page of your group must be named �index.html� in order for the server to find it when your URL is called. If you are using a program to write and name your pages that adds an '.htm' extension to your web files, you will need to rename them with �.html� extensions after you upload them (more on this later).
  2. All graphic files must be saved in .gif or .jpg format. Please remember, in this as in all things, that UNIX is case sensitive. If you have a file named foo.GIF and reference it in your page as foo.gif, users will not see it.
  3. If you are using an HTML editor, make sure you have changed all local file references to UNIX system references. Many editors will insert a reference that looks like this:
    "file:///e|/halnet/netscape/navigator/bookmark.htm"
    
    This must be renamed, most likely to:
    "bookmark.html"
Now that the files are ready, you must log into HALNet via FTP, upload the files to your account and perhaps set the file permissions.

Graphical Clients (WS-FTP, CuteFTP, LeapFTP etc)

  1. Open your ftp client and set �host name� to �users.hal-pc.org�, and the userid and password to your own.
  2. Set the local system directory to the directory on your hard drive where your home page files are stored.
  3. Set the remote system directory to your public_html directory. If you don't already have a public_html directory, create one - usually by clicking a button that says 'mkdir', or selecting Make Directory from a pop-up dialog. Try right-clicking in the remote file system pane.
  4. Select all the .html and graphic files for your home page on the local system side and send them to the remote system side.
  5. Rename files as necessary (.htm files to .html files, etc.)
  6. Test your home page via your WWW browser. Your home page URL will be:
    https://www.hal-pc.org/~userid
    
    where the 'userid' is your login name. If you receive an error message stating that you do not have permission to view your page, check to make SURE that your files are in the proper directory and that your main page is named 'index.html'. If you have met both these conditions, you probably need to reset the permissions on your public_html directory. This can be done via ftp, but the procedure varies from client to client.

Make sure you are in the public_html directory in the remote system directory. Try right clicking on the file name in the client window to see your options. You may see 'Properties' - in a Properties dialog will be a place to set the permissions of the file. Owner, group and world must have 'Read' checked. Owner must have 'write' checked. If you can edit numbers, these will be '644'

You can also change permissions on a file by following the directions below under 'Via Command Line'

Via Command Line

If you are using Windows, you can use the built-in text based ftp client.
  1. From the 'START' menu, select 'RUN' and type in
    ftp users.hal-pc.org
  2. At the first prompt, type in your HALNet userid. At the password prompt, type in your HALNet password. You will then be logged in and see the following prompt:
    ftp>
  3. Type in the following command:
    cd public_html [enter]
    You should see the following line in response:
    250 CWD command successful.
    ftp>
    You will now be logged into your public_html directory, where all your WWW files must be. To confirm what directory you are in, type:
    pwd [enter}
    You should see the following in response:
    257 "/usr/users/username/public_html" is current directory
    ftp>
    
    where 'username' is your HALNet user id. To see the contents of that directory, type:
    ls -la [enter]
    In response, you will see a list of all the files and subdirectories in your public_html directory along with their permissions, owner (you), group ownership, file size, creation date.
  4. If you have a directory tree for your web page (i.e. if you have your images in a separate directory) you must create it. From the command line type (if you are creating a directory called 'images'):
    mkdir images
    In response, you will see:
    257 "images" directory created.
    ftp>
  5. Send your files from your computer to the server by typing in the following commands:
    send  [enter]
    a sample command might be:
    send c:\webfiles\index.html
  6. NOTE: The default mode for transfer is ASCII. If you are sending image files, first type the command:
    binary [enter]
    then send the files as usual.
  7. Test your page. If you cannot access it, you may need to reset your permissions. Make sure you are logged into your public_html directory on the server, then type:
    quote site chmod 755 . [enter]
    Don't forget to type the '.' It indicates the current directory is to be fixed. Try again to access your home page.
  8. Log off with the command:
    bye [enter]