Raspberry Pi





The Raspberry Pi Foundation works to put the power of digital making into the hands of people all over the world, so they are capable of understanding and shaping our increasingly digital world, able to solve the problems that matter to them, and equipped for the jobs of the future.

We provide low-cost, high-performance computers that people use to learn, solve problems and have fun. We provide outreach and education to help more people access computing and digital making. We develop free resources to help people learn about computing and how to make things with computers, and train educators who can guide other people to learn.

Share tech news, updates, or what's on your mind.

Sign up to Post


Can anyone advice how to use wicd-cli  to do below jobs in Raspberry pi?

-connect to WiFi using SSID and password provided as parameters
-check for wifi connection and reconnect if wifi is dropped
-connect to a different wifi if different SSID and password are specified


I have a raspberry pi which I am going to use to display information on tv screens.  The information it is going to display is web based and the device itself, once deployed, will have no input methods, so keyboard and mouse will be not connected once setup.

When the pi boots up I need to open iceweasel in fullscreen mode (F11)

how can i do this?



Please see the overview of my config here: https://www.dropbox.com/s/ghewtpjsvbypy1h/Overview.pdf

Everything works fine, it s only annoying I have to manually press the hdmi switch to switch between Raspberry Pi and TV.
F.e. I watch tv (via settopbox) and want to see movies from raspbmc: switch off settopbox via remote control but I still have to manually press the hdmi switch for having raspbmc on my screen.

Howto make this switch occur automatically (without the need to go to hdmi switch and enter button)?

Note: raspbmc is on all the time, haven t found a way to do a wake on lan (doesn t work for me).

Please advise.
hi guys

I have a huge collection of music and films. I'm digitising a lot of those (converting the CD@s to mp3 and DVD/Blu ray to playable format on the pc).

However, I wanted to get a PC which has a lot of disk space (such as around 4TB) on it so that I could also have it Raided in case something went wrong and I lost the data? Or should I just back it up to cloud?

Also, I wanted it to be silent so servers may need to be out of the question due to their noise levels.

I'm also considering using the Raspberry Pi as part of this set up.

Any ideas what I should go for in terms of PC? Do you have any set up recommendations? Let's say the max budget is around £1,000.

Thanks guys

Please advice on automatic subtitle downloader for blc (on raspberry pi).
I have the plugin and it is activated but the subs don t appear and I don t know how to trigger the search or pick one.

Please advise.
We are currently running our overhead music, powered by a Raspberry PI running RaspBMC. It outputs a streaming music add-on to the audio 3.5mm output.

It is currently using a wireless adapter via a USB port (it is a Raspberry PI approved wifi adapter) that connects to a WPA2 encrypted WAP.

Unfortunately, it seems the wireless may be spotty at times at the wifi signal becomes weak and it will disconnect. The audio stream then stops and it has to be restarted.

The WiFi seems to auto re-connect when it drops out for a moment, but the stream does not start back up.

This is the message that is displayed when the wifi signal drops, or is interrupted and the stream stops.

Can you please help me by showing me how to auto-reconnect the stream when it stops or a script that runs to verify the stream is running in raspbmc?

I have this Raspberry Pi on which I had XBMC first. Hated it, still hate it.
Spend weeks on it to configure it but in the end it still messed up my library: didn't show DVD correctly etc.
I was always a happy user of Plex Mediacenter on my Synology, so I configured Rasplex. Working great ... can navigate through Plex but not play content. It says "playing" but does nothing at all.
Please don't convince me of XBMC, heard it is the best over and over again but I've spent to much time on it.
Plex works great, only the Iphone/Ipad apps don't.

Please advise.
I am looking for a simple solution to print to home offices that are not on a vpn, and have annoying internet providers like DSL or cable that are half retarded to work with.

I'm used to enterprise level support for Eithernet/T1's etc.  I need a solution that simple and can be identical at many locations.  This is why im leaning away from VPN routers. With vpn i have to constantly fight and understand how every home internet is configured. you ask for a modem and they send a router, you ask for static ip and they cant get it working... blah blah... .its making me nuts.

So i tough ill try Google cloud print.  From what i can tell this is not very enterprise.  I am using impact printers so no cloud ready printer exists. nobody makes a cloud print server for some reason. So i tried the Raspberry pi method.  The problem is i need to print from our ERP software to these remote offices from a citrix published APP.  google cloud printer only supports win7. So i cant install on my print server or my citrix farm.

How am I the only one that needs to do this?  Or am i just struggling to find the right technology?
My next test will probably be a one of those email printers with carbon-less trace paper. (to avoid old dot matrix printers).

Please provide a sweet easy solution so i can get back to real work.

I have this Raspberry Pi with Openelect (OS). On it there runs XBMC/Plexbmc that connects to a Synology NAS on which my movies are.

Now this works "pretty" well. Some movies show up fine, some don't, som show up after refresh of library (manual or automatic), some don't, some play, some don't, some play with difficulties (ISO), some don't give sound. Some play with XBMC some only with Plexbmc. There is an addin for subtitles, some do play succesfully some don't.
Sometimes video hangs, sometimes I cannot shutdown the sound and have to unplug the Raspberry. Sometimes remote works correctly, sometimes it don't, then I use the apps on my Iphone(Plex for Plex, a XBMC tool for xmbc).
Then I also have DLNA as last resort which plays some movies too.

It drives me nuts, please advise howto have a hassle free solution which plays it all without problems. I would like to just put my movies on the Synology NAS, then watch them with subtitles (if they are not in dutch) on my Raspberry Pi (which is plugged into my tv).

Please advise.
Hi ,

I want to play XMBC (Add on NaviX) without connecting my laptop in the TV .
I intend to buy Linksys Router EA6900 , which supports DLNA Certified Media Server
Easily search for and play media (video, music, images) across the network.

So if XMBC can run with Linksys Router EA6900 , I do not need to buy Raspberry pi XMBC solutions.  If there is any other alternative solutions, please feel free to suggest.
Hi there,

I have bought a raspberry PI computer and installed CITADEL mail server on it..

its working fine but what I am not sure about is..

if I need to setup this on my iphone... via POP3 I not sure
of the SMPT name and mail server name.. or what I need to put on the client on the iphone..

Does anyone now of the mail and pop3 names etc..
Hi all,

I'm new to python and working with a raspberry pi. What I'd like to do is read in the text from a remote file, wait 30 seconds, then read it again. If it's different then I want it to print out that text in the command line.

For example:


I'd like that text read in. On the first run I want the text inside the file to go to the command prompt.
30 seconds later, (loop I guess) check the url again, if it's the same do nothing, else put the contents of the text file into the command prompt and press enter.

I'd need to be able to keep the loop going constanstantly (probably best to start the script at startup).

I really appreciate any help here with this.

Thanks in advance
I have a USB 3.0 Hub (http://www.amazon.com/gp/product/B005NGQWL2/ref=oh_details_o04_s00_i00?ie=UTF8&psc=1) and would like to attach it to my Raspberry Pi Model B.  The problem is it looks like this model of Raspberry Pi doesn't work with USB 3.0.  Since this hub is 2.0 compatible, I'm just wondering if it is possible to make some changes on the Raspbian (the Linux distribution comes with Raspberry Pi) to make it compatible?  Thanks.
I am thinking of creating a remote for my shades using an arduino or raspberry pi.  My shades are top down\bottom up, meaning there is a cord on each side.  Currently you need to pull the string to the side to unlock the string, then pull up and down like a regular shade.

My plan was to break the locking mechanism so that if you pull the string, the shade goes up (or down) and  you need to hold it.  I need a pulley and motor so that when it is at the proper setting, the pulley would stop and be able to hold without power.

If I could find a motor like that, I would simply have to go in one direction to pull up, in the other direction to go down, then stop when at the right height.

I am building a home automation system that will be based on a Raspberry Pi. I mainly use Python for this project.

What I need is my users to be able to login to a website and control their home devices. Since there is not the possibility of using static IPs, commands cannot be sent directly to the Raspberries. So, I figured out it has to be a web application where users should deposit commands and Raspberries should enquire for commands according to their unique ID.

I am a beginner in web development, so I would like to ask for directions on how to move on this. Is there any commercial platform that I could integrate in my system? How should I approach this attempt? If I need to develop it from scratch, which methods do you suggest?

Thanks in advance,

I am trying to set up OpenVPN on my Raspberry Pi. I have been following this article:


Everything was going ok until  after the step from editing the easy-rsa/vars file. When I run this command:

 . ./easy-rsa/vars

I get the following error:

root@raspberrypi:/etc/openvpn# . ./easy-rsa/vars
bash: ”/etc/openvpn/easy-rsa”/whichopensslcnf: No such file or directory
NOTE: If you run ./clean-all, I will be doing a rm -rf on ”/etc/openvpn/easy-rsa”/keys

Open in new window

Any ideas?

I am having trouble getting a scrip to run automatically when the Pi is plugged in.  I have scheduled it with crontan with this line of code.

@reboot python /home/pi/Temp &

Then the first line of code I have in my python script is


Any help would be appreciated.

I set up a script to run in Crontab on my raspberry pi. When the pi boots the script won't start. If I run the script from the terminal like this:


it runs great. I need to run in Crontab as a background.

Any ideas?
Yesterday an expert help me get my script to stop delivering multiple messages. He did a great job! I would have contacted him directly, but this is the only way I know how to.

My script should run 24/7. However, after a couple of hours (an educated guess at best). It quits working. The way I know it quits working is because I don't receive the text messages the script sends when the garage door opens and closes.

Any ideas?

#! /usr/bin/env python
import commands
import smtplib
from email.MIMEText import MIMEText

ser = 'gpio read 1'  #Change /dev/ttyACM0 to your com port

GMAIL_LOGIN = '***********@gmail.com'
GMAIL_PASSWORD = '************'
SEND_TO = '**********@txt.att.net'
def send_email(subject, message, from_addr=GMAIL_LOGIN, to_addr=SEND_TO):
    msg = MIMEText(message)
    msg['Subject'] = subject
    msg['From'] = from_addr
    msg['To'] = to_addr
    server = smtplib.SMTP('smtp.gmail.com',587) #port 465 or 587
    server.sendmail(from_addr, to_addr, msg.as_string())

last_result = ""

while 1: #loop forever
   result = commands.getoutput(ser)
   if result.strip() == "1" and result.strip() != last_result:
    status=open('garage.txt', 'w')
    status.write("Garage door is open")
    send_email('OPEN', 'The garage door is open')
    last_result = result.strip();
#    print("open")

   elif result.strip() == "0" and …
Hi all

I am new to Linux. To start off I have purchased a Pi and what to setup a FTP server on this with a web GUI to allow me to manage it. Create users manage the folders etc.

Can anyone advise the best version of Linux to install and then the best FTP server and GUI.

Many thanks
I am trying to compare the output from a command in Python on my Raspberry Pi.

Here is what I have:

import commands
cmd = 'gpio read 1'
output =  commands.getoutput(cmd)
print output

The code is reading a pin on the raspberry pi to see if it is open or closed. The value will either be 0 or 1. I want to compare the output and print a message. I would like the code to look like this.

import commands
cmd = 'gpio read 1'
output =  commands.getoutput(cmd)

if output == 1:
      print ('The door is open')
      print('The door is open')

When I write it like that I get a syntax error.

Please help. Thanks!
I am controlling my garage door using a Raspberry Pi. I want to add a magnetic switch to tell if the door is open or closed.

Any idea where to start?

Here is what I have so far:

<!DOCTYPE html>

<html lang="en">
  <meta name="generator" content=
  "HTML Tidy for Linux (vers 6 November 2007), see www.w3.org">
  <meta charset="utf-8">

  <title>Garage Remote</title>
  <!--Begin code to open and close garage door-->

  <script type="text/javascript">

  window.onload = function(){

        buttonOff = document.getElementById('submitPressed');
        buttonOff.onClick = relayOff;

  function relayOff(){

        hidden = document.getElementById("total");
        hidden.value = "pressed";

        form = document.getElementById("relay");
        form.method = "GET";
        form.action = "remote.php";
  </script><!--End code to open and close garage door-->
  <!--Begin code to color button when pressed-->

  <script type="text/javascript">
function setColor(btn,color){
    var property=document.getElementById(btn);
   if (window.getComputedStyle(property).backgroundColor == 'rgb(244, 113, 33)') {
    else {
      property.style.backgroundColor = "#2159F4";
  </script><!--End code to color button when pressed-->

  <form id="relay" action="remote.php" method="get">
    <input type="button" id="submitPressed" style=
    "border:1px solid #000; font-size:80px;" …

I have a raspberry pi, a wipi wifi dongle, an old HP Network printer and raspbian installed.  

I want to create a CLIENT BRIDGE. The pi will be connected on the enterprise wifi network and the printer will be connected with a cable to the pi. 

I have 3 weeks of testing done while looking at all the tutorials available on the web with no luck. Since I'm a windows guy (13 years as a network admin) I'm going back to the basics. What do I need in linux (application) to achieve this?

My ideal setup would be:
- printer on the same subnet as the wifi (no dhcp done by the pi)
- printer with a static ip

What I know so far:
- I know that I'm able to connect to my wifi with the wipi dongle
- I know that the dongle is able to be configured in AP mode

I have been following the instructions in the August 2013 "Nuts and Volts" article on page 50 "More Raspberry Pi, Anyone?" I followed the instruction pretty well.  No I have been able to type in

mpc add
mpc play

and the unit works - I hear Beatles music.  It took a lot of debugging and I hate to mess things up.

  Is there a clever raspberry program I can download to help me get music that I want to listen to?
Kali Linux Raspberry PI startx command not working

I am trying to install Kali Linux onto a new Raspberry PI which is the newer model ver B

I have downloaded the latest Kali Linux from

This is the version I have downloaded


I have installed it onto a 16GB PNY SD card it boots up fine.

I log in as root with password toor

I cannot as outlined in the instructions get the Kali Gui to start

It says type startx

When I do this after about 5 seconds it says startx command not found

I have tried several things but just cant get the Kali gui to boot up

I am a total newbie to Linux but am learning fast

What am I missing?

Raspberry Pi





The Raspberry Pi Foundation works to put the power of digital making into the hands of people all over the world, so they are capable of understanding and shaping our increasingly digital world, able to solve the problems that matter to them, and equipped for the jobs of the future.

We provide low-cost, high-performance computers that people use to learn, solve problems and have fun. We provide outreach and education to help more people access computing and digital making. We develop free resources to help people learn about computing and how to make things with computers, and train educators who can guide other people to learn.