-
Notifications
You must be signed in to change notification settings - Fork 0
How to Publish your own CSUA Webpage
nb: replace $CSUA_USERNAME
with your username, that you specified when creating a CSUA account e.g. seenum
Prerequisite: How to Log into Soda
Once you have made a CSUA account, you can publish a CSUA webpage or web app.
To publish your own CSUA webpage, you can create a public_html
directory in your home directory. By default, /home/$CSUA_USERNAME/public_html/index.html
is served at https://www.csua.berkeley.edu/~$CSUA_USERNAME
, and anything in /home/$CSUA_USERNAME/public_html/
is publicly accessible under the same base url. This means you can serve HTML, CSS, JS, or whatever content you want.
Here is an few example page:
-
ssh [email protected]
-ssh into the soda server -
mkdir public_html
-makes a new directory -
cd public_html
-moves to the new directory -
vim index.html
-you can edit your website in this file -
chmod +x ~
-grants execute privileges to the server
Your website is now up and running! Visit csua.org/~$CSUA_USERNAME to see your new page!
soda
can host your web app. As long as you can run a server that responds to requests over a Unix Domain Socket.
soda
automatically forwards requests to $user.soda.csua.berkeley.edu
to /home/$user/public_html/default.sock
and requests to $socket.$user.soda.csua.berkeley.edu
to /home/$user/public_html/$socket.sock
.
For example, I could run this example node.js app and access it at http://robertq.soda.csua.berkeley.edu/echo
Using other web servers are possible, as long as they support communicating over a unix socket.
Additionally, TCP ports 8000-8999 are open for use, available like soda.csua.berkeley.edu:8xxx
.
- 2024 Data Recovery (data circa 2014-5)
- Cheat sheet
- Soda
- Tap/Services
- Minifridge
- Latte
- Third-Party
- Github
- Trello
- Google Drive
- Slack
- Discord