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/[email protected]
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
**********************************************