Archive for the Raspberry Pi Category

OnionPi

| June 23rd, 2013

Tor on the Raspberry Pi After following the adafruit via this page http://learn.adafruit.com/onion-pi?view=all which sets up a default wheezy image to a wifi access point and then shows you how to install tor and get it configured to browser anonymously using the tor proxy. For people who don’t want to go thought the hassle with setting up the software, I’ve made my image file available. This is the default wheezy 2013-05-25 image (.img file) with the installed software for using onion pi. Download the OnionPi wheezy image (5GB) 20-03-2014 Download link broken, will try and get another image sorted or a install script might be better so it self configures.. Sorry. The image was written to my 8GB SD card, but I have not resized the partition, so you should be able to resize if you copy it onto the same size card or larger. The default user is pi and password is the raspberry pi standard of ‘raspberry’ (would be good to change it) The wifi adaptor I’m using is the zd1211, if your Wifi Dongle differs you can test if it’s got AP capabilities by using the command iw list After writing the image to a SD card, booting up your pi, you should see a SSID of the name ‘AnoNet’. Connect to this with your Wifi device (I used my net-book) and you should be able to check if your browsing is now anonymous. 5d01cdd6dc3211e29c6822000a1f9688_7 The wifi key is ‘Raspberry’ (please note the upper case R) I did have a issue with connecting via Windows 7, but that was before i rebooted the Pi after setting up all the scripts following the adafruit tutorial, though I think there might be a issue with Windows 7 computer and the DHCP server that is running on the Pi.

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

Raspbmc Tweaks

| November 22nd, 2012

Cache Buffer Size
When raspbmc upgraded i found that I had some buffering problems with video’s hanging and waiting a long time for it to start playing again, after a few google searches I found you can change your buffer size.

Run this command

nano ~/.xbmc/userdata/advancedsettings.xml

And then add or modify the settings below (this will add 150Mb cache buffer to your pi)
<advancedsettings>
<network>
<cachemembuffersize>157286400</cachemembuffersize>
</network>
</advancedsettings>

Backup xmbc settings

Tar up your .xbmc settings

cd ~
tar -czf backup.tar.gz .xbmc/

Then copy this tar to another place, either via scp or sftp.

To restore run the following commands
sudo initctl stop xbmc; tar -xzf backup.tar.gz; rm backup.tar.gz; sudo initctl start xbmc

List users
Find out what users are on your system.
cat /etc/passwd |grep "/home" |cut -d: -f1

Find Raspbmc version
Usefull if you want to know if the auto update is working, or if your on the latest RC version.

cat /scripts/upd_hist/build_info

My output was:-

pi@raspbmc:~/.xbmc$ cat /scripts/upd_hist/build_info
Raspbmc Testing Branch, with Hard Floating Point
Release Candidate 5, Built: 20121107

: XBMC / Raspbmc kept buffering

| November 21st, 2012

: XBMC / Raspbmc kept buffering. Very handy post will try this fix when i get home, but after a reinstall it might have also fixed the issue

RISC OS for Raspberry Pi | Raspberry Pi. Well Risc OS is now released for the Pi, going to gets this installed and dig out my old A5000 to copy over my files, hopefully I can get ‘Ibex the Viking’ working on it. 🙂 Along with some other Acorn games I have and might even try and get my old BBS running too.. time to dig out my old 56k modem.. I knew there was a reason I was keeping hold of it 😉