Changes

From SME Server
Jump to navigationJump to search
5,514 bytes removed ,  20:45, 4 February 2013
m
Update repo config and e-smith/smeserver package installation
Line 115: Line 115:     
== Configure basic requirements ==
 
== Configure basic requirements ==
The yum configurations could be put as attachments to this bug.
+
==== Remove the CentOS repositories ====
* [[bugzilla:7240|Bug 7240 - SME 9 yum repos ]]
  −
 
  −
 
  −
==== Configure third party repo ====
  −
Enable the EPEL, ATrpms and RPMForge repo
   
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
rpm -Uvh http://fr2.rpmfind.net/linux/epel/6/i386/epel-release-6-8.noarch.rpm
+
rm -f /etc/yum.repos.d/*.repo
rpm -Uvh http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-6.el6.x86_64.rpm
  −
rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  −
</syntaxhighlight>
  −
 
  −
Configure SME repository (EL5 version for now)
  −
<syntaxhighlight lang="Bash">
  −
cat<<'EOF' > /etc/yum.repos.d/sme.repo
  −
[smeaddons]
  −
enabled=1
  −
mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeaddons-8
  −
name=SME Server - addons
  −
gpgcheck=1
  −
enablegroups=1
  −
 
  −
[smecontribs]
  −
enabled=0
  −
mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smecontribs-8
  −
name=SME Server - contribs
  −
gpgcheck=1
  −
enablegroups=1
  −
 
  −
[smedev]
  −
enabled=0
  −
mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smedev-8
  −
name=SME Server - dev
  −
gpgcheck=1
  −
enablegroups=1
  −
 
  −
[smeextras]
  −
enabled=1
  −
mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeextras-8
  −
name=SME Server - extras
  −
gpgcheck=1
  −
enablegroups=1
  −
 
  −
[smeos]
  −
enabled=1
  −
mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeos-8
  −
name=SME Server - os
  −
gpgcheck=1
  −
enablegroups=1
  −
 
  −
[smetest]
  −
enabled=0
  −
mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smetest-8
  −
name=SME Server - test
  −
gpgcheck=1
  −
enablegroups=1
  −
#
  −
[smeupdates]
  −
enabled=1
  −
mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeupdates-8
  −
name=SME Server - updates
  −
gpgcheck=1
  −
enablegroups=1
  −
 
  −
[smeupdates-testing]
  −
enabled=0
  −
mirrorlist=http://mirrorlist.contribs.org/mirrorlist/smeupdates-testing-8
  −
name=SME Server - updates testing
  −
gpgcheck=1
  −
enablegroups=1
  −
 
  −
EOF
  −
 
   
</syntaxhighlight>
 
</syntaxhighlight>
   −
 
+
==== Configure SME9 repositories ====
==== import SME's GPG key ====
  −
This is a temporary key. The final key will be generated by and available through contribs.org
  −
rpm --import http://sme-mirror.firewall-services.com/releases/8/smeos/x86_64/RPM-GPG-KEY-SMEServer
  −
 
  −
 
  −
==== install yum-plugin-priorities ====
  −
yum install yum-plugin-priorities
  −
 
  −
 
  −
==== Configure yum priorities ====
  −
Set the base, updates and extras repo in '''/etc/yum.repos.d/CentOS-Base.repo''' a high priority (respectivly 50, 40, 50)
  −
<syntaxhighlight lang="Bash">
  −
[...]
  −
[base]
  −
name=CentOS-$releasever - Base
  −
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  −
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  −
gpgcheck=1
  −
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  −
priority=50
  −
 
  −
#released updates
  −
[updates]
  −
name=CentOS-$releasever - Updates
  −
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  −
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
  −
gpgcheck=1
  −
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  −
priority=40
  −
 
  −
#additional packages that may be useful
  −
[extras]
  −
name=CentOS-$releasever - Extras
  −
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
  −
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
  −
gpgcheck=1
  −
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  −
priority=50
  −
 
  −
[...]
  −
</syntaxhighlight>
  −
 
  −
==== Set Epel to a priority of 60 in /etc/yum.repos.d/epel.repo ====
   
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
[epel]
+
wget -O /etc/yum.repos.d/sme9.repo http://bugs.contribs.org/attachment.cgi?id=3623
name=Extra Packages for Enterprise Linux 6 - $basearch
  −
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
  −
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
  −
failovermethod=priority
  −
enabled=1
  −
gpgcheck=1
  −
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
  −
priority=60
   
</syntaxhighlight>
 
</syntaxhighlight>
   −
 
+
==== Import needed GPG Keys ====
==== Set RPMForge to a priority of 65 in /etc/yum.repos.d/rpmforge.repo ====
   
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
[rpmforge]
+
rpm --import http://sme-mirror.firewall-services.com/releases/8/smeos/x86_64/RPM-GPG-KEY-SMEServer
name = RHEL $releasever - RPMforge.net - dag
+
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
+
rpm --import https://fedoraproject.org/static/217521F6.txt
mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
+
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
+
rpm --import http://www.salstar.sk/pub/yum/keys/RPM-GPG-KEY-Fedora-Pre-Extras
enabled = 1
  −
protect = 0
  −
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
  −
gpgcheck = 1
  −
priority=65
   
</syntaxhighlight>
 
</syntaxhighlight>
   −
 
+
==== Clean yum cache ====
==== Set atrpms to priority of 70 in /etc/yum.repos.d/atrpms.repo ====
   
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
[atrpms]
+
yum clean all
name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms
  −
failovermethod=priority
  −
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
  −
enabled=1
  −
gpgcheck=1
  −
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms
  −
priority=70
   
</syntaxhighlight>
 
</syntaxhighlight>
      −
==== Install some package without dependancy check ====
+
== Install e-smith and smeserver packages ==
A few packages have to be installed manually without dependancy check:
+
Now, you should be ready to install all the e-smith and smeserver packages (and their dependencies). This should pull about 400 packages
<syntaxhighlight lang="Bash">
  −
rpm -Uvh --nodeps http://sme-mirror.firewall-services.com/releases/8/smeupdates/x86_64/RPMS/smeserver-yum-2.2.0-20.el5.sme.noarch.rpm
  −
rpm -Uvh --nodeps http://sme-mirror.firewall-services.com/releases/8/smeupdates/x86_64/RPMS/e-smith-samba-2.2.0-49.el5.sme.noarch.rpm
  −
rpm -Uvh --nodeps http://sme-mirror.firewall-services.com/releases/8/smeos/x86_64/SME/e-smith-test-2.2.0-1.el5.sme.noarch.rpm
  −
</syntaxhighlight>
  −
 
  −
Two perl package need to be installed manually with sme and epel repo disabled (I need to figure out why repo priority doesn't fix this)
   
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
yum install perl-Razor-Agent perl-Data-UUID --disablerepo=sme\* --disablerepo=epel
+
yum install smeserver\* e-smith\* --enablerepo=smeos8,smeupdates8
</syntaxhighlight>
  −
 
  −
 
  −
== Install e-smith-base ==
  −
Now, you should be ready to install e-smith-base. For me, this pulls 222 packages (166MB). For some reason, the GPGKey is not recognized, so just run yum with –nogpgcheck
  −
<syntaxhighlight lang="Bash">
  −
yum --nogpgcheck install e-smith-base
  −
</syntaxhighlight>
  −
 
  −
==== Install the remaining e-smith/smeserver packages ====
  −
Now install all the remaining e-smith/smeserver packages. e-smith-base already installed quite a lot of e-smith/smeserver packages as dependency.
  −
<syntaxhighlight lang="Bash">
  −
yum --nogpgcheck install e-smith\* smeserver\*
   
</syntaxhighlight>
 
</syntaxhighlight>
   Line 332: Line 177:  
  e-smith-viewlogfiles           
 
  e-smith-viewlogfiles           
 
  smeserver-release
 
  smeserver-release
  −
==== Install samba ====
  −
Now install samba-client (e-smith-samba has been installed manually without dep check, otherwise it would have pulled samba3x package instead of samba)
  −
<syntaxhighlight lang="Bash">
  −
yum install samba-client
  −
</syntaxhighlight>
  −
  −
  −
==== Tweak the system so it can start with upstart (and runlevel4) ====
  −
Upstart (the default init in EL6) doesn't support runlevel 7 SME uses. So we'll switch to runlevel 4:
  −
  −
*Create a custom template for /etc/inittab to change the default runlevel to 4. Se [[bugzilla:7266|Bug 7266]] It is fixed in e-smith-base 5.4.0-2 so should no longer be needed. Please verify.
  −
<syntaxhighlight lang="Bash">
  −
mkdir -p /etc/e-smith/templates-custom/etc/inittab/
  −
cat <<'EOF' > /etc/e-smith/templates-custom/etc/inittab/10defaultlevel
  −
# Default runlevel.
  −
#
  −
id:4:initdefault:
  −
EOF
  −
</syntaxhighlight>
  −
      
* Create a upstart job to start runsvdir (/etc/init/runsvdir.conf)
 
* Create a upstart job to start runsvdir (/etc/init/runsvdir.conf)
Line 372: Line 196:  
We need to copy some perl modules to a new directory, because @INC has changed in EL6:
 
We need to copy some perl modules to a new directory, because @INC has changed in EL6:
 
<syntaxhighlight lang="Bash">
 
<syntaxhighlight lang="Bash">
cp -a /usr/lib/perl5/site_perl/esmith/ /usr/share/perl5/vendor_perl/
+
mkdir -p /usr/share/perl5/vendor_perl/esmith
 +
cp -a /usr/lib/perl5/site_perl/esmith/* /usr/share/perl5/vendor_perl/esmith
 
</syntaxhighlight>
 
</syntaxhighlight>
   Line 395: Line 220:     
* The console on the first boot don't really work. It asks for the admin password (and BTW the password appears in cleartext) but it's all
 
* The console on the first boot don't really work. It asks for the admin password (and BTW the password appears in cleartext) but it's all
* No network interfaces are detected by the console menu (because kudzu is not installed, only available in SME repo, and require an older python which conflicts with the the one * from EL6)
+
* <strike>No network interfaces are detected by the console menu (because kudzu is not installed, only available in SME repo, and require an older python which conflicts with the the one * from EL6)</strike>
 
* slapd won't start
 
* slapd won't start
 
* httpd won't start
 
* httpd won't start
Line 401: Line 226:  
* manually running expand-template has no effect (and no error message is printed). But signal-event seems to work (files get expanded and services restarted)
 
* manually running expand-template has no effect (and no error message is printed). But signal-event seems to work (files get expanded and services restarted)
 
* as the network interface are not configured, all the services which requires the internel IP (or the external one) in their config (at least sshd squid and dnscache) won't start
 
* as the network interface are not configured, all the services which requires the internel IP (or the external one) in their config (at least sshd squid and dnscache) won't start
* qpsmtpd won't start (can't locate Qpsmtpd/TcpServer.pm in @INC)
+
* <strike>qpsmtpd won't start (can't locate Qpsmtpd/TcpServer.pm in @INC)</strike>
 
* There's probably a lot more which is not working
 
* There's probably a lot more which is not working
  

Navigation menu