Wednesday, April 29, 2020

installing noVNC On Ubuntu 20.04 LTS Desktop

Video Tutorial - https://youtu.be/BWe2bnL0Nl8

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

noVNC is a browser based VNC client implemented using HTML5 Canvas and WebSockets.
novnc - Open Source VNC client using HTML5 (WebSockets, Canvas). noVNC is both a VNC client JavaScript library as well as an application built on top of that library. noVNC runs well in any modern browser including mobile browsers (iOS and Android).
Offcial Wesbite :https://novnc.com/info.html GitHub -https://github.com/novnc/noVNC
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification:-
Os : Ubuntu 20.04 LTS (focal fossa) 64Bit   |  Hostname: www.yourdomain.com   | IP Address of Server:192.168.1.50
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; hostname ; hostname -I
sudo apt install xfce4 xfce4-goodies tightvncserver novnc websockify python3-numpy build-essential net-tools curl git software-properties-common -y
vncserver
vncserver -kill :1
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
nano ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
chmod +x ~/.vnc/xstartup
vncserver
vncpasswd  [ StrongPassword ]

cd /etc/ssl ; openssl req -x509 -nodes -newkey rsa:2048 -keyout novnc.pem -out novnc.pem -days 365
chmod 644 novnc.pem
websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/novnc.pem 6080 localhost:5901
https://192.168.1.50:6080/vnc.html

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. NOvnc - I connected to Ubuntu VM using this, but it starts hanging after few minutes.

    ReplyDelete