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

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!

Raspberry Pi tutorial: how to do more For the price of a USB hard drive, you can turn the Raspberry Pi into a super cheap and supremely flexible network-attached storage box. To start with, we're going to enable SSH on the device. SSH is a secure shell protocol, and is a way of accessing the command line of your Pi from across your network. This is particularly important with the Pi, because sitting in front of a television isn't the best place for hacking. SSH will let you hack away from any other Linux, Windows or OS X box. Although SSH is included by default on the Debian distribution we've installed, it's not running. sudo service ssh start If you're new to Linux, this line may look as if it's written in a foreign language, but after it's decoded, it's very easy to understand. You can find out about commands by typing man followed by the name of the command. We also want to start SSH when we boot the Raspberry Pi, and we can do this with another command: sudo insserv ssh Package management apt-get install packagename

How to Clone Raspberry Pi SD Cards Using the Command Line in OS X - Tuts+ Mac Computer Skills Article The Raspberry Pi runs from an operating system stored on a Secure Digital (SD) card and many different operating systems may be employed. Storage is relatively inexpensive, can be created (flashed), recreated, written to and overwritten with ease. On the one hand, this is an advantage of the Pi. On the other, the experimental nature of the Pi means more time flashing SD cards. The Raspberry Pi is somewhat different to the computing, to which most of us have been accustomed, of the last two decades. With almost two and a half million units sold–in little over a year since its launch–and with its focus on getting kids (adults?) Being able to experiment, play and break things is all part of the fun. Before embarking on cloning your SD card, install NOOBS or the OS of your choice, customise it and get it set up exactly how you like to use it. Cloning is the process of making an exact copy. Open Terminal and enter the following command to locate your SD Card:

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.

How to make your own £25 media centre We’ve looked at how you can use almost any gadget to make your TV into a smart TV, but today we’re looking at how you can use the very cheapest one to get top notch online video playing right back on the big screen in your living room: the humble £25 Raspberry Pi. And it couldn’t be easier – read on to find out how it’s done. Over the last few weeks, we’ve been running a series of gadget tutorials, showing you how to pull off useful tech tricks like adding voice control to your car, or hooking up your game controller to your smartphone. Now, we’re bringing you smart TV skills on the smallest budget possible. Get a Raspberry Pi First thing’s first, you’ll need one of these clever little computers made in the UK. Prep the Pi and the software To make the Raspberry Pi into a media centre, we’re going to use XBMC, the free, superb suite for almost every device under the sun – including the Pi. Now, it’s time to set up your Pi. Happy Birthday Raspberry Pi: Five ways it’s changed the world Tags:

How to Watch Premier League Football Using XBMC Kodi Share this post There are plenty of ways you can watch the footie using XBMC. Use my links below and you will find a channel to watch; with a good stream too, I can pretty much guarantee it. If you have any good sources that are not listed here then please feel free to share them so everyone else can benefit from it. The best place for games is probably NBC Sports as it shows every Premier League match. Follow my guide to install Phoenix. Staael > Live TV > Sport In there you will find links to all of the matches available on that day. Woody > Woody's Channels He has Sky Sports, BT, SportsNet and other Take a look at my guide on installing p2p streams. Torrent-TV.RU This has a load of channels to choose from. Or try the channels that use the same cyrillics as above (футбол) but without the HTB+ and the channels marked Спорт HD LiveFootball.WSThis lists matches in the order they will appear and when they are ready to watch they say ONLINE so you know you can click on them. or try Select Search

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

Learning Python using Codecademy and Raspberry Pi Minecraft: a resource of great note I met Craig Richardson at Newcastle Maker Faire and we got to talking about teaching using Raspberry Pi Minecraft. For a while I’d harboured a plan to write some proper teaching resources for it and had scribbled a few notes but hadn’t had time to develop it. Craig had had the same idea – yes, it was just like Darwin and Wallace – and we decided to get our heads together. Shortly afterwards Craig sent me what he had been working on. And here it is. Craig’s book is one of best teaching and learning resources that I’ve ever seen for any subject. If you are a teacher and are teaching Python in September: please go and get this, your students will thank you. Everyone else who would like to learn or improve their Python: please go and get this, it’s not just a classroom resource so don’t be put off. A treasure detector based on an exercise in Craig’s book. The book isn’t quite finished and Craig says: Right now the book is incomplete, especially in the later chapters.