Raspberry Pi reinstall Nov 2018

11/25/2018

The sd on one of my pi 3 was corrupted, was working before (24/7), I guess that must be too much rw for the sd. Good opportunity to reinstall from scratch the pi os, as so many changes since I last updated. Note the lastest version (V2.5, Nov18) , means you have to install node red manually (more later).

1. Download noobs in windows
2. Extract
3. Copy to sd (16g prefer)
4. insert into pi and boot (kb and mouse should work); plug in lan, or setup wan change keyoard to us
5. Follow inst to install raspbian (cup of coffee)
6. When Raspbian has been installed, click OK and your Raspberry Pi will restart and Raspbian will then boot up.
7. Set your Country, Language, and Timezone
8. Set resolution to cea 1280x720 to get bigger font

8. Pi will ask to update; when finish click reboot

Node-Red:
With newer release node red is not install by default, however on my installation (v2.5 Nov2018), node red works out of the box which surprised me. This node is not up to date and does not have pallette installed. 

Remote access (Headless):
Two methods for access: SSH (cmd line)  and GUI (VNC, etc)
As of the November 2016 release, Raspbian has the SSH server disabled by default. It can be enabled manually from the desktop:
Launch Raspberry Pi Configuration from the Preferences menu

  1. Navigate to the Interfaces tab
  2. Select Enabled next to SSH and VNC
  3. Click OK
  4. Another method to enable ssh is to:
    By placing a file named ssh, without any extension, onto the boot partition of the SD card from another computer. When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted. The content of the file does not matter; it could contain text, or nothing at all.

SSH: Once SSH is enabled
1. find ip (fling, advance ip scanner on pc, or via router), tip: once you found the mac addr, you can set static ip in router settings.
2. Use putty, PuTTY does not include an installer package: it is a stand-alone .exe file.

VNC:
1. First enable VNC in pi:

On your Raspberry Pi, run the following commands to make sure you have the latest version of VNC Connect:
sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

Now enable VNC Server. You can do this graphically or at the command line.

Download standalone real vnc viewer on computer

Backup

backup and clone : https://www.backup-utility.com/clone/clone-sd-card-to-larger-card-3889.html
or use win32 disk imager then etcher