Building out a webpage on the ics domain is super cool!
Here are two sites that I built on it:
- Personal Site: www.ics.uci.edu/~ccarnaro/
- ICS 33 GradeViewer: www.ics.uci.edu/~ccarnaro/ics33gradeviewer.html
- Must be an ICS student
- Know your ICS password
- If you don't have one, active your ICS Account.
- If you forgot, reset your ICS Password.
If you have SSH into openlab before, you know what you’re doing and can move onto Step 2 👍
If you haven’t set up ssh keys with OpenLab before, you will need to do the following:
- Connect to the UCI VPN
- Open up your terminal
- Type
ssh ucinetid@openlab.ics.uci.edu
(swap out “ucinetid” for yours)
*** It will ask for your password. This is your ICS Password, not your regular UCI password.
Here's a complete guide on How to Connect to UCI ICS Openlab.
If your prompt looks something like this, you’re in!
ccarnaro@circinus-30 22:42:38 ~
$
In this step, you will get your /public_html folder setup along with a simple webpage!
- Run the following command in your terminal:
/pkg/ics/bin/make_my_web
- Follow the prompts and answer the program’s questions. It will use this information to construct a simple personal site, like mine.
- At the end it should give you the url for your ICS webpage! Go check it out
Now that you’re set up, let’s go ahead and make a new custom page.
- Go into the /public_html directory:
cd public_html/
- Use either nano or vim to create a new file for your page:
nano test.html
<- You can name it whatever you want! - Create a simple html file
<html>Hello World</html>
- Save the file
Once you have added the new file, we need to make it viewable to the public.
- Run the following command in the terminal:
chmod 644 test.html
- Note: If you have any directories, like a
js
folder, you can make it public by running:chmod 755 folderName
Finally, view your new page and verify that “Hello World” shows up!
The url should be something like this: www.ics.uci.edu/~ccarnaro/test.html
Congratulations, you’ve set up a webpage on Openlab 🎉 🎉
Does this only work for a static website or also works for a dynamic website of the MERN stack.