Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
redhat:base-redhat:basics-redhat [2017/08/22 10:42] – [Grundlagen für Redhat / CentOS7] michael | redhat:base-redhat:basics-redhat [2019/06/11 10:24] (current) – [System Information] michael | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Grundlagen für Redhat / CentOS7 ====== | ====== Grundlagen für Redhat / CentOS7 ====== | ||
- | {{ :knowhow: | + | {{ :linux: |
---- | ---- | ||
===== Basis Know-How Redhat Systems ===== | ===== Basis Know-How Redhat Systems ===== | ||
+ | |||
+ | * [[linux: | ||
+ | * [[linux: | ||
+ | |||
<WRAP center box 100%> | <WRAP center box 100%> | ||
==== System Aktualisieren / Warten ==== | ==== System Aktualisieren / Warten ==== | ||
'' | '' | ||
- | - <wrap em> | + | |
+ | <wrap em> | ||
</ | </ | ||
Line 26: | Line 31: | ||
==== motd - Message of the day==== | ==== motd - Message of the day==== | ||
'' | '' | ||
- | |||
- | Add description and serial number to motd: | ||
< | < | ||
- | hxxxxx | + | ############################################################################## |
- | IT2 Debian Test Server (251xxxxx) | + | # # |
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | ############################################################################## | ||
- | Debian Stable (i386) Linux | + | ' > / |
+ | </ | ||
- | IT2 ApplicationServices | + | <WRAP center box 100%> |
+ | ==== Neuer User anlegen ==== | ||
+ | '' | ||
+ | < | ||
+ | # passwd michael</ | ||
- | " | + | ''< |
+ | |||
+ | '' | ||
+ | '' | ||
+ | |||
+ | ''< | ||
+ | |||
+ | < | ||
- | ' > / | ||
</ | </ | ||
+ | <WRAP center box 100%> | ||
+ | ==== Die Grösse eines Ordners anzeigen ==== | ||
+ | '' | ||
+ | < | ||
+ | <sxh plain; gutter: false;> | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center box 100%> | ||
+ | ==== SSH Login auf Server mit DNS oder User-Hash Problemen ==== | ||
+ | '' | ||
+ | < | ||
+ | |||
+ | <sxh plain; gutter: false;> | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | @ | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | The RSA host key for vb7gl9 has changed, | ||
+ | and the key for the corresponding IP address 172.18.13.12 | ||
+ | is unknown. This could either mean that | ||
+ | DNS SPOOFING is happening or the IP address for the host | ||
+ | and its host key have changed at the same time. | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! | ||
+ | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
+ | IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! | ||
+ | Someone could be eavesdropping on you right now (man-in-the-middle attack)! | ||
+ | It is also possible that a host key has just been changed. | ||
+ | The fingerprint for the RSA key sent by the remote host is | ||
+ | SHA256: | ||
+ | Please contact your system administrator. | ||
+ | Add correct host key in / | ||
+ | Offending RSA key in / | ||
+ | RSA host key for vb7gl9 has changed and you have requested strict checking. | ||
+ | Host key verification failed.</ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ''< | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
---- | ---- | ||
Line 47: | Line 114: | ||
===== Systemverwaltung ===== | ===== Systemverwaltung ===== | ||
'' | '' | ||
+ | |||
+ | <WRAP center box 100%> | ||
+ | ==== Wechseln der Zeitzone ==== | ||
+ | - '' | ||
+ | - '' | ||
+ | - Um nun die aktuelle Timezone (Zeitzone) zu wechseln, verwendet man set-timezone zusammen mit der gewünschten TIMEZONE. <wrap em> | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 308: | Line 387: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | |||
+ | <WRAP center box 100%> | ||
+ | ==== Show what exactly a Package does on installation ==== | ||
+ | '' | ||
+ | < | ||
+ | <sxh plain; gutter: false;> | ||
+ | postinstall scriptlet (using /bin/sh): | ||
+ | #!/bin/sh | ||
+ | |||
+ | if [ ! -e / | ||
+ | cp / | ||
+ | fi | ||
+ | |||
+ | if ! grep / | ||
+ | sed -i -e " | ||
+ | / | ||
+ | fi | ||
+ | |||
+ | service httpd reload | ||
+ | |||
+ | patchman-set-secret-key | ||
+ | chown apache / | ||
+ | |||
+ | mkdir -p / | ||
+ | patchman-manage collectstatic --noinput | ||
+ | |||
+ | patchman-manage makemigrations | ||
+ | patchman-manage migrate --run-syncdb | ||
+ | |||
+ | chown -R apache: | ||
+ | chcon --type httpd_sys_rw_content_t / | ||
+ | |||
+ | echo | ||
+ | echo " | ||
+ | echo | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Redhat Dokumentation zum Thema ===== | ||
+ | |||
+ | <WRAP center round download 80%> | ||
+ | '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||