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

In this tutorial we learn How to install VNC Server on your ROCK Pi 4. So we use the Ubuntu image on Rock Pi 4.

Recommended : ROCK Pi 4 : Overview | Installation

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 and setting password
   sudo vncserver
  • Edit the config file
   sudo vim ~/.vnc/xstartup
  • Change the contents to:
   [ -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 PC run on linux

  • Installation

You need a VNC-Viewer-6.19.325-Linux-x64.deb pack click here download it now.

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

Power on your ROCK Pi 4 and ensure it connect the network.

Type on your PC:

   vncviewer 'this is your ROCK Pi 4's IP address':1

If you don’t known what your ROCK Pi 4’s IP address type this on your ROCK Pi 4 you can see it:

   ifconfig         #type 'man config' can get help for ifconfig

If your ROCK Pi 4’s IP address is you type vncviewer can connect it, and then input your VNC password can open the desktop.

Explore some more Rock Pi 4 Stuff:

I hope you like this post “Install VNC server on your ROCK Pi 4”. Do you have any questions? Leave a comment down below!

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

You may like also:

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. If you want to help support me on my journey, consider sharing my articles, or Buy me a Coffee! Thank you for reading my blog! Happy learning!

Leave a Reply