background preloader

Running a lightweight webserver on the Raspberry Pi (lighttpd) - Linux tutorial from PenguinTutor

Running a lightweight webserver on the Raspberry Pi (lighttpd) - Linux tutorial from PenguinTutor
This guide covers setting up a light webserver on Linux using the lighttpd web server on the Raspberry Pi. Most of these instructions can also be applied to other Debian or Ubuntu based distributions (except the tasks using the raspi-config tool). I've already written a tutorial based on the "full-fat" Apache webserver (running a LAMP Apache based webserver on the Raspberry Pi). Lighttpd provides a way of setting up a web server without putting too much load on the limited processing capability. It's ideal for providing web access to the Raspberry Pi as a monitoring tool, or as a lightweight webserver for a personal website. Debian Linux This is based on the Debian Raspberry Pi Raspbian. Using the command line and editing files As we are going to be doing this through the command line it is useful to understand a little about the shell. Throughout the install you will see many commands prefixed with sudo. Static network IP address The LAN settings are shown below: sudo reboot Using ssh Related:  Raspberry Pi - Projects 1raspi

Web server setup My operating system, Debian Linux comes with lots of great programs, all of which are free to install and use. One of the things I am really good at is hosting webpages, but before I can do this I needed to install some web server software.There are many different web server programs available but I decided to use the most common one, it's called Apache and it powers millions of web sites all over the world. So, this is how I set myself up to be a web server. First I needed to install the Apache software, this is the easy bit, I just ran the following command from my command prompt: sudo apt-get install apache2 This command downloads the Apache software from the internet and installs it for me. Next I needed to setup an area to hold my web pages, the default is /var/www however this is on my root partition which isn't very big so I created a new partition using the spare space on my SD card and mounted it under /data. sudo mount /data brings it online and makes it ready to use. Simples!

webiopi - Raspberry Pi Internet of Things framework WebIOPi 0.7 Released CHANGELOG DOWNLOADS Written in Python, with facilities to load and execute custom script, using a comprehensive structure with setup and loop functions Unified Serial/SPI/I2C support with a complete and consistent set of functions to control more than 30 devices, including most used analog converters, I/O expander and sensors Javascript/HTML client library to make Web UI Python/Java clients, to make Pi-to-Pi systems or Android applications CoAP support brings the best Internet of Things protocol on the Pi, as a future proof of Pi possibilities Includes simple web apps, to debug GPIO, devices and Serial interface App Exemple : Irrigation Control System Base Application Allows to control an irrigation system with a PiFace, or any board using a supported GPIO expander. GPIO header web app The GPIO header web application is included to quickly debug and controls GPIO. Device monitor web app

How to Tweet from your Raspberry Pi using Tweepy - AW This tutorial is all about making your Raspberry Pi do more cool things than before. We will be using the Twitter API & write a simple python code that will help the Raspberry Pi to Tweet. Simple enough. Now this kinda seems complicated but its not, because we do have a python library for this known as Tweepy. So we will be using this library to help us code & connect to Twitter using the API. What is an API ? An application-programming interface (API) is a set of programming instructions and standards for accessing a Web-based software application or Web tool. – By Dave Roos Now that you have a better understanding about how API’s work, we can get started with the tutorial. 1. Before we do that execute the update command, to keep everything updated sudo apt-get update Next we will install python-setuptools which essentially allows you to install, update, remove python packages nice and easy. sudo apt-get install python-setuptoolssudo easy_install pipsudo pip install tweepy 2. register_app1 3.

The MagPi Raspberry Pi Magazine - Issue 9 The MagPi is an online magazine dedicated to the Raspberry Pi created by the community for the community. It's a great way to get to grips with learning how to program your Pi and how to get started on building hardware projects; it’ll also help you find out more about the community around the device and demystify the command line. For all those MagPi readers who want a hard copy of the best Raspberry Pi magazine available to pour over whilst sitting infront of your Pi - The MagPi is now available from ModMyPi in a high quality professional magazine format! Issue 9 Contents: An Interview with Limor Fried- Founder and Engineer of Adafruit Industries Limor Fried Talks to The MagPi. Downloadable Copies and More Information on the MagPi is Available Direct on the MagPi Website The MagPi Issue 9

Wiimote comme télécommande Tutoriel concernant l'utilisation d'une Wiimote sous Ubuntu. Vous pourrez alors utiliser votre Wiimote en tant que souris, sans aucun effort, ou presque. Si vous souhaitez juste utiliser votre Wiimote pour contrôler xbmc, une méthode plus simple est décrite dans la page piloter_xbmc_avec_une_wiimote Pré-requis Posséder un émetteur/récepteur Bluetooth. Pour les bougies, une peut suffire, mais si vous avez un écran large, deux bougies espacées de 20 centimètres peuvent faire l'affaire pour couvrir tout l'écran Installation Ayant suivi ce tuto de A à Z, je me suis demandé si depuis Gutsy, il n'y avait pas un moyen un peu plus simple après tout ce temps. Installez les paquets lswm, wmgui, wminput ou sudo apt-get install lswm wmgui wminput Petit script qui automatise l'utilisation Depuis que j'ai découvert ce tutoriel, je me suis lancé dans la fabrication d'un petit script permettant l'exécution en mode graphique. Il nécessite aussi des droits d'administration donc il faut le lancer avec gksudo. #! lswm

An Unofficial Raspberry Pi Blog: How to Setup Remote Desktop from a Windows Machine to your Raspberry Pi - Step by Step Guide As I mentioned in the previous post I recently found the need to be able to remote desktop to my Raspberry Pi. This is a step by step guide on how to set it up. What does this guide help me do? It will let you control your Raspberry Pi from another machine. Meaning that the Raspberry Pi will not need to be connected to a monitor, keyboard or mouse. Before we get started a few clarifications: This guide is to set up remote desktop from another computer on your home network to your Raspberry Pi. What do I need before I get started? A Raspberry Pi running the latest Raspbian “wheezy” image (at time of writing 2012-09-18-wheezy-raspbian.zip). The Steps Raspberry Pi Setup So first we need to install some software on the Raspberry Pi, but don't worry it is very easy! Start up your Pi to the terminal prompt. Second Machine Setup 1. 2. 3. 5. 6.

How to create a time lapse video with Raspberry Pi After installing a Pi camera module and capturing pictures and videos with raspistill and raspivid commands, I wanted to create a time lapse video of the nice scenery that I have in the back of my apartment. For those who don't know what it is, time-lapse video (or often-called time-lapse photography) is a shooting technique where contiguous photo frames of a changing scene are captured for an extended period of time in a much lower rate than a typical video frame rate. When the collected frames are played back in a faster frame rate, it creates a so-called "time-lapsing" effect. You might already have seen stunning looking night-to-day time-lapses or fast moving clouds on TV. In this project, I use the following items to create a case for Raspberry Pi and Picam module before capturing time lapse sequences with them. One used plastic snack container One used SD card plastic wrap Dish washing sponge (remove the green scratchy side and use only the yellow soft side). 1. # mkdir img-lapse 2.

Hacking a Raspberry Pi into a wireless airplay speaker The raspberry pi is fully functional credit card-sized computer that is cheap enough ($25) that it can be used just for a single purpose. With this hack the computer imitates an airplay speaker, making it possible to send songs over to an old stereo wirelessly from your phone. The Raspberry Pi generated massive hype in nerdy circles this summer when it came out and we’re beginning now to see some amazing hacks from this tiny computer now. I’ve had mine for a few months now but I hadn’t got around to using it yet. So I’ve now decided to try to make something that I’ve wanted for a while: a product to bring my good but dated speaker system into the 21st century by enabling wireless streaming of music to it. A possible way to do this would be to buy an Airport Express or an Apple TV and connect the audio out to the stereo. How to fake airplay compataility To get a Raspberry Pi looking like an airplay receiver I made use of Shairport. Raspberry Pi SD card (2GB is plenty for this) Wifi check

Related: