Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

HOWTO: Open-Xchange on Gentoo

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
972 posts
  • Page 1 of 39
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 39
  • Next
Author
Message
bitwh0re
Apprentice
Apprentice
Posts: 214
Joined: Thu Apr 29, 2004 1:33 pm

HOWTO: Open-Xchange on Gentoo

  • Quote

Post by bitwh0re » Wed Oct 06, 2004 4:02 pm

Good day all,

I've finished a rough draft outlining how to get OX installed on Gentoo using:

- Postfix / Cyrus / SASL
- OpenLDAP
- Apache 2 / Tomcat 5
- PostgreSQL

As I said, it's a rough draft, so I don't go into detail on each services but it should give you enough info to get the basics for OX up and running. I welcome any comments, suggestions, fixes, and additions. You can currently find it in PDF here:

http://www.mikefetherston.ca/OX/OX_Install.pdf
Top
rojaro
l33t
l33t
Posts: 732
Joined: Mon May 06, 2002 4:56 pm
Contact:
Contact rojaro
Website

  • Quote

Post by rojaro » Wed Oct 06, 2004 9:18 pm

Thanks for the tutorial. But one question: Is it really nessacary to use postgres? I would like to use MySQL instead.
A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970)
Top
bitwh0re
Apprentice
Apprentice
Posts: 214
Joined: Thu Apr 29, 2004 1:33 pm

OX & Postgre

  • Quote

Post by bitwh0re » Wed Oct 06, 2004 10:35 pm

This is from the Open Xchange website:

Code: Select all

Database
(The database server should provide JDBC functionallity
and should provide sub-selects, timestamps with timezones
and sequences. Tested successfully
with PostgreSQL.)
If MySQL can do that, then I don't really see a problem doing it.
Top
nsahoo
l33t
l33t
User avatar
Posts: 618
Joined: Thu Jul 17, 2003 10:57 pm
Contact:
Contact nsahoo
Website

  • Quote

Post by nsahoo » Thu Oct 07, 2004 1:20 am

Very nice.

It'd be useful if you can post it in text format along with link to pdf in the head post. That way even the console users can read it.

Cheers :)
Top
rojaro
l33t
l33t
Posts: 732
Joined: Mon May 06, 2002 4:56 pm
Contact:
Contact rojaro
Website

Re: OX & Postgre

  • Quote

Post by rojaro » Thu Oct 07, 2004 8:23 am

bitwh0re wrote:

Code: Select all

Database
(The database server should provide JDBC functionallity
and should provide sub-selects, timestamps with timezones
and sequences. Tested successfully
with PostgreSQL.)
If MySQL can do that, then I don't really see a problem doing it.
Hmm ... i believe MySQL 4.1 provides all that, but it isnt in Portage yet :(
A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970)
Top
bitwh0re
Apprentice
Apprentice
Posts: 214
Joined: Thu Apr 29, 2004 1:33 pm

  • Quote

Post by bitwh0re » Thu Oct 07, 2004 10:10 am

nsahoo wrote:Very nice.

It'd be useful if you can post it in text format along with link to pdf in the head post. That way even the console users can read it.

Cheers :)
Thanks! It's currently in .pdf because I've been writing it in Word & Writer. In the first page you'll see that I ask for help to convert the file to HTML readable by a text-based web browser.
Top
HCPawel
n00b
n00b
Posts: 38
Joined: Sun Aug 17, 2003 12:48 pm
Location: Nuremberg

  • Quote

Post by HCPawel » Thu Oct 07, 2004 2:55 pm

Hi bitwh0re, nice tutorial - tomorrow, I will work it througt. Did you also try the installation with the open-xchange ebuild? This is what I've done, but it did not work.
Top
bitwh0re
Apprentice
Apprentice
Posts: 214
Joined: Thu Apr 29, 2004 1:33 pm

  • Quote

Post by bitwh0re » Thu Oct 07, 2004 3:14 pm

No, I'm aware of it from the other OX thread but didn't try it out. I understand it's in a very early stage and only found out about it after I had started my HOWTO.

OX is a pretty neat program, I must say. :)
Top
HCPawel
n00b
n00b
Posts: 38
Joined: Sun Aug 17, 2003 12:48 pm
Location: Nuremberg

  • Quote

Post by HCPawel » Fri Oct 08, 2004 8:05 am

I tried it and my experiences were not the best ...

The "emerge" was only thing that worked :wink: :lol:

I' m currently working with your tutorial and I will post my experience with it later.
Top
playworker
n00b
n00b
Posts: 21
Joined: Wed Jul 28, 2004 10:22 am
Location: UK

  • Quote

Post by playworker » Fri Oct 08, 2004 9:50 am

Superb bit of documentation mate, very useful - Cheers! :D
Top
bitwh0re
Apprentice
Apprentice
Posts: 214
Joined: Thu Apr 29, 2004 1:33 pm

  • Quote

Post by bitwh0re » Fri Oct 08, 2004 11:31 am

Thanks playworker! I plan to make it even better in the future. You may have noticed the unfinished section at the end.. :)

Is there anything that you didn't see in the doc but would have like to have seen?
Top
peace
n00b
n00b
Posts: 7
Joined: Fri Oct 08, 2004 4:19 pm
Contact:
Contact peace
Website

Correction/typo

  • Quote

Post by peace » Fri Oct 08, 2004 9:25 pm

emerge cyrus_imap-admin

should read:

emerge cyrus-imap-admin

i.e. dash - not underscore _

I'll post anything else I find. It's taking awhile to get the deps installed.

Also, could you post a link to the .doc or whatever the source file is so someone, maybe me, can do an html version?
Top
bitwh0re
Apprentice
Apprentice
Posts: 214
Joined: Thu Apr 29, 2004 1:33 pm

  • Quote

Post by bitwh0re » Sat Oct 09, 2004 1:42 am

Thanks for catching that.. somehow that error snuck back in because I can remember fixing that before!
Top
peace
n00b
n00b
Posts: 7
Joined: Fri Oct 08, 2004 4:19 pm
Contact:
Contact peace
Website

Rhino dep hangs on compile -- fix

  • Quote

Post by peace » Sat Oct 09, 2004 3:35 pm

To anyone who might be hanging on the "rhino" emerge at the line:

Code: Select all

compile:
    [javac] Compiling 109 source files to /var/tmp/portage/rhino-1.5_rc5/work/rhino1_5R5/build/classes
You will need to configure your JAVA_HOME and CLASSPATH env. vars using java-config.

See this thread for the rhino fix:

http://forums.gentoo.org/viewtopic.php? ... ight=rhino

See this for java-config docs:

http://www.gentoo.org/doc/en/java.xml

Don't forget to set your system classpath using --set-system-classpath further down in the java-config docs. I just added all the packages available on my system to the classpath. Probobly not nceccesary but, ya know. also, make sure you install all the java deps first, e.g. java mail, etc. Especialy the deps that require you to download specific versions from Sun and place the zip files in /usr/portage/distfiles.

There may need to be a step added to the OX docs where you configure the system java vm using java-config.

Kind Regards
Top
peace
n00b
n00b
Posts: 7
Joined: Fri Oct 08, 2004 4:19 pm
Contact:
Contact peace
Website

Telneting to cyrus imap port

  • Quote

Post by peace » Sat Oct 09, 2004 4:37 pm

When ensuring entries in /etc/services, one entry that I needed to make was:

Code: Select all

imap 143/tcp
The stock /etc/services lists imap2 as the service for port 143. Either the OX docs should reflect the stock services or you will need to update services with the imap line above in order for the test to succeed.

netkit-telnetd is the ebuild for telnet, btw.

Kind Regards
Top
peace
n00b
n00b
Posts: 7
Joined: Fri Oct 08, 2004 4:19 pm
Contact:
Contact peace
Website

Couple more updates

  • Quote

Post by peace » Sat Oct 09, 2004 8:36 pm

I think the lines:

Code: Select all

chown ldap /usr/lib/openldap-data/*
chgrp ldap /usr/lib/openldap-data/*
should read:

Code: Select all

chown ldap /var/lib/openldap-data/*
chgrp ldap /var/lib/openldap-data/*
Also, when moving the modules after extracting Fedora-Core-1-i386.tar.gz, might want to remove the /root from the beginning of the path incase the reader is not in root's home dir.
Top
peace
n00b
n00b
Posts: 7
Joined: Fri Oct 08, 2004 4:19 pm
Contact:
Contact peace
Website

Success!

  • Quote

Post by peace » Sat Oct 09, 2004 10:26 pm

Ox is installed and running! Thanks for the HOWTO!

I needed to fix a syntax error (my own fault) in webapps/servlet/WEB-INF/web.xml that was causing the servlet start to fail with a huge catalina stack trace. Once that was fixed everything ran perfectly.

Kind Regards
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Sun Oct 10, 2004 12:20 am

Moved from Documentation, Tips & Tricks.
Quis separabit? Quo animo?
Top
verdandi
n00b
n00b
Posts: 1
Joined: Sat Jan 17, 2004 12:08 pm

Why not use the ebuild ...

  • Quote

Post by verdandi » Sun Oct 10, 2004 12:31 am

I just don't understand why you don't just use the ebuild in bugzilla.gentoo.org.
The ebuild is working and make uninstalling/updateing very easy. I would not say that it is in an early stage, it is as good as it gets for the moment. I have used it from OX version 0.7.1 with success every time.
Top
playworker
n00b
n00b
Posts: 21
Joined: Wed Jul 28, 2004 10:22 am
Location: UK

  • Quote

Post by playworker » Mon Oct 11, 2004 5:48 am

Hmmm, I'm having some problems emerging all the required software, some packages require Ant which insists on pulling in Ant-tasks which in turn pulls in a package called Rhino, this fails to compile on my system :(

It's not a waiting forever problem, it just crashes out with a blank compile error.

Code: Select all

build.xml:51
toolsrc/build.xml:69
src_compile Line 35
Doesn't give any error details and there are no errors in the output, just a lot of semantic warnings.

Any ideas?

Also WRT the doc itself, should the line that you add to the OpenLDAP ebuild be

Code: Select all

myconf="${myconf} --enable-aci"
and not

Code: Select all

myconf="$(myconf) -enable-aci"
??
Top
playworker
n00b
n00b
Posts: 21
Joined: Wed Jul 28, 2004 10:22 am
Location: UK

  • Quote

Post by playworker » Mon Oct 11, 2004 1:17 pm

Alrighty, here's a quick rundown of my progress so far:

o New system bootstrapped with kernel 2.6.8 and nptl support (~x86)
o Added all the USE flags
o Changed the line in OpenLDAP ebuild as per my post above
o Berkeley DB is present
o emerged all packages as per your list but excluding ant-tasks as Rhino kept failing to build properly
o Grabbed all the Perl stuff
o Added all services to default runlevel
o Setup and started Postfix
o Setup and started Cyrus
o Setup SASL as per HOWTO but it won't start - message "Unknown Authentication Mechanism: ldap" :?: FIXED: Re-emerged cyrus-sasl and it included the ldap stuff this time :roll: :)
o Added cyrus user but the cyradm command in the HOWTO just hangs :?: FIXED: I wasn't using the full server name
o Setup LDAP as per HOWTO but it won't start - message "inetorgperson.schema: AttributeType not found "audio"" :?: FIXED: Had missed out cosine.schema :oops:
o Initialised the LDAP tree but can't do the slapadd command because of the above error :?: FIXED
o Setup and started Apache
o Setup and started PostgreSQL
o Setup and started Tomcat
o Configured and built Open-Xchange, seemed to build fine without ant-tasks package...
o Copied over the perl bits and now get an Open-Xchange login screen :)
o Tried to add the open-xchange PostgreSQL user but to no avail, doesn't seem to be able to see the PostgreSQL service even though it is running :?: FIXED: Your HOWTO is missing a "-" line should read "createuser --pwprompt" :P

Installation is proceeding as planned now - I'll post again if I have any more ridiculously simple issues that I can solve myself :wink:

Cheers!

Matt
Top
peace
n00b
n00b
Posts: 7
Joined: Fri Oct 08, 2004 4:19 pm
Contact:
Contact peace
Website

The OX ebuild

  • Quote

Post by peace » Mon Oct 11, 2004 4:24 pm

Thanks Playworker! I will give the ebuild a try. I saw the OX ebuild bug just after starting the install via the HOWTO here. I figured I may as well finish the "manual" install as the HOWTO is really quite good and at the time the ebuild looked like it might be more trouble.

OX for gentoo is huge for us here. We have been strugling with our groupware solution and hope that this can slot nicely into that role. With a maintained ebuild present it looks like the right track.

Kind Regards
Top
BlackEdder
Advocate
Advocate
User avatar
Posts: 2588
Joined: Mon Apr 26, 2004 8:47 am
Location: Dutch enclave in Egham, UK
Contact:
Contact BlackEdder
Website

  • Quote

Post by BlackEdder » Mon Oct 11, 2004 4:33 pm

bitwh0re wrote:Thanks! It's currently in .pdf because I've been writing it in Word & Writer. In the first page you'll see that I ask for help to convert the file to HTML readable by a text-based web browser.
Might be doable with:
* app-text/pdf2html
Latest version available: 1.4
Size of downloaded files: 22 kB
Homepage: http://atrey.karlin.mff.cuni.cz/~clock/ ... /pdf2html/
Description: Converts pdf files to html files
License: GPL-2
Top
playworker
n00b
n00b
Posts: 21
Joined: Wed Jul 28, 2004 10:22 am
Location: UK

  • Quote

Post by playworker » Tue Oct 12, 2004 10:49 am

OX is now installed and running fine apart from the webmail bit, specifically there seems to be a problem with Open-Xchange talking to my Cyrus IMAP server, not sure what the issue is exactly but could someone confirm what the relationship is between Open-Xchange users and the IMAP users?

Do I just need a mailbox for each OX user and if so what do they need to be called?

The error I get on the server is : Login only available under a layer
Top
bitwh0re
Apprentice
Apprentice
Posts: 214
Joined: Thu Apr 29, 2004 1:33 pm

  • Quote

Post by bitwh0re » Tue Oct 12, 2004 1:16 pm

OX is now installed and running fine apart from the webmail bit, specifically there seems to be a problem with Open-Xchange talking to my Cyrus IMAP server, not sure what the issue is exactly but could someone confirm what the relationship is between Open-Xchange users and the IMAP users?

Do I just need a mailbox for each OX user and if so what do they need to be called?
Cyrus and OX both authenticate against LDAP but there needs to be a mailbox for the user. Just make the mailbox name the same as the username. You can automate this process, although I haven't tried it (yet), by reading this:

http://www.open-xchange.org/pipermail/u ... 15492.html

Thanks to all for catching my silly mistakes! They will be corrected and posted soon!
Top
Post Reply

972 posts
  • Page 1 of 39
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 39
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic