Setup PDF Print E-mail
Written by salami   
Thursday, 21 February 2008 19:34

ATTENTION: These apps directly expose your entire filesystem and offer full control. Never use it on a public network and make sure you're Apache is password protected!

salami's winamp remote (called "SWR" from now on) is a set of CGI apps and does not come with it's own webserver. While any software that supports CGI should work in theory, only Apache is supported. Since SWR is a remote control software for winamp, this is required too (make sure you are using a recent version, otherwise the "save playlist" feature might not work).

If you don't have one installed on the machine running winamp yet, XAMPP is a good package. It's comes with lots of addons not really needed for SWR, but the default setup of Apache works out of the box.

Add the following line to your Apache config:

HostnameLookups On

And restart the server. This allows SWR to log the hostname (not needed, but recommended).

If you installed Apache as a service, make sure it's running under the same user account as your winamp to ensure they can communicate without security restrictions.

Is your Apache and Winamp up and running? Let's start with the setup of SWR!

  1. Make sure winamp is using the "Winamp Classic" skin / interface! The needed APIs are only exposed when this skin is loaded.
  2. Download the SWR archive and extract it to a temporary location.
  3. Copy all files from the cgi-bin subfolder to the active cgi-bin of your Apache installation. Using a default XAMPP installation, this is c:\xampp\cgi-bin\
  4. Copy all files from the htdocs subfolder to the active cgi-bin of your Apache installation. Using a default XAMPP installation, this is c:\xampp\htdocs\
  5. Make sure your cgi-bin folder is password protected! In addition to the obvious security benefits, this also allows SWR to log actions based on the username.
  6. Edit the file config.ini in the subfolder in your Apache's cgi-bin folder:
    • Set the winamppath to the location where winamp.exe is.
    • Set the playlistspath. This is where SWR looks for playlists (it will only scan this directory, not it's subfolders).
    • Adjust the autorefreshrate if you want, but you can always do that later.
    • Ignore the two URL settings unless you didn't copy the PNGs to the htdocs root as described in step 4.
  7. Point your browser to http://localhost/cgi-bin/SWR (replace localhost with the hostname from remote stations). You're done!
  8. Remember: Anyone who has access to this URL has full control of your filesystem. You should really follow step 5 now :)
If you are having troubles setting up SWR or Apache, feel free to ask in the forum.
Last Updated on Friday, 22 February 2008 14:33