Configuring a Raspberry Pi and VLC to act as a streaming audio server for your home or office is inexpensive and relatively easy to do.
The tutorial below configures your Raspberry Pi to autorun VLC on boot and play a pre-configured playlist of streaming audio sites (or any audio content you wish). You control the VLC web instance using a browser on your cell phone or home computer.
- Begin by installing VLC on your Raspberry Pi. Link to install VLC
- Download and extract this example playlist to your Pi desktop: Streaming-playlist or create one of your own.
- Open the terminal window interface in your Raspberry Pi and type in the following:
- This will tell you the local ip address of your Pi. Save it for later.
- Note: the entry below should be 3 lines only. It may wrap depending on what you’re viewing this page on.
Exec=vlc -I http –http-password . –one-instance file: /home/pi/Desktop/streaming.xspf
- Hit ctrl-O then <enter> to save the autovlc.desktop file
- Hit ctrl-X to exit nano
- reboot your Raspberry Pi by typing:
- Your Pi should reboot and begin playing music automatically. One thing to note however this launches VLC in the back ground with its only interface being the web interface so you wont see it come up on the desktop.
- To switch between streaming stations, you will need to connect to the VLC web instance on the Pi by entering http://<raspberry-pi’s-ip-address>:8080 in a browser on your home computer or cell phone.
A login prompt will come up. Leave the username blank and enter a “.” as the password (you can change to whatever you like). You’ll see the VLC Lua web control interface come up.