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

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

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