|
At the crossroad of New media, Engineering, Research and Development
|
|
Archive for ‘January, 2009’
Jan
27
2009
Notes on installing Rocks Cluster Software…..- Front-end machine is a Dell 2950 with 2 x 1 GigE Broadcom ports onboard and one myricom 10GigE card. This should bring up a sane frontend machine. - Before doing insert-ethers on the frontend, we have to edit /opt/rocks/lib/python2.4/site-packages/rocks/commands/sync/dns/plugin_dns.py since we have a portion of a larger subnet as our private address space. The Python file assumes a private class C address/mask which is not the case for me. We have to make the small change to make the file look like this (Thanks to Scott Hamilton for his post): def reverseIP(self, addr, mask): "Reverses the elements of a dot-decimal address." if type(addr) != types.ListType: addr = string.split(addr,".") addr.reverse() clip = mask/8 if (mask % 8): clip += 1 # I added this section to fix a bug that breaks the dns configuration when # isntalling on subnets smaller than 255.255.255.0 if (clip == 4): clip = 3 # Only show the host portion of the address. addr = addr[:-clip] reversed = addr[0] for i in addr[1:]: reversed = "%s.%s" % (reversed, i) return reversed - This gets insert-ethers going but there is still the problem of being able to tell the program that you don’t want to start at 190 (which is the end of my address space) and count down whenever there is a new compute node online. I want to start at 180 and count down (180-190 space I want to reserve for admin stuff for the Xserve raids). So the command to issue is: /* UDP Channels for Send and Recv */
udp_recv_channel { port = 8649}
udp_send_channel { host = aa.bb.cc.130 port = 8649}
This way the listening portion of ganglia can communicate with itself on port 8649 on each of the compute nodes and the collected stats can then be sent to aa.bb.cc.130 which is my frontend machine. Similarly on the frontend machine I modified /etc/gmond.conf to look like: /* UDP Channels for Send and Recv */
udp_recv_channel {/* mcast_join = 236.149.78.5 */ port = 8649}
udp_send_channel {/* mcast_join = 236.149.78.5 */ host = aa.bb.cc.130 port = 8649}
Note the commented multicast address which is not in use anymore. This way all the clients (compute nodes) send their info to the server (frontend), who’s listening on port 8649. The Server itself also sends it’s own information to it’s own IP address (snakke eating it’s own tail kinda thing). Once this is done I do a “/etc/init.d/gmond restart” on all the machines (compute nodes and frontend). Now the website for ganglia should be happy and full of info about the nodes. More later….. Jan
26
2009
TPMG visits Toronto Zoo…or…How I busted my camera shutter…Well it finally happened yesterday. I busted the shutter curtain on my faithful Canon 1DMKII. Took a trip to Toronto Zoo and about an hour into the trip the shutter literally ripped (Damn Orangutans, I think one of them jinxed the camera More on flickr.… This is a bit of old news I guess, since it happened almost 2 weeks ago. But it was a fantastic concert and I finally got around to checking out the pictures I took. Gotta admit the Canon G9 did a decent job for a $400 semi-slr camera. More pics from the concert can be viewed on flickr. Jan
16
2009
How to get Axis 207W Camera to work with Quicktime Streaming Server or Darwin Streaming ServerI have to admit I have not touched DSS in a while, but the instructions below are generic enough that you should be able to alter it for your Darwin Streaming Server. For the purpose of this exercise I assume your Axis camera is setup for mpeg4 video and aac audio. I also further assume that you have a reachable IP address on the camera and know how to login to the web interface. First thing we want to do is make sure you have the uptodate firmware. As of this writing the newest firmware is 4.40.1. So make sure you have atleast that version as well. 1) We need to login and change the RTSP daemon’s timeout value. If we don’t do this the server will stop sending packets out after 60 seconds (default). To do this you open your browser and type the following command in the browsers Address field: This will bring up a screen (like above) that will let you edit the file. Find the timeout value (should be 60 by default) and change it to 0 (zero basically means no timeout). Save the file by pressing the “Save file” button. 2) Now power cycle the camera just to make sure the new value is loaded. On the above screen you want to add a Relay by clicking the small + sign on the bottom left. This will enable the streaming server to login to your camera and grab a copy of the stream. The screenshot below shows you how you set it up. So on the relay screen you give your relay a meaningful name, change the relay type to “Request Incomign Stream” and fill in the rest of the information. The Source IP is the IP address of your camera. The Path is basically what I have there (just copy it). User Name and Password are from the Axis camera interface (you should know this already). Next you want to setup the destination of your relay. Here is the tricky part (easy, but tricky). Depending on how you setup your destination, the Streaming server will either Reflect or Relay the stream. We want to reflect the stream so we click the + sign on the bottom right and fill it in like the image below. On this screen it is important that the destination be 127.0.0.1. This will basically tell the server to Relay the output of the Axis camera to itself, effectively reflecting it. Destination type is announced UDP. This will automatically create the SDP file for us. Mount point is simply the name of the SDP file which will describe the stream specifics to our quicktime player (It’s justa text file, see further down). This file will be created automatically on your server under /Library/QuickTimeStreaming/Movies/ which is the default media directory for quicktime streaming server (yours might defer). Username and password are the id and password of a active user on your streaming server that can write to the media directory (/Library/QuickTimeStreaming/Movies/). So once all this is done, you can use a workstation to launch quicktime and point it at the following URL: If everything goes right, you should see the output of the Axis camera in quicktime, being streamed (reflected) through your QTSS/DSS server. UPDATE: Please note that the whole reflecting game will NOT work if youŕe behind a Firewall and/or a NAT (including home routers). If anyone knows of a trick to do this please let us know….. Jan
14
2009
How to turn Spotlight OFF (and ON Again)….Leopard SolutionA number of people mentioned that the previous tip on how to turn spotlight on/off does not work with Leopard. Now that I’ve had a bit of time, I’ve confirmed this and found a way around it (it’s even easier in Leopard). Here are the details specifically for OSX 10.5+ (Leopard).
Have fun…. Jan
11
2009
Bug Labs Linux based Hardware gets major update….Bug Labs announced five new BUGmodules at the 2009 Consumer Electronics Show in Las Vegas. At the Bug Labs Test Kitchen the team showcased several innovative new BUG applications which fully demonstrate the endless possibilities of BUG, the open source modular consumer electronics platform. Each BUGmodule represents a specific gadget function (e.g. a camera, a keyboard, a video output, etc.) that can be snapped to the BUGbase, a programmable Linux-based mini-computer with four available BUGmodule slots. The five new BUGmodules are:
These five modules complement the initial batch of BUGmodules, including BUGlocate (GPS), BUGcam2MP (digital camera), BUGmotion (motion sensor and accelerometer) and BUGview (touchscreen LCD). And with the recent addition of BUGvonHippel, a breadboard module enabling users to add virtually any interface to their BUGbase, developers are given more control in making BUG the center of their device universe. After a two month hibernation, the TSG (Toronto Strobist Group) had their meetup at Ryerson University again. I was not really participating completely (didn’t have my lights). But I did put on the PW’s and fired some shots using other members gear. Here is a sample of the shots. Complete set can be found on flickr as usual.
So head on over and grab the ISO file. Jan
11
2009
Energize your Mac’s Safari browser….If you’ve been wanting some of the newer features of the “other” browsers in Safari, Glims might just be the right thing for you. Glims is a Safari plugin (OSX only) that gives you a lot of new features:
The plugin is still in beta stage, but very usable. |