Do you attend Columbia? Great, you have webspace allocated to you! That’s right, Columbia is willing to host a website for you, a real website that anyone can get to. It’s hosted on your CUNIX account, and you can navigate to it by going to http://columbia.edu/~uni1234 where you replace UNI1234 with your own uni. For example, my uni is mnn2104, so my url is http://columbia.edu/~mnn2104. The url is case sensitive, which means that it matters whether the letters are capitalized or not—they should all be lowercase.
If you navigate to your webpage and there isn’t anything there, or it gives you 404 error, do not be alarmed! This probably means that either you don’t have anything in your public_html directory, or that you have not set the permissions correctly.
If you are already familiar with CUNIX and how to navigate to the public_html directory, you can skip this section.
If you are on a UNIX or UNIX-like machine, such as a Linux machine or Mac OS X, use terminal to log into CUNIX.
If you are on a Windows machine, you’ll need to install PuTTY and use it to log into CUNIX, then come back to this. For a tutorial, click here.
Some useful CUNIX commands:
cd is change directory. Directories are sometimes also known as folders, and you can move from one folder to another using the cd command. After typing cd, type the directory you wish to move to.
ls is list, and it lists all of the elements that are currently in the directory.
ls -l lists all of the elements that are currently in the directory, as well as all of the permissions.
pwd is print working directory, and it lists the address of the directory you are in.
chmod is change mode, and is used to change permissions on files. chmod is followed up 3 numbers from 0-7, and then the name of the directory. The numbers specify admin, user, and global respectively. 1 specifies executable, 2 specifies writable, and 4 specifies readable. Any combination of permissions that you want to give admin, user, or global can hence be uniquely specified by summing each permission that you want to give. If you want to give all three all access, use chmod 777 filename. To give just admin access, use chmod 700 filename, to give just owner access, use chmod 070 filename, to give just the world access, use chmod 007.
Type in ls, and hit enter or return. You should see something like this:

Now you’re going secure shell tunnel or “ssh” into your CUNIX account. This will let you mess around in CUNIX as if it were your own computer. There’s lots of fun things you can do in CUNIX (which is a kind of UNIX, like your operating system), but for now we’re going to ignore most of them.
To ssh in, type ssh uni1234@cunix.cc.columbia.edu (again, substituting your uni for uni1234) and hit enter or return.

If this is your first time logging in, there will be a warning that says, ‘The authenticity of host . . .’
Type in yes, and his enter.
After that, type in your password associated with your uni. Again, this is case sensitive. You might notice that no letters appear where you’re typing—this is a security measure, in case people are looking over your shoulder, and also to protect against Van Eck Phreaking.
This is what it should look like after you have finished entering your password:

Now hit return. If you typed your password in correctly, you are now logged into CUNIX!
Basic terminal commands:
cd is change directory. Directories are sometimes also known as folders, and you can move from one folder to another using the cd command. After typing cd, type the directory you wish to move to.
ls is list, and it lists all of the elements that are currently in the directory.
ls -l lists all of the elements that are currently in the directory, as well as all of the permissions.
pwd is print working directory, and it lists the address of the directory you are in.
chmod is change mode, and is used to change permissions on files. chmod is followed up 3 numbers from 0-7, and then the name of the directory. The numbers specify admin, user, and global respectively. 1 specifies executable, 2 specifies writable, and 4 specifies readable. Any combination of permissions that you want to give admin, user, or global can hence be uniquely specified by summing each permission that you want to give. If you want to give all three all access, use chmod 777 filename. To give just admin access, use chmod 700 filename, to give just owner access, use chmod 070 filename, to give just the world access, use chmod 007.
Type in ls, and hit enter or return. You should see something like this:

You just listed the items in the directory that you’re currently in! You might only have public_html and a few other items, but that’s okay—public_html is the only one we’ll use.
Type in cd public_html. This will change the directory that you’re in to public_html, which is where your webspace is.

Now type in emacs index.html and hit return. Emacs is a text editor, and index.html is the default page that going to your webspace will redirect the user to. Because ssh is text only, you cannot click other places on the page, and you must navigate using your arrow keys. There are also emacs commands to navigate the page, but we’ll save those for another tutorial. If your first page looks like this:

hit ctrl+l to actually go to text editing.
The text that you want to paste into emacs is:
<html>
<head>
<title>Greetings</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
However, you will probably not be able to just copy and paste it into emacs—again, because this emacs is text-only, you can’t right-click and paste, and emacs’ version of paste, yank, only works internally to emacs, so you should manually type this in. It should look like this:

To save, type x while holding ctrl, followed by s while holding ctrl. They will ask you at the bottom of the screen if you want to save—type y, and it will save. To save and quit, type x while holding ctrl, followed by c while holding ctrl—the save prompt works in the same way.
After you have quit, type in chmod 664 index.html and hit enter. This will give read and write permission to admin and owner, and read-only permission to the world, which will let everyone in the world see your webpage.

Now use your browser of choice (firefox, chrome, safari, opera, internet explorer) to navigate to your webpage (http://columbia.edu/~uni1234). Congratulations, you have your own page on the world wide web!
If you’d like to create something a little more “professional,” check out tutorials on HTML and CSS. Lots of useful tech tutorials can be found on Lynda.