Centos8 template cleanup suggestions please

Background : I haven't really used any Redhat distro regularly since 2006 .
At this point, I am a sort of a noob to all the changes in centos land (learning a ton over the weekend.)
At least systemd is the same everywhere.

So, I decided to make a centos8 KVM base template for my proxmox nodes after realizing that apnscp is CENTOS-only. (I usually just use hetzner cloud for Centos)

Here is a gist I found online (minus some vmware guest agent) Credit : https://gist.github.com/efeldhusen/4bea2031525203b1658b444f4709c12c
Any Edits or other suggestions members have for Centos8 compatibiliy?
It mostly looks good to me.

#!/bin/bash
#Paths are for Centos 7.x

# Install optional packages
/usr/bin/yum install -y epel-release
/usr/bin/yum install -y bash-completion htop yum-utils dkms

#stop logging services
/sbin/service rsyslog stop
/sbin/service auditd stop

#remove old kernels
/usr/bin/package-cleanup --oldkernels --count=1

#clean yum cache
/usr/bin/yum clean all

#force logrotate to shrink logspace and remove old logs as well as truncate logs
/usr/sbin/logrotate -f /etc/logrotate.conf
/bin/rm -f /var/log/*-???????? /var/log/*.gz
/bin/rm -f /var/log/dmesg.old
/bin/rm -rf /var/log/anaconda
/bin/cat /dev/null > /var/log/audit/audit.log
/bin/cat /dev/null > /var/log/wtmp
/bin/cat /dev/null > /var/log/lastlog
/bin/cat /dev/null > /var/log/grubby

#remove udev hardware rules
/bin/rm -f /etc/udev/rules.d/70*

#remove uuid from ifcfg scripts
/bin/sed -i '/^(HWADDR|UUID)=/d' /etc/sysconfig/network-scripts/ifcfg-myENSinterface_code

#remove SSH host keys
/bin/rm -f /etc/ssh/*key*

#remove root users shell history
/bin/rm -f ~root/.bash_history
unset HISTFILE

#remove root users SSH history
/bin/rm -rf ~root/.ssh/
poweroff

Comments

  • cybertechcybertech OGBenchmark King

    Centos 8 fully working as webserver?

    I bench YABS 24/7/365 unless it's a leap year.

  • edited December 2019

    @cybertech said:
    Centos 8 fully working as webserver?

    I don't understand your comment. Is there some packaging delay for the major ones?

    I just picked centos8 since I'm looking to re-learn as little as possible moving forward.

    nmcli, systemd are already shared across ubuntu LTS and centos8 now.

  • cybertechcybertech OGBenchmark King

    @vimalware said:

    @cybertech said:
    Centos 8 fully working as webserver?

    I don't understand your comment. Is there some packaging delay for the major ones?

    I just picked centos8 since I'm looking to re-learn as little as possible moving forward.

    nmcli, systemd are already shared across ubuntu LTS and centos8 now.

    tried Centos 8 with aapanel, iirc it had some bugs back then, so reverted to 7. but it could be panel related issues also i dont know

    I bench YABS 24/7/365 unless it's a leap year.

  • Oops. @cybertech
    Looks like I'll be using this template for other centos8 learning. shrugs

    apnscp installer on vultr centos8 high-cpu instance yields:

    ERR: CentOS/RHEL 8 is not supported yet
    Installation failed
    
    Thanked by (1)cybertech
  • For the moment I'd use CentOS 8 for learning what changed from CentOS 7.

    I have the feeling by reading here and there that packages are still fine tuning to the new version. I wouldn't feel comfortable to use it in production yet.

    Thanked by (2)cybertech vimalware
  • Oh thanks mate.

    I have a feeling that by the time I get somewhat competent fixing common issues, centos8 would become officially-supported by 3rd party biggies. ?

    Thanked by (1)beagle
  • cybertechcybertech OGBenchmark King
    edited December 2019

    @vimalware said:
    Oh thanks mate.

    I have a feeling that by the time I get somewhat competent fixing common issues, centos8 would become officially-supported by 3rd party biggies. ?

    if you really wanna have a feel of centos8 with webserver, aapanel installs completely fine. i had some problem with database after a few days but it might have been a buggy mysql 8.0 on centos8 or lack of memory (installed on a 4GB ram vps), maybe mariadb is fine.

    I bench YABS 24/7/365 unless it's a leap year.

  • How much RAM does MariaDB typically use/require, say per average low traffic Wordpress instance?

  • @flips said: How much RAM does MariaDB typically use/require, say per average low traffic Wordpress instance?

    On a box with five low-traffic wordpress sites mariadb is taking 1.1G

  • Hm, thought I ran a Wordpress installation on a 1 GB KVM VPS for a few years (2014/15-18'ish), might have been mysql, not MariaDB ... Did run nginx.

  • @beagle said:
    For the moment I'd use CentOS 8 for learning what changed from CentOS 7.

    AppStreams replacing Software Collections is the biggest change. Everything else is pretty much the same aside from new software versions. The RedHat world has settled down quite a bit after the systemd upheaval of 7.

    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/installing_managing_and_removing_user_space_components/using-appstream_using-appstream

    I have the feeling by reading here and there that packages are still fine tuning to the new version. I wouldn't feel comfortable to use it in production yet.

    >

    Yes, CentOS7 still has a bigger third-party package selection then CentOS8.

    Thanked by (2)beagle vimalware
Sign In or Register to comment.

This Site is currently in maintenance mode.
Please check back here later.

→ Site Settings