Installation Guide Tests

Orginal siehe http://wiki.cipux.org/installation/cipux_340x_debian_edu

Wir sammeln hier verschiedene Tests, um den Erfolg der einzelnen Installationsschritte zu überprüfen.

Voraussetzungen

Installation von CipUX

                                                  CipUX installation on Debian Edu Lenny

   This guide describes the installation of the CipUX middleware and the XML-RPC server.

Versions

 2010-06-27 by Kurt Gramlich - v0.1
 2010-06-28 by Kurt Gramlich - v0.2
 2010-06-29 by Chrstian Kuelker, Kurt Gramlich - v0.3
 2010-07-01 by Kurt Gramlich - v0.4
 2010-07-03 by Kurt Gramlich - v0.5
 2010-07-15 by Erik Auerswald, Kurt Gramlich - v0.6
 2010-07-15 by Erik Auerswald, Kurt Gramlich - v0.7
 2010-08-02 by Kurt Gramlich - v0.8
 2010-08-10 by Erik Auerswald, Kurt Gramlich - v0.9
 2010-08-10 by Kurt Gramlich - v1.0
 2010-08-14 by Harald Meyer, Kurt Gramlich - v1.1
 2010-08-15 by Peter Mueller, Kurt Gramlich - v1.2

Install medium

   Debian Edu: Lenny-Tjener

                                                     Installation of CipUX Middleware

   Edit source list

 echo "deb http://debian.jones.dk/ lenny cipux" >> /etc/apt/sources.list

   Update package database

 aptitude update
 aptitude install cipux-task-tools

   Only for Debian-Edu you have to do as root:

 cd
 mkdir CipUX-Install
 cd CipUX-Install
 unset http_proxy
 wget http://release.cipux.org/CipUX-Trait-DebianEdu-3.4.0.3.tar.gz
 tar xvzf CipUX-Trait-DebianEdu-3.4.0.3.tar.gz
 cp -a CipUX-Trait-DebianEdu-3.4.0.3/usr/share/cipux /usr/share
 cp -a CipUX-Trait-DebianEdu-3.4.0.3/lib/CipUX /usr/share/perl5/

   Start installation

 mkdir /etc/cipux/ldap

 cp /usr/share/doc/libcipux-storage-perl/examples/cipux.schema.gz  /etc/ldap/schema/

 gunzip /etc/ldap/schema/cipux.schema.gz

 export cipuxrootpw="$(perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)')"

 perl -pe 's/\@PW\@/$ENV{"cipuxrootpw"}/' /usr/share/doc/libcipux-storage-perl/examples/debian-edu/cipuxroot.ldif | ldapadd -xWZD cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no

   After entering the root password you should get as output:

   adding new entry "cn=cipuxroot,dc=skole,dc=skolelinux,dc=no"

   Stop OpenLDAP:

 invoke-rc.d slapd stop

   Include CipUX schema:

 perl -i -p0e '$t="CipUX schema";$s="include\t\t/etc/ldap/schema/cipux.schema";s!^[ \t#]*(BEGIN $t).*[ \t#]*(END $t)[ \t]*$!# $1\n$s\n# $2!ms or s!^((.*\n)?[ \t]*include[ \t]*\S*\.schema[ \t]*\n)!$1\n# BEGIN $t\n$s\n# END $t\n!s or exit 1' $(readlink -f /etc/ldap/slapd.conf)

   Copy ACL Rules:

 cp -f /usr/share/doc/libcipux-storage-perl/examples/debian-edu/slapd_acl_cipuxroot.conf /etc/cipux/ldap/

   Include ACL Rules:

 perl -i -p0e '$t="CipUX ACL";$s="include /etc/cipux/ldap/slapd_acl_cipuxroot.conf";s!^[ \t#]*(BEGIN $t).*[ \t#]*(END $t)[ \t]*$!# $1\n$s\n# $2!ms or s!((\n[ \t]*#.*)*\naccess[ \t])!\n# BEGIN $t\n$s\n# END $t\n$1! or exit 1' $(readlink -f /etc/ldap/slapd.conf)

   Create a CipUX trust account on OpenLDAP:

 cp /usr/share/cipux/etc/cipux-access.d/50-cipux-access-debian-edu.ini /etc/cipux/cipux-access.ini
 chown root:root /etc/cipux/cipux-access.ini
 chmod u=rw,go= /etc/cipux/cipux-access.ini
 perl -i -pe "s/[ \t]*#([ \t]*password[ \t]*=).*/\$1\$ENV{'cipuxrootpw'}/" /etc/cipux/cipux-access.ini
 unset cipuxrootpw

   Start OpenLDAP:

 invoke-rc.d slapd start

   Create organisational units:

 ldapadd -xWZD cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no < /usr/share/doc/libcipux-storage-perl/examples/debian-edu/cat.ldif
 ldapadd -xWZD cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no < /usr/share/doc/libcipux-storage-perl/examples/debian-edu/task.ldif
 ldapadd -xWZD cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no < /usr/share/doc/libcipux-storage-perl/examples/debian-edu/room.ldif

   Create cipadmin object:

   You will have to enter the password for the root account. This will create cipadmin-group in ldap.

 ldapadd -xWZD cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no < /usr/share/doc/libcipux-storage-perl/examples/debian-edu/cipadmin-group.ldif

   You will have to enter the password for the cipadmin account. Choose a secure password you can remember.

 cipadminpw="<secure password>"
 export cipadminpw

   You will have to enter the password for the root account. This will create cipadmin-user in ldap.

 perl -pe 's/\@PW\@/$ENV{"cipadminpw"}/' /usr/share/doc/libcipux-storage-perl/examples/debian-edu/cipadmin-user.ldif | ldapadd -xWZD cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no
 smbpasswd -a -U cipadmin -w $cipadminpw
 unset cipadminpw

Installing CipUX task tools

   Add cipadmin to group admins

 cipux_task_client -t cipux_task_add_member_to_role_account -o admins -x value=cipadmin

   Create role accounts

 for i in professor assistant pupil tutor lecturer; do  cipux_task_client -t cipux_task_create_role_account -o $i; done

   Remark: admins, jradmins, teachers, students in Debian-Edu are only group, no user.

                                           Installing CipUX-RPC Server on top of the Middleware

 aptitude update
 aptitude install cipux-rpcd

   Start CipUX rpcd server

 invoke-rc.d cipux-rpcd start

Test of CipUX Installation

Last line of /etc/apt/sources.list should show

cat /etc/apt/sources.list

deb http://debian.jones.dk/ lenny cipux

/root should have a directory

cd /root
ls

CipUX-Install

/etc/ should have a directory cipux/ldap

ls /etc

cipux/ldap

Inside /etc/cipux/ldap you should find a schema

ls /etc/ldap/schema/

cipux.schema

is there a file slapd_acl_cipuxroot.conf in /etc/cipux/ldap/ ?

ls /etc/cipux/ldap/

slapd_acl_cipuxroot.conf

is there a file 50-cipux-access-debian-edu.ini in /etc/cipux/cipux-access.ini

ls /etc/cipux/cipux-access.ini/

50-cipux-access-debian-edu.ini

is ldap running?

ps aux | grep slap

is there in the LDAP an cipadmin

slapcat | grep cipadmin

cipux-rpcd running?

ps aux | grep cipux

to be continued

Installation von CAT-Web

Anleitung kopieren

Tests des Erfolges der Anleitung

und so weiter

CipUX/Installation/3.4.0.0 (last edited 2010-09-27 15:29:39 by KurtGramlich)

Alle Inhalte in diesem Wiki stehen unter der GPL.