Skip to main content

[RaspberryPi]: Notes from the fields

Raspberry Pi 2 Model B v1.1
Men may come and men may go…..but Pi goes on for ever.

— George Augustus Sala

One of my 2015 Christmas gifts is a Raspberry Pi 2 Model B v1.1.
Thank you Santa Claus from Australia!

Take a quick look at the specification:

  • 100 Base Ethernet
  • 4 USB ports
  • 40 GPIO pins
  • Full HDMI port
  • Combined 3.5mm audio jack and composite video
  • Camera interface (CSI)
  • Display interface (DSI)
  • Micro SD card slot
  • VideoCore IV 3D graphics core
Raspberry Pi 2 Model B v1.1 Ports

After about one hour reading documentation, downloading and installing NOOBS and then RASPIAN, I can ssh to it from my laptop with default login (pi) and password (raspberry).

Updated 31-08-2018: Download and burn Raspian Stretch to SD Card. Follow this simple awesome guide to create an empty file named ssh at the root to enable ssh so we can connect via ssh for the first time.


Default login

login as: pi
password: raspberry


Check hardware version

$ cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 44.80
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

...

Hardware        : BCM2835
Revision        : 0000
Serial          : 0000000016e30c58
$

Information about Broadcom chip BCM2835: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835/

Or run 'cat /proc/device-tree/model' command

$ cat /proc/device-tree/model
Raspberry Pi 2 Model B
$

Run update [after more than one year without turn it on]

sudo apt-get update
sudo apt-get upgrade

Run raspi-config

sudo raspi-config
change default password
enable ssh
change timezone

Install ftp client

sudo apt-get install ftp

\

Install Node Package Manager

sudo apt-get install npm



Try connecting to AWS IoT




Prepare to connect to IBM Watson IoT Platform




#Prepare Raspberry Pi 2 to connect to IBM Bluemix
#Download iot installer
curl -LO https://github.com/ibm-messaging/iot-raspberrypi/releases/download/1.0.2.1/iot_1.0-2_armhf.deb 

#Install the package
sudo dpkg -i iot_1.0-2_armhf.deb 

#Verify the iot process is running
service iot status

#start the iot process
sudo service iot start

#stop the iot process
sudo service iot stop

#Find the MAC address of your Raspberry Pi
service iot getdeviceid

#Enter your MAC address here to visualize your data https://quickstart.internetofthings.ibmcloud.com/?deviceId=#/

#uninstall the package
sudo dpkg -P iot


Cleanup /var/apt/cache directory

sudo apt-get clean

As illustrated below, 822MB is reclaimed after running sudo apt-get clean command.

Popular posts from this blog

Powershell: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.

Linux command: Check Current Shell

What is your current shell ?

Java: Free Online Courses

The Java™ Tutorials by Oracle The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". https://docs.oracle.com/javase/tutorial/ Learn to Program in Java at edX.ogr Get started on the path to becoming a software engineer by learning core coding skills in Java—one of the most popular programming languages. https://www.edx.org/course/learn-to-program-in-java-0 Java Tutorial by javapoint.com https://www.javatpoint.com/java-tutorial Java Tutorial by SoloLearn.com I love SoloLearn because I can learn Java - and other popular programming languages - anywhere, any time on your mobile devices. https://www.sololearn.com/Course/Java/ Java on Azure https://docs.microsoft.com/en-us/learn/paths/java-on-azure/