Xbox 360 Video Sharing with ushare

uShare autostart – Ubuntu 11.04

 

Previously, I installed ushare easily on Ubuntu following a process similar to this: https://help.ubuntu.com/community/Xbox360Media

I’ve recently become annoyed that ushare hasn’t been autostarting in Ubuntu 11.04. I suspect it may have something to do with the fact that I am using the same machine to host vpn so I have a bridged connection br0 as my main connection. The default script in /etc/init.d/ushare should be able to autostart, and I have tried adding it to rc.d using variation of this command “sudo update-rc.d ushare defaults 80″, however it fails to start. I have no trouble running it manually with the “/etc/init.d/ushare start” command however. So I’m guessing it is just trying to start before the network interfaces come up and failing. The workaround I found tries to solve this by explicitly running after the interface is up. The way to do it, is to add it to the “/etc/network/interfaces” file using something called “post-up”. Since I wanted to have ushare run after my br0 interface is brought up, I added it like at the bottom of the br0 section, see below:

iface br0 inet static
  address 192.168.0.198
  netmask 255.255.255.0
  gateway 192.168.0.1
  bridge_ports eth1
  post-up /etc/init.d/ushare start

And, now on restart “ps ax | grep ushare” shows the process running. I am also able to connect on my xbox just as before :)

Sources: http://www.cyberciti.biz/tips/how-do-i-run-firewall-script-as-soon-as-eth0-interface-brings-up.html

 

Recent Articles

Second Times a Charm?

Second Times a Charm?

April 10, 2013

After what seems like eternity, I have completed my second (and a half?)...

hostmonster-unix-2011-300x209

Hostmonster auto update IP address of subdomain

December 18, 2012

With my Hostmonster account, I host this website with my...

world_map

Blog stats

October 23, 2012

This blog has been running for quite a few years now and I got thinking...

 
Including Blogs in Tenure & Promotion

Including Blogs in Tenure & Promotion

October 23, 2012

Inspired by this blog post:...

46e33798ed2111e19b6422000a1e95d8_7

Recent Computer Related Events

September 19, 2012

The last few months have been crazy. I've had a couple of job...

icc2012

IEEE ICC 2012 – Ottawa

June 20, 2012

Last week I presented a paper at IEEE ICC, and since its been a while...