{"id":24825,"date":"2024-02-14T05:12:54","date_gmt":"2024-02-14T05:12:54","guid":{"rendered":"https:\/\/linuxways.net\/?p=24825"},"modified":"2024-02-14T07:41:00","modified_gmt":"2024-02-14T07:41:00","slug":"run-kali-linux-browser-using-novnc","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/kali-linux\/run-kali-linux-browser-using-novnc\/","title":{"rendered":"How to Run Kali Linux on Browser Using noVNC"},"content":{"rendered":"<p><strong>Kali Linux <\/strong>is an open-source and robust operating system tucked in with a lot of security tools. It provides a safe, legal and user-friendly environment for ethical hackers and security professionals to learn about cybersecurity without affecting other real-world systems. Kali Linux provides various installation methods beyond traditional computers, such as running it on Chromebook, Android mobile, ARM devices and more. Apart from that, remotely access to the Kali Linux desktop is another useful option that people widely use with the help of traditional VNC tools. However, installing VNC tools and setting up the remote desktop is a hectic task, but this can be accomplished easily with <strong>noVNC <\/strong>utility that allows you to remotely access the Kali Linux system on the browser without installing any additional tools.<\/p>\n<p>Through this blog, you will learn:<\/p>\n<ul>\n<li><a href=\"#post-24825-_xkdtv71r1i6o\"><strong>What is noVNC<\/strong><\/a><\/li>\n<li><a href=\"#post-24825-_sgrgo1mog58n\"><strong>How to Run Kali Linux on Browser Using noVNC<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-24825-_xkdtv71r1i6o\"><\/a><strong>What is noVNC<\/strong><\/h2>\n<p><strong>noVNC <\/strong>is a powerful web-based VNC client based on JavaScript library. It provides a user-interface and integrates with the library to provide you with a complete remote desktop experience directly on the browser. The advantage of using <strong>no VNC<\/strong> over a traditional VNC client is that you don\u2019t need to install a separate desktop application for accessing your system remotely.<\/p>\n<h2><a id=\"post-24825-_sgrgo1mog58n\"><\/a><strong>How to Run Kali Linux on Browser Using noVNC<\/strong><\/h2>\n<p>To run Kali Linux on a browser using<strong> noVNC<\/strong>, you can use the following steps:<\/p>\n<p><strong>Step 1: Install noVNC Client on Kali Linux<\/strong><\/p>\n<p>Initially, you have to install <strong>noVNC<\/strong> <strong>client<\/strong> on your Kali Linux system with <strong>x11vnc server<\/strong> using the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> novnc x11vnc <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"300\" class=\"wp-image-24831\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-1.png 723w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-1-300x124.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>The<strong> noVNC<\/strong> is a web-based client that allows you to access the Kali Linux desktop remotely on the browser. The <strong>x11vnv<\/strong> server allows you to share your Kali Linux desktop with other devices.<\/p>\n<p><strong>Step 2: Start VNC Server on Kali Linux<\/strong><\/p>\n<p>After installing the required remote desktop dependencies, you can start VNC server on Kali Linux by executing the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">x11vnc <span class=\"re5\">-display<\/span> :<span class=\"nu0\">0<\/span> <span class=\"re5\">-autoport<\/span> <span class=\"re5\">-localhost<\/span> <span class=\"re5\">-nopw<\/span> <span class=\"re5\">-bg<\/span> <span class=\"re5\">-xkb<\/span> <span class=\"re5\">-ncache<\/span> -ncache_cr <span class=\"re5\">-quiet<\/span> <span class=\"re5\">-forever<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"206\" class=\"wp-image-24835\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-2.png 749w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-2-300x83.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/p>\n<ul>\n<li><strong>-display<\/strong> flag will share the display associated with the login screen and the first physical monitor.<\/li>\n<li><strong>-autoport<\/strong> will automatically select the default VNC port.<\/li>\n<li><strong>-localhost<\/strong> will force the system to originate the connection from the same machine where we have installed the VNC server.<\/li>\n<li><strong>nopw<\/strong> will disable the password authentication.<\/li>\n<li><strong>-bg<\/strong> will run the VNC server on Kali Linux in the background.<\/li>\n<li>&#8211;<strong>xkb <\/strong>will enable the Keyboard mapping.<\/li>\n<li><strong>-ncache <\/strong>will disable caching of graphical data that is sent over the VNC connection.<\/li>\n<li><strong>-ncache_cr <\/strong>will disable caching of cursor data sent over the VNC connection.<\/li>\n<li>-quiet suppresses the informational messages that appear on the terminal, meaning you won\u2019t be able to see any output about the activity.<\/li>\n<li><strong>-forever <\/strong>will keep the VNC session running for an indefinite period of time until you manually close it.<\/li>\n<\/ul>\n<p><strong>Step 3: Check VNC Related Connections<\/strong><\/p>\n<p>To ensure your VNC connection is using the correct number of port for communication, you can run the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">ss <span class=\"re5\">-antp<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> vnc<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"752\" height=\"143\" class=\"wp-image-24840\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-3.png 752w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-3-300x57.png 300w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/p>\n<p>The above command ensures that VNC is using the port number <strong>5900<\/strong> for connection.<\/p>\n<p><strong>Step 4: Find IP Address of Kali Linux<\/strong><\/p>\n<p>You will also require finding the IP address of your Kali Linux system, it can be done by using the <strong>hostname<\/strong> command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">hostname<\/span> <span class=\"re5\">-I<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"143\" class=\"wp-image-24842\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-4.png 751w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-4-300x57.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/p>\n<p><strong>Step 5: Start a Web Based VNC Proxy<\/strong><\/p>\n<p>After finding the IP address in Kali Linux, you can run the below-given command to start a web-based VNC proxy so that you can access the remote desktop on the browser:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>share<span class=\"sy0\">\/<\/span>novnc<span class=\"sy0\">\/<\/span>utils<span class=\"sy0\">\/<\/span>novnc_proxy <span class=\"re5\">--listen<\/span> <span class=\"nu0\">8081<\/span> <span class=\"re5\">--vnc<\/span> localhost:<span class=\"nu0\">5900<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"405\" class=\"wp-image-24847\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-5.png 742w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-5-300x164.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/p>\n<p><strong>Step 6: Access Kali Linux on the Browser<\/strong><\/p>\n<p>Now, open a browser on any computer and enter the IP address of Kali Linux followed by the port number <strong>8081<\/strong>. This will open the Directory list on the browser, simply click on the <strong>vnc_auto.html@ <\/strong>option:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1283\" height=\"615\" class=\"wp-image-24852\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-6.png 1283w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-6-300x144.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-6-1024x491.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-6-768x368.png 768w\" sizes=\"auto, (max-width: 1283px) 100vw, 1283px\" \/><\/p>\n<p>Then select the <strong>Connect<\/strong> button under the <strong>noVNC <\/strong>text:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1552\" height=\"818\" class=\"wp-image-24856\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-7.png 1552w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-7-300x158.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-7-1024x540.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-7-768x405.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-7-1536x810.png 1536w\" sizes=\"auto, (max-width: 1552px) 100vw, 1552px\" \/><\/p>\n<p>After establishing the connection, your Kali Linux desktop will be accessed live on your browser. You can then control and manage your Kali Linux system directly from your browser:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1543\" height=\"825\" class=\"wp-image-24869\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-8.png 1543w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-8-300x160.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-8-1024x548.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-8-768x411.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-24825-8-1536x821.png 1536w\" sizes=\"auto, (max-width: 1543px) 100vw, 1543px\" \/><\/p>\n<h2><a id=\"post-24825-_ab5ldjjrq8us\"><\/a><strong>Conclusion<\/strong><\/h2>\n<p><strong>noVNC<\/strong> is a web application that makes it easy for the users to remotely access the system on the browser. To remotely access Kali Linux and run it on the browser, you can install<strong> noVNC<\/strong> from the apt repository. After the installation, you should start the VNC server on Kali Linux, then use the <strong>hostname <\/strong>command to find the IP address of the system. Once done, use any browser on a computer and access the Kali Linux desktop using the IP address and port number<strong> 8081<\/strong>.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>noVNC is a web-based client that allows you to run your system on the browser. Read this for more details to run Kali Linux on the browser using noVNC.<\/p>","protected":false},"author":116,"featured_media":24916,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1054],"tags":[],"class_list":["post-24825","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kali-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/116"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=24825"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24825\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/24916"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=24825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=24825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=24825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}