Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
systemeinstellungen_bei_centos_7 [2018/09/28 23:57] jochen [Useranlage] |
systemeinstellungen_bei_centos_7 [2022/04/25 20:28] (aktuell) |
||
|---|---|---|---|
| Zeile 8: | Zeile 8: | ||
| ==== zusätzliche Pakete ==== | ==== zusätzliche Pakete ==== | ||
| + | * acpid | ||
| * bash-completion | * bash-completion | ||
| - | * vim | ||
| - | * rsync | ||
| * epel-release | * epel-release | ||
| + | * rsync | ||
| + | * vim | ||
| * wget | * wget | ||
| * xinetd | * xinetd | ||
| Zeile 38: | Zeile 39: | ||
| [root@virtserv]# | [root@virtserv]# | ||
| - | [backuppc@virtserv ~]$ ssh scheffe@backuppc4 | + | [backuppc@virtserv ~]$ scheffe@backuppc4 |
| - | The authenticity of host 'backup | + | The authenticity of host 'backuppc4 |
| - | RSA key fingerprint is 8f:a7:68:fc:79:0d:ee:aa:f9:12:0d:94:9f:a6:df:de. | + | ECDSA key fingerprint is SHA256:kbl36qOtGqCKzFTf9shprve4bw3LemJCfGTfY9Iy/ |
| + | ECDSA key fingerprint is MD5:a5:32:de:b1:72:4c:c2:c6:f3:68:15:95:ce:0f:57:1d. | ||
| Are you sure you want to continue connecting (yes/no)? no | Are you sure you want to continue connecting (yes/no)? no | ||
| Host key verification failed. | Host key verification failed. | ||
| + | |||
| [backuppc@virtserv ~]$ cd .ssh/ | [backuppc@virtserv ~]$ cd .ssh/ | ||
| [backuppc@virtserv .ssh]$ vi authorized_keys | [backuppc@virtserv .ssh]$ vi authorized_keys | ||
| Zeile 50: | Zeile 53: | ||
| </ | </ | ||
| ==== SSH ==== | ==== SSH ==== | ||
| + | in / | ||
| + | < | ||
| + | # no default banner path | ||
| + | #Banner none | ||
| + | </ | ||
| + | auf folgendes ändern: | ||
| + | < | ||
| + | # no default banner path | ||
| + | Banner / | ||
| + | </ | ||
| + | In / | ||
| + | < | ||
| + | [root@server ~]# cat / | ||
| + | ############################################################################## | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ############################################################################## | ||
| + | </ | ||
| ==== Postfix ==== | ==== Postfix ==== | ||
| folgendes in / | folgendes in / | ||
| Zeile 65: | Zeile 92: | ||
| ==== Sudoers ==== | ==== Sudoers ==== | ||
| < | < | ||
| - | cat / | + | [root@server ~]# visudo -f / |
| # Allows backuppc to do backups and restores | # Allows backuppc to do backups and restores | ||
| Zeile 80: | Zeile 107: | ||
| < | < | ||
| ==== Repo ==== | ==== Repo ==== | ||
| + | |||
| + | Für die CentOS7-Repos Base, Updates, Extras sowie für das Epel-Repo gibt es einen lokalen Spiegel. Um den lokalen Spiegel nutzen zu können, müssen die repo-Dateien angepaßt werden. | ||
| + | |||
| + | < | ||
| + | [root@server ~]# more / | ||
| + | # CentOS-Base.repo | ||
| + | # | ||
| + | # The mirror system uses the connecting IP address of the client and the | ||
| + | # update status of each mirror to pick mirrors that are updated to and | ||
| + | # geographically close to the client. | ||
| + | # unless you are manually picking other mirrors. | ||
| + | # | ||
| + | # If the mirrorlist= does not work for you, as a fall back you can try the | ||
| + | # remarked out baseurl= line instead. | ||
| + | # | ||
| + | # | ||
| + | |||
| + | [base] | ||
| + | name=CentOS-$releasever - Base (local) | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | |||
| + | #released updates | ||
| + | [updates] | ||
| + | name=CentOS-$releasever - Updates (local) | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | |||
| + | #additional packages that may be useful | ||
| + | [extras] | ||
| + | name=CentOS-$releasever - Extras (local) | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | |||
| + | #additional packages that extend functionality of existing packages | ||
| + | [centosplus] | ||
| + | name=CentOS-$releasever - Plus | ||
| + | mirrorlist=http:// | ||
| + | # | ||
| + | gpgcheck=1 | ||
| + | enabled=0 | ||
| + | gpgkey=file:/// | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | [root@server ~]# more / | ||
| + | [epel] | ||
| + | name=Extra Packages for Enterprise Linux 7 - $basearch | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=http:// | ||
| + | </ | ||
| + | ==== Firewall ==== | ||
| + | |||
| + | |||
| + | Port 6556 für Überwachung | ||
| + | < | ||
| + | [root@virtserv]# | ||
| + | [root@virtserv]# | ||
| + | </ | ||
| + | ==== xinetd ==== | ||
| + | Zugriff von check_mk beschränken | ||
| + | ==== bashrc ==== | ||