Raspberry Pi with “Motion” and a “Raspberry Pi Camera Module”


To activate the Camera Module and be able to use it with Motion you need to probe it by entering this command line:

$ sudo modprobe bcm2835-v4l2

To start Motion as a Daemon (Service) you need to write:

$ sudo service motion start

To stop:

$ sudo service motion stop

To get the statis of the service:

$ sudo service motion status

How can you disabling the Raspberry Pi Camera Module Led?




sudo nano /boot/config.txt


SSH to your Raspberry Pi

Login to your Raspberry Pi with the default user/pass:

user: pi
pass: raspberry

Run the following in the terminal:

$ sudo raspi-config

Navigate to ssh, press Enter

Select Enable or Disable SSH server.


$ sudo reboot

After the Raspberry Pi is restarted check your ip-address with:

$ ifconfig

Write or note down the ip address!

It is also good to change password, so nobody else can get in. Do this by running:

$ sudo -i
$ passwd pi

And remember the password so you won’t forget :)

Then when you want to SSH to your Raspberry Pi from another computer, just enter:



Fixing the locale error on Debian Wheezy

When you get errors with running commands on your Raspberry Pi like “warning: Setting locale failed.” you can fix this by updating the locale file in the OS. You can do this by typing:

pi@raspberrypi ~ $sudo nano /etc/default/locale

on your Raspberry Pi command line or in your Terminal window from your Mac when connected to the Raspberry Pi.

Next you have to change the following lines within the editor that just opened: Continue reading

Access files on your Raspberry Pi from your Mac

To access the files on your Raspberry Pi on your Mac Finder you can install the appletalk protocol on the Pi by typing the following commands on the Raspberry Pi.

pi@raspberrypi ~ $sudo apt-get install netatalk

This lets you use the following (in the terminal on your Mac) to connect to the Pi

yourmac:~ username$ open afp:/

Now you will see the Raspberry Pi appearing in your Mac Network where you will need to login on (default user/pass), to see access the files and folders.

Next up is http://www.derkbraakman.com/fixing-locale-error-debian-wheezy/

Connecting with a remote desktop (VNC, Debian Wheezy)

You don’t need to connect to a external monitor when the Raspberry Pi is connected to a network. You can use Virtual Network Computing by installing tightvnc on your Raspberry Pi and using the pre installed “screen sharing” on your Mac.

First you need to install tightvnc on your Pi:

pi@raspberrypi ~ $sudo apt-get install tightvncserver

and run it

pi@raspberrypi ~ $tightvncserver

If you have a Mac you need to go to the “Finder” and select “Go > Connect to Server…” or use the Shortcut “CMD + K”

Continue reading