Wiki source code of EigeneHomepage
Last modified by Aysegül Omus on 2025/05/19 15:34
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
7.1 | 1 | = Creating your own homepage = |
![]() |
1.1 | 2 | |
![]() |
7.1 | 3 | This article explains how and where you can set up a homepage of your own on the university computers. Each informatics student has the opportunity to create one under the URL: http://home.in.tum.de/~//accountName///. |
![]() |
1.1 | 4 | |
5 | |||
6 | |||
7 | {{toc/}} | ||
8 | |||
9 | |||
![]() |
7.1 | 10 | == 1. General information == |
![]() |
1.1 | 11 | |
12 | |||
![]() |
7.1 | 13 | (% style="color:red" %)**Important remark:**(%%) https://wiki.ito.cit.tum.de/bin/view/Informatik/Helpdesk/Zugriffsrechte |
![]() |
1.1 | 14 | |
![]() |
7.1 | 15 | This wiki page should be read thoroughly before the homepage creation so that potential risks are minimized. |
![]() |
4.1 | 16 | |
![]() |
1.1 | 17 | ---- |
18 | |||
![]() |
7.1 | 19 | == 2. Preparation == |
![]() |
1.1 | 20 | |
![]() |
7.1 | 21 | The "index.html" file for the home page is situated in the directory: |
![]() |
1.1 | 22 | |
23 | {{html wiki="true"}} | ||
24 | {{code}}/u/halle/$USER/home_page/html-data/ {{/code}} | ||
25 | {{/html}} | ||
26 | |||
27 | |||
![]() |
7.1 | 28 | The following commands should be executed: |
![]() |
1.1 | 29 | |
30 | {{html wiki="true"}} | ||
![]() |
6.1 | 31 | {{code}}ssh <loginname>@lxhalle.in.tum.de | mkdir -p $(dirname $HOME)/home_page/html-data | touch $(dirname $HOME)/home_page/html-data/index.html | chmod -v o+x $(dirname $HOME) | chmod -v o+x $(dirname $HOME)/home_page | chmod o+x $(dirname $HOME)/home_page/html-data | chmod o+r $(dirname $HOME)/home_page/index.html{{/code}} |
![]() |
1.1 | 32 | {{/html}} |
33 | |||
34 | |||
![]() |
7.1 | 35 | They ensure the generation of an empty "index.html" file and the correct setting of the access rights. |
![]() |
1.1 | 36 | |
![]() |
7.1 | 37 | == 3. Generating HTML code == |
![]() |
1.1 | 38 | |
39 | |||
40 | |||
41 | {{html wiki="true"}} | ||
![]() |
7.1 | 42 | <span style='background-color: transparent;'>An abundance of HTML tutorials can be found on the Internet, one of them being [[w3schools>>https://www.w3schools.com/Html/]]. The previously generated index.html file should follow the following scheme:</span> |
![]() |
1.1 | 43 | {{/html}} |
44 | |||
45 | {{html wiki="true"}} | ||
![]() |
6.1 | 46 | {{code}}<!DOCTYPE html><html><head><title>Testpage</title></head><body bgcolor =#22ff00><h1>Mykoooonos</h1><p>So koennte ihre Webseite ausschauen.</p></body></html> {{/code}} |
![]() |
1.1 | 47 | {{/html}} |
48 | |||
![]() |
7.1 | 49 | After editing the file, the website can be accessed by calling http://home.in.tum.de/~//accountName///. |
![]() |
1.1 | 50 | |
51 | |||
![]() |
4.1 | 52 | [[image:https://xwiki.rbg.tum.de/bin/download/Informatik/Helpdesk/EigeneHomepage/WebHome/Screenshot.png||alt="So könnte die Webseite aussehen" height="141" title="Screenshot.png" width="881"]] |
![]() |
1.1 | 53 | |
![]() |
7.1 | 54 | == 4. Apache Error Logfile == |
![]() |
1.1 | 55 | |
![]() |
7.1 | 56 | It's possible to inspect the error log of the Apache server, which may turn out to be quite useful during troubleshooting: |
![]() |
4.1 | 57 | |
![]() |
7.1 | 58 | * The file is saved on the computer ##home.in.tum.de## which can be accessed via ##ssh## {{{ssh <Ihr_Login>@home.in.tum.de}}} |
59 | * The file path is ##/var/apache2/logs/error_log## | ||
60 | * Enter the following command to read: {{{less /var/apache2/logs/error_log}}} |