Results 1 to 2 of 2

Thread: Kali noVNC as a service

  1. #1
    Join Date
    2013-Jul
    Posts
    3

    Kali noVNC as a service

    I used
    "Kali In The Browser (noVNC)" - https://www.kali.org/docs/general-us...li-in-browser/
    tutorial on installing and setting up noVNC - all good. Now I am trying to set it up as a service and it doesn't work.

    Here are my files:
    x11vnc.service
    Description="x11vnc"
    Requires=display-manager.service
    After=display-manager.service

    [Service]
    ExecStart=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth guess -rfbauth /etc/x11vnc.pass
    ExecStop=/usr/bin/killall x11vnc
    Restart=on-failure
    Restart-sec=2

    [Install]
    WantedBy=multi-user.target
    novnc.service
    [Unit]
    Description = start noVNC service
    After=syslog.target network.target

    [Service]
    Type=simple
    User=kali
    ExecStart = /usr/share/novnc/utils/novnc_proxy --listen 8081 --vnc localhost:5900

    [Install]
    WantedBy=multi-user.target
    Journal:
    Dec 11 08:52:55 kali-raspberry-pi novnc_proxy[4140]: 192.168.8.103 - - [11/Dec/2022 08:52:55] 192.168.8.103: Plain non-SSL (ws://) WebSocket connection
    Dec 11 08:52:55 kali-raspberry-pi novnc_proxy[4140]: 192.168.8.103 - - [11/Dec/2022 08:52:55] 192.168.8.103: Path: '/websockify'
    Dec 11 08:52:55 kali-raspberry-pi novnc_proxy[4140]: 192.168.8.103 - - [11/Dec/2022 08:52:55] connecting to: localhost:5900
    Dec 11 08:52:55 kali-raspberry-pi novnc_proxy[4140]: 192.168.8.103 - - [11/Dec/2022 08:52:55] Failed to connect to localhost:5900: [Errno 111] Connection refused
    Dec 11 08:52:56 kali-raspberry-pi novnc_proxy[4141]: 192.168.8.103 - - [11/Dec/2022 08:52:56] 192.168.8.103: Plain non-SSL (ws://) WebSocket connection
    Dec 11 08:52:56 kali-raspberry-pi novnc_proxy[4141]: 192.168.8.103 - - [11/Dec/2022 08:52:56] 192.168.8.103: Path: '/websockify'
    I didn't make any changes, why I am getting "websockify" error?

  2. #2
    Join Date
    2021-May
    Location
    UK
    Posts
    784
    You have a permissions issue stopping the VNC server from connecting to the local host;

    11/Dec/2022 08:52:55] Failed to connect to localhost:5900: [Errno 111] Connection refused

Similar Threads

  1. Replies: 2
    Last Post: 2022-10-11, 11:24
  2. Replies: 0
    Last Post: 2022-04-13, 15:26
  3. VSFTPD Kali Linux Service Issues.
    By g.servinet in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2016-09-24, 15:25

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •