Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok - after TONS of troubleshooting, I managed to successfully launch a new wireshark GUI. For the benefit of others experiencing the same issue, here's my steps.

New configuration:

  • OS: Linux kali 5.4.83-Re4son-v7l+
  • Desktop: LXDE (lightweight X11 Desktop Environment)
  • HW: Raspberry Pi 4
  • Wireshark 3.4.9
  • VNC: x11vnc 0.9.16
  • Dummy monitor: xserver-xorg-video-dummy

Step 1: Install Dummy Monitor.

sudo apt install x11vnc xserver-xorg-video-dummy

Create xorg.conf file in /etc/X11/xorg.conf.d and /usr/share/X11/xorg.conf.d with the following contents for 1920x1080 resolution:

Section "Monitor"
  Identifier "Monitor0"
  HorizSync 28.0-80.0
  VertRefresh 48.0-75.0
  # https://arachnoid.com/modelines/
  # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
  Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection

Section "Device"
  Identifier "Card0"
  Driver "dummy"
  VideoRam 256000
EndSection

Section "Screen"
  DefaultDepth 24
  Identifier "Screen0"
  Device "Card0"
  Monitor "Monitor0"
  SubSection "Display"
    Depth 24
    Modes "1920x1080_60.00"
  EndSubSection
EndSection

Reboot

sudo reboot now

Step 2: Make sure Xorg is running.

ps wwwwaux | grep auth

You will get output like the following:

root       546  6.4  3.1 614984 122828 ?       Sl   06:14   1:52 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

Note the X Display is :0.

Step 3: Start x11vnc.

First create a VNC password.

x11vnc -storepasswd

Use the directory ~/.vnc to store the password file in.

Run the following command as sudo.

sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw -scale 1920x1080 -forever

Step 4: Launch VNC client session.

On the computer you want to VNC from, open the VNC client. I use macOS, so Go > Connect to Server ...

vnc://192.168.91.235:5901

Note we are using port 5901 as displayed when you ran the x11vnc command on the remote computer.

That's it!

The VNC session should be successful and you should be able to launch wireshark from the LXDE desktop.

HTH - There was tons of info out there using Google. This was a culmination of that info gathering.

Cheers, Randy

Ok - after TONS of troubleshooting, I managed to successfully launch a new wireshark GUI. For the benefit of others experiencing the same issue, here's my steps.

New configuration:

  • OS: Linux kali 5.4.83-Re4son-v7l+
  • Desktop: LXDE (lightweight X11 Desktop Environment)
  • HW: Raspberry Pi 4
  • Wireshark 3.4.9
  • VNC: x11vnc 0.9.16
  • Dummy monitor: xserver-xorg-video-dummy

Step 1: Install Dummy Monitor.

sudo apt install x11vnc xserver-xorg-video-dummy

Create xorg.conf file in /etc/X11/xorg.conf.d and /usr/share/X11/xorg.conf.d with the following contents for 1920x1080 resolution:

Section "Monitor"
  Identifier "Monitor0"
  HorizSync 28.0-80.0
  VertRefresh 48.0-75.0
  # https://arachnoid.com/modelines/
  # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
  Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection

Section "Device"
  Identifier "Card0"
  Driver "dummy"
  VideoRam 256000
EndSection

Section "Screen"
  DefaultDepth 24
  Identifier "Screen0"
  Device "Card0"
  Monitor "Monitor0"
  SubSection "Display"
    Depth 24
    Modes "1920x1080_60.00"
  EndSubSection
EndSection

Reboot

sudo reboot now

Step 2: Make sure Xorg is running.

ps wwwwaux | grep auth

You will get output like the following:

root       546  6.4  3.1 614984 122828 ?       Sl   06:14   1:52 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

Note the X Display is :0.

Step 3: Start x11vnc.

First create a VNC password.

x11vnc -storepasswd

Use the directory ~/.vnc to store the password file in.

Run the following command as sudo.

sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw -scale 1920x1080 -forever

Step 4: Launch VNC client session.

On the computer you want to VNC from, open the VNC client. I use macOS, so Go > Connect to Server ...

vnc://192.168.91.235:5901

Note we are using port 5901 as displayed when you ran the x11vnc command on the remote computer.

That's it!

The VNC session should be successful and you should be able to launch wireshark from the LXDE desktop.

HTH - There was tons of info out there using Google. This was a culmination of that info gathering.

Cheers, Randy

Ok - after TONS of troubleshooting, I managed to successfully launch a new wireshark GUI. For the benefit of others experiencing the same issue, here's my steps.

New configuration:

  • OS: Linux kali 5.4.83-Re4son-v7l+
  • Desktop: LXDE (lightweight X11 Desktop Environment)
  • HW: Raspberry Pi 4
  • Wireshark 3.4.9
  • VNC: x11vnc 0.9.16
  • Dummy monitor: xserver-xorg-video-dummy

Step 1: Install Dummy Monitor.

sudo apt install xserver-xorg-video-dummy

Create xorg.conf file in /etc/X11/xorg.conf.d and /usr/share/X11/xorg.conf.d with the following contents for 1920x1080 resolution:

Section "Monitor"
  Identifier "Monitor0"
  HorizSync 28.0-80.0
  VertRefresh 48.0-75.0
  # https://arachnoid.com/modelines/
  # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
  Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection

Section "Device"
  Identifier "Card0"
  Driver "dummy"
  VideoRam 256000
EndSection

Section "Screen"
  DefaultDepth 24
  Identifier "Screen0"
  Device "Card0"
  Monitor "Monitor0"
  SubSection "Display"
    Depth 24
    Modes "1920x1080_60.00"
  EndSubSection
EndSection

Reboot

sudo reboot now

Step 2: Make sure Xorg is running.

ps wwwwaux | grep auth

You will get output like the following:

root       546  6.4  3.1 614984 122828 ?       Sl   06:14   1:52 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

Note the X Display is :0.

Step 3: Start x11vnc.

First create a VNC password.

x11vnc -storepasswd

Use the directory ~/.vnc to store the password file in.

Run the following command as sudo.

sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw -scale 1920x1080 -forever

Step 4: Launch VNC client session.

On the computer you want to VNC from, open the VNC client. I use macOS, so Go > Connect to Server ...

vnc://192.168.91.235:5901
vnc://192.168.91.235:5900

Note we are using port 5901 5900 as displayed when you ran the x11vnc command on the remote computer.

That's it!

The VNC session should be successful and you should be able to launch wireshark from the LXDE desktop.

HTH - There was tons of info out there using Google. This was a culmination of that info gathering.

Cheers, Randy