Ubuntu Lucid Lynx (10.04)

This page describes how to install ]project-open[ V3.5 on Ubuntu Lucid Lynx (10.04) .
Please note that these instructions are outdated, as instructions for Ubuntu Precise Pangolin have become available.

These instructions are a verbatim copy of of the  Cognovis Ubuntu instructions  page from Malte Sussdorff 

Install ]project-open[ on Ubuntu

Here is a quick run on how to install ]project-open[ with the cognovs Checkout on Ubuntu LTS 10.4. Become ROOT first!

sudo su -

Install the components

apt-get install aolserver4-core aolserver4-daemon aolserver4-doc aolserver4-nspostgres aolserver4-nssha1 aolserver4-xotcl ghostscript gsfonts imagemagick libcupsimage2 libdjvulibre-text libdjvulibre21 libgomp1 libgraphviz4 libgs8 libilmbase6 liblcms1 libltdl7 libmagickcore2 libmagickcore2-extra libmagickwand2 libopenexr6 libpaper-utils libpaper1 libpq5 libwmf0.2-7 postgresql daemontools daemontools-run postgresql-8.4 postgresql-doc-8.4 postgresql-client postgresql-client-8.4 postgresql-client-common psfontmgr tcl tcl8.4 tcllib tclthread tdom wwwconfig-common xotcl postgresql-contrib-8.4 nginx jodconverter aolserver4-dev make graphviz git-core aolserver4-nsimap emacs unzip zip openoffice.org-headless openoffice.org-writer openoffice.org-draw openoffice.org-java-common ldap-utils

Now install libthread

cd /usr/local/src
wget http://downloads.sourceforge.net/project/tcl/Thread%20Extension/2.6.7/thread2.6.7.tar.gz
tar -xzf thread2.6.7.tar.gz
cd thread2.6.7/unix
../configure --enable-threads --prefix=/usr/lib/aolserver4 --exec-prefix=/usr/lib/aolserver4 --with-aolserver=/usr/lib/aolserver4 --with-tcl=/usr/lib/tcl8.4
make
make install

# Prepare the projop user.

groupadd web
mkdir /var/lib/aolserver
useradd -g web -d /var/lib/aolserver/projop -m -s /bin/bash projop
su - postgres
createuser -s projop
exit

#Now get yourself ]project-open[ and load the dumpfile


# The following description tells you how to get the code if you are a customer of cognovis

sudo su - projop
git clone git@github.com:cognovis/project-open.git
mv project-open/* .
mv project-open/.git .
rm -rf project-open
createdb -E UNICODE projop

# Assuming you have a dumpile called projop in your current directory

psql -f projop.dmp 


Now you need to make sure tsearch works in PG 8.4 as well. ONLY DO THIS ON AN UPGRADE from before 8.4 !!!

psql 

# And now enter:

CREATE TEXT SEARCH CONFIGURATION public.default ( COPY = pg_catalog.english );

# Also edit the configuration to allow add_missing_from, default_with_oids and set the regex_flavor to extended

exit
emacs /etc/postgresql/8.4/main/postgresql.conf
/etc/init.d/postgresql-8.4 reload

# Copy the config files and prepare the log directory

cp /var/lib/aolserver/projop/files/projop.tcl /etc/aolserver4/
mkdir /var/log/aolserver4/projop
chown projop.web /var/log/aolserver4/projop/

# Configure daemontools.

mkdir /var/lib/supervise/projop
cp /var/lib/aolserver/projop/files/run /var/lib/supervise/projop
chown -R projop.web /var/lib/supervise/projop
update-service --add /var/lib/supervise/projop/ projop
initctl start svscan

# Now you should see your aolserver nicely starting up. To make it restart, install the svgroup software

cp /var/lib/aolserver/projop/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup
chmod 755 /usr/local/bin/svgroup
svgroup web /etc/service/projop

# Make sure you can use openoffice

cp /var/lib/aolserver/projop/packages/intranet-openoffice/openoffice-init /etc/init.d/openoffice
chmod 755 /etc/init.d/openoffice
update-rc.d openoffice defaults

# Now it is time for configuring postfix

apt-get install postfix heirloom-mailx

# Smarthost auswählen, dass sollte in den meisten Fällen zutreffen. Dann den entsprechenden Smarthost (SMTP Server beim Provider) angeben. Danach die main.cf anpassen

sudo emacs /etc/postfix/main.cf

# Search for relayhost and add the following lines beneath it

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
sudo emacs /etc/postfix/smtp_auth

# Now add your credentials to smtp_auth in clear text

yourrelayhost.com     yourusername:yourpassword

# And add this to your postfix database

postmap /etc/postfix/smtp_auth
/etc/init.d/postfix reload
chmod 700 /etc/postfix/smtp_auth

# Install EMACS

sudo su -
cd /usr/share/emacs/site-lisp
wget http://www.emacswiki.org/elisp/color-occur.el
wget http://openacs.org/storage/view/xowiki-resources%5C/oacs.el.tar
tar xf oacs.el.tar
apt-get install psgml mmm-mode
cd /usr/share/emacs/site-lisp
git clone https://github.com/sellout/emacs-color-theme-solarized.git

After this login as the user who is doing the development and edit you .emacs file.

(add-to-list 'load-path "/usr/share/emacs/site-lisp/oacs")
(require 'oacs)
(setq user-full-name "<yourname>")
(setq user-mail-address "<your email>")
(add-to-list 'auto-mode-alist '("\\.vuh" . tcl-mode))
(add-to-list 'auto-mode-alist '("\\.adp" . html-mode))
(add-to-list 'load-path "/usr/share/emacs/site-lisp/emacs-color-theme-solarized")
(require 'color-theme-solarized)
(color-theme-solarized-dark)

########

# LDAP

#######

# Install PERL modules

apt-get install perl ldap-utils
cpan
-> install
-> install IO::Socket::PortState
-> install Net::LDAP (follow defaults)

Install the auth-ldap-adldapsearch package

Go to /intranet-sysconfig/ldap/ldap-ip-port and follow the steps.

###########

# TLS

###########

cd /usr/local/src/
wget http://downloads.sourceforge.net/tls/tls1.5.0-src.tar.gz
tar xzpf tls1.5.0-src.tar.gz
cd  tls1.5
apt-get install libssl-dev
./configure --with-ssl-dir=/usr --with-tcl=/usr/lib/tcl8.4 --enable-threads --enable-shared --prefix=/usr/lib/aolserver4 --exec-prefix=/usr/lib/aolserver4 --with-tclinclude=/usr/include/tcl8.4/
make install

#############

Time keeping

#############

apt-get install ntp ntpdate




Die Konfiguration des NTP-Daemons befindet sich auf der Client-Seite auch in der Datei /etc/ntp.conf. Die folgenden Zeilen sorgen dafür, dass sich der Client die Uhrzeit von meinem DSL-Router holt.

### Client:/etc/ntp.conf ####################################################

# Abweichungen

driftfile /var/lib/ntp/ntp.drift

# NTP-Server

server ptbtime1.ptb.de

server ptbtime2.ptb.de

# Zugriff durch NTP-Server gestatten

restrict ptbtime1.ptb.de

restrict ptbtime2.ptb.de

# Zugriff vom localhost gestatten (ntpq -p)

restrict 127.0.0.1

# allen anderen Rechnern Zugriff verwehren

restrict default notrust nomodify nopeer

#############################################################################

/etc/init.d/ntp restart

  Contact Us
  Project Open Business Solutions S.L.

Calle Aprestadora 19, 12o-2a

E-08907 Hospitalet de Llobregat (Barcelona)

 Tel Europe: +34 932 202 088
 Tel US: +1 415 429 5995
 Mail: info@project-open.com