Install Samba file sharing

| January 30th, 2016

Install Samba file sharing

sudo apt-get install samba

edit the /etc/samba/smb.conf

sudo nano /etc/samba/smb.conf

If you wish for the users home directories to be visable when a samba user has been authed then around line number 193 (press CRTL + C) to check the current line number, change “read only” to from yes to no.

 comment = Home Directories
 browseable = no
# By default, the home directories are exported read-only. Change the
 # next parameter to 'no' if you want to be able to write to them.
 read only = no

To add the whole system files to be visable accross the network add the following lines in the config file.

 comment = System
 path = /
 browseable = no
 writable = yes
 force user = root

Add a external usb drive as a network share

 comments = 2TB WD Passport USB Drive
 path = /media/Media
 valid users = osmc
 browseable = yes
 writable = yes
 force user = root

Restart the samba service

sudo service smbd restart

Add a samba user called “osmc”.

$ sudo smbpasswd -a osmc
  New SMB password:
  Retype new SMB password:
  Added user osmc.

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)

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

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 😉

I’ve now upgraded the Raspberry Pi to use Raspbian “wheezy” you can download the image and writing tool at it’s well worth upgrading as there have been a lot of tweaks and changes that will improve performance

Pi Case

| July 3rd, 2012

Just got my Pi Case in the post, really fast delivery, second case for my extra Raspberry Pi, this will be a media Pi, the other one with the breadboard slot will be for my GPIO projects.

Now to find the time to play about with it! 🙂

Raspberry Pi arrived

| July 2nd, 2012

My Raspberry Pi finally arrived, after every day I kept asking ‘Has it been delivered yet?’ and thankfully it has to much relief of my partner. Got it un-boxed and put into the case that I ordered from

The Debian “squeeze” image I created on my 32Gb mirco sd card worked, and it also had the correct resized partition. I resized the partition using gpart on my netbook with Ubuntu installed. As I found this was to be the easiest.


I also had a 8Gb micro sd card that was in my mp3 player, and after about 5hours of installing (mainly copying the root file system or the slow server…) I managed to install Raspbmc. The interface seems nice and smooth, and only a bit of lag between menus. Have not managed to wait for a video to copy across yet, but tested out some music  via streaming it from my ubuntu server, but this was laggy and kept on buffering, so think wifi is the way to go here, at least then you will get about 54Mbps rather than the 10Mbps the wired Ethernet port gives you.


After buying a breadboard from Maplins and some led’s and resisters from tandyonline I was able to play about with some GPIO stuff. I would say theMagPi magazine is very good for introduciton to the Raspberry Pi, also Gordon @ Dragon has a few projects and nice blog about the Raspberry Pi and has written a Arduino like program to controll the GPIO on the Raspberry Pi.

After compiling the wirePi library I was able to control the GPIO pins very easily, now thinking of a few projects to do.

RPi.GPIO Python

Also managed to get the RPi.GPIO Python installed and wrote a little script which controlled the led.

To install, type the following on the command line.

$ wget
$ tar zxf RPi.GPIO-0.1.0.tar.gz
$ cd RPi.GPIO-0.1.0
$ sudo python install


Neat little command line player that allows you to use the Raspberry Pi’s GPU and CPU the way it should be.. This comes preinstalled on the Wheezy image. Or if like me you are using the squeesy image then you need to install it via these commands at the command line.

$ wget
$ sudo dpkg -i omxplayer_0.0.1-arm.deb
$ sudo apt-get install -f

The web media player also seems quite good