Quick remote desktop with Ubuntu desktop gnome environment

-1. Install a Desktop on an Ubuntu Server

sudo apt update -y && sudo apt install tasksel -y && sudo tasksel install ubuntu-desktop && reboot

After reboot, choose keyboard, timezone, add new user, ...

Open terminal:

sudo systemctl set-default graphical.target

*** Note ***

  • ubuntu-desktop: Gnome desktop (Recommend)
  • xubuntu-desktop: XFCE desktop
  • kubuntu-desktop: KDE desktop

0. Wired Unmanaged

Edit /etc/netplan/50-cloud-init.yaml (or other yaml file you find in /etc/netplan/ eg. /etc/netplan/01-netcfg.yaml)


network:
    renderer: NetworkManager # add this line
    ethernets:
        ...
    version: 2

And then run sudo netplan apply

1. Opensetting => check “Automatic login”





2. Open remote setting



4. Oke, Open TightVNC Viewer or VNC Viewer:

<IP_OF_UBUNTU>:5900

5. Option:

5.1 Change port:

+ get port:

gsettings get org.gnome.Vino alternative-port

(default, result: uint16 5900 )

+ change port:
gsettings set org.gnome.Vino alternative-port 5901
gsettings set org.gnome.Vino use-alternative-port true

5.2. Note

TightVNC Viewer : exit full-screen (Ctrl+ Alt+ Shift+ F)

* Not recommend:

- delete and disable logging of ubuntu system:

sudo rm /var/log/*.1

sudo systemctl stop syslog.socket && sudo systemctl stop rsyslog.service

sudo systemctl disable rsyslog.service

service rsyslog stop && systemctl disable rsyslog



Comments