Testing a LSRfm.com Podcast Player Embed

Testing embedding LSRfm.com Podcasts in a non LSRfm.com Place, with a nice Player

Testing embedding LSRfm.com Podcasts in a non LSRfm.com Place, with a nice Player

So heres all the LSRfm.com Podcasts, might take a while to load, as the big feed of all podcasts is rather, rather big.

 
 
 
 
 
 
 
 
 

[SWF]http://lsrfm.com/podcasts/playerembed/, 580, 400[/SWF]

Pretty nifty, Longtail Videos, player just munches on the LSRfm.com Podcast Feed, I had to add media:thumbnail for the images, but that is useful anyway.

Mac Fun and Connecting to LSRfm.com!

SSH Fun, with my New Mac Book Pro, and Connecting to Office Stuff From Home Stuff.

So, I’m sat at home, having finished work last night, running Fruity Single handedly (the other tech broke his elbow before coming to work, and got sent to A&E bout 1am).

And then sleeping, (hmm sleep)

I find the need to connect to my FreeBSD VM, which is running on my Vista Laptop, which is in the LSRfm.com Office.

Its worth noting that the FreeBSD VM is running its networking as a NAT, so has its own IP address, so the Vista Laptop as a machine has two IP’s.

Standard SSH Tunnelling for the win!

ssh -p <open external port> -f bcarlyon@<lsr office domain> -L 1313:<internal IP of the VM>:22 -N && ssh -p 1313 bcarlyon@127.0.0.1 && kill `ps aux | grep <lsr office domain> | grep -v grep | awk ‘{print $2}’`

Breaking the command down.

Open the tunnel to the office (I like using 1313 and upwards for local ports, 13 is my lucky number).

-p specifys a port, as @katie_server, the machine I am SSH-ing to initally is port forwarded from the LSRfm.com Firewall.

-L sets up the local port

-N executes no command and puts that SSH session into the background.

Then open a ssh session thru that local port

When I exit the SSH session, the grep command kills the Tunnel, but only ssh commands for the lsr office domain.

grep -v grep makes sure that the grep command is exculced from being killed.

I discovered that the awk ‘{print $2}’ was outputting all the matches and thus kill killed them all which is a bonus, see next.

So I decided to setup Foxy Proxy on Firefox, so that I can route all my network traffic that match a lsr office computer, in this case http://192.168.0.*

So my Firefox now uses normal Internet unless accessing a LSRLocal Ip Address, at which points it routes it thru the socks proxy.

That socks proxy being a SSH tunnel to LSR office:

ssh – p <external port> -f bcarlyon@<lsr office domain> -D 1314 -C -N

-D sets up a dynamic, routes all traffic that goes thru 1314 to its relevant port on the outside or internal internet.

So if I wasn’t using FoxyProxy patterns and was routing all my network traffic in Firefox thru the Socks Proxy, then I can access the whole of the internet thru the tunnel, rather than use -L for a local/specific computer.

-D can be used with PuTTY, say if you wanted to listen to Pandora in the UK and happen to have SSH access to a server in america, or if you wanted to use IRN, which is IP Locked, in LSRfm.com’s case to the LSR office.

So now by alias-ed command for my mac, called freebsdvmnet reads:

ssh -p <ext. port> -f bcarlyon@<lsr dom> -L 1313:<VM IP>:22 -N &&
ssh -p <ext. port> -f bcarlyon@<lsr dom> -D 1314 -C -N &&
ssh -p <ext. port> -f bcarlyon@<lsr dom> -L 1315:<VM IP>:80 -N &&
ssh -p 1313 bcarlyon@127.0.0.1 && kill `ps aux | grep <lsr dom> | grep -v grep | awk ‘{print $2}’`

So,

Open ssh tunnel, to LSRfm.com, thru Katie, into FreeBSDvm (running on Vista Top (Hannah).

Open ssh tunnel for internet access

Open specific Tunnel for FreeBSDvm

Open SSH session thru tunnel to FreeBSDvm

KIll it all, when I exit the SSH session thru the Tunnel.

Given my FoxyProxy setup, the Specific Port 80 Tunnel to the FreeBSDvm is not needed. (I discovered FoxyProxy Patten Matching after writing the command).

So after all this I thought about connecting to the LSR File Server (lsr-fs) thru the tunnel. Initially trying a standard SSH tunnel on port 139, I find that smb://localhost:port/share/ the use of localhost is disabled in current OSX.

Brief Google Later: http://blog.newsyland.com/mac-os-x/leopard-broke-smb-tunneling

Choices Choices.

sudo ifconfig lo0 alias 127.0.0.2 up

Seems easiest, but I find myself using, the main instructions.

Create a ssh tunnel overwriting port 139, then smb://localhost works fine, (but seriously why disable the localhost loop back in the first place)

sudo ssh -p <Ext IP> -f bcarlyon@<lsr dom> -L 139:127.0.0.1:139 -N

The Blog Advises routing 445 too.

Both are privileged ports so need Sudo.

So some terminal use as directed by Newsyland Blog = Win

So that is what I’ve done this morning, some ssh fun and accessing the File Server as if I was in the office.

Next to see if it works on Windows, this is gonna be useful for general use, (and stopping my Apache server needing .htaccess Rules to stop people accessing it) and for Student Radio External Broadcasts!

AND YES I STILL NEED TO FIX MY BLOG STYLE!!!!

Life Since the last Post

Yes, I’m still rubbish at updating my blog regularrly.

Yes, I’m rubbish at updating my blog.

So its the new year and suppose I should keep up with it.

In recent news I am no longer single, I go out with the Wonderful Kayleigh.

I’m currently sat at my temporary desk in Stage @ Leeds, (just finished painting a Door Blue and waiting for it to finish drying)

LSRfm.com – Leeds Student Radio is ticking over.

Just did a massive 19 hour shift over New Years for Wax:On over at LUU, quite good fun, running the lights in the Terrace again, didn’t blow up the rig this time which is always a bonus, last time I blew a Atomic 3000, and it tripped the whole rig out….. We think its a manufacturing fault.

So coming soon, back to degree!

Which means 360gaming [dot] net is gonna get some work done to it finally…. Its my project for my degree, bonus!

Tho I should really get on with Data Mining’s essay and my Critical Thinking Essay, total of 6000 words to write by the 14th.

Off to meet the guys from Muze.tv for SRA Chart stuff this weekend.

AND I ORDERED A MAC!

I have a 17″ on its way to me!

So stay tuned for new Mac goodness! As well as regular updatage!

General Update

Crikey its been busy, so here is a quick update, and some stuff about Programming Language Speed

Yes I knows, I needs to update my blog more.

I’ve been pretty busy working over at Stage 1 these past couple of weeks, I had to hack the Congo, the theatres Lighting desk, to teach it how to talk to Stage’s new ETC 1 Port Nodes. The Congo runs Windows XP, and I know a few backdoors 🙂

I was reading Binary Hex’s Post on Language Speeds today, and was suprised at the Slow-ness of Ruby, and indeed of Perl, I used to program Perl, but response speed times are not something I tend to notice for languages, I worry mroe about Web Server response and loading times.

I’ve been neglecting AptitudeCMS, just through sheer business.

Hell I’m supposed to be at Work right now, just waiting in LSRfm.com Offices for my Co-Worker to arrive. Gotta love Flexitime!

SRA wise, I need to build an online sign up form for the National Student Radio Chart, which I need to start organising. Broadcast and Freshers week dates are getting close.

Not forgetting the upcoming SRA Training Day in Birmigham on the 12th, that should be good.

The day after that (13th) I have my first non union techie shift, down at the Queen’s Hotel in Leeds City Center, should be good and promises to lead to other things one hopes, we shall see.

Its all go here, just waiting for some stuff from other people and then time to kick into high gear!

Anywho I must go, time to go to work, will remember to post soon!

iPhone Shoutcast App.

Just a quick post to say,

OMG its the Shoutcast iPhone Application!

http://blog.shoutcast.com/2009/01/09/announcing-the-shoutcast-radio-app-for-iphone-and-ipod-touch/

Shoutcast and LSR on the iPhone
Shoutcast and LSR on the iPhone

You have to turn on Hi-Bit streams in settings tho to listen to LSRfm.com, it wouild appear out low quality stream is not in the index…..