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:
- 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).
- 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.
- 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:
This must be renamed, most likely to:
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)
- Open your ftp client and set ‘host name’ to ‘users.hal-pc.org’, and the userid and password to your own.
- Set the local system directory to the directory on your hard drive where your home page files are stored.
- 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.
- Select all the .html and graphic files for your home page on the local system side and send them to the remote system side.
- Rename files as necessary (.htm files to .html files, etc.)
- Test your home page via your WWW browser. Your home page URL will be:
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.
- From the 'START' menu, select 'RUN' and type in
- 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:
- Type in the following command:
cd public_html [enter]
You should see the following line in response:
250 CWD command successful.
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:
You should see the following in response:
257 "/usr/users/username/public_html" is current directory
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.
- 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'):
In response, you will see:
257 "images" directory created.
- Send your files from your computer to the server by typing in the following commands:
a sample command might be:
- NOTE: The default mode for transfer is ASCII. If you are sending image files, first type the command:
then send the files as usual.
- 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.
- Log off with the command: