Wiki source code of EigeneHomepage
Last modified by wikibot on 2023/02/05 20:29
Hide last authors
author | version | line-number | content |
---|---|---|---|
3.1 | 1 | = Creating your own homepage = | |
1.1 | 2 | ||
3.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 | |||
10 | |||
3.1 | 11 | == 1. General information == | |
1.1 | 12 | ||
13 | |||
3.1 | 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://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. | ||
1.1 | 17 | ---- | |
18 | |||
3.1 | 19 | == 2. Preparation == | |
1.1 | 20 | ||
3.1 | 21 | The \"index.html\" file for the home page is situated in the directory: | |
1.1 | 22 | ||
23 | |||
24 | |||
25 | {{html wiki="true"}} | ||
26 | {{code}}/u/halle/$USER/home_page/html-data/ {{/code}} | ||
27 | {{/html}} | ||
28 | |||
29 | |||
30 | |||
3.1 | 31 | Following commands should be executed: | |
1.1 | 32 | ||
33 | |||
34 | |||
35 | {{html wiki="true"}} | ||
3.1 | 36 | {{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 | 37 | {{/html}} | |
38 | |||
39 | |||
40 | |||
3.1 | 41 | They ensure the generation of an empty \"index.html\" file and the correct setting of the access rights. | |
1.1 | 42 | ||
3.1 | 43 | == 3. Generating HTML code == | |
1.1 | 44 | ||
45 | |||
46 | |||
47 | {{html wiki="true"}} | ||
3.1 | 48 | <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 | 49 | {{/html}} | |
50 | |||
51 | |||
52 | |||
53 | |||
54 | {{html wiki="true"}} | ||
55 | {{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}} | ||
56 | {{/html}} | ||
57 | |||
58 | |||
59 | |||
3.1 | 60 | After editting the file, the website can be accessed by calling http://home.in.tum.de/~//accountName///. | |
1.1 | 61 | ||
62 | |||
63 | [[image:https://xwiki.rbg.tum.de/bin/download/Informatik/Helpdesk/EigeneHomepage/WebHome/Screenshot.png|| width="881" height="141" title="Screenshot.png" alt="So könnte die Webseite aussehen"]] | ||
64 | |||
3.1 | 65 | == 4. Apache Error Logfile == | |
1.1 | 66 | ||
3.1 | 67 | It's possible to inspect the error log of the Apache server, which may turn out to be quite useful during troubleshooting: | |
68 | * The file is saved on the computer ##home.in.tum.de## which can be accessed via ##ssh## {{{ | ||
1.1 | 69 | ssh <Ihr_Login>@home.in.tum.de | |
70 | }}} | ||
3.1 | 71 | * The file path is ##/var/apache2/logs/error_log## | |
72 | * Enter the following command to read: {{{ | ||
1.1 | 73 | less /var/apache2/logs/error_log | |
74 | }}} |