November 24, 2024, 08:24:37 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: hello all server for films and songs audio and video  (Read 5256 times)

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
hello all server for films and songs audio and video
« on: May 24, 2005, 07:51:38 AM »
dear
i am intrested to make a server for pree loaded films and songs for my lan
what i need is to first download all from web and keep it in lan so any one need it will get from in side lan with out going to search for orignal site
and i want this box it work with or with out connection to wan just in side lan
if any one have any idea please
thank you

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
OH
« Reply #1 on: May 25, 2005, 04:26:16 AM »
18 views no comments
did my explanation for my req is not clear
please ask if

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
hello all server for films and songs audio and video
« Reply #2 on: May 30, 2005, 02:53:18 PM »
To do so you need to set up a webserver on one of your local machine.And store all files on that and give link to them on a webpage but if you people to access them then you have to tell them the address on local LAN.

It is simple .. install apache.. it is probably preinstalled in RH and fedora. goto "/usr/www/html/" there save ur file then it will be available on your lan via "xxx.xxx.xxx.xxx /file"
where xxx.xxx.xxx.xxx is ip of that machine on ur lan.

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
hello all server for films and songs audio and video
« Reply #3 on: May 31, 2005, 06:24:33 PM »
THANKS ricky is it posible to do this in same squid box both squid and apachi

Do you understand clearly what i need

exp

some indian web there are clips and songs i want to download it once only and then next time if req it will be fetched from my server not from web
thanks

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
hello all server for films and songs audio and video
« Reply #4 on: June 04, 2005, 04:50:32 PM »
Now I understand what you want. SO in this case rather using apache .. use squid itself to store songs files for longer period by altering refresh_pattern .
refresh_patter decides that how long a particular object is kept in cache.

eg.. following do control about tgz files (which are compressed files)
Code: [Select]
refresh_pattern         \.tgz$          10080   90%     43200

Here if you want to cache mp3 files for long then replace \.tgz$ with \.mp3$ and replace 10080 with highest value (it decides min. time for a object to be treated as fresh) . Replace 90% with 99% and again replace replace 43200 with max value.. such as 99999 .btw the last one tells that how long that object will be considered fresh.
all those value are in Minz.

try above and see if it works !