Let’s start with the most easy way to stream from your Linux PC.
You need to be a sudoer on your OS.
- Go to your console, and install by the simplest way a OpenSSH server.
sudo apt-get install openssh-server
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
Kate, gedit or mousepad that file.
- 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).
- Change permissions of your sound device file (/dev/audio for audio loopback or /dev/dsp for sound card output)
sudo chmod a+r /dev/dspor
sudo chmod a+r /dev/audio
- 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 »
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.
Choose your streaming options. These options work with a /dev/dsp PCM file.
- 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.)
- Install on the Android Market a VNC app or Amarok2 Remote to take control of your remote music in live !
Next part will be about streaming a /dev/dsp file from a web server. Good luck.