Skip to content

Instantly share code, notes, and snippets.

@Richzendy
Created April 5, 2018 02:17
Show Gist options
  • Save Richzendy/866f6c929153bef49920a7122ca5ca5c to your computer and use it in GitHub Desktop.
Save Richzendy/866f6c929153bef49920a7122ca5ca5c to your computer and use it in GitHub Desktop.
Script to install clearOS on Digital Ocean Droplet
#!/bin/bash
# bash script to install clearOS on a Digital Ocean Droplet
# taken from http://wikisuite.org/How-to-upgrade-a-fresh-install-of-CentOS-to-ClearOS
# Prep release and repos
rpm -Uvh http://download2.clearsdn.com/marketplace/cloud/7/noarch/clearos-release-7-current.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ClearOS-7
# Install and upgrade
yum --enablerepo=* clean all
yum --enablerepo=clearos-centos,clearos-updates --nogpgcheck -y install app-base
yum --enablerepo=* clean all
service webconfig stop
yum -y remove bind-license dhcp-common dhcp-libs
yum --enablerepo=clearos-centos,clearos-updates -y install app-accounts app-configuration-backup 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
service syswatch restart
# 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
echo "reboot and go on your browser to https://YourIpAddress:81 to postconfig"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment