Blinkerton Labs
  • Blog
  • Projects
    • AutoBoat
    • Blinkly Blink
    • Wireless Temperature Monitor
  • Reference
    • PCB Design
  • About

SSH and VNC with the Raspberry Pi

1/24/2015

 
I bought a Raspberry Pi a while ago, and finally decided to boot it up and get it working.

I chose the Raspbian image from the following link.
http://www.raspberrypi.org/downloads/

There is a great guide at the following link that I used to flash the SD card and get the Os running.
http://www.raspberrypi.org/documentation/installation/installing-images/windows.md

After flashing the SD card with the utility, I connected a USB mouse and keybaord, and a monitor with a HDMI-to-DVI connector.  Powered the board and it booted up on the first try.
In all, pretty painless.  I then plugged the Pi into my router directly with an Ethernet cable.

After some initial exploring, I wanted to be able to remote into the Raspberry Pi over my network.  Also, because I don't have a dedicated workspace right now, and the monitor was taking up living room space.  It wasn't appreciated much connecting the Pi to the television.

Going through the tutorial at the following link allowed me to SSH into my Pi using its IP address.
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh/overview

The SSH only gets you to a terminal, but I wanted to view the desktop.
From here I read some of the Getting Started with Raspberry Pi book, and found a good passage on page 31.
There it says to use TightVNC to get a desktop, and recommended the following link.
http://elinux.org/RPi_VNC_Server

I followed all the instructions and was able to get a vncserver up and running as far as I could tell.
I downloaded TightVNC for my Windows 7 desktop and tried connecting with the Pi's IP address as suggested in the instruction, but received an error about the device actively rejecting the connection.
More specifically...
Error in TightVNC Viewer: No connection could be made because the target machine actively refused it.
The following IP address ports were tried with no luck.
::1
::2
::5900

Through some searching I found  the following tutorial, saying much the same as the original link I followed.
https://learn.adafruit.com/adafruit-raspberry-pi-lesson-7-remote-control-with-vnc

Then I tried the TightVNC viewer again, instead using the Raspberry Pi's network name, raspberrypi, with the port, and it worked!
For example,,,
raspberrypi:1

Some of the tutorials explained how to write a script so the vncserver starts up at boot time, but for now, I'm still ok to SSH in and start one manually.

Comments are closed.

    Author

    Mainly random electronics projects.  Sometimes other topics.

    Archives

    January 2020
    March 2019
    January 2019
    July 2017
    April 2016
    January 2015
    September 2014
    March 2014

    Categories

    All
    Arduino

    RSS Feed

Proudly powered by Weebly