vps_-_centos
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vps_-_centos [2021/04/02 09:18] – [3rd party repos] hc9 | vps_-_centos [2021/04/02 18:14] (current) – [Software Management] hc9 | ||
---|---|---|---|
Line 46: | Line 46: | ||
Change the next line in / | Change the next line in / | ||
- | | + | <file config / |
+ | HOSTNAME=my.host.name | ||
+ | </ | ||
Change hostname (FQDN and alias) in /etc/hosts so it reads like this: | Change hostname (FQDN and alias) in /etc/hosts so it reads like this: | ||
Line 70: | Line 72: | ||
Edit / | Edit / | ||
- | <file config /etc/ssh/sshd> | + | <file config /etc/ssh/sshd_config> |
# | # | ||
</ | </ | ||
Line 76: | Line 78: | ||
To: | To: | ||
- | <file config /etc/ssh/sshd> | + | <file config /etc/ssh/sshd_config> |
PermitRootLogin no | PermitRootLogin no | ||
</ | </ | ||
Line 96: | Line 98: | ||
===== Security ===== | ===== Security ===== | ||
- | In CentOS SELinux is enabled by default, SDF's CentOS VPS has SELinux configured to run in permissive mode, so it will log any security problem but won't enforce any policy. If you are not familiar with SELinux I suggest you to leave it this way, you can learn more about SLinux in CentOS in the [[#reference|Deployment Guide]] | + | In CentOS SELinux is enabled by default, SDF's CentOS VPS has SELinux configured to run in permissive mode, so it will log any security problem but won't enforce any policy. If you are not familiar with SELinux I suggest you to leave it this way, you can learn more about SLinux in CentOS in the [[: |
CentOS 7 uses firewalld, you can learn more about configuring firewalld [[https:// | CentOS 7 uses firewalld, you can learn more about configuring firewalld [[https:// | ||
Line 106: | Line 108: | ||
You can configure this repositoires in / | You can configure this repositoires in / | ||
- | | + | <file config / |
+ | exclude=kernel-PAE* kernel-debug* kernel-devel* kernel-doc* kernel-xen* | ||
+ | </ | ||
CentOS is aimed to be 100% binary compatible with RHEL, so it is very enterprise oriented and the best advise is to stick with pre-built packages. | CentOS is aimed to be 100% binary compatible with RHEL, so it is very enterprise oriented and the best advise is to stick with pre-built packages. | ||
Line 158: | Line 162: | ||
contrib is also a disabled default in CentOS. This repository contains packages contributed by CentOS users which do not overlap with any of the core distribution packages. These packages have not been tested by the CentOS developers and may not track the upstream version releases very closely. | contrib is also a disabled default in CentOS. This repository contains packages contributed by CentOS users which do not overlap with any of the core distribution packages. These packages have not been tested by the CentOS developers and may not track the upstream version releases very closely. | ||
- | To enable repositories temporarily, | + | To enable repositories temporarily, |
yum --enablerepo=centosplus --enablerepo=contrib search postfix | yum --enablerepo=centosplus --enablerepo=contrib search postfix | ||
Line 178: | Line 182: | ||
---- | ---- | ||
- | $Id: VPS_Centos.html, | + | $Id: VPS_Centos.html, |
vps_-_centos.1617355090.txt.gz · Last modified: 2021/04/02 09:18 by hc9