The following steps will guide you when creating web pages on METU central servers.
-
Enter your user code/password and connect your computer to central servers (orca, beluga, rorqual and narwhal) by using Telnet or SSH programs. Please visit this adress to find detailed information on how to connect yourself to central servers.
wwwhome directory is automatically created in your web user account. To check the file permissions of wwwhome directory, run the following command:
ls -ald wwwhome The following line will be displayed after this command is executed. The first 10 characters (drwxr-xr-x) on this line indicate the file permissions of wwwhome directory and each character specifying the permissions must be the same with the permissions in the line below. (If the characters are different, you should repeat the process explained in step 2 (above) beginning from the command "chmod og=rx wwwhome".)
drwxr-xr-x 14 uid gid 1536 Sep 20 12:10 wwwhome In the next step, enter the following command to check the file permissions of your home directory.
ls -ald ~ Check to make sure that the first 10 characters of the line displayed are the same with the characters indicated below:
drwx--x--x 14 uid gid 1536 Sep 20 12:10 user-code
If the characters specifiying the permissions are different, you should run the following command:
chmod a+x ~
If the steps above are carried out accordingly, the necessary directory structure would be created that will enable you to create your web page.
Let us create a sample introduction page. Open the wwwhome directory by entering the following command.
cd wwwhome Then, create an index.html file by entering the sample command below; (You may use the editor you are most comfortable with like, pico, vi etc.)
pico index.html and enter the sample information below into this file.
< html >
< title >Home Page< /title >
< h3 >Welcome< /h3 >
< /html > Save the information in the index.html and close the file. To view your first page, write the following URL address in your active web browser (Netscape, Internet Explorer etc.) The URL address you will be using on your active web browser will be like the following sample address:
http://www.metu.edu.tr/~user-code (personal users)
http://www.*****.metu.edu.tr/ (web users)You have just created your introductory web page successfully. Please remember to keep the information you will be using on your web page in the wwwhome under the home directory. The following URLs address to people at various levels and may include information, which may help you if you are creating a web page or intending to use HTML code.
Sites in English:
http://www.w3.org/MarkUp/Guide/ - Dave Raggett's Introduction to HTML
http://www.wdvl.com/Authoring/HTML/Intro/ - Introduction to HTML
http://www.wdvl.com/Authoring/HTML/Tutorial/toc.html - Introduction to Web Design
http://webreference.com/authoring/style/htmlstyle.html - HTML Style Guides
http://htmlhelp.org/ - HTML Help by The Web Design Group
http://www.december.com/html/ - Information about HTML and related technologies
Sites in Turkish:
HTML Tutorial - Basic and advanced HTML information prepared by METU-CC
http://rega.basbakanlik.gov.tr/eskiler/2007/01/20070127-7-1.doc - Kamu Kurumları Internet Sitesi Kılavuzu Sürüm 1.0
http://www.ulakbim.gov.tr/dokumanlar/webtasarim/ - ULAKBIM: Web Tasarımı dokümanları
And what's more, you can transfer the web pages you have created on your own computer via FTP (File Transfer Protocol) to your user account located on the systems and you can update the pages whenever you want in your account. Please visit this adress to find detailed information on how to establish a connection with FTP (File Transfer Protocol) on central servers. It is important here not to forget specifying the file permissions of the files you will be transferring as "readable" by everyone. It will be easier for you to execute the following command and specify all the file permissions of the files accordingly in the end, i.e. after all your transfer operations are finished:
chmod og=r file-name
- You can use various web editors while creating, updating and uploading your web pages. There are commercial web editor software such as Macromedia Dreamweaver, Macromedia HomeSite and Microsoft FrontPage. Or you can make use of free software such as CoffeCup Free HTML Editor , HTML Kit, NVU and Trellian WebPage, which are available on METU public FTP server.