Connect ROCK Pi via VNC |Install VNC server on your ROCK Pi 4

In this Tutorial we learn how to Connect ROCK Pi via VNC. This guide describes how to Install VNC server on your ROCK Pi 4. Here we use ROCK Pi 4 with Ubuntu system image.

Nowadays Rock Pi Boards are popular. Rock Pi is the best alternative of Raspberry Pi. Rock Pi 4 is a most popular SBC. Rock Pi Developed and Manufactured by Radxa. Radxa is a startup founded 2013, focusing on design, manufacture and sell Open Source Hardware products. Radxa also provides custom designing, prototyping and software/hardware integration services. Radxa® is pronounced as [reksə]. The name is from the Latin word radix which means root. Radxa® is a registered trade mark by Radxa Limited in Shenzhen, China(深圳市瑞莎科技).

Here a info post about Rock Pi Boards – Rock Pi Boards | Rock Pi 4 | Rock Pi X | Rock Pi N10

Connect ROCK Pi via VNC |Install VNC server on your ROCK Pi 4

  • Install VNC server
   sudo apt-get install xfce4
   sudo apt-get install vnc4server
   sudo apt-get install xrdp
  • Run the VNC server followed by setting password
   sudo vncserver
  • Edit the config file
   sudo vim ~/.vnc/xstartup
  • Change the contents to:
   #!/bin/sh
   unset SESSION_MANAGER
   unset DBUS_SESSION_BUS_ADDRESS
   [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
   [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
   vncconfig -iconic &
   xfce4-session & 
  • Restart the vncserver and xrdp
   sudo vncserver -kill :1      #Kill the vncserver process
   sudo vncserver               #Restart the vncserver
   sudo service xrdp restart    #Restart the xrdp

Install VNC client on your Linux PC

  • Install VNC Viewer

Download VNC Viewer and install it on your PC.

   sudo dpkg -i VNC-Viewer-6.19.325-Linux-x64.deb
  • Connect ROCK Pi 4

Power on your ROCK Pi 4 and make sure that it is connected to the network.

Type on your PC:

   vncviewer <IP address of ROCK Pi 4>:1

If you don’t know what the IP address of your ROCK Pi 4 is, type this on your ROCK Pi 4:

   ifconfig  #type the command, man config, to get some help

If the IP address of ROCK Pi 4 is 192.168.31.196, type vncviewer 192.168.31.196:1 to connect to it, and then input your VNC password can open the desktop.

Source – https://wiki.radxa.com/Rockpi4/vnc (official radxa wiki)

I hope you like this post. Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog.

Harshvardhan Mishra

Hi, I'm Harshvardhan Mishra. I am a tech blogger and an IoT Enthusiast. I am eager to learn and explore tech related stuff! also, I wanted to deliver you the same as much as the simpler way with more informative content. I generally appreciate learning by doing, rather than only learning. Thank you for reading my blog! Happy learning! Follow and send tweets me on @harshvardhanrvm. If you want to help support me on my journey, consider sharing my articles, or Buy me a Coffee!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: