info.cba.ksu.eduinfo.cba.ksu.edu/Bkovar/Older material... · Web viewInstructions to Upload from a...

8
Instructions to Upload from a University Computing Lab The first step in uploading your web page files to the KSU sever requires that you log into UNIX (the name given to the university mainframe and the operating system that runs it). 1. To log into UNIX in one of the university computing labs, go to the START MENU and then locate and select PuTTy. 2. When the PuTTy Configuration screen appears, enter the Host Name as: unix.ksu.edu Then, click Open. 3. If you see a warning regarding a potential security breach, then click YES. 4. Login with your eID and password. 5. Once logged in, you will see a unix prompt (pub2% or something similar). IF YOU EVER SEE A MESSAGE THAT INDICATES

Transcript of info.cba.ksu.eduinfo.cba.ksu.edu/Bkovar/Older material... · Web viewInstructions to Upload from a...

Page 1: info.cba.ksu.eduinfo.cba.ksu.edu/Bkovar/Older material... · Web viewInstructions to Upload from a University Computing Lab The first step in uploading your web page files to the

Instructions to Upload from a University Computing Lab

The first step in uploading your web page files to the KSU sever requires that you log into UNIX (the name given to the university mainframe and the operating system that runs it).

1. To log into UNIX in one of the university computing labs, go to the START MENU and then locate and select PuTTy.

2. When the PuTTy Configuration screen appears, enter the Host Name as: unix.ksu.edu Then, click Open.

3. If you see a warning regarding a potential security breach, then click YES.

4. Login with your eID and password.

5. Once logged in, you will see a unix prompt (pub2% or something similar).

IF YOU EVER SEE A MESSAGE THAT INDICATES THAT YOU MIGHT NOT HAVE A HOME DIRECTORY, you will NEED to IMMEDIATELY GO TO THE IT HELP DESK over in the library. Only the Help Desk can resolve your problem, and sometimes it takes them over 24 hours to get your problem fixed. Contact the IT Help Desk first, and then let me know about the problem. This sort of problem is

Page 2: info.cba.ksu.eduinfo.cba.ksu.edu/Bkovar/Older material... · Web viewInstructions to Upload from a University Computing Lab The first step in uploading your web page files to the

something that I cannot fix. Only the IT Help Desk can fix this problem.

6. Next, you want to change some of the file permissions for your unix directory so that others can read some of the files placed in your home directory. Type in the following commands at the % prompt EXACTLY AS YOU SEE TYPED, INCLUDING THE SEPARATING EACH WORD/COMMAND.

chmod     g-s       ~ chmod     og+xs     ~

You must type the chmod command exactly as it is listed here. If each step is done correctly, nothing will appear to happen. You should see the % prompt. The   ~ stands for your home or main directory. These commands will allow people to access files and directories in your home directory that have world read and/or execute permission.

7. Next, you will create a directory named .html in your home directory and give it appropriate permissions. This is where the web server will look for all of your public files. Type in the following command:

mkdir     ~/.htmlIf/when you see mkdir: Failed to make directory "/homes/yourname/.html"; File exists, just ignore it and move on to the next command, and type in:

chmod     g-s,og+xs     ~/.htmlThe chmod command will allow everyone to access files and directories that are world readable and/or executable in your .html directory.

8. After completing this step, minimize the UNIX terminal.

9. Now, it is time to upload your files to the .html directory using an ftp program.

10. Since you are in one of the university computing labs, go to the START MENU and then locate and select WinSCP.

11. The WinSCP Login screen should appear.

12. Toward the bottom of the screen is a Login button. Click the Login button.

13. If you see a warning regarding a potential security breach, then click

Page 3: info.cba.ksu.eduinfo.cba.ksu.edu/Bkovar/Older material... · Web viewInstructions to Upload from a University Computing Lab The first step in uploading your web page files to the

YES.

14. The next dialog box that appears should ask for the session username. Type in your own eID. Then, click OK.

15. If an Authentication Banner appears, click Continue.

16. Next, type in your password, and then click OK.

17. If you see an errror box indicating “Invalid access to memory”, click OK.

The left-hand side of the screen is where your local drive is displayed. Upon entry into the program, probably nothing will display in this area.

On the left-hand side, select Local, Change Drive. A listing of available drives should appear.

Select the drive corresponding to the location of your USB storage media.

Page 4: info.cba.ksu.eduinfo.cba.ksu.edu/Bkovar/Older material... · Web viewInstructions to Upload from a University Computing Lab The first step in uploading your web page files to the

After selecting the drive, you will next need to navigate through your storage media until you can see all of the files that are part of your web site.

The right-hand side of the screen shows the remote site (the directories within your unix storage space). Notice the .html directory/folder (it may be difficult to initially see). You will place your web site’s files in here.

18. Click/double click the .html folder to open it up. Initially, it will be empty.

19. To ftp/upload your files, you will simply use drag-and-drop to send files from your local site (your storage media) over to the remote site (your html folder).

20. If/when a Copy dialog box appears, click the Copy button.

Dragging from left-to-right is how you upload your files to the server.

Please be aware that dragging from right-to-left is how you download files from the server onto your storage media.

MAKE SURE THAT YOU SEND OVER THE INDIVIDUAL FILES AND ANY FOLDERS ASSOCATIED WITH THOSE FILES THAT WERE CREATED BY AN HTML EDITOR.

21. After you have transferred all of your files over to the unix storage area, verify that their spellings and capitalizations match how you typed them into your code. If you see an inconsistency, you will need to fix it (rename the file or fix your code and then ftp again). In addition, verify that you did indeed upload ALL OF THE FILES THAT MAKE YOUR WEB SITE WORK, including all .htm files and all picture/image files. Note: You must have the same file names in your UNIX account as you do in your index

Page 5: info.cba.ksu.eduinfo.cba.ksu.edu/Bkovar/Older material... · Web viewInstructions to Upload from a University Computing Lab The first step in uploading your web page files to the

file or any other web page file that you create. If the file names are different or inconsistent, then one or more components of your web page won’t work.

22. The next step is to go back to your UNIX terminal and set the permissions on your HTML files so that they are world readable and executable. Maximize your UNIX terminal and type the following command:chmod     ugo+rx     ~/.html/*

23. The final step is to set the permissions for any folder that was created by an editor that you also transferred over. The general form for setting permissions for a folder is:chmod ugo+rx ~/.html/foldername/*

For instance, lets pretend that I have a folder called Doc3_files. The command used to set the permissions for that folder is:chmod ugo+rx ~/.html/Doc3_files/*

24. Notice the rights associated with each file seen in the picture. You should also see those same rights associated with all of the files in your html folder. If one or more of your files does not have those rights associated with them, then those will be elements that will not display on your actual web site. All files should have the rights of rwxr-xr-xIf you have any items in your folder that do not have those rights, then you will need to type in the chmod     ugo+rx     ~/.html/* command again (and maybe even the chmod ugo+rx ~/.html/foldername/* command as well).

25. Once you are certain all of the elements that make up your web site have the correct rights, it is now time to bring up your web browser. Your home page can now be referenced with the URL http://www-personal.ksu.edu/~eID/(substitute your own eID in place of the letters eID. If you were visiting my personal site, you would type in http://www-personal.ksu.edu/~bkovarRemember, there is no need to enter the name of the file if you named your page index.htm or index.html.

REMEMBER TO GO BACK AND TEST OUT YOUR PAGE TO MAKE SURE THAT EVERYTHING LOADS PROPERLY AND THE LINKS WORK.

26. If you discover that your web site contains one or more errors, then you will need to fix your code/page and then upload it to the server once again.

Page 6: info.cba.ksu.eduinfo.cba.ksu.edu/Bkovar/Older material... · Web viewInstructions to Upload from a University Computing Lab The first step in uploading your web page files to the

If all you are doing is fixing a file and then replacing the old contents with the new contents, transferring from the left-hand side of the ftp screen to the right-hand side is all that you should need to do.

If you have deleted an existing file from the right-hand side or if you are uploading a file you forgot to upload earlier, then you will need to set the permissions for the file to be readable and executable. That means that you will need to type in the following command at the unix prompt:chmod     ugo+rx     ~/.html/* If you ever need to upload a folder again, you will need to type in the following

command at the unix prompt:chmod ugo+rx ~/.html/foldername/* (substituting the name of the folder for my foldername wording)