boxee :: forums  

Go Back   boxee :: forums > boxee community > boxee for appletv help

Reply
 
Thread Tools Display Modes
  #1  
Old February 8th, 2009, 03:37 PM
mwpei mwpei is offline
Senior Member
 
Join Date: Oct 2008
Posts: 226
Smile Boxee VPN Plugin (ATV)

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

Last edited by mwpei; February 9th, 2009 at 08:10 AM.
Reply With Quote
  #2  
Old February 8th, 2009, 04:59 PM
loonix loonix is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Default

@mwpei

You the man.

Thank you so much

Installed and works like a charm

AR
Reply With Quote
  #3  
Old February 8th, 2009, 07:33 PM
gbmorrell gbmorrell is offline
Junior Member
 
Join Date: Jan 2009
Posts: 10
Default A Challenge for MWPEI

I don't have a mac only an Apple TV and a Windows laptop and a username/password/ip address for a vpn connection, any chance that you'll be developing your plug-in for boxee to meet the needs of those without an apple or config files?

Here's hoping...
Reply With Quote
  #4  
Old February 8th, 2009, 08:13 PM
mwpei mwpei is offline
Senior Member
 
Join Date: Oct 2008
Posts: 226
Default

Quote:
Originally Posted by gbmorrell View Post
I don't have a mac only an Apple TV and a Windows laptop and a username/password/ip address for a vpn connection, any chance that you'll be developing your plug-in for boxee to meet the needs of those without an apple or config files?

Here's hoping...
If you can get the vpn client installed then you can use the plugin. Once you have it installed then I think the config files that would be on a windows machine are the same so they would work. Check out the other threads around setting up a vpn on the atv.
http://forum.boxee.tv/showthread.php?p=35536#post35536


Maybe someone can come up with an install script that can install both a vpn client and the plugin. If no one else does this I will try to look into doing in the next few weeks.
Reply With Quote
  #5  
Old February 8th, 2009, 09:43 PM
tranceparance's Avatar
tranceparance tranceparance is offline
Moderator
 
Join Date: Jan 2009
Location: North
Posts: 152
Smile

@mwpei:

It there a way to setup the plugin/script to auto-recognize the region? I.e. use U.S profile for US content (Hulu...), CDN for Canadian, U.K for U.K (BBC...) etc? Essentially any user who has the proper VPN credentials would be able to freely browse all the available content on Boxee. It would be great if you could input your certificates and "fogettabout it" :-)

I am not a coder but would be neat to see the development of such functionality.

Let me know your thoughts.

Keep up the excellent work!

Peace,

Tranceparance :-)
__________________
Running Boxee on Ubuntu 8.10 (Intrepid)
55" Sony HDTV connected via HDMI

Vote for Canadian content on Boxee:
http://getsatisfaction.com/boxee/top...nadian_content

Vote for OnLive on Boxee:
http://getsatisfaction.com/boxee/top...ing_experience

Tranceparance's Boxee Blog (work in progress):
http://tranceparance.wordpress.com/boxee/
Reply With Quote
  #6  
Old February 9th, 2009, 04:11 AM
marcel marcel is offline
team boxee (admin)
 
Join Date: Jul 2008
Posts: 7,910
Default

@mwpei nice one will check it out...
Reply With Quote
  #7  
Old February 9th, 2009, 10:22 AM
foghorn2 foghorn2 is offline
Member
 
Join Date: Jan 2009
Posts: 91
Default

Quote:
Originally Posted by tranceparance View Post
@mwpei:

It there a way to setup the plugin/script to auto-recognize the region? I.e. use U.S profile for US content (Hulu...), CDN for Canadian, U.K for U.K (BBC...) etc? Essentially any user who has the proper VPN credentials would be able to freely browse all the available content on Boxee. It would be great if you could input your certificates and "fogettabout it" :-)

I am not a coder but would be neat to see the development of such functionality.

Let me know your thoughts.

Keep up the excellent work!

Peace,

Tranceparance :-)
This would be a great plugin! I want to see BBC!! Where do I get VPN from the UK?
Reply With Quote
  #8  
Old February 9th, 2009, 01:29 PM
mwpei mwpei is offline
Senior Member
 
Join Date: Oct 2008
Posts: 226
Default

Quote:
Originally Posted by foghorn2 View Post
This would be a great plugin! I want to see BBC!! Where do I get VPN from the UK?
According to Witopia they are going to have a UK VPN connection in about 60 days. I hope they do because I just paid for 1 year of vpn service, I also hope they allow current customers to use either server.
__________________
__________________
Running Boxee on AppleTV 2.3

Vote for more Canadian conent:
http://getsatisfaction.com/boxee/top...nadian_content
Reply With Quote
  #9  
Old February 9th, 2009, 06:04 PM
tranceparance's Avatar
tranceparance tranceparance is offline
Moderator
 
Join Date: Jan 2009
Location: North
Posts: 152
Smile

@mwpei

I asked Witopia about their UK server implementation a while back ago and here is a direct quote from their sales group for your reference:

"Nope, there will be no additional fee - it'll be included in the base price for personalVPN. We will have instructions on how to manually change your config file to use whichever server you need. "

Peace,

Tranceparance :-)
__________________
Running Boxee on Ubuntu 8.10 (Intrepid)
55" Sony HDTV connected via HDMI

Vote for Canadian content on Boxee:
http://getsatisfaction.com/boxee/top...nadian_content

Vote for OnLive on Boxee:
http://getsatisfaction.com/boxee/top...ing_experience

Tranceparance's Boxee Blog (work in progress):
http://tranceparance.wordpress.com/boxee/
Reply With Quote
  #10  
Old February 11th, 2009, 08:19 AM
nick247365 nick247365 is offline
Junior Member
 
Join Date: Dec 2008
Posts: 3
Default Can't copy BoxeeVPN to plugins directroy

For some reason I can't copy the necessary files over to the plugins directory via Transmit.

/OSBoot/Applications/Boxee.app/Contents/Resouces/Boxee/plugins/video/

I get a failure - any suggestions?

Thanks
Reply With Quote
Reply

Bookmarks

Tags
hotspot, plugin, tunnelblick, vpn

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:25 AM.


skin based on greenzero from vBSkins.com

 
Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.