Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to setup VNC in Azure CLI
- # First login to SSH
- ssh Username@IP
- enter password
- # Update and upgrade the device
- sudo apt update; sudo apt upgrade
- # Install Light Desktop Manager
- sudo apt-get install lightdm
- reboot
- sudo apt-get install x11vnc
- # Configure service (paste from [unit] till WantedBy=multi-user.target
- ______________________________________________________________
- sudo nano /lib/systemd/system/x11vnc.service
- [Unit]
- Description=x11vnc service
- After=display-manager.service network.target syslog.target
- [Service]
- Type=simple
- ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd CHANGEPASSWORDHERE
- ExecStop=/usr/bin/killall x11vnc
- Restart=on-failure
- [Install]
- WantedBy=multi-user.target
- ______________________________________________________________
- # Reload demons
- systemctl daemon-reload
- # Enable service
- systemctl enable x11vnc.service
- #start the service
- systemctl start x11vnc.service
- #check the service status
- systemctl status x11vnc.service
- Install TightVNC for Windows and access your VNC server (You need to enter the host password not vnc)
- IP:Port connect
- Join for more T.me/efxtv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement