Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tester gesucht - Samba per Fernbedienung
06-18-2007, 08:16 PM (This post was last modified: 06-19-2007 12:37 AM by Nobody.)
Post: #1
Tester gesucht - Samba per Fernbedienung
EDIT/Udate
Im ursprünglichen Attachment fehlte eine Datei! Falls Du der eine Unglückliche bist, der diesem Irrtum zum Opfer gefallen ist, lade bitte das Attachment noch einmal herunter. Falls Du schon installiert hast, einfach die Datei "commands.conf.vdr" aus dem Archiv nach <Samba-Vereichnis>/vdr-smb kopieren- dann sollte ab dem nächsten VDR-Start das erwähnte Menü im VDR zur Verfügung stehen. Ansonsten kannst Du mit dem neuen Attachment die Installation wie beschrieben durchführen.
Ende Update

Moin!

Während ich zu Wavebox-Zeiten Samba immer laufen hatte, beschränke ich es seit dem Umstieg auf den VDR im Allgemeinen auf den Standby. Da mir diese Lösung aber etwas zu unflexibel war, gibt es nun eine etwas umfassendere Skript-Lösung. Ich nenne sie mal "Samba-Manager". (Samba-Hasser lesen beim * weiter).

Das kann das gute Stück:
* Falls nötig/gewünscht wird das beigefügte (aber altbekannte) Samba-Paket installiert und für die VDR-FW konfiguriert (Pfade etc.). Dabei sind nur wenige Fragen zu beantworten - z.B. Pfad der Installation. Für die Fragen gibt es i.d.R. sinnvolle Vorgaben oder zumindest Vorschläge. Bei nicht zu exotischen Konfigurationen sollte die automatische Erstkonfiguration gelingen!
* Auch das Hinzufügen zu einer bestehenden Samba-Installation ist möglich.

*Steuerung des Samba-Servers mit wenigen Befehlen - auch über das OSD-Menü des VDR und aus eigenen Skripten heraus!
*Konfiguration von Samba mit einer Art Assistent (in einer Telnet-/SSH-Sitzung.)
*Radikale Vereinfachung der Konfiguration von Samba für verschiedene Modi (VDR, Standby): Umschalten des gewünschten Verhaltens bei laufendem VDR per Fernbedienung, aber auch mit einem einzigen Befehl auf der Kommandozeile möglich. Auch in den Hook-Skripten steht nur ein einziger Samba-bezogener Befehl, z.B. smb-pre-standby. Dieser Befehl sorgt dann, je nach Konfiguration, für das An- bzw. Abschalten von Samba beim Modus-Wechsel.

:hurted:Was noch nicht klappt ist die Sache mit der richtigen Codepage (wurde schon diskutiert). Nach meinem Verständnis muss das global über die smb.conf geregelt werden, aber irgendwas läuft da noch schief. Also keine Umlaute und ß - aber meine Hüsker Dü-MP3s habe ich eh' schon vor langem auf "ue" umgestellt Hide Naja, auch ansonsten sind Umlaute nicht der Hit - DVDAuthorGUI mag sie gar nicht und daher sind sie bei mir selten...

Ich habe jetzt bei mir eine Weile getestet und es ist schon etwas her, dass der letzte Fehler auftrat. Da kommt zwar bestimmt noch was, aber andererseits kann ich das Teil wohl zum Testen freigeben.
Das geschieht selbstverständlich völlig auf eigene Gefahr!

Bevor es mir jemand unter die Nase reibt: Meine Shellskripte sind nicht elegant, aber (hoffentlich) ungefährlich. Das ist halt learning by doing und zumindest ich selbst sehe Fortschritte...

Das Paket enthält ein Extra-Archiv mit so etwas wie einer rudimentären Dokumentation. Weitere Infos bitte erstmal dort recherchieren - dafür habe ich es geschrieben. Zudem sind die Skripte halbwegs kommentiert, wobei ich angesichts des Umfangs keine Garantie für die Aktualität jeden Kommentars übernehme.

Vor der Installation sollte man sich entscheiden, für welchen VDR mit externer Konfiguration man den Samba-Manager nutzen will (mehrere geht auch, aber derzeit nur nach manueller Einrichtung). Anschließend sollte man, so vorhanden, die commands.conf aus dem VDR-Konfigurationsverzeichnis sowie eventuell vorhandene eigene Hook-Skripte (pre-standby, post-vdr etc.) sichern. Das sollte zwar auch automatisch geschehen, aber denkt dran : Ihr seid die ersten externen Tester Icon_redface Wenn Samba schon existiert und ordentlich läuft, kann auch ein Backup der smb.conf nicht schaden.
Das heruntergeladene Archiv packt man zunächst am besten in den Root-Ordner eines USB-Laufwerks. Von dort geht es dann so weiter:

Code:
r@M740AV:/media/usb1a # tar -xvz -f Samba-Manager.tar.gz
./smb-mk-config
./samba-mgr
./smb-install
./vdr-smb.conf
./samba-2.0.9-m740av.tar.bz2
./samba-mgr-docs.tar.gz
r@M740AV:/media/usb1a #./smb-install

Bitte die Meldungen beim Setup aufmerksam lesen - dann sollte alles klappen.

Nochmal: Das ist ein Test! Pre-Alpha, sozusagen. Nutzt die Skripte vorerst nur, wenn Ihr Euch halbwegs im System auskennt und auch mal eine Konfigurationsdatei von Hand editieren könnt. Das soll zwar gerade für Samba umgangen werden, aber wie gesagt - Test...

So, trotz aller Warnungen hoffe ich auf ein paar Mutige...

Gruß, Thomas

*An die Samba-Hasser: Ich möchte keine Debatte über den Sinn und Zweck von Samba auf der Box vom Zaun brechen - da gibt's einfach unterschiedliche Anforderungen und dementsprechend Ansichten. Werft doch trotzdem mal einen Blick auf den Samba-Manager, da er imho zeigt, dass man recht leicht ein externes Programm über das VDR-Menü steuern kann. Das könnte auch für ganz andere Projekte interessant sein!

PS.: Entwickelt habe ich die Skripte übrigens fast ausschließlich mit nano direkt auf der Box. Nur bei ein paar schweren Fehlern während der Entwicklung habe ich joe auf meinem Eisfair hinzugezogen - manchmal hilft Syntax-Highlighting...


Attached File(s)
.gz  Samba-Manager.tar.gz (Size: 2,16 MB / Downloads: 22)
Find all posts by this user
Quote this message in a reply
09-19-2007, 01:53 AM
Post: #2
RE: Tester gesucht - Samba per Fernbedienung
Hello,
Excuse me that I post in english, but my german is still worst... ;-)
I have used your script to install the samba server in my box, and I have met some difficulties:
1) If you choose option a in CheckVDRCommandsConf the script enters in a infinite loop, because there is a typo at the line 112: CMDCONFDONE instead of CMDCNFDONE.
2) In fw-config.txt, the default value for CONFIG_VDR4_PATH is empty. That gives you problems in function IsValidConfig if you choose 4 for the VDR configuration to use.
3) In my case, I didn't have any folder "hook" under /opt/local/etc1 (I don't know if I should). Whithout that folder, the code between lines 401-472 doesn´t work.
The good news is that, after solving this, my samba server is working, so thank you .
I hope this would be useful to you.
Gruß,
Atinar
Find all posts by this user
Quote this message in a reply
09-22-2007, 08:12 AM (This post was last modified: 09-22-2007 08:21 AM by Nobody.)
Post: #3
RE: Tester gesucht - Samba per Fernbedienung
Hi atinar!

Wow, finally someone reacts...
Thanks for pointing out the errors. I'll fix the that ASAP, however, I've injured my right hand badly at work, so just typing this is a bit difficult at the moment...

Regards,

Thomas

BTW: I don't recommend using Samba similtaneously with the vdr. It's great in standby-mode, though.
If you've got other questions, don't hesitate to ask.
Find all posts by this user
Quote this message in a reply
09-27-2007, 01:21 AM
Post: #4
RE: Tester gesucht - Samba per Fernbedienung
Hello Thomas,

I'm sorry to read that about your hand. I do hope that it has already healed.

I didn't realize that your post was three months old. Now I understand your "Wow...".

Regarding the samba server, there was another thing I wanted to comment. It's not related to the script but to the samba package: inside the samba.tar.bz2 file, in the folder /var/locks there are three files present: smbd.pid, STATUS..LCK and nmbd.pid. Should that files be included in the package?. Couldn't prevent their existence the servers from starting?.

And I've noticed that the samba server eats a considerable process capacity, but you still can use the box. It's worst, for instance, when you are editing a recording...
Best regards,
Atinar
Find all posts by this user
Quote this message in a reply
11-03-2007, 12:39 AM
Post: #5
RE: Tester gesucht - Samba per Fernbedienung
Does anybody have an Sambaserver running on the latest firmware?

Even unpacking wasn sucsessfull because busybox cant extract the
Samba-Manager.tar.gz
Find all posts by this user
Quote this message in a reply
11-06-2007, 12:40 AM
Post: #6
RE: Tester gesucht - Samba per Fernbedienung
As far as I understand from what I read in another threads, the Samba manager scripts depend on bash, which is not included by default in the new fw. I don't know if Nobody is working on that. Nobody will tell you better than me... ;-)
Find all posts by this user
Quote this message in a reply
12-08-2007, 01:42 PM
Post: #7
RE: Tester gesucht - Samba per Fernbedienung
Sorry for not replying earlier - I wasn't around very much recently.
Kille's Samba server was originally intended and compiled for some version of Lemmi's FW which was basically an extended version of the Siemens original. It is possible to run it on "old" versions of the vdr-fw, however, you'll have to compile it (at least) for the new fw.
My Samba-Manager depends on bash (I guess) which is not a default part of the current fw.

Because of these reasons and because of Samba performance issues, I won't continue work on the Samba-Manager. For me, direct ftp acces in ProjectX has proved a viable alternative. I'm currently working on some scripts that automatize most steps (demuxing, unattended cutting, muxing, dvd-folder generation, reintegration of converted files into vdr's recordings folder via genindex and softlinks). It already works for me, but there are still too many bugs to publish it (plus: I haven't written any documentation yet). I'm still testing with the old fw (cf. signature) but it should be compatible with the new one as well - all you need on the box are edited versions of commands.conf and reccmds.conf. So if you want to test it right now, send me a PM.

Regards,

Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | open7x0.org Homepage | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication