Embed rtsp IP Camera to html Code

source : Code : <!DOCTYPE html> <html> <title>Net Surveilance</title> <body> <embed type=”application/x-vlc-plugin” pluginspage=”http://www.videolan.org” width=”550″ height=”400″ id=”vlc” /> <script type=”text/javascript”> <!– var vlc = document.getElementById(“vlc”); var options = new Array(“:aspect-ratio=4:3”, “:rtsp-tcp”); var id = vlc.playlist.add(“rtsp://192.168.1.55:554/user=USER&password=PWD&channel=1&stream=1.sdp?real_stream–rtp-caching=100”, “fancy name”, options); vlc.playlist.play(); //–> </script> <embed type=”application/x-vlc-plugin” pluginspage=”http://www.videolan.org” width=”550″ height=”400″ id=”vlc2″ /> <script type=”text/javascript”> <!– var vlc2 = document.getElementById(“vlc2”); var […]

Kali – rolling Linux sound setting

source : https://forums.kali.org/showthread.php?30815-No-sound-how-to-start-pulseaudio-on-startup 1. Turn on Kali Linux, open terminal and type in sudo killall pulseaudio and hit enter. Now type next. sudo apt-get purge pulseaudio pulseaudio-utils gstreamer0.10-pulseaudio paman pavumeter pavucontrol and again hit enter. 2. Continue typing and now type rm ~/ .pulse-cookie , after that type rm -r ~/ .pulse and after this type […]

configuring nfs server and mounting it

ibm.com

NFS is one of the secure sharing system in linux. NFS is Network File System. It quite easy to setup, and more simple than samba./etc/hosts.allowportmap: 192.168.1.2lockd: 192.168.1.2rquotad: 192.168.1.2mountd: 192.168.1.2statd: 192.168.1.2 Or just type ALL:localhost /etc/hosts.denyportmap: ALLlockd: ALLrquotad: ALLmountd: ALLstatd: ALL chmod a+x /etc/rc.d/rc.nfsd/etc/rc.d/rc.nfsd start nano /etc/exports/mnt/sda1 192.168.1.2(rw,no_subtree_check,no_root_squash) 92.168.1.3(ro,no_subtree_check,no_root_squash) $exportfs -r $/etc/init.d/nfs-kernel-server start to check $exportfs […]

Removing Zeitgeist Daemon from Ubuntu 12.04

Zeitgeist is a service that control the user log. From Wikipedia: Zeitgeist is a service which logs the users’s activities and events, anywhere from files opened to websites visited and conversations. It makes this information readily available for other applications to use in form of timelines and statistics. It is able to establish relationships between […]

Manage Bandwidth With Squid

source : http://s0t4.blogspot.com/2008/11/batasi-bandwidth-dengan-squid.html Contoh 1 Misalkan dalam network kita perlu untuk memberikan pembatasan-pembatasan bandwidth dikarenakan sumber internet terbatas dan group network lebih dari satu, disusun berdasarkan prioritas. admin, server dengan bandwidth unlimited staff dengan bandwidth 1,5 kbytes/sec, bila file yang diakses melebihi 64Kbte umum dengan bandwidth 1 kbytes/sec, bila file yang diakses melebihi 32 Kbyte […]

Bash Script to Execute Mysql Command

Here is my bash script to execute msyql command !/bin/bash tglblk=$(date –date=”8 days ago” +%Y-%m-%d) tglhapus=”$tglblk 23:00:00″ SQL=”DELETE FROM Events WHERE EndTime<=’$tglhapus’;” MYSQL_USER=”root” MYSQL_PASS=”” MYSQL_DB=”mydb” echo $SQL | mysql –user=$MYSQL_USER –password=$MYSQL_PASS $MYSQL_DB Then I put it into crontab to run at specific time.