Skip to content

Remote control

wmeizhi edited this page Dec 20, 2016 · 1 revision

In order to operate the vehicle wireless, we access to the Raspberry Pi without a monitor, a mouse, or a keyboard. Therefore, we set up a remote desktop and control the Pi board with the help of Putty and VNC.

Set up the Raspberry Pi and the Laptop

Preparatory work on the Raspberry Pi

  • Enable SSH and VNC function using sudo raspi-config from terminal.
  • Install VNC using sudo apt-get update, sudo apt-get install tightvncserver from terminal.
  • Start VNC server using vncserver :1 from terminal, and create an eight digits password during the first time setup.

Preparatory work on the laptop

Connect the laptop to the Pi's shell

  • Check the Raspberry Pi's IP address using hostname -I from terminal.
  • Enter the Pi's IP address into PuTTY Configuration and choose SSH as connection type.
  • Log in the Raspberry Pi with the correct username and password.

Create remote desktop on the laptop

  • Run VNC on the Raspberry Pi using vncserver :1 from SSH terminal.
  • Open the VNC viewer and enter the Pi's IP address append with :1.
  • Press Continue if see a warning message.
  • Enter the eight digits password that created earlier, and create the remote desktop.

Tips

To avoid checking the Pi's IP address every time that needs to set up a remote desktop, we can fix the Raspberry Pi's IP address.How to setup a static IP address on your Raspberry Pi