Uncategorized

How to install Raspberry Jessie in a sd card + Installing Docker

Download OS

Usually, the sd card is pre-installed with NOOBS os for raspberri pi.

We are installing raspberrian Jessie here.

Go to https://www.raspberrypi.org/downloads/

Select Raspbian. Choose ‘Raspbian Jessie with PIXEL’ and download Zip.

Unzip it.

Connect micro sd card

Put the micro sd card in a card reader and connect to your computer.

If the card does not show up in ubuntu machine, run this command :

sudo modprobe -r r852; sudo modprobe -r sdhci_pci; sudo modprobe r852; sudo modprobe sdhci_pci

Check the card in the card reader.

sudo fdisk -l

It will list the available disks in below format:

“Disk /dev/sda: 500.1 GB, 500107862016 bytes”

Another way to check drive:

ls -la /dev/sd*

Read the instructions here as well:

https://www.raspberrypi.org/documentation/installation/installing-images/linux.md

Installing Raspberrian Jessie

Write below command to write the image on sd card:

sudo dd bs=4M if=2016-05-27-raspbian-jessie.img of=/dev/sdd

Put the card in raspberry pi, and start your raspberry pi.

Install docker

One your raspberry pi is up, open a terminal and run,

Sudo apt-get update
Sudo apt-get upgrade

 

Run the following to install docker in raspberry pi:

$ curl -sSL http://downloads.hypriot.com/docker-hypriot_1.10.3-1_armhf.deb > /tmp/docker-hypriot_1.10.3-1_armhf.deb
$ sudo dpkg -i /tmp/docker-hypriot_1.10.3-1_armhf.deb
$ rm -f /tmp/docker-hypriot_1.10.3-1_armhf.deb
$ sudo sh -c 'usermod -aG docker $SUDO_USER'
$ sudo systemctl enable docker.service

Now, the raspberry pi support docker by default. Follow here, to install:

https://www.raspberrypi.org/blog/docker-comes-to-raspberry-pi/

The version here is 1.12.3.

 

Change keyboard layout

Follow the instructions here:

https://thepihut.com/blogs/raspberry-pi-tutorials/25556740-changing-the-raspberry-pi-keyboard-layout

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s