1. Install the simple-python-http-server package attached below. The dependency is Python2. It adds a menu entry under Internet.
2. Set up a folder anywhere on your system and add the files you want to share. Subfolders will work too.
3. Run Simple Python HTTP Server. Note the IP address and port. Select the share folder. Click Start Server.
4. Go to a client machine and open a web browser.
5. Type in the server's URL and port
Code: Select all
http://aaa.bbb.cc.dd:8000
------------------
Read here, here and here for additional tools to use with the Python HTTP Server.
--------------------------
Setting MIME-type associations for audio files
Suppose that you have set up the server to stream audio files like MP3s. The client computer is also running a version of Stretch-Live with PeasyMP3 as the audio player and Firefox as the browser. In order that Firefox can recognize PeasyMP3 as a "helper" application, the client needs some configuring.
1. Make sure that PeasyMP3 works with locally installed MP3 files and is set as the default application. You can confirm this by looking in the file ~/.config/mimeapps.list.
2. Open /etc/mime.types and search for "mp3". The associated mime type is "audio/mpeg".
3. Open /etc/mailcap. Under "User Section Begins", add the line "audio/mpeg; peasymp3 %s"
4. Reboot.
5. Browse to the remote Python server and click on an MP3 file.
6. Select PeasyMP3 as the application.
------------------------