You are here: Home » Topic » Mac OS X.5 : how to launch mDNSProxyResponderPosix from Term

Mac OS X.5 : how to launch mDNSProxyResponderPosix from Term

FireFly Media Server (formerly mt-daapd) Firefly Media Server Forums Firefly Media Server Setup Issues Mac OS X.5 : how to launch mDNSProxyResponderPosix from Term

This topic contains 10 replies, has 2 voices, and was last updated by  andersB 9 years, 6 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #2387

    Anonymous

    Hi,

    I want to reach my iTunes library (on an iMac) from a remote Mac (laptop macbook). I want to use Terminal to launch the ssh connection and mDNSProxyResponderPosix (I don’t want to use network beacon).
    On this page it explains but it doesn’t work properly for me :
    http://wiki.mt-daapd.org/wiki/SSH_Tunnel

    On my laptop I launch Terminal and I enter the ssh command :

    ssh [email protected] -N -f -L 3689:daap-server.example.com:3689

    It works fine. Then I launch on the same laptop the command :

    mDNSProxyResponderPosix 127.0.0.1 squeal “shareName” _daap._tcp. 3689 &

    But I always get the following error message :

    mDNSProxyResponderPosix: command not found

    What is the command I’ve to run on Leopard ?

    Thanks

    #16854

    andersB
    Participant

    I use this minimalistic script to do the trick (from the laptop) and only on Leopard.


    #!/bin/bash
    dns-sd -R "name of server" _daap._tcp local 3690 &
    PID=$!
    ssh -g -L 3690:localhost:3689 [email protected]
    kill $PID

    This will start the broadcaster set up the tunnel and kill the broadcaster once the tunnel closes.
    I use 3690 on the local machine to not interfere with the iTunes sharing on that host this enables you to booth see the remote share and share something from your local iTunes with the users on the network your laptop is.

    #16855

    Anonymous

    Thanks for your answer. here is what I’ve done :

    I’ve tried your script on my laptop. It runs fine, then I launch iTunes on my laptop and I click on my remote itunes library, but I receive the message :

    <>

    Is there someting I’ve to do on the remote side (iMac) ?

    how do I’ve to modify the script to put the ssh password in the script itself ?

    Thanks

    #16856

    andersB
    Participant

    Try changing the “localhost” in the script to the ip of the remote host.


    ssh -g -L 3690:localhost:3689 [email protected]

    If you try this on your laptop (after the script has set up the tunnel)


    telnet localhost 3690

    You should get a response like this back:


    Trying ::1...
    Connected to localhost.
    Escape character is '^]'.

    If not there might be a firewall blocking your connection on the remote machine.

    About the ssh password:
    I would recommend you to set up ssh keys to handle the login. It is much more secure, since you will have to have the physical key (which is a file on your computer) to be able to log in to the remote host.
    Here’s a page that shows you how to do it.
    http://www.geektimes.com/macintosh/os/x/10_3/and/ssh_keygen.html
    Just make sure to call the file authorized_keys (not authorized_keys2) and use rsa instead of dsa. (the first line in the instructions should read)


    ssh-keygen -t rsa

    The generated files will be id_rsa and id_rsa.pub instead of id_dsa.
    Every time you log in to the remote computer you will be asked for the passphrase which is the password for the key.
    The beauty of Leopard is that it will remember your ssh key passphrase in the keychain so you will be logged in to the remote without typing any password or passphrase. (depending on how you set up your keychain)[/code]

    #16857

    Anonymous

    The SSH tunnel is working fine. I use many ssh tunnels on several remote computers to use Apple Remote Desktop.

    Anyway I tried what you suggest and I get exactly what you said

    Trying ::1...
    Connected to localhost.
    Escape character is '^]'.

    For your info, when I use Network beacon everything works well. So it must be a very small detail that prevent me to reach the remote iTunes.

    Is there anything else I can try ?
    Oops I forget to tell you that my laptop is running under 10.5, but my remote iMac is running on 10.4.

    #16858

    andersB
    Participant

    @boufon wrote:

    The SSH tunnel is working fine. I use many ssh tunnels on several remote computers to use Apple Remote Desktop.

    Sorry about that, I just tried to be elaborate.
    Does the firefly web config show up fine if you open http://localhost:3690 on your laptop? If so everything seems to work with both the tunnel and on the server side.
    @boufon wrote:

    Is there anything else I can try ?
    Oops I forget to tell you that my laptop is running under 10.5, but my remote iMac is running on 10.4.

    I have never used a mac as the remote host, my firefly runs on ubuntu 7.10. I hope someone else has some clever thoughts, because I can’t think of anything else, sorry.

    #16859

    Anonymous

    When I’ve tried Network beacon, I’ve seen at the bottom of the screen something call proxy.On another web site I read about a “rendezvous proxy”

    I’m not sure but is dns-sd implemnt this proxy feature ?

    On my iMac server I’m not using firefly, there is just my iTunes.

    I think that there is just another command line to add to your shel script to establish the connection from my laptop.

    #16860

    Anonymous

    I’ve found the answer, Here are the two lines to enter:

    dns-sd -P “any name” _daap._tcp. local 3690 localhost 127.0.0.1 &
    ssh -N [email protected] -L 3690:localhost:3689

    I’ve modified your shell script and put it on my Mac desktop. But If I doublc clic it, it opens in textedit and does not run.

    Any idea ?

    Thanks

    #16861

    andersB
    Participant

    @boufon wrote:

    I’ve found the answer, Here are the two lines to enter:

    dns-sd -P “any name” _daap._tcp. local 3690 localhost 127.0.0.1 &
    ssh -N [email protected] -L 3690:localhost:3689

    Cool, glad you were able to find a solution.

    Here’s a link to how to get shell scripts to run when you click on them in the finder. http://adamyoung.net/OS-X-Run-Shell-Scripts-From-Finder

    #16862

    Anonymous

    It works perfectly on 5 Mac (Leopard) but on 1 the dns-sd command does not works. I means that nothing appears in iTunes.
    When I launch on this mac the ‘dns-sd -P’ command, I launch at the same time in another terminal window the following command :

    dns-sd -B _daap._tcp

    and here is what I see :
    Timestamp A/R Flags if Domain Service Type Instance Name
    13:32:06.472 Add 3 1 local. _daap._tcp. any name
    13:32:37.265 Add 2 4 local. _daap._tcp. any name

    On the other where it works fine I only have :
    Timestamp A/R Flags if Domain Service Type Instance Name
    13:32:37.265 Add 2 4 local. _daap._tcp. any name

    I don’t understand why and where to find more info about dns-sd

    Thanks

    #16863

    andersB
    Participant

    @boufon wrote:

    dns-sd -B _daap._tcp

    and here is what I see :
    Timestamp A/R Flags if Domain Service Type Instance Name
    13:32:06.472 Add 3 1 local. _daap._tcp. any name
    13:32:37.265 Add 2 4 local. _daap._tcp. any name

    It looks like it has been launched twice, but I don’t know this stuff. I just fumble around with it and stopped when I got it working…

    I don’t understand why and where to find more info about dns-sd

    The only info I got is from the man page (type “man dns-sd” in a terminal window) and then this page
    http://www.dns-sd.org/ which I guess you’ve already found.

    Sorry

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.