[Kolab-devel] kolab_bootstrap -b fails on Solaris 8 Sparc

soliva at comcept.ch soliva at comcept.ch
Tue Sep 27 21:40:31 CEST 2005


Hi all

Now I tried to get Kolab1 running on Solaris 8 for about 1 year without
success. There was as a pitty also no help in the general kolab user list
and I have to give up.

Now with Kolab2 V2.0.1 running on Solaris 8 I tried again but with some
problems which I could really not solve by myself and which on my point of
view have to addressed to this mailing list.

The installation itself without gmp and clamav (this two packages make
troubles) looks nice but the configuration with bootstrap -b looks worse.
The problem seems to me that some commands are not really recognized on
Solaris 8 like ps -v does not exist and has to be changed to ps -elf which
works. But there are more erros specially with the command diff.

Could you please have a look to this because I do not have any idea where I
can change this etc. Below you will see a full install protocoll and
additional information about env etc. If you need other information no
problem I will provide it. 


- The test machine is:

Ultra 2 Dual Processor 300 MHz and 512 RAM SBUS based and 2 X SCSI HD 9.1 GB


- Solaris 8 setup over Jumpstart server:

system      SFWaconf       autoconf - GNU autoconf
system      SFWamake       automake - GNU automake
system      SFWgcc         gcc - GNU Compiler Collection
system      SFWgcmn        gcmn - Common GNU package
system      SFWgm4         GNU m4 - macro processor
system      SUNWadmr       System & Network Administration Root
system      SUNWarc        Archive Libraries
system      SUNWarcx       Archive Libraries (64-bit)
system      SUNWbcp        SunOS 4.x Binary Compatibility
system      SUNWbtool      CCS tools bundled with SunOS
system      SUNWbtoox      CCS libraries bundled with SunOS (64-bit)
system      SUNWbzip       The bzip compression utility
system      SUNWcar        Core Architecture, (Root)
system      SUNWcarx       Core Architecture, (Root) (64-bit)
system      SUNWcg6        GX (cg6) Device Driver
system      SUNWcg6x       GX (cg6) Device Driver (64-bit)
system      SUNWcsd        Core Solaris Devices
system      SUNWcsl        Core Solaris, (Shared Libs)
system      SUNWcslx       Core Solaris Libraries (64-bit)
system      SUNWcsr        Core Solaris, (Root)
system      SUNWcsu        Core Solaris, (Usr)
system      SUNWcsxu       Core Solaris (Usr) (64-bit)
system      SUNWdfb        Dumb Frame Buffer Device Drivers
system      SUNWeridx      Sun RIO 10/100 Mb Ethernet Drivers (64-bit)
system      SUNWesu        Extended System Utilities
system      SUNWgzip       The GNU Zip (gzip) compression utility
system      SUNWhea        SunOS Header Files
system      SUNWhmd        SunSwift SBus Adapter Drivers
system      SUNWhmdx       SunSwift SBus Adapter Drivers (64-bit)
system      SUNWipc        Interprocess Communications
system      SUNWipcx       Interprocess Communications (64-bit)
system      SUNWkey        Keyboard configuration tables
system      SUNWkvm        Core Architecture, (Kvm)
system      SUNWkvmx       Core Architecture (Kvm) (64-bit)
system      SUNWlibC       Sun Workshop Compilers Bundled libC
system      SUNWlibCx      Sun WorkShop Bundled 64-bit libC
system      SUNWlibm       Sun WorkShop Bundled libm
system      SUNWlibms      Sun WorkShop Bundled shared libm
system      SUNWlmsx       Sun WorkShop Bundled 64-bit shared libm
system      SUNWloc        System Localization
system      SUNWlocx       System Localization (64-bit)
system      SUNWmdr        Solstice DiskSuite Drivers
system      SUNWmdu        Solstice DiskSuite Commands
system      SUNWmdx        Solstice DiskSuite Drivers(64-bit)
system      SUNWnamos      Northern America OS Support
system      SUNWowbcp      OpenWindows binary compatibility
system      SUNWpl5u       Perl 5.005_03
system      SUNWrmodu      Realmode Modules, (Usr)
system      SUNWscbcp      SPARCompilers Binary Compatibility Libraries
system      SUNWscpr       Source Compatibility, (Root)
system      SUNWscpu       Source Compatibility, (Usr)
system      SUNWsprot      Solaris Bundled tools
system      SUNWsprox      Sun WorkShop Bundled 64-bit make library
system      SUNWswmt       Install and Patch Utilities
system      SUNWtoo        Programming Tools
system      SUNWtoox       Programming Tools (64-bit)
system      SUNWxcu4       XCU4 Utilities

- The env variable for user root looks like following:

su - root

_=/usr/bin/env
HZ=100
LC_MONETARY=en_US.ISO8859-1
LC_TIME=en_US.ISO8859-1
PATH=/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:/opt/sfw/
bin:/usr/ccs/bin:/etc/lvm
HISTFILE=/root/.sh_history
LOGNAME=root
MAIL=/var/mail/root
PS1=[root at kolab2 $PWD]# 
LC_MESSAGES=C
LC_CTYPE=en_US.ISO8859-1
SHELL=/sbin/sh
HISTSIZE=200
HOME=/root
LC_COLLATE=en_US.ISO8859-1
LC_NUMERIC=en_US.ISO8859-1
TERM=vt100
PWD=/
TZ=MET
ENV=/root/.kshrc

- The env variable for user kolab looks like following:

su - kolab

su - kolab
kolab at kolab2$ env
MANPATH=/kolab/man:/kolab/local/man::/usr/share/man
HZ=100
LC_MONETARY=en_US.ISO8859-1
SHELL=/kolab/lib/openpkg/bash
TERM=vt100
TMPDIR=/tmp
LC_NUMERIC=en_US.ISO8859-1
OLDPWD=/kolab
LD_LIBRARY_PATH=/kolab/lib:/kolab/local/lib::/lib:/usr/lib
MAIL=/var/mail/kolab
PATH=/kolab/bin:/kolab/sbin:/kolab/local/bin:/kolab/local/sbin::/bin:/sbin:/
usr/bin:/usr/sbin:/usr/ccs/bin
LC_MESSAGES=C
BLOCKSIZE=1024
LC_COLLATE=en_US.ISO8859-1
PWD=/kolab
TZ=MET
SHLVL=1
HOME=/kolab
LOGNAME=kolab
LC_CTYPE=en_US.ISO8859-1
INFOPATH=/kolab/info:/kolab/local/info:
LC_TIME=en_US.ISO8859-1
_=/bin/env


- Install wget for downloading the source:

mkdir /root/wget
cp wget-1.10.1.tar.gz /root/wget
cd /root/wget
gzip -dc wget-1.10.1.tar.gz | tar xvf - 

cd /root/wget/wget-1.10.1

./configure \
--prefix=/opt/wget-1.10.1 \
--exec-prefix=/opt/wget-1.10.1

make 

make install


- Download now the source:

/opt/wget-1.8.2/bin/wget -r -l1 -nd --no-parent
http://ftp.belnet.be/packages/kolab/server/release/kolab-server-2.0.1/source
s/


- Chmod the dir that we would have no troubles with rights:

chmod -R 777 /kolabtmp


- We install kolab2 in /export/kolab. Also to not have troubles with the
standard dir we
  use a link to /kolab dir:

mkdir /export/kolab
ln -s /export/kolab /kolab


- Control if the user kolab* and the group kolab* exists if yes delete it:

cat /etc/group | grep kolab
cat /etc/passwd | grep kolab

userdel kolab
userdel kolab-r
userdel kolab-n

groupdel kolab
groupdel kolab-r
groupdel kolab-n


- Control if the neccessary ports for kolab2 are not already used:

Ports 21,25,80,143,389,443,465,636,993,995,2000 :

netstat -an

   Local Address        Remote Address    Swind Send-Q Rwind Recv-Q  State
-------------------- -------------------- ----- ------ ----- ------ -------
      *.*                  *.*                0      0 24576      0 IDLE
      *.22                 *.*                0      0 24576      0 LISTEN
192.168.100..5666       *.*                0      0 24576      0 LISTEN
      *.*                  *.*                0      0 24576      0 IDLE

TCP: IPv6
   Local Address                     Remote Address                 Swind
Send-Q Rwind Recv-Q   State      If 
--------------------------------- --------------------------------- -----
------ ----- ------ ----------- -----
      *.*                               *.*                             0
0 24576      0 IDLE             


- Because the installation of kolab2 will only run with /usr/bin/cc we link
the gcc
  to /usr/bin/cc:

which cc
/usr/ucb/cc

which gcc
/opt/sfw/bin/gcc

ln -s /opt/sfw/bin/gcc /usr/bin/cc

which cc
/usr/bin/cc


- If you would like to exclude some package from installation comment out
these in following
  file (have to compile manually because there are some problems with this
two packages):


vi /kolabtmp/obmtoo.conf

--------------- /kolabtmp/obmtoo.conf --------------- 

#    @install ${plusloc}gmp-4.1.4-2.4.0

#    @install ${altloc}clamav-0.86.2-20050726

--------------- /kolabtmp/obmtoo.conf --------------- 


- Now we should be ready for running the installation:


cd /kolabtmp
sh obmtool kolab

---- boot/build kolab2 %kolab ----
obmtool:NOTICE: did not find openpkg/rpm executable. Checking/fetching
binary sh.
obmtool:NOTICE: did not find binary sh. Checking/fetching source sh.
OpenPKG 2.4-SOLID Source Bootstrap Package, version 2.4.2
Building for prefix /kolab on current platform
++ extracting OpenPKG source distribution


- After a successfull installation you should see following:

MISSSRC: none
MISSPKG: none
MISSING: none
SURPLUS: none
SUMMARY: NODE=kolab2; CMD=kolab; DATE=2005-09-24/09:52:19; HASX11=; DONE


- In the file kolab_bootstrap there is defined ps -v. On Solaris this does
not
  exists it means we have to change this to ps -elf

vi /kolab/etc/kolab/kolab_bootstrap

--------------- /kolabtmp/obmtoo.conf ---------------

   381          ."Please stop any running kolabd and bootstrap again\n";
   382        if( `ps aux|grep slurpd|grep -elf grep` ) {
   383          print "Error: Detected running slurpd processes.\n";
   384          print "Please make sure the OpenLDAP server is stopped
properly!

   636      ."Please stop any running kolabd and bootstrap again\n";
   637    if( `ps aux|grep slurpd|grep -elf grep` ) {
   638      print "WARNING: Detected running slurpd processes.\n";
   639      print " Please make sure the OpenLDAP server is stopped
properly!\n"



--------------- /kolabtmp/obmtoo.conf ---------------

- Now we try to configure the stuff:

cd /kolabtmp

/kolab/etc/kolab/kolab_bootstrap -b      

KOLAB BOOTSTRAP

Check for running webserver on port 80
Check for running webserver on port 443
Check for running imap server on port 143
Check for running imap server on port 220
Check for running imap server on port 585
Check for running imap server on port 993
Check for running pop3 server on port 109
Check for running pop3 server on port 110
Check for running pop3 server on port 473
Check for running pop3 server on port 995
Check for running smtp server on port 25
Check for running smtp server on port 465
Check for running ftp server on port 21
Check for running Amavis Virus Scanner Interface on port 10024
Check for running Kolab daemon on port 9999
Check for running OpenLDAP server on port 636
Check for running OpenLDAP server on port 389
Check for running Sieve server on port 2000
Excellent all required Ports are available!
LDAP repository is empty - assuming fresh install
Please enter Hostname including Domain Name (e.g. thishost.domain.tld)
[kolab2]: kolab2.co
mcept.ch
Proceeding with Hostname kolab2.comcept.ch
Do you want to set up (1) a master Kolab server or (2) a slave [1] (1/2): 1
Proceeding with master server setup

Please enter your Maildomain - if you do not know your mail domain use the
fqdn from above 
[comcept.ch]: comcept.ch
proceeding with Maildomain comcept.ch
Kolab primary email addresses will be of the type user at comcept.ch 
Generating default configuration:
 base_dn : dc=comcept,dc=ch
 bind_dn : cn=manager,cn=internal,dc=comcept,dc=ch
Please choose a manager password [4+EoP0kHel+CzHO2]: XXXXXXXX
 bind_pw : XXXXXXXX
done modifying /kolab/etc/kolab/kolab.conf

IMPORTANT NOTE:
use login=manager and passwd=XXXXXXXX when you log into the webinterface!

Enter fully qualified hostname of slave kolab server e.g.
thishost.domain.tld [empty when d
one]: 
prepare LDAP database...
grep: illegal option -- e
grep: illegal option -- f
Usage: grep -hblcnsviw pattern file . . .
usage: ps [ -aAdeflcjLPy ] [ -o format ] [ -t termlist ]
        [ -u userlist ] [ -U userlist ] [ -G grouplist ]
        [ -p proclist ] [ -g pgrplist ] [ -s sidlist ]
  'format' is one or more of:
        user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid
        pri opri pcpu pmem vsz rss osz nice class time etime stime
        f s c lwp nlwp psr tty addr wchan fname comm args projid project
temporarily starting slapd
Waiting for OpenLDAP to start
no dc=comcept,dc=ch object found, creating one
mynetworkinterfaces: 127.0.0.0/8
LDAP setup finished

Create initial config files for postfix, apache, proftpd, cyrus imap,
saslauthd
running /kolab/sbin/kolabconf -n
kolabconf - Kolab Configuration Generator

  Version: 2.0.1

  Copyright (c) 2004  Klaraelvdalens Datakonsult AB
  Copyright (c) 2003  Code Fusion cc
  Copyright (c) 2003  Tassilo Erlewein, Martin Konold, Achim Frank, erfrakon

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2
diff: illegal option -- q
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
       diff [-bitw] [-C number] file1 file2
       diff [-bitw] [-D string] file1 file2
       diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
directory1 directory2

kill temporary slapd

OpenPKG: stop: openldap.
Creating RSA keypair for resource password encryption
/kolab/bin/openssl genrsa -out /kolab/etc/kolab/res_priv.pem 1024
Generating RSA private key, 1024 bit long modulus
...............................................++++++
................++++++
e is 65537 (0x10001)
/kolab/bin/openssl rsa -in /kolab/etc/kolab/res_priv.pem -pubout -out
/kolab/etc/kolab/res_
pub.pem
writing RSA key
chown kolab:kolab-n /kolab/etc/kolab/res_pub.pem
/kolab/etc/kolab/res_priv.pem
Kolab can create and manage a certificate authority that can be
used to create SSL certificates for use within the Kolab environment.
You can choose to skip this section if you already have certificates
for the Kolab server.
Do you want to create CA and certificates [y] (y/n): y
Now we need to create a cerificate authority (CA) for Kolab and a server
certificate. You will be prompted for a passphrase for the CA.
############################################################################
####
/kolab/etc/kolab/kolab_ca.sh -newca kolab2.comcept.ch
Enter organization name [Kolab]: ComCept Net GmbH
Enter organizational unit [Test-CA]: ComCept Net GmbH KOLAB2
Using subject O=ComCept Net GmbH,OU=ComCept Net GmbH
KOLAB2,CN=kolab2.comcept.ch
Using dn 
CA certificate filename (or enter to create)

Making CA certificate ...
Generating a 1024 bit RSA private key
..++++++
......................++++++
writing new private key to '/kolab/etc/kolab/ca/private/cakey.pem'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
/kolabtmp
/kolab/etc/kolab/kolab_ca.sh -newkey kolab2.comcept.ch
/kolab/etc/kolab/key.pem
Using dn 
Generating RSA private key, 1024 bit long modulus
............................++++++
...................++++++
e is 65537 (0x10001)
writing RSA key
/kolabtmp
/kolab/etc/kolab/kolab_ca.sh -newreq kolab2.comcept.ch
/kolab/etc/kolab/key.pem /kolab/etc/
kolab/newreq.pem 
Using dn 
Request is in /kolab/etc/kolab/newreq.pem and private key is in
/kolab/etc/kolab/key.pem
/kolabtmp
/kolab/etc/kolab/kolab_ca.sh -sign /kolab/etc/kolab/newreq.pem
/kolab/etc/kolab/cert.pem
Using dn 
Using configuration from /kolab/etc/kolab/kolab-ssl.cnf
Enter pass phrase for /kolab/etc/kolab/ca/private/cakey.pem:
Check that the request matches the signature
Signature ok
Certificate Details:
        Serial Number: 1 (0x1)
        Validity
            Not Before: Sep 27 18:59:33 2005 GMT
            Not After : Sep 25 18:59:33 2015 GMT
        Subject:
            commonName                = kolab2.comcept.ch
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            Netscape Comment: 
                OpenSSL Generated Certificate
            X509v3 Subject Key Identifier: 
                54:3C:48:5B:3D:CF:07:23:28:34:CD:92:7F:BB:33:0A:11:BA:C1:32
            X509v3 Authority Key Identifier: 
                DirName:/O=ComCept Net GmbH/OU=ComCept Net GmbH
KOLAB2/CN=kolab2.comcept.ch
                serial:C8:D2:14:67:6B:4A:95:33

Certificate is to be certified until Sep 25 18:59:33 2015 GMT (3650 days)
Sign the certificate? [y/n]:y


1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
Signed certificate is in /kolab/etc/kolab/cert.pem
/kolabtmp
chgrp kolab-r /kolab/etc/kolab/key.pem;
chmod 0640 /kolab/etc/kolab/key.pem;
chgrp kolab-r /kolab/etc/kolab/cert.pem;
chmod 0640 /kolab/etc/kolab/cert.pem;
############################################################################
####
CA and certificate creation complete.

You can install /kolab/etc/kolab/ca/cacert.pem on your clients to allow them
to verify the validity of your server certificates.

kolab is now ready to run!
please run '/kolab/bin/openpkg rc all start'
Use login=manager and passwd=XXXXXXXX when you log into
the webinterface https://kolab2.comcept.ch/admin !


Kind regards




More information about the devel mailing list