Thursday, August 29, 2024

 

Let’s Install X11VNC Server on our Ubuntu 22.04


sudo apt update && sudo apt upgrade -y
sudo apt-get install build-essential -y
sudo apt-get install lightdm -y
sudo ufw disable
select -> lightdm
sudo reboot
sudo apt-get install x11vnc -y
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 <Winnterisc00l>
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure

[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl enable x11vnc.service
systemctl start x11vnc.service
systemctl status x11vnc.service
sudo reboot
x11vnc -storepasswd 
<pwd>
dpkg --configure lightdm
sudo dpkg-reconfigure lightdm
sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw 
or 
sudo x11vnc -xkb -noxdamage -ncache 10 -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw
or
sudo x11vnc -xkb  -ncache 10 -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw &

how to run x11vnc everytime after a reboot

nano /etc/vnc_auto_start_service.sh
sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw &
sudo chmod 777 /etc/vnc_auto_start_service.sh
sudo crontab -e
@reboot /etc/vnc_auto_start_service.sh
reboot
ps -ef |grep x11vnc
https://rammichael.com/wp-content/uploads/downloads/2015/06/TightVNC_portable.rar
extract TightVNC_portable.rar
open vncviewer.exe
machine ip -> password <Winnterisc00l>

No comments:

Post a Comment