Skip to content

vnc enable and access ubuntu desktop from mac

mrb-github edited this page Apr 26, 2020 · 2 revisions
  1. Installed realvnc on my mac: https://www.realvnc.com/en/connect/download/viewer/macos/

  2. Installed vnc server on Ec2(ubuntu) using: https://hackernoon.com/installation-of-vnc-server-on-ubuntu-1cf035370bd3 Providing instructions just in case the link is changed or not working.

  3. $ sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal gnome-core```

  4. $ sudo apt-get install vnc4server```

  5. $ sudo cp /usr/bin/vncserver /usr/bin/vncserver.bkp```

  6. $ sudo vim /usr/bin/vncserver```

  7. Find this line " exec /etc/X11/xinit/xinitrcnn".` and add these lines like below "# exec /etc/X11/xinit/xinitrcnn". "gnome-panel &n". "gnome-settings-daemon &n". "metacity &n". "nautilus &n". "gnome-terminal &n".``

  8. set password vncserver You will require a password to access your desktops through VNC Clients. Password: Verify:

  9. $ sudo ufw allow OpenSSH

  10. $ sudo ufw allow 5901/tcp

  11. $ sudo ufw allow 5901:5910/tcp

  12. $ sudo ufw enable [[ Extra step]]

  13. Allow inbound rules for port 5901 on the instance VPC on AWS

  14. Launch the vnc client on mac with ip:port

Clone this wiki locally