Converting a Centos installation to ClearOS
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.
Instructions
sudo su - yum -y remove NetworkManager # Set SELinux to disabled sed -i 's/=enforcing/=disabled/' /etc/selinux/config reboot
ClearOS Home and Business
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.
ClearOS Community
sudo su - mkdir -p /tmp/rpms cd /tmp/rpms/ curl -LO http://mirror1-newyork.clearos.com/clearos/7/os/x86_64/Packages/$(curl -s http://mirror1-newyork.clearos.com/clearos/7/os/x86_64/Packages/|grep -oh system-base-[0-9]+*.*.rpm\"|grep -oh system-base-[0-9]+*.*.rpm) curl -LO http://mirror1-newyork.clearos.com/clearos/7/os/x86_64/Packages/$(curl -s http://mirror1-newyork.clearos.com/clearos/7/os/x86_64/Packages/|grep -oh clearos-release-[0-9]+*.*.rpm\"|grep -oh clearos-release-[0-9]+*.*.rpm) curl -LO http://mirror1-newyork.clearos.com/clearos/7/os/x86_64/Packages/$(curl -s http://mirror1-newyork.clearos.com/clearos/7/os/x86_64/Packages/|grep -oh app-base-core-[0-9]+*.*.rpm\"|grep -oh app-base-core-[0-9]+*.*.rpm) curl -LO http://mirror1-newyork.clearos.com/clearos/7/os/x86_64/Packages/$(curl -s http://mirror1-newyork.clearos.com/clearos/7/os/x86_64/Packages/|grep -oh app-base-[0-9]+*.*.rpm\"|grep -oh app-base-[0-9]+*.*.rpm) rpm -ivh --nodeps app-base-* yum --enablerepo=* clean all rpm -ivh --nodeps system-base-*.rpm yum install clearos-release-*.rpm yum reinstall app-base-* yum --enablerepo=* clean all yum reinstall system-base yum reinstall clearos-release yum --enablerepo=* clean all 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 --enablerepo=* clean all && yum -y update app-base yum --enablerepo=* clean all && yum -y update yum --enablerepo=* clean all echo "nameserver 8.8.8.8" > /etc/resolv.conf 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 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