[OGo-Users] Conectiva 9 unnoficial HOWTO
Arthur Casals
users@opengroupware.org
Thu, 17 Jul 2003 16:28:51 -0300 (BRT)
Here's a HOWTO especially for Conectiva 9. Very thanks to Gustavo Chaves.
============================================================================
----------------------------------------------------------------------------
============================================================================
Conectiva 9 Install - Step By Step
==================================
(Thanks to Bjoern Stierand, I'd to change just a few lines from the Debian
HOW-TO...)
1) create a directory and download the last packages (for example, /rpm)
$ cd /rpm
$ wget -m -nH --cut-dirs=1 ftp://ftp.opengroupware.org/packages/rpm
2) install the packages. Use the brand new version of Kelley Graham's
perl script (http://www.toasterz.com/ogo/add_remove_ogo.pl ). You'll thank
later.
$ ./add_remove_ogo install
3) setup the db
(the DB should already be configured to listen on TCP/IP and localhost
access should be set to 'trust' for now - see the FAQ for that)
$ su - postgres
$ createdb ogo
$ createuser -A -D ogo
$ psql ogo ogo
[now you are on the postgresql prompt]
ogo=> \i /opt/opengroupware.org/Database/PostgreSQL/pg-build-schema.psql
ogo=> \q
$ exit
4) setup the defaults
$ chown -R opengroupware:skyrix /opt/opengroupware.org /opt/skyrix
$ su - opengroupware
$ source /opt/opengroupware.org/OpenGroupware.org.sh
$ Defaults write NSGlobalDomain LSConnectionDictionary '{databaseName = ogo;
hostName = localhost; password = ""; port = 5432; userName = ogo}'
$ Defaults write NSGlobalDomain NGBundlePath
"/opt/opengroupware.org/Library/OpenGroupware.org"
$ Defaults write NSGlobalDomain LSModelName OpenGroupware.org_PostgreSQL
$ Defaults write NSGlobalDomain SkyExternalLinkAction
/OpenGroupware/wa/viewExternalLink $ ln -s ~opengroupware/WebServerResources/English.lproj
~opengroupware/WOApps/OpenGroupware.woa/WebServerResources $ ed
~opengroupware/Library/OpenGroupware.org/LSBase.cmd/bundle-info.plist
<<EOF > /name = LSModel/s/LSModel/OGo/
> w
> q
> EOF
$ mkdir documents
Now, to just run opengroupware as a standalone, do:
$ ./WOApps/OpenGroupware.woa/ix86/linux-gnu/gnu-fd-nil/OpenGroupware
-WOPort 20000 -OGoMinimumActiveSessionCount 0 -WOWatchDogEnabled YES -WOHttpAllowHost '(host1 , host2)'
Of course, you may want to run under Apache; if so, keep reading.
5) installing Apache 2 support: ngobjweb module(Yedidia, at
http://sukka.jct.ac.il/~yedidia/ogo_rh.html) (note that if you are using <VirtualHost> blocks, you need to put the
proxy configuration inside that block - Henrik Holmboe). Note that you'll need
the apache-devel module installed.
$ wget
http://www.opengroupware.org/sources/opengroupware.org-mod_ngobjweb-latest.tar.gz $ tar -zxvf opengroupware.org-mod_ngobjweb-latest.tar.gz
$ cd opengroupware.org-mod_ngobjweb
$ PATH=$PATH:/usr/sbin
$ make
$ mkdir ~opengroupware/WebServer
$ cp ngobjweb_2.0.45.so ~opengroupware/WebServer
6) configuring Apache (don't forget to restart the service)
$ su -
# cat >/etc/apache/conf/conf.d/ogo.conf <<EOF
LoadModule ngobjweb_module
/opt/opengroupware.org/WebServer/ngobjweb_2.0.45.so <LocationMatch "^/OpenGroupware/*">
SetHandler ngobjweb-adaptor
SetAppPort 20000
</LocationMatch>
Alias /OpenGroupware.woa/WebServerResources/
/opt/opengroupware.org/WebServerResources/ EOF
# service apache restart
# exit
7) starting
Now you could just run:
$ ./WOApps/OpenGroupware.woa/ix86/linux-gnu/gnu-fd-nil/OpenGroupware
and "point your webserver to the URL mentioned above". However, if you do
this way, every time you log out the program will just abort. Thanks God, Yedidia, and Henrik Holmboe,
there's a script that makes it in a better way (posted at
http://mail.opengroupware.org/pipermail/users/2003-July/000506.html ),
just save it as /etc/init.d/opengroupware, then you can start/stop it just like a service:
# service opengroupware start