If you want to use your linux operating system from your web browser you can use no-vnc , in this article lets see how to do this!





what is no vnc?

NoVNC is an open-source  protocol that allows remote admission to visual desktop interfaces. VNC is a protocol that authorizes users to link up to a remote computer and command its graphical desktop display over the network.It is intended to be practiced with up-to-date web browsers that back HTML5 and WebSockets, which enable instantaneous conversation between the browser and the remote desktop. By utilizing NoVNC, users can connect to a remote VNC server from within a web browser, without any need for supplementary software. it is is commonly applied as a web-based remote desktop solution for virtualization platforms and cloud computing. Its provides a secure and user-friendly method to remotely access visual desktop environments from your browser, becoming a prevailing option for numerous use cases. Furthermore, it is customizable and can be integrated with other web-based tools and applications.


first install required packages

sudo apt install -y tightvncserver dbus dbus-x11 novnc net-tools x11vnc


Start vnc server

vncserver :0 -rfbport 5900 -geometry 1920x1080 -depth 16


Now Start webserver

/usr/share/novnc/utils/novnc_proxy --listen 8081 --vnc localhost:5900

now you can control your linux from local host browser http://0.0.0.0:8081


To control your linux from another device you can use ngrok

what is ngrok?

Ngrok is a tool that helps software developers to run their locally hosted web servers to the internet. It produces a secure passageway connecting the local machine and ngrok's servers, permitting outside users to access the web server through a publicly accessible URL. It is is valuable for multiple uses, including testing APIs or webhooks that need a public endpoint, sharing unfinished applications with clients or team members, and debugging apps that require communication with external services. Installing Ngrok is straightforward and can be executed on various platforms, such as Windows, macOS, and Linux. Once it is installed, the user can indicate which port on their computer to show and its produces a unique URL that can be utilized to access the local web server from anywhere on the planet. Moreover, Ngrok features a web interface for scrutinizing the HTTP traffic that flows through the tunnel.


install ngrok

curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok

create ngrok server

ngrok http 5900


now you will see like this




 go to forwarding link to access your linux from your browser