Forums

Resolved
0 votes
I would like to know if it is possible to install ClearOS 7 from a CentOS installation.
My service provider does not allow the ISO to be uploaded and I only have the option of installing CentOS 7.
Any suggestions?
Monday, September 30 2019, 05:38 PM
Share this post:
Responses (2)
  • Accepted Answer

    Saturday, October 05 2019, 09:47 AM - #Permalink
    Resolved
    0 votes
    Sorry for the delay, but notification e-mails of new posts have been failing so yours got stuck under moderation.

    Yes it is possible but I don't know how. There is a Linode Stackscript here which may work. It may need adjusting for the eth0 interface if the Centos installation uses a different interface. I'd try using whatever Centos uses. If you can get to a console or the webconfig afterwards, that part of the installation can be adjusted. I'll ask Dave as he knows more about it.

    [edit]
    If it works, please then do a:
    yum update app-base
    yum clean all
    yum update
    To bring your system up to date. After that automatic updates should work. They may work anyway.
    [/edit]
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 05 2019, 12:07 PM - #Permalink
    Resolved
    0 votes
    Here is a modified setup based on the Linode information Nick was talking about. You will need to start with a 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
    /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 clearos-centos.repo modify the enabled value:
    yum-config-manager enable clearos-centos
    - 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
    The reply is currently minimized Show
Your Reply