My configuration:
Home Computer: Apple Mac Mini
Monitor: LG 24" 21:9 split - one side for Mac, one side for RPi 3
Location: US
(micro) SD card: 16GB
These are my first steps and session.
==== Get Raspbian (lite)
— Download Raspbian (Raspbian Lite)
http://www.raspberrypi.org/downloads/
Unzip
=== get SD card formatter: https://www.sdcard.org/downloads/formatter_4/
install
=== Format the (micro) SD card
put micro SD card into SD card adapter
insert (micro) SD card adapter into computer
-Run SDFormatter
-select diskn/16.0GB/
-select Quick Format
-Set name
-Click Format
=== put Raspbian-lite on the (micro) SD card
BE VERY CAUTIOUS TO GET THE RIGHT DISK!!!!
-diskutil list (find 16GB card)
ARE YOU BEING VERY CAUTIOUS? what disk number is the sd card?
-(sudo) diskutil unmountDisk /dev/disk5
-cd /Volumes/Sg4TB_500G/PiStuff/OS_Images_and_more/Jessie
-sudo dd bs=1m if=2016-03-18-raspbian-jessie-lite.img of=/dev/rdisk5
3276800000 bytes transferred in 248.436511 secs (13189688 bytes/sec) 4 minutes
-eject the card (sudo diskutil eject /dev/rdisk5 )
==== Raspbian First Boot with kbd, monitor, (optionally mouse)
-insert micro SD card
-connect HDMI monitor cable
-insert USB wireless keyboard transciever
-insert USB mouse reciever
-connect power
=== First Login
The default login for Raspbian is username pi with the password raspberry.
Note you will not see any writing appear when you type the password.
This is a security feature in Linux.
Login: username: pi password: raspberry
=== Configure for locale, timezone, and expand filesystem to fill card
$ sudo raspi-config
(You can exit menus by using Tab key, move to Finish, enter key)
dn-arrow to 5 Internationalization Options
press enter key
(I'm in US so I want to change the default en-GB locale)
(opens with I1 Change Locale highlighted)
press enter key
dn-arrow till see [*] en_GB.UTF-8 UTF8
press space bar to un-asterisk
dn-arrow to en_US.UTF-8 UTF-8
press space bar to set asterisk
press Tab to get to <OK>
(opens to Default locale selection: None)
dn-arrow to en_US.UTF-8
Tab to <Ok>
press enter
dn-arrow to I2 Change Time Zone
press Enter
(I'm in US)
dn-arrow to America
press enter
up/dn-arrow to my timezone: NewYork is US Eastern time
press enter
- expand filesystem
- advanced options:
[def on] [Enable SSH],
[Enable Device Tree],
Enable SPI,
Enable load SPI kernel module
MemorySplit->128
Tab to OK, Tab to Finish
- OK the reboot
=== LOG IN Again
pi:raspberry
==== Check TEMPERATURE
To view the Pi's temperature
vcgencmd measure_temp
It's generally a good idea to keep the core temperature below 70 degrees
=== info about processor, memory, disk partitions ===
cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/partitions
cat /proc/version
free -h displays memory usage
=== get memory usage program htop
sudo apt-get install htop
htop
q to exit
===== Configuring WIFI DHCP for my SSID and WiFi password ====
$ sudo cp /etc/network/interfaces /etc/network/interfaces.bak
$ sudo cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.bak
$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
cntl-w
cntl-v
add at bottom:
network={
ssid=“xxxxSSIDxxxx”
psk=“myWIFIpassphrase”
key_mgmt=WPA-PSK
}
ctl-x,y,enter
=== cycle the wireless interface:
$ sudo ifdown wlan0
$ sudo ifup wlan0
=== To see if success:
$ ifconfig
should see
wlan0 ...
inet add: xxx.xxx.xxx.xxx ...
Record the ipV4 addresses:
wired:
wifi:
Pi3 : 10.0.0.xx
=====GETTING WIFI NETWORK DETAILS
To scan for WiFi networks, use the command
iwlist scan | less
=== check time zone
$ date to check if correct time
========= SSH from mac to Pi =====
(SSH enabled in raspi-config)
ssh -l pi 10.0.0.xxx (wireless)
or
ssh pi@10.0.0.xxx
password: raspberry
===== rebooting ====
sudo shutdown -r now (or sudo reboot)
==== check disk file systems =====
df -h
disk space of a directory: du -h
===== update and upgrade ===
$ sudo apt-get update
$ sudo apt-get upgrade
===== test internet speed ====
$ speedtest
Speedtest Result
2016Apr29: 29.5 Mbps Download, 11.0Mbps Up 38ms ping
2015Jan25: 19.3 Mbps Download, 5.5 Mbps Up 40ms ping
===== describe hardware =====
sudo apt-get install lshw
sudo lshw
=== check memory ===
sudo lshw
...
*-memory
description: System memory
physical id: 4
size: 862MiB
or
$ free -o -h
total used free shared buffers cached
Mem: 862M 232M 630M 5.9M 14M 177M
Swap: 99M 0B 99M
====== Testing Disk speed =====
hdparm -t /dev/mmcblk0 (sudo apt-get install hdparm)
reports
Pi3: 62 MB in 3.06s = 20.27 MB/sec
pi B+: 54 MB in 3s = 17.7 MB/s
======= check OS version ======
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
==== check Pi firmware version
vcgencmd version
uname -a
==== SHUTTING DOWN Pi ======
sudo poweroff ( or shutdown -h now )
Safe to remove power when green light blinks a bunch (12 times) and then stops blinking