How do I VNC into Kali via TigerVNC

Hello, I have a old computer which I recently Installed Kali on, I also have my newer, work computer. I want to be able to VNC into my old computer (kali) by using tigerVNC Viewer on my new one. How should I go about doing this, and is this possible?

You set up a vnc server on kali then use remote desktop to connect to it, this says ubuntu, but is the same process (you already have a desktop environment, so start from the server part);

https://www.cyberciti.biz/faq/install-and-configure-tigervnc-server-on-ubuntu-18-04/

1 Like

Thank you! This worked

It worked for a bit, now its saying:
New Xtigervnc server ‘kali:1 (kali)’ on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.aq8eXC/passwd :1 to connect to the VNC server.

=================== tail /home/kali/.config/tigervnc/kali:1.log ===================
X connection to :1 broken (explicit kill or server shutdown).

Mon Jan 20 09:39:30 2025
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
Killing Xtigervnc process ID 3263… success!

Session startup via ‘/etc/X11/Xtigervnc-session’ cleanly exited too early (< 3 seconds)!

Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
The X session cleanly exited!
The Xtigervnc server cleanly exited!

Thats a config issue in a file have a read of this;

From doing that I got, ┌──(kali㉿kali)-[~]
└─$ tigervncserver -xstartup /usr/bin/gnome-session

New Xtigervnc server ‘kali:1 (kali)’ on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.9Lq4g2/passwd :1 to connect to the VNC server.

tigervncserver: Can’t exec ‘/usr/bin/gnome-session’: No such file or directory

=================== tail /home/kali/.config/tigervnc/kali:1.log ===================
Can’t exec “/usr/bin/gnome-session”: No such file or directory at /usr/share/perl5/TigerVNC/Wrapper.pm line 1386.

Session startup via ‘/usr/bin/gnome-session’ exited with status 1!

Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
The X session exited with status 1!
Killing Xtigervnc process ID 966172… success!

┌──(kali㉿kali)-[~]
└─$ tigervncserver -xstartup /usr/bin/xterm

New Xtigervnc server ‘kali:1 (kali)’ on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.H3v_iP/passwd :1 to connect to the VNC server.

tigervncserver: Can’t exec ‘/usr/bin/xterm’: No such file or directory

=================== tail /home/kali/.config/tigervnc/kali:1.log ===================
Can’t exec “/usr/bin/xterm”: No such file or directory at /usr/share/perl5/TigerVNC/Wrapper.pm line 1386.

Session startup via ‘/usr/bin/xterm’ exited with status 1!

Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
The X session exited with status 1!
Killing Xtigervnc process ID 966471… success!

so your using the gnome desktop then?

this should help

Thank you, I have played around with this and finally got it working!

Yes, it is possible. First, on your Kali computer, install the TigerVNC server by running sudo apt install tigervnc-standalone-server. Then set a VNC password using vncpasswd. Start the VNC server with vncserver. It will show something like :1 at the end, which means the display number. On your new (work) computer, open the TigerVNC Viewer and connect to the Kali computer using its IP address followed by :1 (for example, 192.168.1.100:1). Make sure both computers are on the same network, and the firewall allows VNC connections.