Using uShare for streaming video from Ubuntu to Xbox 360

Posted by Alpha Mon, 28 Jan 2008 00:02:59 GMT

With much thanks to this blog post, which reveals how to fix /etc/ushare.conf and /etc/init.d/ushare.

Install the dependencies:

$ sudo apt-get install libupnp-dev pkg-config
$ sudo echo "deb http://www.geexbox.org/debian/ unstable main" >> /etc/apt/sources.list
$ sudo apt-get install libdlna-dev ushare

(uShare’s being installed here just to grab the conf files.)

Pick up the latest version of uShare (assuming Mercurial is installed):

$ hg clone http://hg.geexbox.org/ushare

In the uShare directory:

$ ./configure --prefix=/usr/local
$ make
$ make install

Now the configuration files need to be edited. Make the appropriate changes to /etc/ushare.conf, making sure to modify ENABLE_XBOX to USHARE_ENABLE_XBOX. The rest should be self-explanatory.

In /etc/init.d/ushare, add USHARE_OPTIONS="-f $CONFIGFILE" so that the correct command line is sent to uShare.

And now you should be able to stream videos from your Ubuntu fileserver to your Xbox 360.

Posted in , ,  | 1 comment | no trackbacks

How I generate passwords

Posted by Alpha Fri, 25 Jan 2008 08:51:58 GMT

I forgot where I saw this originally, but it’s a handy way to generate random passwords:

$ openssl rand -base64 6

Posted in , ,  | no comments | no trackbacks

Improved Twitter Stats in Ruby

Posted by Alpha Thu, 03 Jan 2008 10:36:00 GMT

The previous method was a bit messy, so I’ve cleaned it up a bit.

Download twitter_stats.tar.gz

Read more...

Posted in , ,  | 1 comment | no trackbacks

Twitter stats using Ruby

Posted by Alpha Wed, 02 Jan 2008 20:40:00 GMT

I saw Damon Cortesi’s Twitter Stats script last night, and decided to make a Ruby version. This was before he released his code, so it’s reverse-engineered rather than ported. I’ll take a look later tonight to see how much the logic differs.

Edit: This code is rather inelegant, and I’ve replaced the clunky CSV files with an Sqlite3 database. You can find the new and improved scripts here. The following should still work, and I’m leaving it here for posterity’s sake.

Read more...

Posted in , ,  | 3 comments | no trackbacks