<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>centos8 — LowEndSpirit</title>
        <link>https://staging.lowendspirit.com/index.php?p=/</link>
        <pubDate>Fri, 10 Apr 2026 14:53:34 +0000</pubDate>
        <language>en</language>
            <description>centos8 — LowEndSpirit</description>
    <atom:link href="https://staging.lowendspirit.com/index.php?p=/discussions/tagged/centos8/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Centos8 template cleanup suggestions please</title>
        <link>https://staging.lowendspirit.com/index.php?p=/discussion/291/centos8-template-cleanup-suggestions-please</link>
        <pubDate>Wed, 11 Dec 2019 05:28:14 +0000</pubDate>
        <category>Technical</category>
        <dc:creator>vimalware</dc:creator>
        <guid isPermaLink="false">291@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Background : I haven't really used any Redhat distro regularly since 2006 .<br />
At this point, I am a sort of a  noob to all the changes in centos land (learning a ton over the weekend.)<br />
At least systemd is the same everywhere.</p>

<p>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)</p>

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

<pre><code>#!/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 &gt; /var/log/audit/audit.log
/bin/cat /dev/null &gt; /var/log/wtmp
/bin/cat /dev/null &gt; /var/log/lastlog
/bin/cat /dev/null &gt; /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
</code></pre>
]]>
        </description>
    </item>
   </channel>
</rss>
