Wednesday, December 17, 2014

Raspberry pi running SSH, lxsession, and Motion


This screenshot shows RPi with SSH enabled, and connected via a Ubuntu laptop in a headless way. The RPi is running Motion with an old wedcam.

To connect to RPi using the laptop, do
sudo ssh -X pi@192...
And then use lxsession to open x window.

The screenshot shows the Pi window is merged with the Ubuntu window. The left bar is for Ubuntu. The bottom bar lists all the programs running in both Pi and Ubuntu. The bottom right shows the Pi's CPU usage, time, etc.

Note that Motion cannot be viewed in Chromium. I had to use Firefox to view it. The default port for it (unless the conf file is modified) is 8081. To start/stop/restart the service, do
sudo service motion start
sudo service motion stop
sudo service motion restart