opsi unter Ubuntu installieren

Antworten
wuethrich
Beiträge: 13
Registriert: 23 Okt 2008, 17:44

opsi unter Ubuntu installieren

Beitrag von wuethrich »

Hallo zusammen,

Ich bin noch ein ziemlicher Linux-Neuling also sagt mir bitte wenn ich eine dumme Frage stelle.
Ich habe mir zum Einstieg zuerst die Server-Version von ubuntu geholt und installiert. Hat alles geklappt, hat aber keine grafische Oberfläche. Also habe ich die Desktop-Edition installiert.

Als nächstes wollte ich denn opsi-Server installieren. Ich habe es sicher schon 5-mal probiert auch mit neu aufsetzten aber ich erhalte immer das gleiche Ergebnis.

Erste Frage: Kann man den opsi-Server auf der Desktop-Version von ubuntu überhaupt installieren und was muss man beachten.

Zweite Frage: Wenn JA, was mache ich falsch?

Hier meine Eingabe die mir Probleme bereiten. Die Schritte vorher habe ich glaub alle richtig gemacht (apt-get install wget lsof host python-mechanize p7zip-full, danach samba, dann mysql, dann openbsd-inetd und apt-get update, apt-get remove tftpd, update-inetd --remove tftpd, apt-get install opsi-atftpd):

Code: Alles auswählen

user@opsi-server:~$ sudo apt-get install opsi-depotserver
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut       
Reading state information... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  dhcp3-server duplicity librsync1 opsi-linux-bootimage opsi-utils opsiconfd
  opsipxeconfd python-crypto python-json python-ldap python-mysqldb
  python-newt python-openssl python-opsi python-pam python-pexpect
  python-pyopenssl python-twisted-bin python-twisted-core python-twisted-web2
  python-zopeinterface
Vorgeschlagene Pakete:
  ncftp python-boto python-crypto-dbg python-ldap-dbg python-ldap-doc
  python-egenix-mxdatetime python-mysqldb-dbg python-newt-dbg
  python-openssl-dbg python-openssl-doc slapd python-pam-dbg
  python-twisted-bin-dbg python-profiler python-qt3 python-tk python-wxgtk2.8
  python-wxgtk2.6 python-zopeinterface-dbg
Empfohlene Pakete:
  python-serial
Die folgenden NEUEN Pakete werden installiert:
  dhcp3-server duplicity librsync1 opsi-depotserver opsi-linux-bootimage
  opsi-utils opsiconfd opsipxeconfd python-crypto python-json python-ldap
  python-mysqldb python-newt python-openssl python-opsi python-pam
  python-pexpect python-pyopenssl python-twisted-bin python-twisted-core
  python-twisted-web2 python-zopeinterface
0 aktualisiert, 22 neu installiert, 0 zu entfernen und 154 nicht aktualisiert.
Es müssen 65.8MB Archive geholt werden.
After this operation, 76.6MB of additional disk space will be used.
Möchten Sie fortfahren [J/n]? j
WARNUNG: Die folgenden Pakete können nicht authentifiziert werden!
  python-opsi opsiconfd opsi-linux-bootimage opsi-utils opsipxeconfd
  opsi-depotserver
Diese Pakete ohne Überprüfung installieren [j/N]? j
Hole:1 http://download.uib.de etch/opsi3.3 python-opsi 3.3.0.24-1 [154kB]
Hole:2 http://ch.archive.ubuntu.com hardy/main dhcp3-server 3.0.6.dfsg-1ubuntu9 [318kB]
Hole:3 http://download.uib.de etch/opsi3.3 opsiconfd 2.0.0.8-1 [27.5kB]
Hole:4 http://download.uib.de etch/opsi3.3 opsi-linux-bootimage 20080826-1 [63.3MB]
Hole:5 http://ch.archive.ubuntu.com hardy/main librsync1 0.9.7-1build1 [38.7kB]
Hole:6 http://ch.archive.ubuntu.com hardy/main python-pexpect 2.1-1build1 [117kB]
Hole:7 http://ch.archive.ubuntu.com hardy/universe duplicity 0.4.10-1 [128kB]  
Hole:8 http://ch.archive.ubuntu.com hardy/main python-crypto 2.0.1+dfsg1-2.1ubuntu1 [217kB]
Hole:9 http://ch.archive.ubuntu.com hardy/universe python-json 3.4-2 [10.6kB]  
Hole:10 http://ch.archive.ubuntu.com hardy/main python-ldap 2.3.1-1ubuntu3 [85.9kB]
Hole:11 http://ch.archive.ubuntu.com hardy/main python-mysqldb 1.2.2-5ubuntu1 [95.1kB]
Hole:12 http://ch.archive.ubuntu.com hardy/main python-newt 0.52.2-11.2ubuntu1 [54.9kB]
Hole:13 http://ch.archive.ubuntu.com hardy/main python-pam 0.4.2-12ubuntu2 [14.8kB]
Hole:14 http://ch.archive.ubuntu.com hardy/main python-openssl 0.6-5 [76.5kB]
Hole:15 http://ch.archive.ubuntu.com hardy/main python-pyopenssl 0.6-5 [8006B] 
Hole:16 http://ch.archive.ubuntu.com hardy/main python-twisted-bin 2.5.0-2build2 [21.0kB]
Hole:17 http://ch.archive.ubuntu.com hardy/main python-zopeinterface 3.3.1-5ubuntu2 [135kB]
Hole:18 http://ch.archive.ubuntu.com hardy/main python-twisted-core 2.5.0-2build2 [757kB]
Hole:19 http://ch.archive.ubuntu.com hardy/main python-twisted-web2 0.2.0+svn20070403-1build1 [230kB]
Hole:20 http://download.uib.de etch/opsi3.3 opsi-linux-bootimage 20080826-1 [63.3MB]
Hole:21 http://download.uib.de etch/opsi3.3 opsi-utils 3.3.0.10-1 [55.5kB]     
Hole:22 http://download.uib.de etch/opsi3.3 opsipxeconfd 0.3.4-1 [11.1kB]      
Hole:23 http://download.uib.de etch/opsi3.3 opsi-depotserver 3.3-9 [7974B]     
Es wurden 43.2MB in 4min49s geholt (149kB/s)                                   
Vorkonfiguration der Pakete ...
OK
Wähle vormals abgewähltes Paket dhcp3-server.
(Lese Datenbank ... 100842 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke dhcp3-server (aus .../dhcp3-server_3.0.6.dfsg-1ubuntu9_i386.deb) ...
Wähle vormals abgewähltes Paket librsync1.
Entpacke librsync1 (aus .../librsync1_0.9.7-1build1_i386.deb) ...
Wähle vormals abgewähltes Paket python-pexpect.
Entpacke python-pexpect (aus .../python-pexpect_2.1-1build1_all.deb) ...
Wähle vormals abgewähltes Paket duplicity.
Entpacke duplicity (aus .../duplicity_0.4.10-1_i386.deb) ...
Wähle vormals abgewähltes Paket python-crypto.
Entpacke python-crypto (aus .../python-crypto_2.0.1+dfsg1-2.1ubuntu1_i386.deb) ...
Wähle vormals abgewähltes Paket python-json.
Entpacke python-json (aus .../python-json_3.4-2_all.deb) ...
Wähle vormals abgewähltes Paket python-ldap.
Entpacke python-ldap (aus .../python-ldap_2.3.1-1ubuntu3_i386.deb) ...
Wähle vormals abgewähltes Paket python-mysqldb.
Entpacke python-mysqldb (aus .../python-mysqldb_1.2.2-5ubuntu1_i386.deb) ...
Wähle vormals abgewähltes Paket python-newt.
Entpacke python-newt (aus .../python-newt_0.52.2-11.2ubuntu1_i386.deb) ...
Wähle vormals abgewähltes Paket python-pam.
Entpacke python-pam (aus .../python-pam_0.4.2-12ubuntu2_i386.deb) ...
Wähle vormals abgewähltes Paket python-openssl.
Entpacke python-openssl (aus .../python-openssl_0.6-5_i386.deb) ...
Wähle vormals abgewähltes Paket python-pyopenssl.
Entpacke python-pyopenssl (aus .../python-pyopenssl_0.6-5_all.deb) ...
Wähle vormals abgewähltes Paket python-opsi.
Entpacke python-opsi (aus .../python-opsi_3.3.0.24-1_all.deb) ...
Wähle vormals abgewähltes Paket python-twisted-bin.
Entpacke python-twisted-bin (aus .../python-twisted-bin_2.5.0-2build2_i386.deb) ...
Wähle vormals abgewähltes Paket python-zopeinterface.
Entpacke python-zopeinterface (aus .../python-zopeinterface_3.3.1-5ubuntu2_i386.deb) ...
Wähle vormals abgewähltes Paket python-twisted-core.
Entpacke python-twisted-core (aus .../python-twisted-core_2.5.0-2build2_all.deb) ...
Wähle vormals abgewähltes Paket python-twisted-web2.
Entpacke python-twisted-web2 (aus .../python-twisted-web2_0.2.0+svn20070403-1build1_all.deb) ...
Wähle vormals abgewähltes Paket opsiconfd.
Entpacke opsiconfd (aus .../opsiconfd_2.0.0.8-1_all.deb) ...
Wähle vormals abgewähltes Paket opsi-linux-bootimage.
Entpacke opsi-linux-bootimage (aus .../opsi-linux-bootimage_20080826-1_all.deb) ...
Wähle vormals abgewähltes Paket opsi-utils.
Entpacke opsi-utils (aus .../opsi-utils_3.3.0.10-1_all.deb) ...
Wähle vormals abgewähltes Paket opsipxeconfd.
Entpacke opsipxeconfd (aus .../opsipxeconfd_0.3.4-1_all.deb) ...
Wähle vormals abgewähltes Paket opsi-depotserver.
Entpacke opsi-depotserver (aus .../opsi-depotserver_3.3-9_all.deb) ...

Adding system users and groups...
  -> Adding group pcpatch
  -> Adding user pcpatch
  -> Adding user opsiconfd
Writing depot.ini
Richte dhcp3-server ein (3.0.6.dfsg-1ubuntu9) ...
Generating /etc/default/dhcp3-server...
 * Starting DHCP server dhcpd3                                           [fail] 
invoke-rc.d: initscript dhcp3-server, action "start" failed.

Richte librsync1 ein (0.9.7-1build1) ...

Richte python-pexpect ein (2.1-1build1) ...

Richte duplicity ein (0.4.10-1) ...

Richte python-crypto ein (2.0.1+dfsg1-2.1ubuntu1) ...

Richte python-json ein (3.4-2) ...

Richte python-ldap ein (2.3.1-1ubuntu3) ...

Richte python-mysqldb ein (1.2.2-5ubuntu1) ...

Richte python-newt ein (0.52.2-11.2ubuntu1) ...

Richte python-pam ein (0.4.2-12ubuntu2) ...

Richte python-openssl ein (0.6-5) ...

Richte python-pyopenssl ein (0.6-5) ...
Richte python-opsi ein (3.3.0.24-1) ...

Richte python-twisted-bin ein (2.5.0-2build2) ...
Richte python-zopeinterface ein (3.3.1-5ubuntu2) ...

Richte python-twisted-core ein (2.5.0-2build2) ...

Richte python-twisted-web2 ein (0.2.0+svn20070403-1build1) ...

Richte opsiconfd ein (2.0.0.8-1) ...
OK
Generating a 1024 bit RSA private key
......++++++
..............++++++
writing new private key to '/etc/opsi/opsiconfd.pem'
-----
1024 semi-random bytes loaded
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
.............+.......+.+......+....+....+.......................+...+......+...............................+.............................................................+..............+.........................................+...................+......+.................+..................................................+................................................+..+.+..................................................+.......+....+...................+....+...............................................................+.....+.........................+............................+..................+...............................................................................+................+.............................+...............+...........................++*++*++*++*++*++*
subject= /C=DE/ST=Rheinland-Pfalz/L=Mainz/O=uib/CN=opsidepot.uib.local/emailAddress=info@uib.de
notBefore=Oct 28 20:01:35 2008 GMT
notAfter=Jul 25 20:01:35 2011 GMT
SHA1 Fingerprint=56:07:EE:A0:D9:FB:A1:56:FC:7D:12:E1:66:95:91:93:32:FE:77:36
Starting opsi config service...   (done).

Richte opsi-linux-bootimage ein (20080826-1) ...

Richte opsi-utils ein (3.3.0.10-1) ...
Richte opsipxeconfd ein (0.3.4-1) ...
Starting opsi pxe configuration service..[1] [Oct 28 21:01:40] Traceback: (Logger.py|591)
[1] [Oct 28 21:01:40]      line 790 in '<module>' in file '/usr/sbin/opsipxeconfd' (Logger.py|591)
[1] [Oct 28 21:01:40]      line 761 in 'main' in file '/usr/sbin/opsipxeconfd' (Logger.py|591)
[1] [Oct 28 21:01:40]      line 52 in '__init__' in file '/usr/sbin/opsipxeconfd' (Logger.py|591)
[1] [Oct 28 21:01:40]      ==>>> Failed to get my own fully qualified domainname (opsipxeconfd|799)
ERROR: Failed to get my own fully qualified domainname
..........   (failed).
invoke-rc.d: initscript opsipxeconfd, action "start" failed.

Richte opsi-depotserver ein (3.3-9) ...

System information
  -> IP-Address: 127.0.1.1
  -> Broadcast: 127.0.31.255
  -> Netmask: 255.255.225.0
  -> Subnet: 127.0.1.0
  -> Gateway: 192.168.0.1
  -> Hostname: opsi-server
  -> Domain: 
  -> Fqdn: opsi-server
  -> Windomain: WORKGROUP

The hostname opsi-server returned by 'hostname --fqdn' is not a fully qualified domain name
Opsi needs a fully qualified domain name in the form of <hostname>.<domain>.<tld>
dpkg: Fehler beim Bearbeiten von opsi-depotserver (--configure):
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Fehler traten auf beim Bearbeiten von:
 opsi-depotserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ich glaube es hat etwas mit dem SSL-Zertifikat zu tuen.


Ich hoffe es kann mir jemand helfen! :mrgreen:
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: opsi unter Ubuntu installieren

Beitrag von tobias »

ja ich setze auch die ubuntu desktop version ein. Ich empfehle (grade wenn man einsteiger ist) das ganze ersteinmal virtualisiert zu testen (z.B. mit vmware server) dann kannst du nach der installation direkt ein snapshot machen und brauchst, wenn gar nix mehr geht nicht gleich wieder neuinstallieren.

hast du ein domainnamen eingetragen in die netzwerkeinstellungen? wenn ja wie heißt der??
wuethrich
Beiträge: 13
Registriert: 23 Okt 2008, 17:44

Re: opsi unter Ubuntu installieren

Beitrag von wuethrich »

nei das mit dem domainname habe ich nicht eingetragen. Muss ich das ganz normal in den Netzwerkeinstellungen machen oder geht das auch übers Terminal?

Ich werde das ganze aber zuerst einmal Virtuell ausprobieren. Jedoch ruckelt das Linux immer unter meinenem Pc. Aber das mit dem domainname könnte die Lösung sein.

Was muss man sonst noch beachten wenn ich den opsi-server auf einem ubuntu-desktop installiere?
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: opsi unter Ubuntu installieren

Beitrag von tobias »

Einfach eintragen ja.
sonst eigentlich alles ganz normal wie im handbuch steht.


Gruß Tobias
wuethrich
Beiträge: 13
Registriert: 23 Okt 2008, 17:44

Re: opsi unter Ubuntu installieren

Beitrag von wuethrich »

ok, ich werde das heute Abend mal versuchen.

Ich melde mich dann wieder wenns hoffentlich geklappt hat. :D
wuethrich
Beiträge: 13
Registriert: 23 Okt 2008, 17:44

Re: opsi unter Ubuntu installieren

Beitrag von wuethrich »

Also ich habe das ganze nochmal ausporbiert mit einer Domain.

Name: opsidepot.uib.local

Der Fehler war:

hostname unknown

dann wurde die ganze installtion abgebrochen und ich konnte wieder von vorne beginnen.

Muss ich bezüglich des Hostnamens (soviel ich weiss =Computername) irgendetwas beachten oder speziell einstellen.

Ich habe diesen opsi-Server bisher nur unter der virtuellen Maschine zu laufen gebracht und sonst noch nirgends.

Ich hoffe jemand kann mir ein paar Ratschläge geben. oder weiss jemand noch eine gute Installationsanleitung zum opsi unter ubuntu 8?
hat auch schon jemand den opsi unter ubuntu 8.04 destktop installiert und wie?
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1812
Registriert: 29 Mai 2008, 15:14

Re: opsi unter Ubuntu installieren

Beitrag von j.schneider »

Hallo,

wichtig ist, dass der Server seinen "Fully Qualified Domain Name" (fqdn) kennt.

Dafür muss in der /etc/hostname der Hostname des Clients stehen.

In der /etc/hosts wird der Hostname einer IP-Adresse und einem fqdn zugeordnet und zwar nach dem folgenden Schema:

<ip-adresse> <hostname>.<domain>.<tld> <hostname>

Beispiel:

Code: Alles auswählen

    192.168.1.1  opsi.meine-firma.local  opsi
Bitte darauf achten, dass die IP-Adresse im LAN und nicht eine loopback Adresse (127.x.x.x) angegeben ist.

Danach sollte der Befehl

Code: Alles auswählen

hostname -f
den fqdn ausgeben.

Sind diese Voraussetzungen erfüllt, sollte

Code: Alles auswählen

apt-get install opsi-depotserver
ohne Probleme durchlaufen.

Gruß
Jan Schneider
wuethrich
Beiträge: 13
Registriert: 23 Okt 2008, 17:44

Re: opsi unter Ubuntu installieren

Beitrag von wuethrich »

ok, danke nochmal für die Antwort, ich bin auf diesen Thread gestossen der etwa das selbe meint.

viewtopic.php?f=7&t=272&p=1488&hilit=ho ... 1764#p1488

Ich werde das ganze nochmal probieren und hoffentlich klappt das jetzt. man sollte diesen Hinweis vielleicht noch in der Installationsanleitung eintragen. Für die Anfänger :) . Baer wie gesagt ich bin noch nicht so fit auf Linux, aber ich arbeite dran.
Antworten