Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba4 und gentoo?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sun Dec 21, 2014 2:59 pm    Post subject: samba4 und gentoo? Reply with quote

Hallo Zusammen,

da ich hier einige PCs mit Windows 8.1 habe, habe ich mir überlegt, ob ich mir mit Samba einen PDC aufsetze.

Soweit, so gut, leider aber baucht man für Win 8 aber Samba 4.

HIER und HIER steht beschrieben, dass samba 4, Python 2.4 benötigt.

Da ja nun bei mir Python 2 und 3 installiert ist,

Code:
server01 ~ # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2
  [3]   python3.3 *
  [4]   python3.4
server01 ~ #


stellt sich mir die Frage, ob es wohl möglich wäre, via "eselect" auf Python 2 umzustellen und nach der Installation wieder zurückzugehen auf Python 3 und dann im Initscript von Samba etwas in der Richtung wie,

Code:
export PYTHON_VERSION=2


hinzuzufügen?

Würde das funktionieren?
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Wed Dec 24, 2014 9:32 am    Post subject: Reply with quote

Hmmm....,

hat denn wirklich Niemand eine Idee dazu? :(
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2545
Location: Konradsreuth (Germany)

PostPosted: Thu Dec 25, 2014 10:00 am    Post subject: Reply with quote

Du kannst eselect python ein --python2 bzw. ein --python3 mitgeben. Beispiel:
Code:
# eselect python list --python2
Available Python 2 interpreters:
  [1]   python2.7 *

Sinnvollerweise sollte aber ein Python-Programm sowieso die passende Python-Version per Shebang-Zeile anfragen also z. B.:
Code:
#!/usr/bin/env python2

oder weniger portabel auch
Code:
#!/usr/bin/python2
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Thu Dec 25, 2014 10:02 am    Post subject: Reply with quote

Schon klar, aber das war nicht Frage und löst auch mein Problem nicht. ;)
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2545
Location: Konradsreuth (Germany)

PostPosted: Fri Dec 26, 2014 10:09 am    Post subject: Reply with quote

Kannst du die Frage nochmal etwas präzisieren? Scheinbar hab ich dann die Frage nicht verstanden.

Laut deinem ersten Link wird übrigens nur Python 2 generell benötigt und nicht explizit Python 2.4 ("2.4.2 or later"):
Quote:
Gentoo uses Python 3 as the default python interpreter, but at this time Samba requires Python 2 (2.4.2 or later).

Und das ist auch nicht das einzige Programm, das (noch) Python 2 braucht.

Ich versteh nicht ganz, wo das Problem ist, weil Python 2 und Python 3 können ja problemlos gleichzeitig installiert sein und pro Script selektiv ausgeführt werden. Und Python 2 hast du ja laut deinem erstem Post installiert.

Was genau macht denn jetzt eigentlich Probleme?
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Fri Dec 26, 2014 11:35 am    Post subject: Reply with quote

Nun das Problem ist folgendes:

Wie Du ja schon richtig bemerkt hast, habe ich Python 3 und 2 installiert und als Standard Interpreter ist 3.3 ausgewählt.
So weit, so gut. Im Wiki steht geschrieben:
Quote:
Gentoo uses Python 3 as the default python interpreter, but at this time Samba requires Python 2 (2.4.2 or later).

Da ich ja u. A. auch 2.7.x installiert habe, sollte das kein Problem darstellen.

Des Weiteren steht im Wiki, dass man vor der Installation via eselect auf Python 2 umstellen soll.
Auch bis hierher, kein Problem.

Die Frage ist jetzt, ob ich NACH(!) der Installation wieder auf Python 3 umstellen kann, oder ob dann Samba nörgelt?

Die zweite Frage war/ist, ob man im Initscript, evtl. via "export", eine zu verwendende Python Version mitzugeben?

Nun könnte man ja sagen: "Versuche es doch einfach!", leider aber ist das nicht so einfach, denn laut Wiki, ist wenn mal Samba4 installiert wurde, kein zurück mehr möglich und bevor ich mir meine jetzige Installation zerschieße, würde ich halt schon gerne sichergehen, ob das alles funktioniert. ;)
Back to top
View user's profile Send private message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1924
Location: Schweiz

PostPosted: Fri Dec 26, 2014 8:48 pm    Post subject: Reply with quote

In Anbetracht der Tatsache das nach einem umstellen mittels "eselect python" meist auch ein python-update und somit ein neubauen einiger Pakete nötig wird, würde ich mal sagen das dein Vorhaben nicht funktionieren wird. Außerdem gehe ich davon aus das bei dem ganzen Python noch deine kleinste Sorge sein dürfte, denn so weit ich weiß setzt Samba4 zwingend auf "heimdal" als Kerberos-Implementation und das verursacht einige Konflikte mit "mit-krb5".
_________________
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Fri Dec 26, 2014 8:56 pm    Post subject: Reply with quote

Das ist natürlich doof, das heißt dann wohl, dass das Projekt "Linux PDC mit Windows 8.x Clients" erstmal gestorben ist? :cry:
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2545
Location: Konradsreuth (Germany)

PostPosted: Sun Dec 28, 2014 10:48 am    Post subject: Reply with quote

3PO wrote:
Nun könnte man ja sagen: "Versuche es doch einfach!"

Das wäre jetzt auch mein Vorschlag gewesen.
3PO wrote:
leider aber ist das nicht so einfach, denn laut Wiki, ist wenn mal Samba4 installiert wurde, kein zurück mehr möglich

Das kann ich mir jetzt wirklich nicht vorstellen. Wenn man ein Backup aller Konfigurationsdateien macht, und die nach einem Downgrade wieder herstellt, was soll da schiefgehen?

Ansonsten: Probier es doch einfach in einer virtuellen Maschine aus. Setz ein Basissystem auf. Mach einen Snapshot. Wenn was daneben geht, dann lösch den Snapshot.

Zu Kerberos kann ich nichts sagen … aber es wird schon einen Grund haben, dass alle 4.x-Samba-Versionen hardmasked sind …
Back to top
View user's profile Send private message
szegedigy
n00b
n00b


Joined: 21 Dec 2006
Posts: 3

PostPosted: Sat Jan 03, 2015 10:02 pm    Post subject: Reply with quote

http://wiki.indie-it.com/index.php?title=Samba
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sat Jan 03, 2015 10:13 pm    Post subject: Reply with quote

szegedigy wrote:
http://wiki.indie-it.com/index.php?title=Samba


Und was genau soll mir dieser Link sagen??
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum