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://–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


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: 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,no_subtree_check,no_root_squash),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.