Monday, April 3, 2017

Camera Notes

Swann makes inexpensive cameras. Here are the details for those interested in them:


UPNP SWNHD-825CAM http://www.swann.com/au/swnhd-835cam admin/ DHCP by default SwannCom_91:ce:d3 VLC stream URL: rtsp://admin:@172.16.0.12/Streaming/channels/1/ OPTIONS rtsp://172.16.0.12:554/Streaming/channels/1/
RTSP/1.0 CSeq: 2 User-Agent: LibVLC/2.2.2 (LIVE555 Streaming Media v2016.02.09)

RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
Date:  Thu, Sep 01 1776 15:57:57 GMT

DESCRIBE rtsp://172.16.0.12:554/Streaming/channels/1/ 
RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.2.2 (LIVE555 Streaming Media v2016.02.09)
Accept: application/sdp

RTSP/1.0 401 Unauthorized
CSeq: 3
WWW-Authenticate: Digest realm="", nonce="", stale="FALSE"
WWW-Authenticate: Basic realm=""
Date:  Thu, Sep 01 1776 15:57:57 GMT

PLAY rtsp://172.16.0.12:554/Streaming/channels/1/ 
RTSP/1.0
CSeq: 6
Authorization: Digest username="admin", 
User-Agent: LibVLC/2.2.2 (LIVE555 Streaming Media v2016.02.09)
Session: 
Range: npt=0.000-

RTSP/1.0 200 OK
CSeq: 6
Session:        
RTP-Info: url=rtsp://172.16.0.12:554/Streaming/channels/1/trackID=1;seq=45740;rtptime=1573072564



Thursday, June 23, 2016

Steve Jobs has the last laugh...or maybe Bill does...I guess it's all based on perspective.




Steve Jobs has the last laugh...or maybe Bill does...I guess it's all based on perspective.




Friday, January 22, 2016

This is an adventure in converting a dd raw disk image to a vmdk image suitable for vmware on Mac OSX.  Amazingly annoying so I documented it to save you the trouble.  Of course these instructions are valid for as long as all the software used stays the same.  Good Luck!


install Apples Xcode developers tools from the App Store

install macports from here:
http://www.macports.org/

This is the version I used:
MacPorts-2.3.4-10.11-ElCapitan.pkg

Then confirm it wall worked:
sudo port version

Update it, not sure what this does but you need to do it (uses internet):
sudo port selfupdate

Now install the Xcode command line tools (assuming you already installed Xcode)
sudo xcode-select --install

Now install qemu:
sudo port install emu
--->  Computing dependencies for qemu blah blah blah....


Then all the sudden I get this:



So naturally I click OK and allow massive amounts of additional code to be installed blindly on my computer...all provably secure and safe!

I also installed this

It will fetch a bunch of junk and finally get it all installed.  It probably installed a bunch of rootkits and implants along the way so my computer is probably totally owned now but hey computers are disposable now right?


BTW...as the first macport I installed this process took close to 45 minutes...most of it waiting for downloads of dozens of libraries.  To be specific these are the debs:

zip2
curl
curl-ca-bundle
expat
gdbm
gettext
glib2
gperf
help2man
libedit
libffi
libiconv
libpixman
libtool
ncurses
openssl
p5.22-locale-gettext
pcre
perl5
perl5.22
pkgconfig
python27
python_select
sqlite3
texinfo
xz
zlib

So now qemu is installed and I can now convert a raw dd disk image to a vmdk


qemu-img convert -O vodka original-disk.dd converted.vmd


/var/db/vmware/vmnet-dhcpd-vmnet1.leases
/var/db/vmware/vmnet-dhcpd-vmnet8.leases

These files contain current leases issued by the built in vmware DHCP server...helpful in finding the IP of a box you can't login to.







Saturday, September 12, 2015

Notes from my OpenIndiana file server experiment with ZFS 

zpool create -f data-pool raidz c4t1d0 c4t2d0 c4t3d0 c4t4d0 usermod -G 
zfs set sharesmb=on 
cat /etc/dfs/sharetab 
smbadm join -w passwd 
smbadm list 
idmap remove -a 

So far so good with 4 1TB WD Blue disks (Although RHEL 6 smbclient has some serious issues with OpenIndiana SMB impl..hint hint) 

NAME USED AVAIL REFER MOUNTPOINT 
data-pool 11.0M 2.59T 10.4M /data-pool 
rpool 21.7G 892G 196K /rpool 
rpool/ROOT 5.15G 892G 144K legacy 
rpool/ROOT/openindiana 668K 892G 3.79G / 
rpool/ROOT/openindiana-1 5.14G 892G 3.73G / 
rpool/dump 8.00G 892G 8.00G - rpool/export 1.72M 892G 152K /export rpool/export/home 1.57M 892G 152K /export/home 
rpool/swap 8.50G 900G 136M -

Sunday, March 29, 2015

Wonder how the 6 million dollar man would fare today.

Thursday, February 12, 2015

Why do I still have to do this stuff when CentOS decides I need a kernel update?

#!/bin/sh
service vmware stop
rm /lib/modules/$(uname -r)/misc/vmmon.ko
vmware-modconfig --console --build-mod vmmon /usr/bin/gcc /lib/modules/$(uname -r)/build/include
depmod -a
service vmware start