Check the status of the SD card before we begin:
$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 7948 MB, 7948206080 bytes
240 heads, 32 sectors/track, 2021 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe9142f04
Device Boot Start End Blocks Id System
/dev/sdc1 2048 15523839 7760896 b W95 FAT32
Fetch the files:
$ wget http://www.screenlyapp.com/latest-pro
[...]
Length: 687965333 (656M) [application/zip]
Saving to: `latest-pro'
[...]
$ wget http://www.screenlyapp.com/latest-pro.md5
[...]
Length: 66 [binary/octet-stream]
Saving to: `latest-pro.md5'
[...]
Verify the download:
$ cat latest-pro.md5
f0fe81ab9337aa94febb85962cea4874 2016-03-08-Screenly_Pro_4GB.zip
$ mv latest-pro 2016-03-08-Screenly_Pro_4GB.zip
$ md5sum -c latest-pro.md5
2016-03-08-Screenly_Pro_4GB.zip: OK
Flash out the image:
$ unzip -p 2016-03-08-Screenly_Pro_4GB.zip | sudo dd bs=32M of=/dev/sdc
0+34550 records in
0+34550 records out
3947888640 bytes (3.9 GB) copied, 395.227 s, 10.0 MB/s
Verify the result:
$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 7948 MB, 7948206080 bytes
245 heads, 62 sectors/track, 1021 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00014d34
Device Boot Start End Blocks Id System
/dev/sdc1 8192 122879 57344 c W95 FAT32 (LBA)
/dev/sdc2 122880 7710719 3793920 83 Linux
# IMPORTANT: Eject card and put it back in
$ sudo fsck.vfat /dev/sdc1
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
/dev/sdc1: 92 files, 3753/7161 clusters
$ sudo fsck.ext4 /dev/sdc2
e2fsck 1.42 (29-Nov-2011)
/dev/sdc2: clean, 82223/237568 files, 401880/948480 blocks