Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 30+GB of video files, which I'd like to share with a friend overseas. I have xampp, installed on Xubuntu 12.10 in /opt/lampp/, and the drive containing the video files is on /mnt/MEDIA/. How to set-up apache or maybe another web-server to provide streaming option for his media player (I dont' want to make him download the files). I'm not sure if he's gonna use VLC or GOM Player, but it doesn't matter, he'll use whatever I tell him :)

share|improve this question
A simple webpage with a link to the media file should be enough. – terdon Sep 23 '13 at 10:37
You mean file:/// ? If so, it doesn't work in most browsers due to security. – Emil Avramov Sep 23 '13 at 10:52
No, I mean HTML with <a href="/path/to/file/">file</a>" – terdon Sep 23 '13 at 10:53
This only works if /path/to/file/ is a subfolder/subfile of /opt/lampp/htdocs – Emil Avramov Sep 23 '13 at 11:20
That depends on the way you have set your webserver up, but you should be able to make it work if you make a link (ln -s /path/to/file/foo.avi link_to_foo.avi) to the media file and then point the HTML page to that link: <a href="link_to_foo.avi">file</a>". – terdon Sep 23 '13 at 11:27
up vote 1 down vote accepted

This is the simplest way, just make links to your media files and make an HTML page that points to them:

  1. Make a link to each of the files you want to share in a directory that is configured to be accessible (htdocs for example)

    find /media/videos -name *avi -o -name *mpg -o -name *mpeg -o -name *mp4  \
      -exec ln -s {} +
  2. Make a simple HTML page with hyperlinks to each of these files

    echo "<html><body><ul>" > media.html
    for i in *avi *mpg *mpeg *mp4; do if [ -e "$i" ]; then 
      echo "<li><a href=\"$i\">$i</a>" >> media.html
    fi; done
    echo "</ul></body></html>" >> media.html
  3. Point your browser to music.html and click one of the files.

share|improve this answer
Yep, works like charm :) I even can make my own UI now :) I really appreciate your help! :) – Emil Avramov Sep 23 '13 at 11:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.