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 autostart on boot

We want x11vnc to start automatically when we reboot or power on the Pi. Hence, create a script named x11vnc.service at location /lib/systemd/system/, perform the following:

$ sudo nano /lib/systemd/system/x11vnc.service

While editing, add the following lines:

[Unit]Description=Start x11vnc at startup.After=multi-user.target[Service]Type=simple# If  using a passwordExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/pi/.vnc/passwd -rfbport 5900 -shared[Install]WantedBy=multi-user.target

Then, enable and start the newly created service:

$ sudo systemctl daemon-reload$ sudo systemctl enable x11vnc.service$ sudo systemctl start x11vnc.service

To connect with the RealVNC viewer from ...

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