Some hosting providers such as Linode only provide Centos images and not ClearOS. It is possible to convert a Centos installation to ClearOS following these instructions. You will need to start with the most sparse install of CentOS available. For virtualization providers, find a very minimal instance type to use.
sudo su - yum -y remove NetworkManager # Set SELinux to disabled sed -i 's/=enforcing/=disabled/' /etc/selinux/config setenforce 0 #reboot
It can be difficult to get business installed on a CentOS system that comes via a virtual platform like AWS because many of them run updates which will give you a very advanced version and depending on the update cycle, you may not be able to update unless you enable repos. When stuck, find the equivalent step in ClearOS community and run yum with –enablerepo=clearos-updates,clearos-centos.
sudo su - mkdir -p /tmp/rpms cd /tmp/rpms/ === njh ===> Change links curl -LO https://mirror1-newyork.clearos.com/clearos/7/updates/x86_64/RPMS/$(curl -s https://mirror1-newyork.clearos.com/clearos/7/updates/x86_64/RPMS/|grep -oh system-base-[0-9]+*.*.rpm\"|grep -oh system-base-[0-9]+*.*.rpm) curl -LO https://mirror1-newyork.clearos.com/clearos/7/updates/x86_64/RPMS/$(curl -s https://mirror1-newyork.clearos.com/clearos/7/updates/x86_64/RPMS/|grep -oh clearos-release-[0-9]+*.*.rpm\"|grep -oh clearos-release-[0-9]+*.*.rpm) curl -LO https://mirror1-newyork.clearos.com/clearos/7/updates/x86_64/RPMS/$(curl -s https://mirror1-newyork.clearos.com/clearos/7/updates/x86_64/RPMS/|grep -oh app-base-core-[0-9]+*.*.rpm\"|grep -oh app-base-core-[0-9]+*.*.rpm) curl -LO https://mirror1-newyork.clearos.com/clearos/7/updates/x86_64/RPMS/$(curl -s https://mirror1-newyork.clearos.com/clearos/7/updates/x86_64/RPMS/|grep -oh app-base-[0-9]+*.*.rpm\"|grep -oh app-base-[0-9]+*.*.rpm) rpm -ivh --nodeps app-base-* rm -rf /var/cache/yum/ rpm -ivh --nodeps system-base-*.rpm yum install clearos-release-*.rpm === njh ===> enable clearos-centos and clearos-centos-updates yum reinstall app-base-* --enablerepo=clearos-centos,clearos-centos-updates rm -rf /var/cache/yum/ yum reinstall system-base yum reinstall clearos-release rm -rf /var/cache/yum/ rm -f *.rpm systemctl stop webconfig
In the clearos-centos.repo modify the enabled value:
yum-config-manager enable clearos-centos
This only works if your minimal installation has yum-config-manager. If not you have to do a manual edit:
vi /etc/yum.repos.d/clearos-centos.repo
If you don't get on with vi, try with the editor “nano” which may be installed.
Set a root password so that you can login to Webconfig
passwd
Run updates to basics and fixup nameserver then finish updates
yum -y update app-base # may find nothing to do rm -rf /var/cache/yum/ && yum -y update --enablerepo=clearos-centos,clearos-centos-updates rm -rf /var/cache/yum/ echo "nameserver 8.8.8.8" > /etc/resolv.conf === njh ===> enable clearos-epel for the next command yum -y install app-accounts app-configuration-backup app-dashboard app-date app-dns app-edition app-events app-incoming-firewall app-groups app-language app-log-viewer app-mail app-marketplace app-process-viewer app-software-updates app-ssh-server app-support app-user-profile app-users --enablerepo=clearos-epel systemctl restart syswatch allow-port -p TCP -d 22 -n SSH allow-port -p TCP -d 81 -n Webconfig systemctl start webconfig systemctl enable webconfig reboot