background preloader

Raspberry Pi VPN Server - Brad Wells

Raspberry Pi VPN Server - Brad Wells
You have a raspberry pi— a low-power always-on computer. Why not use it as a VPN server for tunneling your internet through when travelling? This could, for example, help you ensure a secure browsing experience when you’re on a sketchy public wifi network. Or perhaps you’re considering moving to another country for a couple months. Just find a friend or family member who is willing to let you mooch off their internet from time to time, and plug your Raspberry Pi into their network while you’re away. This will give you an American IP address for utilizing all those US only services while you’re abroad. Don’t have a Raspberry Pi? Contents VPN Server Setup (Raspberry Pi) First, you’ll need a kernel with MPPE support. sudo modprobe ppp-compress-18 If this works without any errors, your kernel should do the job. sudo apt-get install pptpd Next, edit ‘/etc/pptpd.conf’ If you have started an X session, you can use a graphical text editor. leafpad /etc/pptpd.conf sudo vi /etc/pptpd.conf Router Setup Related:  Raspberry Pi - Projects 1

Raspberry Pi Tutorial – Connect to WiFi or Create An Encrypted DHCP Enabled Ad-hoc Network as Fallback | Lasse Christiansen Development In this post I describe how I have configured my Raspberry Pi (RPi) to first attempt to connect to WiFi and if that fails, create and use an ad-hoc network as fallback (in this way I can always reach the RPi via SSH). The blog post is based on the following “How To” from the Raspberry Pi forum: – however, I have introduced a level of more detail and a couple of modifications in order to get faster boot time and support for multiple wireless networks (see my previous RPi blogt post suvery for details on which parts of that “How To” I think are good as well as which I think can be improved). Hardware The WiFi adapter I have used for this tutorial is the Edimax EW-7811Un (more details here) which seems to be one of the more popular WiFi adapters for the RPi (at least based on the amount of forum posts where it appears). Software This tutorial has been tested with success on: 2012-09-18-wheezy-raspbian2012-10-28-wheezy-raspbian

Building an economical OpenVPN server using the Raspberry Pi « Remi Bergsma's blog The Raspberry Pi is a $35 credit-card sized computer, with an ARM-based CPU. It uses very little power (only 3 Watt), so it’s ideal for a server that’s always-on. I was thinking what’d be a nice task for my Raspberry Pi and came up with an OpenVPN server. This enables me to connect to my home from anywhere, for example to access some files or to access the internet from there. Before we start, Let’s have a look what’s on board the Raspberry Pi so you’ve an idea what we talk about: Here’s mine in action: Now, let’s see how we can turn it into a OpenVPN server. After the install finishes, you need to generate keys for the server and the client(s). The ‘easy-rsa’-tool has a file called ‘vars’ that you can edit to set some defaults. Load the vars like this (note the two dots): Then we need to generate keys: The first line makes sure we start from scratch. We need to copy the keys to the OpenVPN folder. Last step is to configure the server. When you’re done, start OpenVPN like this: You’ll see:

Plus de 50 idées pour votre Raspberry Pi Nous sommes nombreux à nous être procuré un petit ordinateur Raspberry Pi pour nous lancer dans des projets de ouf malade... C'est très cool, mais à part le classique Media Center XBMC, qu'avez-vous fait avec votre Raspberry Pi ? Si vous séchez niveau idées, voici une petite sélection que j'ai rassemblée au cours des derniers mois. J'imagine qu'il y a encore beaucoup d'autres idées et de tutos, donc n'hésitez pas à partager les liens dans les commentaires, je les rajouterai à ma liste. Merci ! En attendant, j'espère que ceux-ci vous donneront de l'inspiration... On peut donc en faire : Et si vous cherchez un moyen rapide et pas cher de faire un boitier de protection pour vos Raspberry Pi, pensez aux LEGO. Bon, je pourrai continuer comme ça toute la journée, mais va bien falloir que je m'arrête. Amusez-vous bien ! Rejoignez les 60492 korbenautes et réveillez le bidouilleur qui est en vous Suivez KorbenUn jour ça vous sauvera la vie..

Unix / Linux Fork Bomb Explained (Discalimer: if you run this command and something goes wrong with your computer's hardware, software or if you lose your work or data, please do not hold me responsible. You have been warned) In case you are a Windows user, we have an article about: Windows Fork Bombs! What is a Fork Bomb Unlike what its pronunciation might suggest, a fork bomb does not throw dining forks at you when it explodes. A fork bomb is something which calls the fork function indefinitely and rapidly, thus exhausting all system resources. How does a fork bomb work? In this case ‘:’ is the name of the bash function (and is interpreted by the shell itself). When a user runs the fork bomb, it defines a function named ‘:’. The definition of the function contains the root of bomb. To launch the bomb, all you need to do is to type (or copy-paste) those seemingly harmless letters in your Linux terminal and hit enter. How to protect against fork bombs

Minimal webserver distribution (Lighty + PHP + SQLite) Max wrote:MySQL is not supported, as I do not expect it to run properly on a Pi.When MySQL executes queries containing joins it tends to generate temporary tables, which either requires a lot of memory (not available on the Pi) or it will resort to using temporary files (which you don't want when using a SD card as storage).Use SQLite instead. Now come on! MYSQL works fine on the pi. Its not good form to spread this 'pi is wheezy and can't handle anything' myth chap. Like apache2; if you actually take the time to configure it and set sensible operating resource limits there is absolutely no issue on the pi. My server has been running 5 apache processes, php5 and mysqld and happily vending 1-2000 queries a day for the last 6 months nbd. I know of at least one high traffic high availability site running on pis: ... pberry-pi/ The 'lighttpd and sqlite' brigade is nonsense when you're only fencing 10-50 visitors at any one time.

Installation Guide for motion detection with webcam For the file storage, you could use NFS (assuming you have a linux box elsewhere on the same network). On the other linux box:1. sudo apt-get install nfs-kernel-server2. sudo {your editor of choice} /etc/exports - this file tells your nfs server which computers are allowed to connect to which folder on your nfs server3. To allow any computer on your network to connect to a folder on your nfs server (assuming your router assigned IPs in the 192.168.1.1-254 range... you might have to change that to 192.168.0.0 depending on the DHCP settings on your router.) /the/folder/ 192.168.1.0/255.255.255.0(rw,fsid=0,insecure,no_subtree_check,async) On your PI:4. {your nfs servers ip}:/the/folder /home/pi/nfs nfs soft,intr,rsize=8192,wsize=8192 8. You should now be able to navigate to /home/pi/nfs and see everything in the folder on your other computer.

Serve My-Pi Logging into a Rasberry Pi using Public/Private Keys « Steve @ DynamicEdge In a previous post we covered enabling sshd on the Raspberry Pi. Now that we’ve got SSH setup I’ll cover how to log in using a public/private key-pair rather than using password authentication. This is particularly useful if you’re going to put the Pi on the public internet. It’s also pretty handy if you can’t be bothered to type your password each time you ssh into the device. The first step is to ensure that you have a public private key-pair installed on your local machine. I won’t cover creating these in any detail as there are plenty of guides available. Next up we need to copy our keys over to the Rasberry Pi. This assumes that your private key is stored in ~/.ssh/id_rsa.pub and that the ip address of the server is 192.168.1.190. Now we should be able to log in using: This time we shouldn’t be asked for a password it should use the key instead! Disallowing password login. We now need to restart sshd. Like this: Like Loading...

Iphone adroid io for raspberry : NetIO IR Universal Remote turns your phone into a real universal remote. Use your phone's built in IR Blaster to control infrared devices such as your TV and Cable Box. A Samsung phone or tablet with a built in IR Blaster is required. *New - 04/27/2014 - Enhanced in app purchase framework. *New - 04/24/2014 - Users can now upload their own custom background images. This application has full page advertisements. Free Features:*Access to 500000+ Online IR Database codes. Paid Features:*Add custom backgrounds*Press and hold buttons to send repeat commands. Visit for frequently asked questions (FAQs) and other additional info. A phone/tablet with a built in IR Blaster is required: Galaxy S5, Galaxy S4, Galaxy S4 Active, Galaxy S4 Mini, Galaxy S4 Zoom, Galaxy Note 3, Galaxy Note 8.0, Galaxy Note 10.1, Galaxy Tab 7.0 Plus, Galaxy Tab 2, Galaxy Tab 3, and Galaxy Mega are confirmed to work. (HTC ONE, LG G2, Sony Xperia - All Require OS 4.4+ KITKAT)

RPi Remote Access Back to Beginners Page A default install of a Rpi will probably have an ssh daemon running. This means that the board is listening on port 22 for a remote host asking for a connection. You can run a command line, file transfer or GUI over a port 22 connection to the Rpi. Initial Setup Prior to your initial remote access it is recommended that you generate unique host public/private keys with the following command[1] sudo rm /etc/ssh/ssh_host_* && sudo dpkg-reconfigure openssh-server You can execute these commands after having logged in remotely, and if executed while logged in from a remote client you will not be disconnected mid-session. You need to have a SSH client program. In order for this to work you must have port 22 open between you and the Pi. Linux and Mac OS X ssh <ip address of your Rpi> -l <username of RPi user you set up previously> Here is a record of what happens with me Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

Domotique : Raspberry PI commande du GPIO avec un iPhone et PLCLink Réalisation complète et application pratique en domotique Le RaspberryPI avec PLCLink PLCLink PLCLink est une application pour iPhone ou iPad de supervision et de télécommande d'automatismes utilisant des protocoles standards du net (HTTP, XML, JSON, Modbus). Raspberry PI Le Raspberry PI est une carte complète micro-ordinateur avec Linux comme système d'exploitation. Vous avez avantage à fixer rapidement l'adresse IP du RaspberryPI en associant l'adresse MAC de celui-ci avec une IP fixe dans l'interface du routeur, il sera plus simple de réaliser ensuite les routages de port pour un accès en réseau extérieur. Le câblage de la LED à été modifié dans la suite. Installation de base Vous trouvez sur les sites consacrés à ce produit les détails pour le montage de base, réaliser une carte mémoire de boot 1Go est largement suffisant pour cette démonstration. # usermod -a -G gpio www-data Installation Suites des opérations d'installations de la carte RaspberryPI Vidéo de démonstration #! #! <? #! #!

RaspberryPi : utilisation d’Open2300 pour les stations météo La Crosse Technology | Informatique, logiciels libres... J’ai fait acquisition (enfin, le père Noël m’a gentiment apporté) un Raspberry Pi avec une station météo La Crosse Technology WS2355. Cette station a la particularité d’être connectable à un ordinateur par RS232, l’idée d’utiliser le Raspberry Pi pour conserver un historique des données s’est donc faite naturellement. La station est livrée avec un adaptateur RS232 vers USB Prolific PL2303. Je suppose dans ce tuto que vous avez un serveur MySQL fonctionnel. Téléchargement, compilation et configuration basique de open2300 Première étape, télécharger open2300, le décompresser, puis aller dans le répertoire des sources, ce qui peut se faire en ligne de commande avec : wget open2300-1.10.zipcd open2300-1.10 On va compiler open2300, ceci se fait de façon automatique avec la commande make. Il est possible que l’on vous dise après la commande make mysql2300 que le fichier mysql.h n’a pas été trouvé. #!

Raspberry-pi : Interface Météo : Viskor-Pi ~ Pimp My Pi Dans mon premier post sur le Netatmo je vous avais dis que Netatmo possédait une documentation pour les développeurs ainsi que des Api et je me suis dis que je pourrais récupéré la valeur du thermostat pour l'incorporé dans ma base de donnée. Quand j'ai eu mon Netatmo j'ai pu grâce a l'api et enregistrer dans ma DB temp les valeurs toutes les 30 minutes avec mon raspberry. A présent, mon Raspberry pi enregistre la température de mon salon ainsi que la température de mes chambres ainsi que la température extérieur je vous détaillerais tout cela plutard. Vu que j'avais les valeurs j'ai fais quelques recherche pour les mettres en graphique et je suis tombé sur hightcharts qui ont une base de graphique assez sympas avec pas mal de modèles. Concrètement, le résultat final devrais ressembler a ceci Le résultat est fort proche de l'interface de Pi Home server car je me suis tout simplement basé sur son interface que j'ai adapté a mes besoins. Prérequis Création sqlite (base, table, valeur) #! #!

Related: