Buat pengguna squid pasti pernah bertanya tanya bagaimana sih caranya melihat file video streaming yang udah tercache di server squid? jika menggunakan metode cache biasa file dubah ke meta file yang hanya bisa dibaca oleh server squid nah dengan teknik dibawah ini kita bisa menyimpan file hasil streaming ke format aslinya sehingga bisa langsung di download ke hardisk dengan format FLV. silahkan dicoba
dalam contoh saya menggunakan Ubuntu ( Debian base ) untuk disrto lain intinya sama saja tinggal menyesuaikan.
prasarat :
install webserver apache/lighttpd (terserah).
RAM minimal 1Gb, P4 , hardisk secukupnya :D
oke here we go..
apt-get install python python-urlgrabber
wget hxxp://www.razametal.org/conf/videocache/python-iniparse_0.3.1-1_all.deb
dpkg -i python-iniparse_0.3.1-1_all.deb
wget hxxp://www.razametal.org/conf/videocache/videocache-1.9.2.tar.gz
tar xvf videocache-1.9.2.tar.gz
cd videocache-1.9.2
python setup-deb.py install
vim /etc/videocache.conf
cache_host = 172.17.10.1 < ganti dengan ip squid
proxy =http://172.17.10.1:3128/ <<< ganti dengan ip squid dan port squid anda
base_dir = /var/spool/videocache
save dan exit
cp videocache-httpd.conf /etc/httpd/conf.d/videocache.conf
cd /etc/squid/
wget hxxp://shakau.googlepages.com/videocache-squid.conf
vim squid.conf
tambahkan di baris paling bawah
include /etc/squid/videocache-squid.conf
cd /var/spool/squid
mkdir -p videocache/tmp videocache/youtube videocache/metacafe videocache/dailymotion videocache/google videocache/redtube videocache/xtube videocache/vimeo videocache/wrzuta videocache/youporn videocache/soapbox videocache/tube8 videocache/tvuol videocache/bliptv videocache/break
chown -R proxy:proxy videocache
chmod -R 755 videocache
mkdir -p /var/log/videocache
chmod -R 755 /var/log/videocache/
chown -R squid:squid /var/log/videocache/
restart servis apche/lighttpd nya
restart squid nya
test dengan browser buka youtube
cek di /var/log/videocache/videocache.log
jika video lancar di buffer sampe akhir berarti sukses
selamat mencoba
thanks to bro siber @ FMI
Tulisan Terkait:
Home »
» caranya melihat file video streaming yang udah tercache di server squid?
caranya melihat file video streaming yang udah tercache di server squid?
Posted by eka
Posted on 00:08