How to change the default vncserver port number of the remote Ubuntu 22.04 desktop to avoid blocking by ISP
settings
**********************************************
# vim ~/.vnc/xstartup
put this:
#!/bin/bash
PATH=/usr/bin:/usr/sbin
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec /usr/bin/gnome-session
==========
#vim /etc/systemd/system/vncserver@.service
put this:
[Service]
Type=forking
User=client
Group=client
WorkingDirectory=/home/client
ExecStart=/usr/bin/vncserver -localhost no :%i
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
**********************************************
![](https://s2.save4k.ru/pic/pMELkObjqNE/maxresdefault.jpg)