Setting up your Unix Account
To view your HTML webpage, you must:
- create your HTML file.
- create a special directory in your Unix account.
- establish the correct permissions on your public_html directory.
- You can create the directory and set the permissions manually.
Click Here for a few UNIX comands.
This is a good reference if you are not fluent in the UNIX operating system.
- Login to your UNIX account.
- Create your public_html directory by entering mkdir public_html
at the UNIX prompt.
- Set the file permissions (your Unix account is configured so that by default
you are the only one who can see the files in your directory. This is for
privacy and security reasons.)
At the UNIX prompt, enter chmod 755 public_html
- Your Home Directory or Unix account requires execute permissions.
* please use the spacebar when you see (sp) *
At the UNIX prompt, enter:
- chmod g-l(sp)~
- chmod a+x(sp)~
- Your basic file or the first file must be called index.html
and is placed into the public_html directory. Note: There is a
difference between Index.html, INDEX.HTML, and index.html. ALL
file names in your UNIX account should be lower case to reduce the
confusion that may take place. Also note that html and htm can be treated
the same by a web server - but that if you reference them in html code as
a link that the extensions must be properly used.
- The command used to change directories is cd.
- cd public_html
- Make sure that the index.html file has world read permissions.
- chmod 644 index.html
- Your webpage will have the URL http://www-cs.engr.ccny.cuny.edu/~userid
- Transferring Your Web Files
- The only way to transfer files from your home or any place other than the UNIX lab is to use
SSH file transfer client. It is available for free
HERE.
- You can login to the CS UNIX lab via csultra.engr.ccny.cuny.edu with the first 4 letters of your last name and
the last 4 digits of your social security number as your user name and your social security number as your password. Leave all the
other settings to default.
- Once logged in you can transfer your files and folder to the server. REMEMBER UNIX is case sensitive!
Send meEMAIL
Please note, this page and all of its contents are under strict copy right laws
©2004