Write raspbian image to SD card using Mac

Insert the SD card

Check for automatically mounted volumes

$ ls /Volumes/
MacBookSSD	boot

Identify mounted volumes

$ diskutil list
/dev/disk0 (internal, physical):
   #:                     TYPE NAME             SIZE       IDENTIFIER
   0:    GUID_partition_scheme                 *480.1 GB   disk0
   1:                      EFI EFI              209.7 MB   disk0s1
   2:                Apple_HFS MacBookSSD       479.2 GB   disk0s2
   3:               Apple_Boot Recovery HD      650.0 MB   disk0s3

/dev/disk1 (internal, physical):
   #:                     TYPE NAME             SIZE       IDENTIFIER
   0:   FDisk_partition_scheme                 *31.9 GB    disk1
   1:           Windows_FAT_32 boot             43.7 MB    disk1s1
   2:                    Linux                  31.9 GB    disk1s2

Unmount mounted volume

$ sudo umount /dev/disk1s1

Write the image to the SD card

$ sudo dd if=2017-07-05-raspbian-jessie-lite.img of=/dev/disk1 bs=1m

If you want to check the progress, press ctrl+t

$ diskutil eject /dev/disk1

Install Telldus-core for Tellstick Duo

Prereq is Raspbian Jessie Lite

Add the following line to your /etc/apt/sources.list:

deb http://download.telldus.com/debian/ stable main

Download and register Telldus public key

$ wget -q http://download.telldus.com/debian/telldus-public.key -O- | sudo apt-key add -

The key fingerprint is

$ 70C4 10C9 D73D 53E8 38B3 1C58 5A94 9181 E501 EA76
Telldus Technologies AB <info.tech@telldus.se>

Update the repository

$ sudo apt-get update

Install telldus-core and FTDI USB driver

$ sudo apt-get install telldus-core libtelldus-core-dev libftdi1


$ sudo init 6

Mount Raspberry Pi SD card on Mac

Using Homebrew, install osxfuse and ext4fuse

$ brew cask install osxfuse
$ brew install ext4fuse

Find the Raspberry Pi’s partition ID

$ diskutil list

Create a mount point

sudo mkdir /Volumes/rpi

Mount the drive

sudo ext4fuse /dev/disk2s2 /Volumes/rpi -o allow_other

Unmount the drive

sudo umount /Volumes/rpi

Tribute to Jeff Geerling https://www.jeffgeerling.com/blog/2017/mount-raspberry-pi-sd-card-on-mac-read-only-osxfuse-and-ext4fuse

Java keytool

List certificates

keytool -list -keystore keystore.jks -v

keytool -list -keystore server.p12 -storetype PKCS12 -v

Convert from JKS to P12

keytool -importkeystore -srckeystore keystore.jks \
-srcstoretype JKS -deststoretype PKCS12 -destkeystore keystore.p12

Convert from P12 to JKS

keytool -importkeystore -srckeystore keystore.p12 \
-srcstoretype PKCS12 -deststoretype JKS -destkeystore keystore.jks

Import a root or intermediate CA certificate to an existing Java keystore

keytool -import -trustcacerts -alias rootCA -file CAcert.crt \
-keystore keystore.jks