Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How to correctly configure VNC Server for remote access to Raspberry Pi

As a beginner, I spent a day installing VNC Server. I took many detours. Now I will release the correct method through this thread, hoping that other beginners can save time and achieve fast installation

Step 1: First uninstall the VNC software included with Kali


Code
sudo apt-get purge tightvncserver

Step 2: Go to the official website to download the Raspberry Pi version of VNC Server, remember to choose ARM64


Step 3: Enter the download directory and install a new VNC Server


Code
sudo dpkg -i VNC-Server-7.5.1-Linux-ARM64.deb

(Replace VNC-Server-7.5.1-Linux-ARM64.deb with the latest version you downloaded yourself)

Step 4: Start VNC Server


Code
sudo raspi-config

If an error is reported, please run it


Code
apt --fix-broken install

Restart the VNC Server, and then you can successfully connect through the VNC Viewer client on another computer. Implement remote access to Raspberry Pi
You could probably add a command to download the VNC server. Something like:
Code
wget https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-7.5.1-Linux-ARM64.deb


So you could do:
Code
sudo apt-get purge tightvncserver
wget https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-7.5.1-Linux-ARM64.deb
sudo dpkg -i VNC-Server-7.5.1-Linux-ARM64.deb
rm VNC-Server-7.5.1-Linux-ARM64.deb
sudo raspi-config
(Jul 5, 2023 07:41 PM)Mr. Robot Wrote:  You could probably add a command to download the VNC server. Something like:
Code
wget https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-7.5.1-Linux-ARM64.deb


So you could do:
Code
sudo apt-get purge tightvncserver
wget https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-7.5.1-Linux-ARM64.deb
sudo dpkg -i VNC-Server-7.5.1-Linux-ARM64.deb
rm VNC-Server-7.5.1-Linux-ARM64.deb
sudo raspi-config

I have learned how to configure this and look forward to the next step of teaching😁
thanks for sharing your knowledge i am sure someone will find it very useful
(Jul 6, 2023 03:20 AM)0xCoder0x Wrote:  thanks for sharing your knowledge i am sure someone will find it very useful

Thank you, I hope it's useful for beginners😁


Possibly Related Threads...
Thread / Author Replies Views Last Post
by schassisFeb 23, 2025 06:25 AM 1 118 Feb 23, 2025 06:25 AM
Last Post: DramaKing
by ZahidtzDec 10, 2023 08:29 PM 3 170 Dec 10, 2023 08:29 PM
Last Post: ollyhill424
by cevapcici030Sep 16, 2020 11:06 AM 0 71 Sep 16, 2020 11:06 AM
Last Post: cevapcici030