Koozali.org formerly Contribs.org

Open-Xchange (SME7): progress, requests, testing

DarkMirage

Open-Xchange (SME7): progress, requests, testing
« on: May 06, 2005, 08:11:33 PM »
The following describes the procedure to install Open-Xchange 0.8 RC1 on SME7 (started this thread with alpha9)

I've posted this here for testing, and requests for features to be included in this script.
I plan to change a lot on the interface (adding a server-manager panel for openexchange options and integrating user administration), however, at this point I'm just trying to keep the script working, with the progress made in sme 7 development.

You need 2 boxes, or network storage while reinstalling the same box.
Testing has been done on clean installations only, and included logging in with the mailadmin account, a useraccount with webmail access (existing sme user) and a user without webmail access (user doesn't exist in sme).

Get the following Java files (links are to Java License Agreement):
The jta files are in the same place.
jdk-1_5_0_03-linux-i586.bin
javamail-1_3_2.zip
jaf-1_0_2-upd.zip
jta-1_0_1B-classes.zip
jta-1_0_1B-doc.zip]
jmx-1_2_1-ri.zip

From the directory containing the above, enter the following commands:
Code: [Select]
wget http://ainigma32.lir.dk/ainigma32/Open-Xchange-devel
chmod +x Open-Xchange-devel; ./Open-Xchange-devel

This should take some time depending on your download and computer speed...

The script may halt on missing files. Here's what to do:
Check file OX-missing.list
Code: [Select]
pico OX-missing.list

Get any missing packages
You should re-run the wget file, it will not download existing packages.
It will place found packages in the right directory.
That goes for packages previously downloaded, packages in the current directory and packages downloaded just now, in that order.

When it's done you can save /SME7Open-Xchange-devel.tgz so you can skip the download if you're going to start over. It does not include the initial script, so include that with the backup.

Copy /SME7Open-Xchange.tgz to a clean installation (or a network path while you reinstall the same box). You should move into it's dir or specify a path with the tarball. Then execute the install script.
Code: [Select]
tar -zxPf SME7-Open-Xchange.tgz
./Open-Xchange-install


Enter a new mailadmin password and wait untill it finishes. (This took ca 30 min. during tests)

You should be able to login at http://<yourdomain>/cgi-bin/login.pl with the mailadmin account.

You can add users as follows:
Code: [Select]
/usr/local/ox/sbin/adduser_ox \
 --username='doej' \
 --passwd='<yourpass>' \
 --name='John' \
 --sname='Doe' \
 --maildomain='<yourdomain>' \
 --ox_timezone='Europe/Amsterdam'


Notes:

mailadmin is the ox admin account, it doesn't have a mailaccount by default (webmail will fail)
Quickfix: Add the mailadmin account to sme
Planning: Find out deps on mailadmin account, and alter to uid admin
users not added to sme do not have imap access.
Quickfix: add users to sme after adding to ox
Planning: Full sme-ox collaboration integration
Setup on groupware is dead link
Quickfix: none (don't follow link)
Explanation: Links to umin, which isn't installed
Planning: Find out where link is created, and either remove or link to server-manager
   
I've used a lot of sources for this, including the phpwiki page right here on contribs.org, and would like to thank everyone posting helpfull info on this. I'll try to work out a list of sources to put into a later (hopefully completely working) version of this howto.
(edit) Typo

Re: Open-Xchange (SME7): progress, requests, testing
« Reply #1 on: May 06, 2005, 09:14:07 PM »
Quote from: "DarkMirage"

Get the following Java files (links are to Java License Agreement):


Java licensing is sooooo tedious ...

Quote

From the directory containing the above, enter the following commands:
Code: [Select]
wget http://ainigma32.lir.dk/ainigma32/Open-Xchange-devel
chmod +x Open-Xchange-devel; ./Open-Xchange-devel



You could do that in one step via:

Code: [Select]

lynx -dump http://ainigma32.lir.dk/ainigma32/Open-Xchange-devel | sh

ergozd

Open-Xchange (SME7): progress, requests, testing
« Reply #2 on: May 07, 2005, 08:34:38 AM »
Hi DarkMirage!

Package axis was updated to axis-1.2-1jpp.noarch.rpm, after modification script runs without any problem (so far, Building Java... right now).

Will post results l8r.

ergozd

Open-Xchange (SME7): progress, requests, testing
« Reply #3 on: May 07, 2005, 08:55:51 AM »
Hi again!

openexchange RPMS didn't built,

Code: [Select]
[root@smedev7 SPECS]# rpmbuild -ba openexchange.spec
Executing(%prep): /bin/sh -e /usr/src/redhat/TMP/rpm-tmp.83135
+ umask 022
+ cd /usr/src/redhat/BUILD
+ exit 0
Executing(%build): /bin/sh -e /usr/src/redhat/TMP/rpm-tmp.35782
+ umask 022
+ cd /usr/src/redhat/BUILD
error: Bad exit status from /usr/src/redhat/TMP/rpm-tmp.35782 (%build)


RPM build errors:
    Bad exit status from /usr/src/redhat/TMP/rpm-tmp.35782 (%build)


Code: [Select]
#!/bin/sh

  RPM_SOURCE_DIR="/usr/src/redhat/SOURCES"
  RPM_BUILD_DIR="/usr/src/redhat/BUILD"
  RPM_OPT_FLAGS="-O2 -g -march=i386 -mcpu=i686"
  RPM_ARCH="i386"
  RPM_OS="linux"
  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
  RPM_DOC_DIR="/usr/share/doc"
  export RPM_DOC_DIR
  RPM_PACKAGE_NAME="open-xchange"
  RPM_PACKAGE_VERSION="0.8.0"
  RPM_PACKAGE_RELEASE="sme7"
  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE



  set -x
  umask 022
  cd /usr/src/redhat/BUILD
{
cd 'open-xchange-0.8.0-RC1'
make
} > /dev/null 2> /dev/null
exit 0

DarkMirage

Open-Xchange (SME7): progress, requests, testing
« Reply #4 on: May 07, 2005, 11:35:24 AM »
Updated the axis package (in the list)

ergozd, maybe you could tell me some more about your setup?
(edit) Nevermind, the new axis package was missing an extra dependency, which has been added.

I'm currently running some more tests on alpha9 and alpha10, and I'll try to include some different server configurations.

Charlie, your 1-command option doesn't work. It breaks lines, which breaks the script...

tbcomputing

Open-Xchange (SME7): progress, requests, testing
« Reply #5 on: May 07, 2005, 12:17:52 PM »
Could not retrieve Open-Xchange-install.
Known source was http://ainigma32.lir.dk/ainigma32/Open-Xchange-install.

Could not retrieve openexchange.spec.
Known source was http://ainigma32.lir.dk/ainigma32/openexchange.spec.

DarkMirage

Open-Xchange (SME7): progress, requests, testing
« Reply #6 on: May 07, 2005, 12:43:19 PM »
Sorry, had some trouble with webserver.
Seems alpha10 has some strange dns habits (resolved our gateway on external ip, and did get the specified file  :-? ).
Should all be good now.

tbcomputing

Open-Xchange (SME7): progress, requests, testing
« Reply #7 on: May 07, 2005, 01:57:01 PM »
tar -zxPf SME7Open-Xchange.tgz

Should be

tar -zxPf SME7-Open-Xchange.tgz

tbcomputing

Open-Xchange (SME7): progress, requests, testing
« Reply #8 on: May 07, 2005, 02:55:50 PM »
Ok

Installed on SME7 alpha 10.

Twin pentium 333 256 MB ram, adaptec 2940 and IBM eepro 100 NIC in server only mode.

Install went fine, mailadmin logged in but message is:

Permision denied
You don't have the permission to access this page.

in calendar, contacts, tasks.

Others OK

Must be a pemission error somewhere.

Will try to sort later

Tony

ergozd

Open-Xchange (SME7): progress, requests, testing
« Reply #9 on: May 07, 2005, 03:09:04 PM »
I think I found what the problem was. Java (jdk-1_5_0_03-linux-i586.bin) was NOT installed. I've run and installed it manually.

May be another minor issue, I saw in Open-Xchange-intall.err file that axis was not installed, it requires jakarta-commons-httpclient3 RPM which was not fetched by Open-Xchange-devel script.

Open-Xchange (SME7): progress, requests, testing
« Reply #10 on: May 07, 2005, 03:50:17 PM »
Quote from: "DarkMirage"

Seems alpha10 has some strange dns habits (resolved our gateway on external ip, and did get the specified file  :-? ).


Nobody (including you) has reported any strange dns habits. Bug tracker is at smeserver.sourceforge.net.

Open-Xchange (SME7): progress, requests, testing
« Reply #11 on: May 08, 2005, 04:36:49 PM »
Hi DarkMirage,

Just installed OX on Alpha10 this morning – Worked perfect.

I’ll definitely follow this promising project, and are looking forward to se full integration in SME.
/ Denbert
"Success is not final, failure is not fatal: it is the courage to continue that counts" - Sir Winston Churchill

tbcomputing

Open-Xchange (SME7): progress, requests, testing
« Reply #12 on: May 08, 2005, 05:16:57 PM »
Interesting - mine did not install properly - mailadmin partly works, new user did not work at all.

Going to try again now.

Have taken a processor out of the box so its a single CPU now.

Are there any twin CPU issues?

If successful this time will post question on OX forum.

Tony.

Offline jester

  • *
  • 496
Open-Xchange (SME7): progress, requests, testing
« Reply #13 on: May 08, 2005, 06:49:03 PM »
DarkMirage,
A new "Secure Upgrade" of OpenXchange (0.8.0-1) has been released.

Jester.

tbcomputing

Open-Xchange (SME7): progress, requests, testing
« Reply #14 on: May 08, 2005, 09:12:22 PM »
Update

Re-installed.

New user created first in OX then in SME works fine.

mailadmin user can log in but cannot access calendar, contacts and tasks.

Denbert

Are you quite sure it is all working, can you access the calendar, contacts and tasks with the user mailadmin?

If so, I dont know what the issue is - it cant be me since all I've done is exactly as per the instruction.

But, DarkMirage, you've succeeded where no one else has before and got OX to work on SME.

Well done!

Tony