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

Wireguard VPN: Notes

Notes while trying Wireguard VPN on some of my testbeds.

Docker for Windows: Access Denied

Today, I get this error when running Docker for Windows on Windows 10 Build 1803. So, I check my current username (run whoami ) and add that user to docker-users local group, which has only NT AUTHORITY\SYSTEM account in members list. I must log out and log in again to run Docker for Windows.

Windows Command: arp - Address Resolution Protocol

Notes from daily work situation. While troubleshooting HSRP, I need to delete arp table on my computer. arp -d * Take a look at other options with arp command: C:\Users\Administrator>arp /? Displays and modifies the IP-to-Physical address translation tables used by address resolution protocol (ARP). ARP -s inet_addr eth_addr [if_addr] ARP -d inet_addr [if_addr] ARP -a [inet_addr] [-N if_addr] [-v] -a Displays current ARP entries by interrogating the current protocol data. If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed. If more than one network interface uses ARP, entries for each ARP table are displayed. -g Same as -a. -v Displays current ARP entries in verbose mode. All invalid entries and entries on the loop-back interface will be shown. inet_addr Specifies an internet address. -N if_a...