Bobcares

NoVNC Kali Linux Command Line | An Introduction

by | Jan 12, 2024

Get ready to explore NoVNC on Kali Linux: Command Line Variations. Our Server Management Support team is here to help you with your questions and concerns.

Exploring NoVNC on Kali Linux: Command Line

Recently, one of our customers preferred a temporary solution rather than setting up Apache Guacamole as the remote gateway.

In this scenario, our experts recommended NoVNC. It offers a lighter approach and has less overhead as it offers fewer services. This is great when we need a quick “one-off connection” solution.

Although Apache Guacamole offers a comprehensive solution, there are times when a temporary or simpler approach is more suitable.

Exploring NoVNC on Kali Linux: Command Line

Today we are going to explore an ad hoc solution using NoVNC on Kali Linux.

How to Install NoVNC and x11vnc

  • Start the VNC Session
  • Run NoVNC
  • Enable SSH
  • Establish a Remote Connection

Let’s take a look at each step in detail:

  1. To begin with, we have to make sure to update and install the needed packages. In this case, we have chosen x11vnc as the VNC solution, but we can switch it for any VNC service as per our needs. However the support may vary for different services.

    kali@kali:~$ sudo apt update
    kali@kali:~$ sudo apt install -y novnc x11vnc

  2. Then, it is time to start the VNC Session. To maintain a secure connection, we have to run the VNC session on loopback, bypassing x11vnc’s in-built HTTP function that requires Java.

    kali@kali:~$ x11vnc -display :0 -autoport -localhost -nopw -bg -xkb -ncache -ncache_cr -quiet -forever

  3. Now, verify the VNC port in use as seen below:

    kali@kali:~$ ss -antp | grep vnc

  4. Next, start NoVNC, this will open port 8081/TCP:

    kali@kali:~$ /usr/share/novnc/utils/novnc_proxy --listen 8081 --vnc localhost:5900

  5. We can ensure the service is running by checking the port:

    kali@kali:~$ ss -antp | grep vnc

  6. Furthermore, enable SSH for added security:

    kali@kali:~$ sudo systemctl enable ssh –now

  7. Then, on the remote machine, SSH into the Kali setup. We have to enable port forwarding first.

    $ ssh kali@192.168.13.37 -L 8081:localhost:8081

How to Install NoVNC using Aptitude

If we prefer aptitude, we have to install it on Kali Linux first and then proceed to install NoVNC:

sudo aptitude update
sudo aptitude -y install novnc

How to Uninstall NoVNC

We can easily remove NoVNC from our Kali Linux system with one of the following options:

  • Remove only the NoVNC package:

    sudo apt-get remove novnc

  • Uninstall NoVNC and its dependencies:

    sudo apt-get -y autoremove novnc

  • Remove NoVNC configurations and data:

    sudo apt-get -y purge novnc

  • Remove NoVNC configurations, data, and all dependencies:

    sudo apt-get -y autoremove --purge novnc

Let us know in the comments if you need further help with NoVNC.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In brief, our Support Experts demonstrated how to install and run NoVN

+C on Kali Linux via the Command Line.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.