Archive for May, 2013

Raspberry Pi Camera

| May 18th, 2013

Unboxing the Raspberry Pi Camera

Installing the camera module

Raspberry Pi Camera

Camera from the outside

Source Code : https://bitbucket.org/gringog/raspberry-pi-projects/src/df160e826ba3ef35e65d608ae4eaf80e9d1cbe5a/camera?at=master

Saving the files to a samba share

sudo mount -t cifs -o username=pi,password=raspberry,rw,file_mode=0777,dir_mode=0777 //192.168.0.24/devices/My\ Passport/Camera /var/tlcam/net

Final result

The 5MP camera stores each jpeg about 2.5Mb, so a few hours can take up a lot of disk space, i mounted my external usb drive so i could save directly to that rather than using the R/RW of the SDCard.

Samba

| May 18th, 2013

Install Samba

sudo apt-get install samba samba-common-bin

edit /etc/samba/smb.conf

[homes]
comment = Home Directories
browseable = no

# read only = yes
writeable = yes

Restart Samba, with::

sudo service samba restart

Set the password for the pi user so you can login via another comptuer.

sudo smbpasswd -a pi

Understanding Linux CPU Load – when should you be worried?.