===================NOVNC Install================== Debian10 apt -y install novnc python-websockify Install VNC server apt -y install tigervnc-standalone-server Config senha vncpasswd apt-get install xterm nano ~/.vnc/xstartup ----------------------------------------------------------------------------------- ~/.vnc$ ls passwd rag-tos-laptop:1.log rag-tos-laptop:1.pid xstartup* xstartup.bak* ~/.vnc$ cat xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources #xsetroot -solid grey #vncconfig -iconic & x-terminal-emulator -geometry 800x600 -title "$VNCDESKTOP Desktop" & #x-window-manager & #twm & --------------------------------------------------------------------------------- vncserver :1 -geometry 800x600 -localhost no openssl req -x509 -nodes -newkey rsa:2048 -keyout novnc.pem -out novnc.pem -days 365 websockify -D --web=/usr/share/novnc/ --cert=/home/debian/novnc.pem 6080 localhost:5901 para parar um processo vncserver vncserver -kill :1 iniciando os serviços automaicamente cd /home nano novnc.sh #!/bin/bash # inicializa serviço novnc vncserver :1 -geometry 800x600 -localhost no # iniciando websockify sleep 5 websockify -D --web=/usr/share/novnc/ --cert=/home/debian/novnc.pem 6080 localhost:5901 permisão de arquivo chmod 777 novnc.sh nano /etc/systemd/system/web-novnc.service [Unit] Description=web novnc After=syslog.target network.target [Service] Type=forking #PIDFile=/home/sammy/.vnc/%H:%i.pid ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1 ExecStart=/usr/bin/vncserver -geometry 800x600 -localhost no :%i & websockify -D --web=/usr/share/novnc/ --cert=/home/debian/novnc.pem 6080 localhost:5901 ExecStop=/usr/bin/vncserver -kill :%i [Install] WantedBy=multi-user.target systemctl daemon-reload systemctl enable web-novnc.service