December 08, 2007

OpenGroupware VM

I'm updating my previous foray into opengroupware as it's maturing as a product and I'm going to want to be able to open up a vm bottle with this as I please in the future. Since I have access to a VMware licensed server right now, I figure I'll do it in that environment but eventually, I'll probably replicate this using Xen.

Ok, on to the steps
1. download CentOS 5 as a DVD .iso file.
2. create vmware image, mark it using Redhat 5
3. tell the vm machine to use the .iso file you downloaded in step one as its CD-ROM drive
4. install centOS (KDE desktop, server, and server GUI options)
5. boot and log in as root
6. load vmware tools:
6a. yum install gcc kernel-devel
6b. uname -r
6c. rpm -q kernel-devel
6d. the two versions should match, if not, make them:
yum upgrade -y kernel kernel-devel
6e. login and from the VM menu, select Install VMware tools
6f. mount /dev/cdrom /mnt/
6g. install the rpm
6h. If you're getting a lot of VFS errors, just reboot otherwise unmount the image
6j. logout and log back in
At this point you should be able to start xwindows and should no longer have the "vmwaretools not installed" error message annoying you. If not, try looking here.
7. yum install postgresql-server
8. figure out what version of OpenGroupware you want to install
9. cd to /etc/yum.repos.d
10. vi ogo.repos
11. add three repo entries editing the strings for the OGO version you want:
11a. [ogo-releases] release builds
11b. [sope-releases]
name=Sope 4.4 Release
11c. [thirdparty-releases]
name=Third Party Support Packages for OpenGroupware
12. rpm --import
13. yum install ogo-meta
14. chkconfig --level 2345 postgresql on
15. service postgresql start
Warning: this section fixes a temporary problem with Apache 2.2. If you are using a different Apache version, you should skip this section
16. lynx
17. download modified
18. gunzip
19. copy out the old one "just in case" and move your new one to /usr/lib/httpd/modules
-- end skippable section --
20. service httpd restart
21. In /var/lib/pgsql/data/postgresql.conf set 'tcpip_socket = true'
22. In /var/lib/pgsql/data/pg_hba.conf appand the following lines and comment out
all other lines:
host all all trust
local all all trust
23. su - root
su - postgres
createdb OGo
createuser -A -D OGo
pushd /usr/local/lib/
psql -h localhost OGo OGo
24. Inside the psql terminal
\i Resources/pg-build-schema.psql
25. exit (get back to root)
26. yum install libobjc (CentOS5 apparently doesn't have it and the next command won't work without it)
27. Defaults write NSGlobalDomain LSConnectionDictionary '{databaseName = OGo; hostName = localhost; password = ""; port = 5432; userName = OGo}'
28. Defaults write NSGlobalDomain LSAdaptor PostgreSQL
29. service ogo-nhsd start
30. service ogo-webui start
31. service ogo-xmlrpcd start
32. service ogo-zidestore start
33. map the image port 20000 to the host adaptor port you want to use
You should be done

Posted by TMLutas at December 8, 2007 11:45 PM