|
At the crossroad of New media, Engineering, Research and Development
|
|
Archive for ‘March, 2008’
Mar
31
2008
Stream your Linux/Mac/Windows Desktop as video using VLC (Part II)A lot of people seem to be having problems (issues) with the original way I had proposed here using command line. So, I figured I make it real simple and do a graphical tutorial with screen shots to boot :-). In this example we first deal with the server (running windows) at IP address 192.168.1.1, then we move to our client (Mac OSX) at IP address 192.168.1.2 and view the servers screen remotely through streaming video. So first on the server (remember 192.168.1.1 is the IP address):
1) Bring up VLC and select File/Open Capture Device (Ctrl-A). You should see this screen modify the bottom portion (Advanced Options), so it looks like this picture below. You can decrease screen-fps to 15 if you like to speed things up a bit.
![]() 2) On that same screen Click on the Settings… button beside Stream/Save and you’ll see the following screen. Make sure it’s configured this way if you want to do the streaming through HTTP protocol. Audio Codec does not need to be checked, since there is no audio, I just put it in as habit. Note the Address field is the IP address of the same machine (the server in this case), which is 192.168.1.1. This can be a bit confusing. Brad over at bradfortner.com has a great article where he delves into the logic (or lack of) behind companies arguing IP with their own costumers. All I have to say is this, if the said company could write a decent driver, I would have had a little sympathy for them. But lets face it, Creative Labs is probably in a tie with ATI for writing the industries worst drivers for as long as I can remember. The difference I guess is that when one of Creative’s own users started fixing the drivers, and asked other users for donations to support the effort, Creative went after him. When will these guys learn. If the guy was doing such a good job that Creative felt threatened, they should have hired the dude, not sent him a cease and desist letter. That’s pretty sad Creative. Anyways, I think Brad is way to generous with the reptilian comparison. Reptiles have brains the last time I checked….right??? Mar
30
2008
TPMG visits Toronto Aerospace Museum (B&W)
Mar
28
2008
RevoLabs makes Microphones cool again….
Mar
27
2008
Turn on/off remote desktop service remotely….Apples remote desktop service is great and it comes in handy, but what happens when you’re 5000 miles away from your desktop, only to find that remote desktop is turned off. Dooohhhh. Well here is a quick tip to turn the damn thing on and off in a second through a remote ssh connection. To turn on the service, ssh to your machine and issue the following commands: Mar
27
2008
Photoshop Express hits the streets…..
So after pulling out my (non-existent) hair for the past two days I think I’ve finally figured out how Apple deals with Virtual Web Servers under Leopard. If you go to the Server Admin and look under the Web Service you’ll notice the Sites icon and if you’re like me you assume that since Apple obviously has gone to great lengths to design a unified interface for Admins, that they would give you access to all the basic/intermediate options. NOPE!!!!! Read on and see if you’ve run into any of these problems. 1) First of all, I don’t understand why apple’s webserver (apache) is configured to automagically reroute you to http://www.mysite.com/groups/workgroup when you really just want to get to the index.html in the (so called) document root. Apple assumes that when you type http://www.mysite.com that you really want to go to http://www.mysite.com/groups/workgroup. That is plain dumb. And to make it worst there is no place in the interface to disable (or modify) this. So get out your terminals, we’re gonna do some surgery:
2) And while we are on the subject of obscurity, If you want to have multiple virtual hosts with their own blogs/wikis hosted under their individual virtual hostnames, Apple strikes again by hiding the options and only enabling the workgroup services under the “main” webserver address. Here is how you fix that:
Hope this helps…..The above 2 problems are discussed (not in great detail) under the following two Apple Support Discussions: 1) Always goes to the wiki page
So I finally got around to try my hand at Digital B&W — shots taken in colour originally, then converted to B&W — and I have to admit that I’ve really enjoyed it. Not quite the old film experience (I think it might have something to do with the missing odours :-)), but it’s pretty cool nevertheless. Here is a sampling of our Film Noir style shoot from last Thursday night at the studio. You can have a look at the complete set here. While the world was busy trying to figure out how to sync their palm pilots to Windows 98 (or was it 95) Andrew Tridgell was working on his thesis……Rsync. The endall-beall in the world of syncing. You see, if you’ve ever tried any syncing program before you’ll appreciate the ease with which rsync works. You’ll also see the efficiency of it’s algorithm in dealing with changes/updates, and for that you can thank Andrew. I’m just gonna show you how to use this excellent tool along with ssh (another must have/must use free software utility) to setup automated secure backups between two different platforms. For the purpose of this article I’m using a PowerMac G5 with a 1TB Firewire disk hanging off it as my backup server. As my client I’m using the departmental research server (yes, forget that it’s a server, in this exercise it’s a CLIENT). So first we need to make sure we have the tools: ssh and rsync. They are already part of my distribution (SuSE Linux 10.1 on the client and OSX 10.5.1 on the server) so I didn’t have to install anything. You want to make sure that your rsync uses protocol version 2.x.x on both sides. (type: rsync –version on your machines to see the protocol version). Note: You can also grab RsyncX for older OSX versions and/or cwRsync for windows. Step 1. Is to remove the interactivity that happens during an ssh session (ie: password prompt). To do this we must generate passphraseless keys that we can initially manually exchange between our machines. So in our case we want to grant access to our client machine — via ssh — from the server. Now here is were things get a bit OS specific. Under OSX there is no root account (atleast not one you can log into) by default. In my setup I want to allow root@server.domain.ca (OSX machine) to have access to root@client.domain.ca (Linux machine), so here is what I had to do. On the OSX machine (server or machine initiating the rsync session) login as the standard user/admin and issue the following commands: Now you need to transfer the id_dsa.pub key file to your client somehow. I do this just using ssh again. If you want to be totally super secure you can stick it on a usb key and walk it over to your client machine. So still on the server (OSX) machine I do the following (still in roots account, so be careful): Now, to verify, while still logged into root on the server (OSX) try to ssh to your client machine (using root’s account on client). If everything works you should be able to log into root’s account on the client (Linux machine) without a password prompt. If you’re prompted for password, stop here, and redo/recheck your procedure. Step 2. Pheew…..You made it, that was the hard part….the rest is pretty simple. Now we just need to test to make sure things are running smoothly and once that’s done we can automate everything using a cron job (Step 3.). So lets start our test run. For this I’ve chosen to backup the /etc directory on the server (lots of small files, nothing earth shattering) and my chosen path on the server is /Volumes/TERADISK. This is where OSX mounts my firewire drive (your milage may vary). I’ve created a folder on TERADISK called FULLBACKUP, which I use to have rsync house my backups. So to test issue the following command as root (yes still, so be carefull) on the server: Step 3. Well we’ve reached the end. All you have to do now is to use crontab -e command while still logged in as root on the server to add rsync entries for folders you want synced between the client and the server. Note that I do NOT backup absolutely everything off the client, only specific folders (and their subfolders ofcourse). I’m pretty sure that rsync will get confused if you try to sync things like your dev directory from the linux client. In my cron I have the following: That’s it. Hopefully this has been useful…..
I bet you didn’t know that Frontrow, Apple’s Media Centre software that ships with every Mac, can actually playback those HD trailers from their site. Well here is a quicktip to enable that functionality: Mar
14
2008
Evernote….Your personal Pet Elephant to help you remember
So head over to evernote.com and sign up for an invite, download whatever method of interface you want/need (webbased/OSX/Windows) and start clipping and organizing your life/brain. One of coolest thing about evernote is that you can feed the elephant anything (sound/image/text) and it will make it searchable. In the case of an image for example, you can shoot your buddies business card using your cellphone, send it to your evernote account and it will automagically OCR the card content and make it searchable. Same with handwritten notes, memos, doodles, stickies. All this works in Windows/OSX and on the Web……very nice. Now if they could add a bit of RSS import/export goodness to it, I think it would make the perfect central hub application for all your social interfaces (blog/twit/flick/wiki/etc….). Mar
14
2008
And now a bit of Engineering brought to you by the letter E
Gotta love Steve Ballmer, he’s so clueless, he doesn’t even realize it. This is the same guy who for the longest time slammed Linux and Web technologies, promoted his companies sub par OS as the latest greatest and told us that Web-based apps and the whole web2.0 thing was just a fad. I got 5 words for him…..Dude you missed the boat…..AGAIN. Here is his latest rant……”Web Developers, Web Developers, Web Developers…”. This is pretty sad. |