Howto Remote Audio Part 1

Let’s start with the most easy way to stream from your Linux PC.
You need to be a sudoer on your OS.

  1. Go to your console, and install by the simplest way a OpenSSH server.
    sudo apt-get install openssh-server
  2. Now, create a specific ssh user to protect your PC against illegal access threats (Do not allow a ‘root’ user to connect through ssh)
    Look at my own /etc/ssh/sshd_config :
    DenyUsers root, lionel
    AllowUsers ssh-client
    PermitRootLogin no
    #ForwardX11 yes

    Kate, gedit or mousepad that file.
  3. You need to physically create the user (ssh-client or who you want) :
    sudo useradd ssh-client
    sudo passwd ssh-client

    Choose a password (don’t choose a simple one for security reasons)
    su - ssh-client
    sudo echo helloworld

    after typing your password, make sure you obtain this message :
    ssh-client is not in the sudoers file. This incident will be reported.
    (for security reasons).
  4. Change permissions of your sound device file (/dev/audio for audio loopback or /dev/dsp for sound card output)
    sudo chmod a+r /dev/dsp or sudo chmod a+r /dev/audio
  5. Now that your PC is correctly configured, go into the Remote Audio App
    Configure each item of the screen :
    Choose here « Java ssh with password then cat »
  6. sc3
    Choose here the ip address of your pc (works even if public and not firewalled 22 port)
    Choose the user (maybe ssh-client), his password, and the sound file.
  7. sc4
    Choose your streaming options. These options work with a /dev/dsp PCM file.
  8. Go back to the menu and choose « Play/Pause » (Well it does not yet have a ‘loading’ dialog box, it does work unless your connection settings are wrong. Be patient.)
  9. Install on the Android Market a VNC app or Amarok2 Remote to take control of your remote music in live !
  10. Next part will be about streaming a /dev/dsp file from a web server. Good luck.