Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Zimbra on gentoo using chroot environment
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
freigeist
Guru
Guru


Joined: 26 Jan 2004
Posts: 338
Location: Cologne, Germany

PostPosted: Fri Jul 28, 2006 5:31 pm    Post subject: Zimbra on gentoo using chroot environment Reply with quote

Maybe someone is interested in this too:
Zimbra is a collaboration suite which includes an ajax based webmailer with an address book and calendar. It uses many popular open source components like postfix, openldap, spamassasin, apache and tomcat. Because its an integrated solution, installing on gentoo is not easy. There are no binary packages for gentoo, nor is there an ebuild. I migrated my server to debian just to test zimbra and because I was very impressed, I decided to stay on debian to keep zimbra running. My server is doing other things for which I prefer gentoo. Inspired by the chroot-solution in the zimbra forums (which uses an ubuntu livecd to setup a debian environment), I decided to go for a faster and cleaner way to get zimbra running.

* add ~x86 for dev-util/debootstrap to your /etc/portage/package.keywords
* emerge debootstrap
* create the chroot environment: mkdir /zimbra
* run debootstrap: debootstrap woody /zimbra http://ftp.debian.org/debian
* mount proc, dev and sys
o mount –bind /proc /zimbra/proc
o mount –bind /sys /zimbra/sys
o mount –bind /dev /zimbra/dev
o mount –bind /dev/pts /zimbra/dev/pts
o mount –bind /dev/shm /zimbra/dev/shm
* chroot to the debian environment: chroot /zimbra
* Set a root password
* Adjust your /etc/hosts and /etc/hostname
* Edit your /etc/apt/apt.conf and add: APT::Cache-Limit 16777216;
* Add testing and unstable repositories to /etc/apt/sources.list:
o deb http://debian.tu-bs.de/debian/ testing main non-free contrib
o deb http://debian.tu-bs.de/debian/ unstable main non-free contrib
* Update the package listing: apt-get update
* Update the system: apt-get upgrade
* Install required packages:
o apt-get install sudo libidn11 curl fetchmail libgmp3 libxml2 libstdc++6 openssl file perl libexpat1
* Get the zimbra debian package and untar the archive
* Run ./install.sh in the newly created zcs directory and follow the instructions
* Create the init.d script (/etc/init.d/zimbra): http://www.elfenbeinturm.cc/knowledge/zimbra-initd-script-for-gentoo/
* Start the zimbra suite: /etc/init.d/zimbra start

Your debian environment needs less than 200 MB (without zimbra) which isn't too much overhead.
_________________
Elfenbeinturm.cc
a metaphysical space of solitude and sanctity: http://www.elfenbeinturm.cc
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


Joined: 28 Apr 2004
Posts: 737
Location: Florence, Italy

PostPosted: Sat Jul 29, 2006 6:52 pm    Post subject: Reply with quote

Before installing Zimbra you should also install the "locales" package and/or reconfigure it.

edit: oh and "source /etc/profile" is quite necessary after chrooting

edit2: nevermind
_________________
It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum