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

Microsoft Windows Server 2012 R2 Standard Evaluation Product Key

Microsoft Windows Server 2012 R2 Standard Evaluation D2N9P-3P6X9-2R39C-7RTCD-MDVJX DBGBW-NPF86-BJVTX-K3WKJ-MTB6V

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'

hmailserver: Notes from the field

hmailserver is one of free open source mail servers running on Microsoft Windows operating system.