Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

Setting up a VNC server (x11vnc)

OpenSSH allows us to log in remotely to our Raspberry Pi using a terminal. We will also equip our robot with another remote way of connection, that is, by accessing its desktop. In order to do this, we will use x11vnc, a package that implements a remote desktop using Virtual Network Computing (VNC):

  1. Update the Ubuntu repositories and install:
$ sudo apt-get update$ sudo apt-get install x11vnc
  1. Now create a password to connect with a client:
$ x11vnc -storepasswd
  1. Type in a password and remember it. The password is stored in /home/pi/.vnc assuming that the current user is pi. Then, start the x11vnc server:
$ sudo x11vnc -auth guess -forever -loop -noxdamage -repeat \ -rfbauth /home/pi/.vnc/passwd -rfbport ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ROS for Robotics Programming

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content