Tag Archives: server

Embed rtsp IP Camera to html Code

Published by:

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 options = new Array(":aspect-ratio=4:3", ":rtsp-tcp");
var id = vlc2.playlist.add("rtsp://192.168.1.55:554/user=USER&password=PWD&channel=2&stream=1.sdp?real_stream--rtp-caching=100", "fancy name", options);
vlc2.playlist.play();
//-->
</script>

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
       width="550"
       height="400"
       id="vlc3" />

<script type="text/javascript">
<!--
var vlc3 = document.getElementById("vlc3");
var options = new Array(":aspect-ratio=4:3", ":rtsp-tcp");
var id = vlc3.playlist.add("rtsp://192.168.1.2:554/user=USER&password=PWD&channel=3&stream=1.sdp?real_stream--rtp-caching=100", "fancy name", options);
vlc3.playlist.play();
//-->
</script>

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
       width="550"
       height="400"
       id="vlc4" />

<script type="text/javascript">
<!--
var vlc4 = document.getElementById("vlc4");
var options = new Array(":aspect-ratio=4:3", ":rtsp-tcp");
var id = vlc4.playlist.add("rtsp://192.168.1.2:554/user=USER&password=PWD&channel=4&stream=1.sdp?real_stream--rtp-caching=100", "fancy name", options);
vlc4.playlist.play();
//-->
</script>

</body>
</html>

The cctv in my example is located  in 192.168.1.2 port 554 which is a standard port for rtsp protocol.

configuring nfs server and mounting it

Published by:

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.allow
portmap: 192.168.1.2
lockd: 192.168.1.2
rquotad: 192.168.1.2
mountd: 192.168.1.2
statd: 192.168.1.2

/etc/hosts.deny
portmap: ALL
lockd: ALL
rquotad: ALL
mountd: ALL
statd: 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) 92.168.1.3(ro,no_subtree_check)

$exportfs -r
that’s in server

this is in client
mount 192.168.1.1:/mnt/sda1 /home/me/computer1 -o nolock

OpenDNS

Published by:

Open dns is one of the free dns server in this planet. OpenDNS is a company and service that extends the Domain Name System (DNS) by adding features such as phishing protection and optional content filtering. Sign it up.

I sign up in www.opendns.org in username xxxx@xxxxxxxxx and ********** password.
I use this site as a extra proxy to block certain material from office network.
This is what I set it up
1. in the server
change the nameserver in /etc/resolv.conf to
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

add the following line in /etc/squid/squid.conf
dns_nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

add the following line in /etc/dhcp3/dhcpd.conf
option domain-name-serversxxx.xxx.xxx.xxxxxx.xxx.xxx.xxx ;
I add above line for all dhcp client dns server.

but this is not enough. we need to set up client’s resolv.conf
change them exactly like resolv.conf of server