Hallo,
habe eine Portierungsversuch auf CentOS 6.7 unternommen. Ziel ist das oben Geschriebene zu erreichen!
-
CentOS 6.7 installieren
-
Python 2.7.3 installieren
[code]yum groupinstall “Development tools”
#oder
yum groupinstall “Entwicklungs-Tools”
#je nach Sprache (nachschauen mit “yum grouplist”)
yum install zlib-devel
yum install bzip2-devel
yum install openssl-devel
yum install ncurses-devel
yum install sqlite-devel
yum install xz
cd /usr/local/src
wget --no-check-certificate https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.xz
tar xf Python-2.7.3.tar.xz
cd Python-2.7.3
./configure --prefix=/usr/local
make && make altinstall
Jetzt befindet sich unter /usr/local/bin eine kompilierte Python-Version (2.7.3=Version von UCS 4.1)
mv /usr/bin/python /usr/bin/python2.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
ln -s /usr/local/bin/python2.7 /usr/bin/python2.7
# ACHTUNG! Jetzt muss yum gefixt werden, da dieses auf python2.6 aufbaut!
pip und eazy_install in python einrichten
cd /usr/local
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
/usr/local/bin/python2.7 ez_setup.py
/usr/local/bin/easy_install-2.7 pip
ln -s /usr/local/bin/pip /usr/bin/pip
ln -s /usr/local/bin/easy_install /usr/bin/easy_install
[/code]
- UCR und dazugehörige Libraries transportieren
#jetzt die Datei /usr/sbin/univention-config-registry auf das CentOS System transportieren.
ln -s /usr/sbin/univention-config-registry /usr/sbin/ucr
#Jetzt die Python-Libs nachziehen
cd /usr/share
tar cfv pyshared.tar pyshared/*
#Jetzt das pyshared.tar auf das CentOS übertragen und im Verzeichnis /usr/share auspacken
cd /usr/share
tar xfv pyshared.tar
Jetzt lässt sich ucr ohne Fehler aufrufen.
ucr
univention-config-registry: base configuration for UCS
copyright (c) 2001-2015 Univention GmbH, Germany
Syntax:
univention-config-registry [options] <action> [options] [parameters]
Options:
-h | --help | -?:
print this usage message and exit program
--version | -v:
print version information and exit program
--shell (valid actions: dump, search):
convert key/value pair into shell compatible format, e.g.
`version/version: 1.0` => `version_version="1.0"`
--keys-only (valid actions: dump, search):
print only the keys
Actions:
set [--force|--schedule|--ldap-policy] <key>=<value> [... <key>=<value>]:
set one or more keys to specified values; if a key is non-existent
in the configuration registry it will be created
get <key>:
retrieve the value of the specified key from the configuration
database
unset [--force|--schedule|--ldap-policy] <key> [... <key>]:
remove one or more keys (and its associated values) from
configuration database
dump:
display all key/value pairs which are stored in the
configuration database
search [--key|--value|--all] [--category <category>] [--brief|-verbose] \
[--non-empty] [... <regex>]:
displays all key/value pairs and their descriptions that match at
least one of the given regular expressions
--key: only search the keys (default)
--value: only search the values
--all: search keys, values and descriptions
--category: limit search to variables of <category>
--brief: don't print descriptions (default controlled via ucr/output/brief)
--verbose: also print category for each variable
--non-empty: only search in non-empty variables
no <regex> given: display all variables
info <key> [... <key>]:
display verbose information for the specified variable(s)
shell [key]:
convert key/value pair into shell compatible format, e.g.
`version/version: 1.0` => `version_version="1.0"`
(deprecated: use --shell dump instead)
commit [file1 ...]:
rebuild configuration file from univention template; if
no file is specified ALL configuration files are rebuilt
filter [file]:
evaluate a template file, expects python inline code in UTF-8 or US-ASCII
Description:
univention-config-registry is a tool to handle the basic configuration for
Univention Corporate Server (UCS)
uname -a
Linux gtw02.domain.de 2.6.32-573.8.1.el6.x86_64 #1 SMP Tue Nov 10 18:01:38 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/centos-release
CentOS release 6.7 (Final)
python --version
Python 2.7.3
Jetzt noch yum reparieren (Bitte hier sehr genau arbeiten, sonst geht yum nicht mehr!)
which yum
/usr/bin/yum
vi /usr/bin/yum
# die erste Zeile von
#!/usr/bin/python
ändern in
#!/usr/bin/python2.6
yum testen
yum grouplist
muss am Schluss sowas ergeben:
[.....]
Unterstützung für Persisch [fa]
Unterstützung für Philipinisch [fil]
Unterstützung für Polnisch [pl]
Unterstützung für Portugiesisch [pt]
Unterstützung für Portugiesisch (Brasilien) [pt_BR]
Unterstützung für Punjabi [pa]
Unterstützung für Rumänisch [ro]
Unterstützung für Russisch [ru]
Unterstützung für Sanskrit [sa]
Unterstützung für Sardinisch [sc]
Unterstützung für Schwedisch [sv]
Unterstützung für Serbisch [sr]
Unterstützung für Sindhi [sd]
Unterstützung für Sinhala [si]
Unterstützung für Slowakisch [sk]
Unterstützung für Slowenisch [sl]
Unterstützung für Somalisch [so]
Unterstützung für Spanisch [es]
Unterstützung für Spanisch (Katalanien) [ca]
Unterstützung für Suaheli [sw]
Unterstützung für Swati [ss]
Unterstützung für Süd-Ndebele [nr]
Unterstützung für Süd-Sotho [st]
Unterstützung für Tadschikisch [tg]
Unterstützung für Tagalog [tl]
Unterstützung für Tamil [ta]
Unterstützung für Telugu [te]
Unterstützung für Tetum [tet]
Unterstützung für Thai [th]
Unterstützung für Tibetisch [bo]
Unterstützung für Tschechisch [cs]
Unterstützung für Tsonga [ts]
Unterstützung für Tswana [tn]
Unterstützung für Turkmenisch [tk]
Unterstützung für Türkisch [tr]
Unterstützung für Ukrainisch [uk]
Unterstützung für Ungarisch [hu]
Unterstützung für Urdu [ur]
Unterstützung für Usbekisch [uz]
Unterstützung für Venda [ve]
Unterstützung für Vietnamesisch [vi]
Unterstützung für Walisisch [cy]
Unterstützung für Wallonisch [wa]
Unterstützung für Xhosa [xh]
Unterstützung für Zulu (Südafrika) [zu]
Unterstützung für Äthiopisch [am]
Jetzt kommt das hier dran:
docs.software-univention.de/doma … t-dom-unix
und zwar Abschnitt 2.1 bis zum Anschnitt 2.5