Wiki source code of EigeneHomepage
Last modified by Aysegül Omus on 2025/01/16 13:02
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Creating your own homepage = | ||
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///. | ||
4 | |||
5 | |||
6 | |||
7 | {{toc/}} | ||
8 | |||
9 | |||
10 | |||
11 | == 1. General information == | ||
12 | |||
13 | |||
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]]. | ||
15 | |||
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 | |||
18 | ---- | ||
19 | |||
20 | == 2. Preparation == | ||
21 | |||
22 | The \"index.html\" file for the home page is situated in the directory: | ||
23 | |||
24 | |||
25 | |||
26 | {{html wiki="true"}} | ||
27 | {{code}}/u/halle/$USER/home_page/html-data/ {{/code}} | ||
28 | {{/html}} | ||
29 | |||
30 | |||
31 | |||
32 | Following commands should be executed: | ||
33 | |||
34 | |||
35 | |||
36 | {{html wiki="true"}} | ||
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}} | ||
38 | {{/html}} | ||
39 | |||
40 | |||
41 | |||
42 | They ensure the generation of an empty \"index.html\" file and the correct setting of the access rights. | ||
43 | |||
44 | == 3. Generating HTML code == | ||
45 | |||
46 | |||
47 | |||
48 | {{html wiki="true"}} | ||
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> | ||
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 | |||
61 | After editting the file, the website can be accessed by calling http://home.in.tum.de/~//accountName///. | ||
62 | |||
63 | |||
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"]] | ||
65 | |||
66 | == 4. Apache Error Logfile == | ||
67 | |||
68 | It's possible to inspect the error log of the Apache server, which may turn out to be quite useful during troubleshooting: | ||
69 | |||
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}}} |