Cloudatcost : Différence entre versions

De SME Server Wiki
Ligne 35 : Ligne 35 :
 
Installez les paquets SME:
 
Installez les paquets SME:
 
   yum --disablerepo=* --enablerepo=smeupdates,smeupdates-testing,smeos,updates,base 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  --exclude=samba4-common,samba4,samba4-client,mod_perl-devel --nogpgcheck
 
   yum --disablerepo=* --enablerepo=smeupdates,smeupdates-testing,smeos,updates,base 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  --exclude=samba4-common,samba4,samba4-client,mod_perl-devel --nogpgcheck
 +
 +
you need the sme version not the centos one
 +
 +
yum downgrade initscripts-9.03.49
 +
  
 
  yum upgrade
 
  yum upgrade

Version du 30 mai 2016 à 11:40

voici comment installer sme server 9 sur un vps chez cloudatcost.com


installer centos 6 64 bits


activer et configurer le ssh, ajoutez vos clefs ssh dans /root/.ssh/authorized_keys

enlever selinux

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 remove selinux-policy-targeted
 yum install wget
mkdir /tmp/repo.bak
mv /etc/yum.repos.d/*.repo /tmp/repo.bak/

ajouter le contenu de /etc/yum.smerepo/sme.repo d'une sme9:

wget -O /etc/yum.repos.d/sme9.repo http://bugs.contribs.org/attachment.cgi?id=3652

Import needed GPG Keys

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


Clean yum cache

yum --enablerepo=* clean all
  1. remove uneeded services
yum remove postfix

Installez les paquets SME:

 yum --disablerepo=* --enablerepo=smeupdates,smeupdates-testing,smeos,updates,base 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  --exclude=samba4-common,samba4,samba4-client,mod_perl-devel --nogpgcheck

you need the sme version not the centos one

yum downgrade initscripts-9.03.49


yum upgrade
 #/sbin/e-smith/signal-event post-upgrade

juste au cas ou on ne veut pas etre bloqué sans mot de passe

unlink  /etc/e-smith/events/post-install/S10init-passwords
 /sbin/e-smith/signal-event post-install

assurez vous de garder un access ssh :D

/sbin/e-smith/db configuration setprop  sshd status enabled PermitRootLogin yes access public
/sbin/e-smith/signal-event  remoteaccess-update

test you can open another sshd connexion


/sbin/e-smith/signal-event reboot

apres le reboot

console

configurer ce serveur


si les services ne demarrent pas tous, il se peut que le fichier control : /service/*/supervise/control soient des fichiers regulier au lieu d'etre un fifo.

 rm /service/*/supervise/control

devrait aider. dites oui a tous les fichiers reguliers, mais n'effacez pas les fifo. (au pire il seront recrés au reboot)