|
|
|
|
||||||
|
|
Manual - Part Three |
Click for printer friendly page FTP Access Now that we know where the files have to be located in order
to be visible from the Internet, just how do we put the files
there? There are several ways, depending on your computer system.
For the Macintosh, a program called "Fetch" is used. Microsoft
Windows systems use "WS_FTP." Look further in this manual for
detailed instructions on each of these programs. The process by which files are transferred to the web server is called "FTP" (File Transfer Protocol). You have unlimited access via FTP 24 hours a day. As such, you can create and maintain your web pages on your own computer and upload files to your web site at your leisure. Online services which offer an Internet gateway, such as AOL, CompuServe, and Prodigy may have a built-in FTP interface. If you have a PPP Internet account, you need an FTP program. If you are using FrontPage, you must create your new web on the "localhost" system. This is accomplished by selecting "create new web," and then entering "localhost" in the line where it asks for the web location. Once you have completed your web on your computer, you can then select the "publish web" option from the file menu in FrontPage Explorer. You will be prompted for your IP address and web name and then it will send it to our servers. Please note that you will be prompted for a user ID and password, and depending on your system configuration it may be the one that we issued you or it may be the one that you entered when you first installed FrontPage. If one does not work, then simply try the other. If you have forgotten what that password was, then you will need to reinstall FrontPage and select a new one. NOTE: If you are using FrontPage, you should NEVER use regular FTP to upload your files. This will damage the extensions. Stick with one or the other all the time. For instructions for the most popular FTP client software for both PC and Macintosh users, see the instructions to follow. |
You need to double click on www to get to your web directory. This is where all your files will be downloaded, and/or you will create subdirectories. The only system directory that you may need to use is cgi-bin; this directory is reserved for custom scripts. To make your home page load automatically, name the HTML document "index.htm" in lowercase and upload it to the www directory of your account. To upload a file or files, simply highlight the file(s) on the left and click the right arrow button (->) in the center of the window. Be sure to upload HTML documents and scripts in ASCII mode and images in Binary mode. To transfer a file to a subdirectory, double-click the appropriate subdirectory to open it before transferring the desired file(s). To create a new directory, click on the MkDir button when you are inside the www directory or subdirectory. As soon as a file is uploaded to the web server, it is
available for all to see. If, after uploading a file, you are
still unable to see the updated file via Netscape, try hitting
the "Refresh" or "Reload" button. If that fails, you need to
clear both disk and browser cache. This function can be found by
selecting Options>Network Preferences in Netscape. Remember
that you must first be connected to the Internet through your
local Internet service provider in order to connect to the web
server. |
Bookmarking the Connection You should take the time, now that you have established your connection, to make it easier for you to get here next time. Under the Customize menu, select New Shortcut. A window will pop up called Bookmark Editor, as shown in Figure 2C. It will already have your name, Host, and User ID filled in. Under Type, choose File from the popup menu. If you would like Fetch to remember your password so you won't have to type it in each time, type in your password in the Password field. Now, under the same Customize menu, choose Preferences, and under the General tab, make sure the connection you just entered is selected as the default shortcut. Next time you open up Fetch, your shortcut will be opened automatically and all you'll have to do is click the OK button!
Figure 2C Refer again to Figure 2B. You need to double-click on www to get to your web directory. This is where all your files will be downloaded, and/or you will create subdirectories. The only system directory that you may need to use is cgi-bin; this directory is reserved for custom scripts. To make your home page load automatically, name the HTML document "index.htm" in lowercase and upload it to the www directory of your account. To upload a file or files, simply drag them from your hard drive onto the Fetch window when you are in the appropriate directory or subdirectory. Be sure to upload HTML documents and scripts in Text mode and images in BINARY mode. Or to make life easier, click on the Automatic button as shown in Figure 2B, and Fetch will decide the proper format. To transfer a file to a subdirectory, double-click the appropriate subdirectory to open it before transferring the desired file(s). |
To insure that the Automatic selection works properly, make sure the selections under the Upload tab in the Preferences window looks the same as Figure 2D below.
Figure 2D As soon as a file is uploaded to the web server, it is
available for all to see. If, after uploading a file, you are
still unable to see the updated file via Netscape, you need to
hit the Reload button in the Netscape button bar. Remember that
you must first be connected to the Internet through your local
Internet service provider in order to connect to the web
server. |
Basic Unix Your Telnet account is setup automatically for you when you open your account. Each User ID has it’s own Telnet account. See the Fee Schedule to add User IDs to your account. Each Telnet account has it’s own Home Directory. Telnet is much like a DOS program in both use and appearance, requiring specific typewritten commands. There are "power" uses for Telnet, but only Advanced Users will be able to understand or implement them. The novice user will probably not need to use Telnet very much or very often, but some basic knowledge of it will be useful. Connect With Telnet General Info For Advanced Users<----Return to Manual |
|
mv fred wilma This moves fred to a file named wilma. This is the Unix way of renaming a file. mv fred flintstones/fred This moves fred to a file named fred in the subdirectory flintstones. This example could have been written mv fred flintstones/ as well, and the filename fred would have been retained in the new directory. After executing this command, there will no longer be a fred
file in the current directory. cp cp fred wilma This copies fred to a file named wilma. cp fred flintstones/fred This copies fred to a file named fred in the subdirectory
flintstones. rm rm flintstones This removes a file named flintstones. rm -rf flintstones This removes a directory named flintstones. The -r removes
the directory, the -f forces it to remove files without asking
you before it deletes each one. In order to keep track of the possibly millions of files on-line, Unix systems have a directory tree, which enables meaningful classification of files. For example, the most essential system programs are kept in /bin/, user home directories are all under /home/, and everything having to do with the WWW is under /www/. More specifically, your home directory is /home/you/ and the directory for your WWW files is /home/you/www/. pwd pwd This prints out your working directory: where you are. When you give a filename to a command without specifying some other directory, the filename is looked up, manipulated, or created in your current working directory. mkdir mkdir flintstones This makes a subdirectory of the current directory named flintstones. cd cd flintstones This changes the directory to the subdirectory named flintstones. cd /home/domain/www/flintstones This changes the directory to the home directory of the flintstones. cd /home/flintstones/www This changes the directory to the WWW directory of the flintstones. cd With no arguments, cd returns you to your home directory. rmdir rmdir flintstones This removes the subdirectory flintstones.
The directory must be empty for this to work. Account management passwd (changing your password) zip/unzip zip myzip file1 file2 file3 This puts the files file1, file2, and file3 into a new zip archive called myzip.zip. On the other hand, if you had the archive myzip.zip and wanted to get back the files: unzip myzip Typing zip or unzip by itself will give you a usage summary, showing nearly all the options availible. du (disk usage) du -s directory du -s /home/domain/www locate (find files) Full applications for on-line
work Some commands that you will need are printed at the bottom of the screen. The keys to press are presented as '^X'. This long-standing shorthand in the computer world means the same as Control-X, in other words, hold down the Control or Ctrl key on your keyboard and type an 'x'. Of course, other editors are availible on the system, so if you already know vi, emacs, or joe, or if you have someone to teach you the basics of these programs with you, feel free to use them. Even ed is still there for those of you updating World Wide Web pages with a teletype. lynx (browsing WWW) Use the up and down arrow keys on your keyboard to move the cursor from link to link. Press the right arrow, or the enter key, to follow a link. Press the left arrow to back up. Press space to scroll down one screen of text, or press 'b' to scroll up one screen. (If the cursor is in a fill-out form, you must use the up and down arrow keys.) Press 'z' to abort the loading of a page. Press 'q' to leave the program. It's possible that once you see the speed of lynx, you may just start using it intentionally. The current version of lynx does have a few bugs, some of
which were not present in older versions. If you see a page that
doesn't display properly, try lynx2.4.2 (as in lynx2.4.2 url)
with it. Hopefully there will soon be a single best version
availible that will make this note unnecessary. This Linux program is not compatible with the zip program for DOS and Windows. To zip files, first have the files uploaded to your server, then log into your account with Telnet. Navigate to the directory where the files are that you want to zip (for instance by typing cd www then cd sounds). Then type: gunzip myzip file1 file2 file3 This puts the files "file1", "file2", and "file3" into a new zip archive called "myzip.gz". On the other hand, if you had the archive "myzip.gz" and wanted to get back the files, you would type: gunzip myzip Backup a site To backup a complete site , login to telnet/ssh. While in yout main dir type: This will create a file named site_backup.tar.gz in your main
dir. To restore this file as a site type: hit enter and your all done. |