Advertisement
efxtv

How to setup VNC in Azure CLI

May 6th, 2024 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | Cryptocurrency | 0 0
  1. How to setup VNC in Azure CLI
  2.  
  3. # First login to SSH
  4. ssh Username@IP
  5. enter password
  6.  
  7. # Update and upgrade the device
  8. sudo apt update; sudo apt upgrade
  9.  
  10. # Install Light Desktop Manager
  11. sudo apt-get install lightdm
  12. reboot
  13.  
  14. sudo apt-get install x11vnc
  15.  
  16. # Configure service (paste from [unit] till WantedBy=multi-user.target
  17. ______________________________________________________________
  18. sudo nano /lib/systemd/system/x11vnc.service
  19. [Unit]
  20. Description=x11vnc service
  21. After=display-manager.service network.target syslog.target
  22.  
  23. [Service]
  24. Type=simple
  25. ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd CHANGEPASSWORDHERE
  26. ExecStop=/usr/bin/killall x11vnc
  27. Restart=on-failure
  28.  
  29. [Install]
  30. WantedBy=multi-user.target
  31. ______________________________________________________________
  32.  
  33. # Reload demons
  34. systemctl daemon-reload
  35.  
  36. # Enable service
  37. systemctl enable x11vnc.service
  38.  
  39. #start the service
  40. systemctl start x11vnc.service
  41.  
  42. #check the service status
  43. systemctl status x11vnc.service
  44.  
  45. Install TightVNC for Windows and access your VNC server (You need to enter the host password not vnc)
  46. IP:Port connect
  47.  
  48. Join for more T.me/efxtv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement