ClearOS 6

by clearos
170 deployments · 80 still active · last rev. 5 years ago

A StackScript for installing the most recent stable ClearOS 6 release

Compatible with: CentOS 6.8
						#!/bin/bash -x


# Prep release and repos
rpm -Uvh
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ClearOS

# Install and upgrade
yum --enablerepo=* clean all
yum -y install app-base
yum -y install app-marketplace app-users app-groups app-date app-configuration-backup app-disk-usage app-mail-notification app-bandwidth-viewer app-incoming-firewall app-ssh-server
yum -y remove libreport ntsysv at
yum -y upgrade

# Enable firewall
allow-port -p TCP -d 22 -n SSH
allow-port -p TCP -d 81 -n Webconfig
sed -i -e 's/^MODE=.*/MODE="standalone"/' /etc/clearos/network.conf

# Start webconfig
service webconfig start

) 2>&1 | tee /var/log/clearos-installer.log