Koozali.org formerly Contribs.org

Cut 'n Paste Cloud Koozali 9.0 on Centos 6.5 minimal x64

Cut 'n Paste Cloud Koozali 9.0 on Centos 6.5 minimal x64
« on: May 04, 2015, 04:11:53 AM »
"Cut 'n Paste Cloud Koozali on Centos 6.5"

The following list of commands will turn a plain Centos 6.5 x64 minimum cloud VPS install into a fully updatable Koozali SME9 server in Server-Gateway mode using a dummy nic driver.
Would really love to get this working on Centos 6.6 right away, but that gives errors during install like missing folder /etc/yum.smerepo.d and dependancy errors with samba components....

References:

SME9 on Centos:
http://wiki.contribs.org/index.php?title=SME_on_CentOS_6&oldid=18561

Shared Folders:
Very handy contrib in the cloud and it puts ACL settings in fstab so this is ready before installing SoGo/Dovecot: http://wiki.contribs.org/SharedFolders

SOGo
http://wiki.contribs.org/Sogo

Vitual Network Adaptor:
http://bugs.koozali.org/attachment.cgi?id=4935
 
Installing:
- Just rent a VPS (like a fast SSD VPS with Ramnode or a decent VPS at vr.org or any hoster that offers Centos 6.5 minimum)
- Load it with Centos 6.5 x64
- Start network if needed: ifup eth0
- Start ssh if needed: service sshd start
- SSH into your brand new VPS and just copy and paste the following commands into your shell.

Over 500 packages, processed in  8-10 minutes.
The last command to patch SME for the virtual netwok interface generates warnings, these can be safely ignored.

Code: [Select]
sed -i -e 's/rhgb quiet/selinux=0/g' /boot/grub/grub.conf
sed -i -e 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
yum -y remove selinux-policy-targeted
setenforce 0         
yum -y install wget
mkdir /tmp/repo.bak
mv /etc/yum.repos.d/*.repo /tmp/repo.bak/
wget -O /etc/yum.repos.d/sme9.repo http://bugs.contribs.org/attachment.cgi?id=3652
rpm --import http://sme-mirror.firewall-services.com/releases/8/smeos/x86_64/RPM-GPG-KEY-SMEServer
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm --import https://fedoraproject.org/static/217521F6.txt
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
rpm --import http://www.salstar.sk/pub/yum/keys/RPM-GPG-KEY-Fedora-Pre-Extras
yum --enablerepo=* clean all
yum -y --disablerepo=* --enablerepo=smeupdates9,smeupdates-testing9,smeos9 install e-smith\* smeserver\* aspell aspell-en at audit-libs-python autoconf automake bc bind-libs bind-utils cronie cronie-anacron crontabs cyrus-sasl-md5 dhcp dosfstools ed eject elfutils elfutils-libs fetchmail ftp gettext glib gpm hesiod hmaccalc imake iptraf iptstate isdn4k-utils libXdmcp libgomp libselinux-python libsmbclient libsysfs libxml2-python lm_sensors lockdev lsof lvm2 m2crypto man mcstrans minicom mkbootdisk mlocate mod_ssl mtools mt-st mutt neon net-snmp net-snmp-utils openldap-servers patch pcmciautils postgresql-libs pyxf86config rpm-build rp-pppoe setserial strace sudo sysfsutils syslinux tcpdump telnet time tmpwatch traceroute unzip usbutils usermode vim-common vim-enhanced wget wodim xz zip zlib php-pear-Net-URL perl-Compress-Raw-Bzip2 perl-IO-Compress-Bzip2 rsync tnef freeradius-ldap
yum -y upgrade
/sbin/e-smith/db configuration set VirtualInterface interface
/sbin/e-smith/db configuration setprop VirtualInterface Configuration disabled
/sbin/e-smith/db configuration setprop VirtualInterface mode ''
touch /forcequotacheck
wget -O /sme_vps_patch9.0.tar.gz  http://bugs.koozali.org/attachment.cgi?id=4935
cd /
tar -xvzf   sme_vps_patch9.0.tar.gz
clear
patch -p0 < sme_vps_patch-9.0/VirtualAdaptor_90.patch
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

After reboot, setup your Koozal 9.0 VPS in server-only mode using your VPS IP address and gateway address.
After reconfiguration, you have the option to setup your box in server-gateway modus.
Access your box via VPN on the public address.


Enjoy!

« Last Edit: May 04, 2015, 05:23:06 PM by sqlerror »