-
Notifications
You must be signed in to change notification settings - Fork 0
vnc enable and access ubuntu desktop from mac
-
Installed realvnc on my mac: https://www.realvnc.com/en/connect/download/viewer/macos/
-
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.
-
$ sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal gnome-core```
-
$ sudo apt-get install vnc4server```
-
$ sudo cp /usr/bin/vncserver /usr/bin/vncserver.bkp```
-
$ sudo vim /usr/bin/vncserver```
-
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".
`` -
set password vncserver You will require a password to access your desktops through VNC Clients. Password: Verify:
-
$ sudo ufw allow OpenSSH
-
$ sudo ufw allow 5901/tcp
-
$ sudo ufw allow 5901:5910/tcp
-
$ sudo ufw enable [[ Extra step]]
-
Allow inbound rules for port 5901 on the instance VPC on AWS
-
Launch the vnc client on mac with ip:port