Thursday, April 26, 2018

Installing software onto the Raspberry Pi- Part 1

Now that the Raspberry Pi can access the internet, we can begin adding and configuring software.
One of the first things to do is log into the the RPi via SSH and run raspi-config:

We will:
  • Update raspi-config
  • Set Localization options
    • Change Locale to 'en_US.UTF-8 UTF-8'
    • Change Timezone to US-Eastern
    • Change Keyboard Layout to match the new locale
    • Change Wi-fi Country to 'US United States'
  • Under Advanced Options
    •  Expand Filesystem to use the entire microSD card
Now that we have plenty of space on the system disk, we can start installing software.
But how? Some options:
  • From the RPi SSH terminal command line
  • By downloading software packages onto the laptop and transferring them to the RPi for installation (WinSCP is good for this):
  • Installing via the Rasperry Pi Desktop's Applications Menu -> Preferences -> Add/Remove Software.
    • But we are running headless and there's no Desktop GUI!
While the first two options can be followed immediately, let's figure out how to get access to the RPi  Desktop. We want to use VNC (Virtual Network Computing) for graphical desktop sharing:


On your Raspberry Pi, run the following commands to make sure you have the latest versions of software, including VNC Connect:


Now, enable VNC Server by running raspi-config and doing the following:
  • Navigate to Interfacing Options.
  • Scroll down and select VNC > Yes.

On the laptop you will need to download and install VNC Viewer so you can connect to VNC Server that is running on the RPi:


Once it is installed, we can start VNC Viewer on the laptop, direct it to the IP address of the RPi and login with our default credentials:

 And we are in!:


Next steps: 

1 comment:

  1. When installing the Raspbian release 2018-04-18, I got errors when attempting to change localization settings with raspi-config

    ("locale: Cannot set LC_CTYPE to default locale: No such file or directory")

    I was able to fix this by adding a line to /home/pi/.bashrc:

    export LC_ALL=C

    I then re-sourced the file before doing 'sudo raspi-config'

    ReplyDelete