Below is my first official Boxee Plugin, it is still in alpha but I wanted to let others have a look and see what they think and if they would want it to do more.
This plugin allows you to control (start, stop, pause, resume, restart) you openvpn client from within boxee. It also allows you to have multiple config files pointing at different servers and pick what VPN service you want to use.
The plugin will work with both TunnelBlick or/and Hotspot shield (although you have to rename the "hotspot shield.app" to "hotspot.app", sorry about this maybe I will fix this in the next version). You can have both installed and pick the one you want to start at any given time.
Note: I set this up so if you get the Witopia VPN service you can copy over the TunnelBlick.app as well as your key and conf files and it should work (there are a few more steps then this, but that was the org idea)
here is the Link to the zip file, just unzip it then copy it to your atv.
Link:
http://code.google.com/p/boxeevpn/downloads/list
It is a python script plugin and should be placed in the following directory on our ATV.
/OSBoot/Applications/Boxee.app/Contents/Resouces/Boxee/plugins/video/
You will then need to add it as an application in boxee by going to settings/applications and selecting BoxeeVPN, I suggest setting it as a private video source.
If you need to install Hotspot or TunnelBlick you can read over the following posts:
http://forum.boxee.tv/showthread.php?p=35536#post35536
Basicly you need to do the following: (for HotSpot Shield just replace TunnelBrick with HotSpot Shield)
1. Install TunnelBrick.app on your mac
2. open terminal
3. cd "/Applications/TunnelBrick.app/Contents/Resources"
4. sudo chmod ugo+r openvpnstart
5. open finder and copy TunnelBrick.app from your mac to the appletv (/Users/frontrow/applications)
6. copy (from your mac) the contents of /Users/{User}/Library/openvpn to the atv /Users/frontrow/Library/openvpn (this directory contants the key, crt and conf files for your connection)
7. ssh into the atv and run the following commands:
cd "/Users/frontrow/Applications/TunnelBrick.app/Contents/Resources"
sudo chown -R root:wheel tun.kext
(you can also run the following two commands to see if your vpn will start, it is assumed the config file is call openvpn.conf, yours maybe different)
sudo kextload tun.kext
sudo openvpn --config /Users/frontrow/Library/openvpn/openvpn.conf
HOTSPOT NOTES:
1. rename "hotspot sheild.app" to "hotspot.app" (I will try to fix this at some point)
2. Your config file is likely inside the HotSpot.app directory so look in the /Users/frontrow/Applications/HotSpot.app/Contents/Resources and copy any .hvpn files to the /Users/frontrow/Library/openvpn
OTHER NOTES:
1. The plugin looks in the /Users/frontrow/Library/openvpn directory for .conf and .hvpn files. The .conf will be launched using TunnelBlick and .hvpn will be launched using Hotspot.
2. The commands that start the vpn are run with a working directory of /Users/frontrow/Library/openvpn so put your key files in the this directory as well.
3. The scripts require that your password be frontrow, you can modify the script if you have changed your password, just look at the top of boxeeplugin_openvpn.py file, here is a constant that contains the psw.
If you have problems, there is a log file produced with the output of the commands that are used to start the vpn at the following location /Users/frontrow/Library/openvpn/vpn.txt. Please check this file if you are having problems.
Happy VPNing
Edit:
I have noticed that sometimes I get the following error when I try to start the vpn:
"2009 Mac OS X ifconfig failed: shell command fork failed"
I am not sure why this is happening yet, but I have found that if you exit boxee then re-enter it seems to fix the problem. If anyone knows what maybe causing this please post.
__________________
Running Boxee on AppleTV 2.3
Vote for more Canadian conent:
http://getsatisfaction.com/boxee/top...nadian_content