Wiki source code of EigeneHomepage
Last modified by Aysegül Omus on 2025/01/16 13:02
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
5.2 | 1 | = Creating your own homepage = |
![]() |
1.1 | 2 | |
![]() |
5.2 | 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 | |||
10 | |||
![]() |
5.2 | 11 | == 1. General information == |
![]() |
1.1 | 12 | |
13 | |||
![]() |
5.2 | 14 | A worthwhile German website with a FAQ-section on setting up a homepage by Franz Prilmeier can be accessed [[here>>http://wwwrbg.in.tum.de/rechnerhalle/data/home_page_faq.php]]. |
![]() |
4.1 | 15 | |
![]() |
5.2 | 16 | (% style="color:red" %)**Important remark:**(%%) https://wiki.ito.cit.tum.de/bin/view/Informatik/Helpdesk/Zugriffsrechte[[https://xwiki.rbg.tum.de/bin/view/Informatik/Helpdesk/Zugriffsrechte]][[https://xwiki.rbg.tum.de/bin/view/Informatik/Helpdesk/Zugriffsrechte]]. This wiki-page should be read thoroughly before the homepage creation so that potential risks are minimized. |
17 | |||
![]() |
1.1 | 18 | ---- |
19 | |||
![]() |
5.2 | 20 | == 2. Preparation == |
![]() |
1.1 | 21 | |
![]() |
5.2 | 22 | The \"index.html\" file for the home page is situated in the directory: |
![]() |
1.1 | 23 | |
24 | |||
25 | |||
26 | {{html wiki="true"}} | ||
27 | {{code}}/u/halle/$USER/home_page/html-data/ {{/code}} | ||
28 | {{/html}} | ||
29 | |||
30 | |||
31 | |||
![]() |
5.2 | 32 | Following commands should be executed: |
![]() |
1.1 | 33 | |
34 | |||
35 | |||
36 | {{html wiki="true"}} | ||
![]() |
5.2 | 37 | {{code}}ssh <loginname>@lxhalle.in.tum.de%BR%%BR%mkdir -p $(dirname $HOME)/home_page/html-data%BR%%BR%touch $(dirname $HOME)/home_page/html-data/index.html%BR%%BR%chmod -v o+x $(dirname $HOME)%BR%%BR%chmod -v o+x $(dirname $HOME)/home_page%BR%%BR%chmod o+x $(dirname $HOME)/home_page/html-data%BR%%BR% chmod o+r $(dirname $HOME)/home_page/index.html{{/code}} |
![]() |
1.1 | 38 | {{/html}} |
39 | |||
40 | |||
41 | |||
![]() |
5.2 | 42 | They ensure the generation of an empty \"index.html\" file and the correct setting of the access rights. |
![]() |
1.1 | 43 | |
![]() |
5.2 | 44 | == 3. Generating HTML code == |
![]() |
1.1 | 45 | |
46 | |||
47 | |||
48 | {{html wiki="true"}} | ||
![]() |
5.2 | 49 | <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 | 50 | {{/html}} |
51 | |||
52 | |||
53 | |||
54 | |||
55 | {{html wiki="true"}} | ||
56 | {{code}}<!DOCTYPE html>%BR%<html>%BR%%BR%<head>%BR%<title>Testpage</title>%BR%</head>%BR%%BR%<body bgcolor =#22ff00>%BR%%BR%<h1>Mykoooonos</h1>%BR%<p>So koennte ihre Webseite ausschauen.</p>%BR%%BR%</body>%BR%</html> {{/code}} | ||
57 | {{/html}} | ||
58 | |||
59 | |||
60 | |||
![]() |
5.2 | 61 | After editting the file, the website can be accessed by calling http://home.in.tum.de/~//accountName///. |
![]() |
1.1 | 62 | |
63 | |||
![]() |
4.1 | 64 | [[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 | 65 | |
![]() |
5.2 | 66 | == 4. Apache Error Logfile == |
![]() |
1.1 | 67 | |
![]() |
5.2 | 68 | It's possible to inspect the error log of the Apache server, which may turn out to be quite useful during troubleshooting: |
![]() |
4.1 | 69 | |
![]() |
5.2 | 70 | * The file is saved on the computer ##home.in.tum.de## which can be accessed via ##ssh## {{{ssh <Ihr_Login>@home.in.tum.de}}} |
71 | * The file path is ##/var/apache2/logs/error_log## | ||
72 | * Enter the following command to read: {{{less /var/apache2/logs/error_log}}} |