[ls-support] separate gtk client from station
  • Hello,

    this is a quite long email Smile questions are at the bottom.

    I wanted to deploy the following setup:

    1 server (Debian Sarge) as audio braodcast system
    - Apache + PHP4 + Postgres ...
    - Scheduler
    - Storageserver
    - WebUI

    1 Client (Debian Sarge)
    - GTK application (livesupport-studio)

    On the client side I don't want to have installed things which are
    already installed on the server (apache, php4 ...). apt forces me to
    install livesupport-station + -libs even on the client (as a dependency
    from livesupport-studio). That's why I thought, that the setup above is
    not possible to deploy ... but I'm curious so I tried it anyway (see below).

    To make things a bit clear, I'm telling you what I did until now:

    1.) Prepare everything on the server pc:

    # aptitude

    Select livesupport-station and livesupport-libs, but do not install
    livesupport-studio, which is not needed on the station. This will
    install apache2, php4, postgres and many other packages.

    Configure the station:

    # vi /opt/livesupport/etc/scheduler.xml

    And replace all localhost stanzas with the server name.

    # vi /opt/livesupport/var/LiveSupport/storageServer/var/conf.php

    And replace 'storageUrlHost' => 'localhost' with the server name.

    2.) On the client pc:

    # apt-get install livesupport-libs
    # dpkg -X livesupport-studio_1.0.2-4_i386.deb /

    3.) On the server pc:

    # tar cpzfv gtk.tgz /opt/livesupport/etc/gtk-2.0
    # scp gtk.tgz user@studio:

    4.) On the client pc:

    # su -
    # cd /
    # tar xpzfv ~user/gtk.tgz
    # gst-register
    # vi /opt/livesupport/etc/gLiveSupport.xml

    Replace all stanzas with localhost by the name of the client pc.

    Start gLiveSupport.sh as a normal user:

    $ /opt/livesupport/bin/gLiveSupport.sh

    This leads to a working GTK application which can upload files, add/edit
    playlists etc. But when I try to play a soundfile, it says:

    ``Audio player error:
    can't open URL file:///usr/opt/livesupport ...''

    which is of course clear, because that file is not on the client pc but
    rather on the server pc (storageServer).

    Here my questions:
    - Is there a possibility to get that file from the storageServer?
    - Does the GTK application play that file on the local soundcard or is
    it possible to play that file on the servers soundcard(s)?
    - Is the setup described above possible? And if not: what are the ``no
    go''s of that setup?

    Thanks a lot,
    Mic

    --
    http://strg.at
    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • 4 Comments sorted by
  • _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • Michael Dosser wrote:
    > Here my questions:
    > - Is there a possibility to get that file from the storageServer?
    > - Does the GTK application play that file on the local soundcard or is
    > it possible to play that file on the servers soundcard(s)?
    > - Is the setup described above possible? And if not: what are the ``no
    > go''s of that setup?

    1. You are way ahead of us. The multi-computer setup was planned
    originally, but we haven't tested it yet at all. The idea is to set up
    a shared disk space using samba or nfs. Until we get it to work
    properly, you can share the
    /opt/livesupport/var/LiveSupport/storageServer/var/access directory on
    the server computer, and mount it under the same name on the client.
    It's ugly, and I haven't actually tried it, but I think it should work.

    2. It plays on the local sound card. You can schedule a playlist to be
    played on the server at a given time; that will use the server's sound
    card. Playing the non-scheduled output on the server's sound card is
    not possible yet, and will not be in the next release -- maybe later.

    3. Everything you were trying to do should be possible; most of it is
    very difficult at the moment -- but we are working on it. Smile

    Ferenc
    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • Hello,

    Ferenc Gerlits wrote:

    > 1. You are way ahead of us. The multi-computer setup was planned
    > originally, but we haven't tested it yet at all. The idea is to set up
    > a shared disk space using samba or nfs. Until we get it to work
    > properly, you can share the
    > /opt/livesupport/var/LiveSupport/storageServer/var/access directory on
    > the server computer, and mount it under the same name on the client.
    > It's ugly, and I haven't actually tried it, but I think it should work.
    >
    > 2. It plays on the local sound card. You can schedule a playlist to be
    > played on the server at a given time; that will use the server's sound
    > card. Playing the non-scheduled output on the server's sound card is
    > not possible yet, and will not be in the next release -- maybe later.
    >
    > 3. Everything you were trying to do should be possible; most of it is
    > very difficult at the moment -- but we are working on it. Smile

    Thank you Ferenc and Luis for your quick response. I have set up
    nfs-kernel-server and nfs-common and it does work - with the limitations
    you described in 2.)

    Just for documentation purposes I shortly describe what I did:

    Problems were:

    Local storageServer is not accessible through the GTK interface. There
    is no native support from livesupport yet (this is a planned feature).
    Solution: mount the storageServer via NFS:

    1.) On the server pc:

    # apt-get install nfs-kernel-server
    # vi /etc/exports

    And add the following line:

    /usr/opt/livesupport/var/LiveSupport/storageServer
    servername(rw,sync,no_root_squash)

    # /etc/init.d/nfs-kernel-server restart

    2.) On the studio pc:

    # apt-get install nfs-common
    # mkdir /usr/opt/livesupport/var/LiveSupport/storageServer
    # vi /etc/fstab

    And add the following line:

    server:/usr/opt/livesupport/var/LiveSupport/storageServer
    /usr/opt/livesupport/var/LiveSupport/storageServer nfs
    rw,rsize=8192,wsize=8192,hard 0 0

    # mount /usr/opt/livesupport/var/LiveSupport/storageServer

    Unresolved problems:

    ``live mode'' listening to files only plays files locally on the studio
    pcs soundcard.

    Mic

    --
    http://strg.at
    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • Hi Michael.

    This thread has been driving me a little mad ever since I red it..

    I'd not had the chance to answer u due to tons of work and and due to health problems (together).

    What was really annoying me is the fact that I made; in some way, almost the same configuration as u did. Until today... I've realized that my server installation NEVER worked, I had installed on a ubuntu breezy server box the LS libraries and the LS Station, but in my client PC I've had to install the 3 of them plus NFS just as you did.

    This Morning, I decieded to remove LS libs and LS Station from my server to see what happened... U r just right!!!.... Nothing relly happened... I was thinking by the time I made my firs LS installation that I sure deserve the "geek or "guru" label after my first installation Smile, but I was very upset when saw that this was never going to happen LOL...

    However, I decided to move my server up to Dapper 'cause it has a better performance than breezy with the same 128 MB RAM and I just did it even when LS cannot be installed in Dapper. Now I know...Smile))) Anyways this month (probabibily at the end) I will start streaming with my own home server in a P2P basis with Freecast (freecast.org) and Darkice. (I really wish there is a LS streamer soon).

    For what I can see, u r trying something very professional (maybe the bleeding edge), I suggest you to take a look to this link: http://wiki.tryphon.org/rivendell/index.php/Install_under_Debian_%28debrfa%29 for installation and this link: http://wiki.tryphon.org/rivendell/index.php/Stream_under_Debian for streaming.
    I've tried Rivendell on Debian and works very nice and easy, but I'm not so professional and for me it's too much of a project, that's why I moved to LS Smile. LS is much more friendly than Rivendell but Rivendell has much more features than u can hardly imagine. Also very good IRC support at freenode, channel #rivendell.

    Kind Regards

    Luis C. Suárez

    PS. By the way, has anyone succeded with "Ampache" in LS? I Believe this project should be part of LS and had not the time to try it tho.