Raspberry Pi is quickly becoming the best friend geek, powering everything from robots to OpenVPN. This tutorial will help you in the implementation of our TorGuard OpenVPN (SSL) on the distribution Raspbmc
Note :. These instructions assume that you are a legitimate geek and experience to enter commands from a UNIX shell prompt.
If you're not sure of anything, let us know and our team will do their best to clarify. Start :.
First, install raspbmc and make sure it works properly and has access to the Internet
On the other computer, you must first use ssh to connect to raspbmc on Windows machine you will need to use putty. Apple / OSX and Linux systems have ssh (terminal) built, so just open a terminal and ssh directly.
Login as pi password is raspberry
You should see the bash UNIX prompt:
:. ~ $
You must be root to install OpenVPN therefore enter sudo bash then return
The prompt should update to indicate that you are logged in as root, it should now be:
: / home / pi #
rating, you are now root or superuser, so proceed with caution.
then you must update the software repositories. type apt-get update and press return, depending on the speed of your connection, it may take several minutes or more to complete. Once this is complete, we need to install OpenVPN. To install, enter: apt-get install openvpn and press return again this will take a minute so, once completed, you will be returned to the prompt
Then you need to get our TorGuard OpenVPN Raspberry Pi.. login script
to download the file, enter: wget, then the URL of the login script you want to use:
http://www.torguard.net/downloads/TorGuard.RP. Canada. txt
press Enter.
After downloading the file, edit it and change the username and password for your user name and password TorGuard VPN.
Once done, you need to edit the startup script for the system to automatically connect to the VPN. To do this, edit /etc/rc.local and enter the following line just before the line that says exit 0:
bash /home/pi/raspbmc-connect.txt
for example, the last two lines of the file should read:
bash /home/pi/raspbmc-connect.txt
exit 0
Check the file for all errors and type shutdown -fr to restart the unit.
After a system reboot, it will wait about 60 seconds, then try to connect to the VPN.
On the computer, ssh back into the raspbmc and type ifconfig the list of network interfaces. If everything has been set up, you should see an interface called tun0 in addition to standard lo and eth0.
If you do not see tun0, then something went wrong in this case, please send our support desk a copy of the following files:
/etc/rc.local
/home/pi/raspbmc-connect.txt
this information should help us to identify where the problem is ..
This comment has been removed by the author.
ReplyDelete