Web page hosting on Uni-Freiburg domain
Assumptions:
You are currently enrolled in the University of Freiburg (I’m not) or is somehow affiliated to the university.
Interested in creating a simple online web page.
Understands very basic Linux commands and HTML code.
What?
Personal web pages are hosted in Uni-Freiburgs omnibus server:
omnibus.uni-freiburg.de
By default your site will be hosted here with your User ID in the end:
omnibus.uni-freiburg.de/~gg76
Here gg76 used to be my User ID. User ID is the ID with which you
login to this site: myaccount.uni-freiburg.de/uadmin/login
TL;DR? Go here: https://github.com/thatgeeman/public_html_tut
How?
-
Windows people do this first and continue to the next step.
-
Linux people can directly
sshto the omnibus server with:ssh gg76@login.uni-freiburg.de -
Files required to make the web-page are kept in a folder called
public_htmlwhich is located in a sub-directory under our UserID. Navigate to that directory:cd /home/omnibus/gg76/public_html -
If no such directory:
mkdir /home/omnibus mkdir /home/omnibus/gg76 mkdir /home/omnibus/gg76/public_html cd /home/omnibus/gg76/public_html -
Check if
gitis supported with the-vflag. Then dogit cloneand copy all files (and folders) topublic_html:git -v git clone https://github.com/thatgeeman/public_html_tut cd public_html_tut cp * -r ../../public_html cd ../../public_html -
If there is no git support, and only
sshprotocols work, read this to see how you can proceed. -
Also read this to understand what each file in
public_htmlmeans. -
Modify the
index.htmlfile inpublic_htmlto suit your needs: modify name, website, info, CV, etc. -
Upload files that you linked to, in the
index.htmlfile, into thefilesdirectory. See the misc section for how to do this. -
That’s it, your website should be ready now.
Misc, but useful
In Step 9, I said upload your files: how do you do that anyway?
You can use the scp command to copy files from your computer (from
shell) to the website directory with:
scp /path/to/file.pdf UserID@login.uni-freiburg.de:/home/omnibus/UserID/public_html
Skip step 4
Skip to this to use your PC/Laptop (windows or linux) to edit the files
according to your requirement and later upload it to the university
server. To do that, first download the website package I’ve prepared for
you
here.
Extract its contents, and use any text editor to modify the
index.html file. Add the CV and other docs you want to share in your
website into the files directory. You can preview your website to
see if everything works by simply opening the index.html file with an
internet browser. Now you can scp the entire directory with the -r
flag to the omnibus server, like this:
scp -r ~/path/to/public_html_tut/* UserID@login.uni-freiburg.de:/home/omnibus/UserID/public_html
Steps for Windows
Here are the steps for Windows users to connect to the omnibus server and upload files. If you are on Linux, skip this and continue to the next step.
Method 1: Easy
Do it the easy way by downloading a Linux subsystem for Windows from
here. This supports
natively all commands including (but not limited to) git, ssh, and
scp. Now follow everything from Step 2.
Method 2: Intermediate
If you are on windows, install Cygwin and PuTTy to get scp,
ssh, and other linux terminal like features.
With Cygwin, you can use most basic linux commands. For scp, ssh,
and git, you have to follow
this
and
this.
After, go to Step 2.
If you want to use PuTTy, use these protocols to connect to the uni
server with ssh and modify files within the terminal:
Server: login.uni-freiburg.de
User: UserID
Password:
Port: 22
Protocol: SFTP