How to Setup VNC

Manager
19 Apr 2022
Views 481

How to use VNC on a UR Robot


Step 1 (Hardware):

Below shows the setup this document is based on 

Picture 1 : Hardware Setup

Step 2 (Software):

Before Start, some software is needed:

Terminal : PuTTY (if you want to download click PuTTY)

FTP: WinSCP (if you want to download click WinSCP)


When you have downloaded and installed the above software on your PC, start WinSCP and Putty and connect them both to the robot – setup as below.
User=root
Password=easybot


Step 3 (prepare for Update):

  • Use WinSCP to search on the robot for the following file: /etc/resolv.conf
  • Then right click and choose “edit”
  • Modify the file and type in the IP of the DNS-Server (see picture 4)
  • Click save and close the edit window


  • Now search for the following file: /etc/apt/sources.list
  • Then right click and choose “edit”
  • Delete the whole text inside and copy the links below into the file (see picture 5)


(Q ROBOT UR Polyscope Compatibility 5.8 ~ 3.13 or later)



UR3.1 (USB-Stick):

deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free

deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free

deb http://http.debian.net/debian wheezy-backports main

  • Save and close the file sources.list



Step 4 (Update the System and install VNC):


  • Go into the program putty and type apt-get update
  • ID : root
  • PASSWORD : easybot  (It is invisible to enter the password, but it is written down, so you can press the Enter key after typing it all in)

  • You will see, that the robot will download several files from the internet
  • When finished, type apt-get install x11vnc to install the VNC Server on the robot

  • Go back to WinSCP and search for the following file: /root/run_gui.sh
    This will make the VNC on the robot auto start when PolyScope starts up.
  • Then right click and choose “edit”
  • Insert the following line: /usr/bin/x11vnc -display :0 -loop -passwdfile /etc/x11vncpassword -nossl -logfile /var/log/x11vnc &


  • Save and close the file


  • Go back to putty and type in the three commands below


  • echo "easybot" > /etc/x11vncpassword
  • chmod 400 /etc/x11vncpassword
  • chown root:root /etc/x11vncpassword

  • Reboot the robot


  • After running Q ROBOT, click the connection icon and input IP and Password.















Email: info@qnt.co.kr

Phone: +82 52-700-9686     

Opened: Mon - Fri (GMT+9) 09:00 - 18:00

               Sat/Sun - Closed for Public Hoilday


QNT Co., Ltd 44428, #502, 362-11, Jongga-ro, Jung-gu, Ulsan, Korea 


    Email: info@qnt.co.kr   |   Phone: +82 52-700-9686     

    Opened: Mon - Fri (GMT+9) 09:00 - 18:00

                   Sat/Sun - Closed for Public Hoilday

QNT Co., Ltd 44428, #502, 362-11, Jongga-ro, Jung-gu, Ulsan, Korea