Showing posts with label vnc. Show all posts
Showing posts with label vnc. Show all posts

Monday, May 15, 2023

Wireshark does not work with Tightvncserver

Using kali linux on raspberry pi 4 but wireshark does not work with tightvnc server...  According to this issue report, it's the issue with Qt 

Version of Kali linux I'm using:

$ cat /etc/os-release                       

PRETTY_NAME="Kali GNU/Linux Rolling"

NAME="Kali GNU/Linux"

VERSION="2023.1"

VERSION_ID="2023.1"

VERSION_CODENAME="kali-rolling"

ID=kali

ID_LIKE=debian

HOME_URL="https://www.kali.org/"

SUPPORT_URL="https://forums.kali.org/"

BUG_REPORT_URL="https://bugs.kali.org/"

ANSI_COLOR="1;31"

To fix this issue, changing from "tightvnc" to "tigervnc-standalone-server" and confirmed that the issue is actually fixed

Steps to install and my config:

1. Fist install "tigervnc-standalone-server"
$ sudo apt install tighervnc-standalone-server
After this step, "update-alternatives" will change the link of "vncserver" from "/usr/bin/tightvncserver" to "/usr/bin/tigervncserver"

2. Generate password
$ vncpasswd

3. Then create "/etc/systemd/system/vnc-server.service" file as below:
$ cat /etc/systemd/system/vnc-server.service
[Unit]
Description=VNC Server

[Service]
ExecStart = sudo -u kali vncserver -geometry 1440x900 :1 -localhost=0
ExecStop = sudo -u kali vncserver -kill :1
Type = forking

[Install]
WantedBy = multi-user.target

After this just enable/start the service...

Note: "-localhost=0" option is intentionally used in my environment (not secured) because I just want to directly connect to the VNC service, without using a SSH tunnel. By default this option of "tigervncserver" is "-localhost=1"