Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
smedev:install_sme_el6 [21/01/2013 08:52] dani |
smedev:install_sme_el6 [25/01/2013 21:46] (Version actuelle) dani |
||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
These are just my notes to get a EL6 system booting with all the e-smith and smeserver packages installed. As soon as I get it to boot, I'll put this info into contribs.org wiki. | These are just my notes to get a EL6 system booting with all the e-smith and smeserver packages installed. As soon as I get it to boot, I'll put this info into contribs.org wiki. | ||
- | * Start from a minimal el6 installation (I just installed a few utilities like htop, screen, rsync, vim, openssh-clients etc...) | + | ===== Minimal EL6 Install ===== |
- | | + | Just install |
+ | |||
+ | |||
+ | ===== Disable graphical boot ===== | ||
+ | |||
+ | It will be easier to see what's going on (and turn off selinux at kernel level, just to be sure) | ||
<code bash> | <code bash> | ||
- | sed -i -e ' | + | sed -i -e ' |
</ | </ | ||
- | * Disable SELinux: | + | |
+ | ===== Disable SELinux | ||
<code bash> | <code bash> | ||
sed -i -e ' | sed -i -e ' | ||
</ | </ | ||
- | * Remove selinux-policy-targeted and authconfig, they conflict with some e-smith/ | + | ===== Remove selinux-policy-targeted and authconfig |
+ | They conflict with some e-smith/ | ||
<code bash> | <code bash> | ||
yum remove selinux-policy-targeted authconfig | yum remove selinux-policy-targeted authconfig | ||
</ | </ | ||
+ | ===== Configure third party repo ===== | ||
+ | |||
* Enable the EPEL repo | * Enable the EPEL repo | ||
<code bash> | <code bash> | ||
Ligne 28: | Ligne 38: | ||
rpm -Uvh http:// | rpm -Uvh http:// | ||
</ | </ | ||
+ | * Configure SME repository (EL5 version for now) | ||
+ | <code bash> | ||
+ | cat<<' | ||
+ | [smeaddons] | ||
+ | enabled=1 | ||
+ | mirrorlist=http:// | ||
+ | name=SME Server - addons | ||
+ | gpgcheck=1 | ||
+ | enablegroups=1 | ||
+ | |||
+ | [smecontribs] | ||
+ | enabled=0 | ||
+ | mirrorlist=http:// | ||
+ | name=SME Server - contribs | ||
+ | gpgcheck=1 | ||
+ | enablegroups=1 | ||
+ | |||
+ | [smedev] | ||
+ | enabled=0 | ||
+ | mirrorlist=http:// | ||
+ | name=SME Server - dev | ||
+ | gpgcheck=1 | ||
+ | enablegroups=1 | ||
+ | |||
+ | [smeextras] | ||
+ | enabled=1 | ||
+ | mirrorlist=http:// | ||
+ | name=SME Server - extras | ||
+ | gpgcheck=1 | ||
+ | enablegroups=1 | ||
+ | |||
+ | [smeos] | ||
+ | enabled=1 | ||
+ | mirrorlist=http:// | ||
+ | name=SME Server - os | ||
+ | gpgcheck=1 | ||
+ | enablegroups=1 | ||
+ | |||
+ | [smetest] | ||
+ | enabled=0 | ||
+ | mirrorlist=http:// | ||
+ | name=SME Server - test | ||
+ | gpgcheck=1 | ||
+ | enablegroups=1 | ||
+ | |||
+ | [smeupdates] | ||
+ | enabled=1 | ||
+ | mirrorlist=http:// | ||
+ | name=SME Server - updates | ||
+ | gpgcheck=1 | ||
+ | enablegroups=1 | ||
+ | |||
+ | [smeupdates-testing] | ||
+ | enabled=0 | ||
+ | mirrorlist=http:// | ||
+ | name=SME Server - updates testing | ||
+ | gpgcheck=1 | ||
+ | enablegroups=1 | ||
+ | |||
+ | EOF | ||
+ | </ | ||
+ | * import SME's GPG key | ||
+ | <code bash> | ||
+ | rpm --import http:// | ||
+ | </ | ||
+ | * install yum-plugin-priorities | ||
+ | <code bash> | ||
+ | yum install yum-plugin-priorities | ||
+ | </ | ||
+ | ===== Configure yum priorities ===== | ||
+ | |||
+ | * Set the base, updates and extras repo in / | ||
+ | <code bash> | ||
+ | [...] | ||
+ | [base] | ||
+ | name=CentOS-$releasever - Base | ||
+ | mirrorlist=http:// | ||
+ | # | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | priority=50 | ||
+ | |||
+ | #released updates | ||
+ | [updates] | ||
+ | name=CentOS-$releasever - Updates | ||
+ | mirrorlist=http:// | ||
+ | # | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | priority=40 | ||
+ | |||
+ | #additional packages that may be useful | ||
+ | [extras] | ||
+ | name=CentOS-$releasever - Extras | ||
+ | mirrorlist=http:// | ||
+ | # | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | priority=50 | ||
+ | |||
+ | [...] | ||
+ | </ | ||
+ | * Set Epel to a priority of 60 in / | ||
+ | <code bash> | ||
+ | [epel] | ||
+ | name=Extra Packages for Enterprise Linux 6 - $basearch | ||
+ | # | ||
+ | mirrorlist=https:// | ||
+ | failovermethod=priority | ||
+ | enabled=1 | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | priority=60 | ||
+ | </ | ||
+ | * Set RPMForge to a priority of 65 in / | ||
+ | <code bash> | ||
+ | [rpmforge] | ||
+ | name = RHEL $releasever - RPMforge.net - dag | ||
+ | baseurl = http:// | ||
+ | mirrorlist = http:// | ||
+ | #mirrorlist = file:/// | ||
+ | enabled = 1 | ||
+ | protect = 0 | ||
+ | gpgkey = file:/// | ||
+ | gpgcheck = 1 | ||
+ | priority=65 | ||
+ | </ | ||
+ | * Set atrpms to priority of 70 in / | ||
+ | <code bash> | ||
+ | [atrpms] | ||
+ | name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms | ||
+ | failovermethod=priority | ||
+ | baseurl=http:// | ||
+ | enabled=1 | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | priority=70 | ||
+ | </ | ||
+ | ===== Install som epackage without dependancy check ===== | ||
+ | |||
+ | A few packages have to be installed manually without dependancy check: | ||
+ | <code bash> | ||
+ | rpm -Uvh --nodeps http:// | ||
+ | rpm -Uvh --nodeps http:// | ||
+ | rpm -Uvh --nodeps http:// | ||
+ | </ | ||
+ | * Two perl package need to be installed manually with sme and epel repo disabled (I need to figure out why repo priority doesn' | ||
+ | <code bash> | ||
+ | yum install perl-Razor-Agent perl-Data-UUID --disablerepo=sme\* --disablerepo=epel | ||
+ | </ | ||
+ | ===== 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 | ||
+ | <code bash> | ||
+ | yum --nogpgcheck install e-smith-base | ||
+ | </ | ||
+ | ===== Install the remaining e-smith/ | ||
+ | |||
+ | Now install all the remaining e-smith/ | ||
+ | <code bash> | ||
+ | yum --nogpgcheck install e-smith\* smeserver\* | ||
+ | </ | ||
+ | |||
+ | It should install the following packages and their dependancies: | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ===== 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) | ||
+ | <code bash> | ||
+ | yum install samba-client | ||
+ | </ | ||
+ | |||
+ | ===== Replace upstart with SysVinit ===== | ||
+ | |||
+ | We've almost finished, we just have to replace upstart with the good old SysVinit, because upstart doesn' | ||
+ | <code bash> | ||
+ | rpm -e --nodeps upstart sysvinit-tools | ||
+ | rpm -Uvh http:// | ||
+ | </ | ||
+ | |||
+ | ===== Move some perl modules ===== | ||
+ | |||
+ | We need to copy some perl modules to a new directory, because @INC has changed in EL6: | ||
+ | <code bash> | ||
+ | cp -a / | ||
+ | </ | ||
+ | |||
+ | ===== Create a service entry for rsyslog ===== | ||
+ | |||
+ | We need to create a new service entry in the DB, because the standard syslog package is now rsyslog: | ||
+ | <code bash> | ||
+ | / | ||
+ | cp -a / | ||
+ | </ | ||
+ | |||
+ | ===== Run post-upgrade ===== | ||
+ | |||
+ | We can now try to post-upgrade | ||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | And reboot. Unfortunatly, | ||
+ | |||
+ | ===== The system boots but completly broken :-) ===== | ||
+ | |||
+ | Ok, so the system should now boot, but is really not usable, after a quick look, at least the following doesn' | ||
+ | * 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) | ||
+ | * slapd won't start | ||
+ | * httpd won't start | ||
+ | * squid won't start | ||
+ | * 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 | ||
+ | * even if we manually add 0.0.0.0 after the ListenAddress line in / | ||
+ | * qpsmtpd won't start (can't locate Qpsmtpd/ | ||
+ | * There' | ||
+ | |||
+ | * [[what_is_not_working_on_el6|A more complete list of broken things]] |