|
Telnet and FTP
While other tools are certainly available for accessing your account, you will very likely find ftp and telnet to be your real workhorses. This site really can't be a complete Unix tutorial, but if you have questions about using your shell account (which is what telnet does), please refer to our page by that name here. For commercial hosting customers, your site is at tungsten.intra-connect.net. For personal sites, your site is on krypton.intra-connect.net. When you log in, you are automatically taken to the root of your own home directory. To see its name, type pwd and hit [enter].
Usernames and Passwords
When we setup your commercial hosting account, either as www.yourdomain.com or as www.yourdomain.intra-connect.net, we assigned at least two usernames and passwords. One is called your HOSTING account, and the rest are for email.
Your HOSTING account is used to access your web directory, and your EMAIL account is, predictably, used to retrieve your email. (It is possible that you have more than one email account.) Throughout the rest of this document, when username is referenced, it is referring to your HOSTING account - not any of your email accounts.
You are given the pertinent information about your various usernames and passwords when you sign up.
For personal homepages, there is only one username and password. It's the same combination that you use for your email and to dial in.
Directory Structure
Under your home directory, there are two important directories. One is called public_html and is where you put your HTML and graphics files. The other is called cgi-bin and is where you put your CGI programs.
Important File Name
The first page on your site, which is in the public_html directory, is called index.html.
Uploading your Site
Many web design programs, such as Netscape Composer or StarOffice contain functions which allow you to upload your site as a whole or make updates, without having to use FTP. In those cases, it is important to specify the name of the server (either tungsten.intra-connect.net or krypton.intra-connect.net) and your username and password.
Beyond that, you will have to use some form of ftp. All versions of Unix, and modern version of windows, come with a version of ftp that runs from the command line. All you do is type ftp followed by the name of the server and hit [enter]. At that point, you simply authenticate and you are in. You change to the appropriate directories, and send your files. (Typing "help" or "?" at the ftp prompt will get you help.) Unless you are an old pro at using ftp. you won't be very impressed. We recommend that you find a good graphical ftp program for your platform. CuteFTP is available for Windows, and many other variants as well.
Permissions and Ownership
As a general rule, you want everybody to have tha ability to read your files and execute them, but only want yourself to be allowed to modify or delete files. To make sure you have all of your ownership and permissions okay - execute the following: (NOTE: If this is a personal homepage, then you replace the word hosting with the word dialup in the following commands)
From your home directory, type chown username:hosting public_html and hit [enter].
From your home directory, type chown username:hosting cgi-bin and hit [enter].
From your home directory, type chmod 755 public_html and hit [enter].
From your home directory, type chmod 755 cgi-bin and hit [enter].
Then, make sure all other permissions are correct with the following commands:
chown-R username:hosting public_html/* and hit [enter].
chown-R username:hosting cgi-bin/* and hit[enter].
chmod-R 755 public_html/* and hit [enter].
chmod-R 755 cgi-bin/* and hit [enter].
These commands will make sure that the ownership and permissions on all of your files are set correctly for allowing people to see your site, but not modify it. In some circumstances, you will want to set your permissions differently, but in such cases the reasons and methods are usually clearly defined
|