Installation
Download the latest Standalone image from here.
Then identify your SD card device. I use this way:
First, list your devices BEFORE you insert the SD card.
root@sysresccd /root % ls -l /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 10 Feb 20 18:53 4E363C88363C7357 -> ../../sda1 lrwxrwxrwx 1 root root 10 Feb 20 18:53 4FF6-D29B -> ../../sdb1
Then insert card into slot and list again.
root@sysresccd /root % ls -l /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 10 Feb 20 18:53 4E363C88363C7357 -> ../../sda1 lrwxrwxrwx 1 root root 10 Feb 20 18:53 4FF6-D29B -> ../../sdb1 lrwxrwxrwx 1 root root 10 Feb 20 18:54 5ff096ad-4d5e-4277-8e0a-b4351e452352 -> ../../sdc2 lrwxrwxrwx 1 root root 10 Feb 20 18:54 917E-484C -> ../../sdc1
Now you can copy the image:
root@sysresccd /root % cd /livemnt/boot/ root@sysresccd /livemnt/boot % ls -la *.img -rw-r--r-- 1 root root 1363148800 Feb 15 19:30 raspbmc-final.img -rw-r--r-- 1 root root 76800000 Feb 15 19:28 raspbmc-installer.img -rw-r--r-- 1 root root 1363148800 Dec 15 17:56 raspbmc-rc5-prebuilt.img root@sysresccd /livemnt/boot % dd bs=4M if=raspbmc-final.img of=/dev/sdc && sync 325+0 records in 325+0 records out 1363148800 bytes (1.4 GB) copied, 113.504 s, 12.0 MB/s
Done! Insert the cart into your PI and connect it to the power supply.
Setup NFS Share
NFS has less overhead in comparison to SMB, if you are good with NFS, set it up like described here.
To understand basically how to setup a share, see this article.
See my example:
On the file server, install:
root@nairobi / # apt-get install nfs-kernel-server root@nairobi / # mkdir -p /export/movies-en
Add this line to your /etc/exports file:
/export/movies-en 192.168.0.0/16(ro,no_subtree_check,nohide,async)
Edit your /etc/fstab file to mount the source to the share automatically during boot:
... your entries ... /media/movies/movies /export/movies-en none bind 0 0
Finally, reboot the NFS service to apply the config changes.
root@nairobi /export # /etc/init.d/nfs-kernel-server restart
Setup SMB Share
You can also use SMB for shares.
On the file server, install the packages and setup the shares in smb.conf
root@nairobi / # apt-get install samba smbclient root@nairobi / # vim /etc/samba/smb.conf [global] workgroup = smb security = share share modes = yes encrypt passwords = true [homes] comment = Home Directories browseable = no read only = yes create mode = 0750 guest ok = no [av-content] path = /export/ public = yes writable = no comment = audio video files printable = no guest ok = yes [my-pictures] path = /media/datadisk/shared/ public = yes writable = yes comment = personal pictures printable = no guest ok = no
Finally, restart the SMB service to apply the config changes.
Test your settings.
root@nairobi / # service smbd reload andre@nairobi ~ % smbclient -N '\\nairobi\av-content\' -c ls Anonymous login successful Domain=[SMB] OS=[Unix] Server=[Samba 4.1.17-Debian] . D 0 Sun Oct 11 22:02:10 2015 .. D 0 Thu May 14 19:08:22 2015 _videomisc D 0 Fri Jun 20 17:28:42 2014 _downloads D 0 Wed Oct 14 01:11:07 2015 _series D 0 Fri Jun 20 17:45:02 2014 _audio D 0 Fri Feb 6 00:17:21 2015 _dieterdata D 0 Sat Oct 10 07:06:48 2015 _movies D 0 Fri Jun 20 17:00:04 2014 _music D 0 Fri Jun 20 16:57:18 2014 44928 blocks of size 1048576. 25473 blocks available