Watch live video of office server room from home with open-source software running on old hardware 

I happen to have an old iMac G3 and usb Logitech quickcam pro4000. I used carbon clone copy to install Mac OS X 10.3 on the iMac G3 thinking of run streaming server on it.

I could run free program quicktime broadcaster and Darwin Streaming Server offered by Apple, but it only works with isight or firewire webcam unless you get third party usb webcam driver for OS X like http://webcam-osx.sourceforge.net/

I decided to go the Linux way, but the latest Ubuntu PPC 6.06 have monitor frequency and resolution default setting problem with iMac G3, once 6.06 is intalled, the screen will go blank, I could login from terminal to change the default setting, but wait... I have an Ubuntu PPC 5.04 at hand, so why not try 5.04. it turned out to be working fine with iMac.

So the next step is install VLC http://www.videolan.org/vlc/ and driver for Logitech quickcam pro4000, uncomment the "universe" mirror in /etc/apt/sources.list like:

deb http://ca.archive.ubuntu.com/ubuntu hoary universe
deb-src http://ca.archive.ubuntu.com/ubuntu hoary universe

deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe

and run

sudo apt-get update
sudo apt-get install vlc vlc-plugin-esd

The linux driver for logitech quickcam pro4000 can be downloaded from http://www.smcc.demon.nl/webcam/pwc-9.0.2.tar.gz. kernel 2.6 already included pwc driver for usb webcam. under Ubuntu PPC 5.04, the actual module pwc.ko locate in /lib/modules/2.6.10-5-powerpc/kernel/drivers/usb/media/pwc, run lsmod will show if pwc module is loaded

The usb webcam device is /dev/video0 on my iMac Ubuntu, so once I launched the VLC, and open caputure device, under Video4Linux, point to the right device /dev/video0 and check the stream output at the bottom of the window. In the stream output setting window, choose either http,udp,or rtp and fill in the ip address and port, the streaming service is setup.

From another computer, lauch VLC and open network, fill in the streaming server ip address and port, live video shows up on the screen :)

One pity thing is that I haven't got the audio part work, may investigate further.
[ add comment ] permalink ( 3 / 93 )
Passive OS Fingerprinting SpamAssassin Plugin 

I just quickly wrapped up a Passive OS Fingerprinting SA plugin after getting inspiration from this discussion thread:

http://marc.theaimsgroup.com/?l=amavis- ... 0910822408

Download link:

http://bl0g.blogdns.com/code2006/P0f.pm
http://bl0g.blogdns.com/code2006/p0f.cf
[ add comment ] permalink ( 3 / 114 )
Useful Mail::IMAPClient to delete old email in imap mail store 

In Mail::IMAPClient source tar ball, I found an useful sample script to manage imap box.

http://bl0g.blogdns.com/code2006/cyrus_expire.pl
[ add comment ] permalink ( 3.1 / 109 )
Asterisk PBX on Linksys NSLU2 and Linksys SPA3102 

[ add comment ] ( 22 views ) permalink ( 3 / 91 )
Connect office X-Lite to asterisk server behind NAT  

Here is the my config to allow X-Lite outside network to connect asterisk server behind NAT:

sip.conf

externip = external_ip

[xlite]
;Turn off silence suppression in X-Lite ("Transmit Silence"=YES)!
;Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
type=friend
regexten=401 ; When they register, create extension 401
username=xlite
secret=password
context=default
callerid="Vincent Li" <401>
host=dynamic
nat=no ; X-Lite is behind a NAT router
canreinvite=yes ; Typically set to NO if behind NAT
disallow=all
allow=ulaw
allow=gsm ; GSM consumes far less bandwidth than ulaw
mailbox=401@default

Then port forwarding sip controling 5060 and rtp port range 8000-20000 from my linksys router to my internal asterisk server

also see http://www.voip-info.org/wiki-Asterisk+ ... +solutions

[ add comment ] permalink ( 3 / 101 )

Back Next