Enabling VNC on the Pi
In a terminal window on your Raspberry Pi, run the following commands:
sudo raspi-config
Then select 5 Interfacing Options > P3 VNC > Yes
You have now enabled VNC on your Raspberry Pi.
Using on a non-Raspbian Debian OS
In a terminal window on your Linux PC, run the following commands:
sudo apt-get update
sudo apt-get install realvnc-vnc-server
Using with macOS Screen Sharing
If you wish to use Screen Sharing on Mac, then "VNC authentication" mode needs to be set. You can use RealVNC server with RealVNC viewer without configuring VNC authentication. The default setting “UNIX Authentication” should work OK.
Open your Raspberry Pi’s GUI (either using the hardware video output connected to a monitor or using RealVNC viewer with the Pi's LAN address). Now, to set the VNC authentication mode, click on the VNC icon in the upper right hand corner.

Next, click the 3-line button in the right hand corner, and click “Options”.

Under “Security”, change the “UNIX Authentication” to “VNC password”. Setting this password allows Mac screen sharing to work.

To set this password, Go to “Users & Permissions”. Then click “Password” on the right-hand side. Then enter a password. You will use this when using Mac Screen Sharing.

Then click “Ok”.
Note:
If the screen is too zoomed in to select “Ok” you must zoom out. You can do this by entering the command
sudo raspi-config
into the terminal of your Pi. Then select 7 Advanced Options > A5Resolution > DMT Mode 85
Also see this article from the Pi Foundation which describes how to set the VNC Authentication mode using command line only.
Adding a remote.it Service for RealVNC
First, run the remote.it interactive installer. For instructions on how to use the Interactive Installer, visit this link.
At the Main Menu, select 3
for VNC.
Install a new remot3.it Service for VNC using the default port of 5900. If the port in use is not 5900, you will have the opportunity to change this during the installation.
When you’ve successfully added the remote.it Service for RealVNC, the Main Menu will include an entry for x11vnc (or similar) as shown below. This shows the name of the process that was found listening to the specified port.

Making a VNC connection using remote.it
To connect, sign in to your remote.it account and locate the device in "Devices". Click on the highlighted Device Name to open the Device Services dialog:

Now click on the name of the Service you just installed in the Device Services List.

Click on the service name to initiate the connection. In a few seconds you’ll see a dialog box similar to this:

For Option 1:
Close the menu by clicking the “X” in the upper right corner. You may see a dialog asking whether you wish to allow Flash to run. You should allow Flash to run. Next, enter your VNC password and click on “Send” to continue.
Click on the link provided in the second option, which will open a Safari Window. Allow Screen Sharing to occur. Enter your VNC password when prompted.
Start the RealVNC viewer application, then copy and paste the address from the remot3.it dialog option #3 to the “Remote Host” field as shown below. Now, click on “Connect”.

When you see the VNC Authentication dialog, enter your VNC password and click on “OK” to continue.

Now you are controlling your Raspberry Pi’s GUI!