Configuring and Licensing RealVNC Connect for macOS using Jamf Pro

Follow

CloudConnectivityToken - Legacy.png
CloudConnectivityToken.png

This article covers how to license and configure the RealVNC Server and RealVNC Viewer applications for macOS with Jamf Pro. The steps below require that you have already enrolled your macOS devices to Jamf Pro.

RealVNC Server

Licensing Online/Cloud

Creating the script Deploying the script
  1. Log in to your Jamf Pro Cloud Dashboard.
  2. On the left menu, click Settings.

    Jamf_Settings.png

  3. In the search bar, type scripts and click the Scripts option.

    Jamf_Settings_Script.png

  4. Click New.

    Jamf_Settings_Scripts_New.png

  5. Complete the script details. The below is the minimum required to deploy the application, please customise to meet your requirements.
    • Under the General tab:
      • Enter a Display Name for the package, for example: RealVNC Server - Licensing - Online

        Jamf_Settings_Scripts_General

    • Under the Script tab:
      • Set Mode to Shell/Bash.
      • Enter the below script contents:
        #!/bin/zsh
        
        TOKEN="$4"
        
        if [[ "$(/Library/vnc/vncserver -service -cloudstatus | grep CloudJoined | cut -f2 -d':' | tr -d ',')" = "false" ]]; then
          /Library/vnc/vncserver -service -joinCloud "$TOKEN"
        fi

        Jamf_Settings_Scripts_Script_Server_Online

    • Under the Options tab:
        • Set Priority to After.
        • Enter a name for Parameter 4, for example: Cloud token

      Jamf_Settings_Scripts_Script_Server_Online_Options

  6. Click Save.

Licensing Offline

Creating the script Deploying the script
  1. Log in to your Jamf Pro Cloud Dashboard.
  2. On the left menu, click Settings.

    Jamf_Settings.png

  3. In the search bar, type scripts and click the Scripts option.

    Jamf_Settings_Script.png

  4. Click New.

    Jamf_Settings_Scripts_New.png

  5. Complete the script details. The below is the minimum required to deploy the application, please customise to meet your requirements.
    • Under the General tab:
      • Enter a Display Name for the package, for example: RealVNC Server - Licensing - Offline

        Jamf_Settings_Scripts_General

    • Under the Script tab:
      • Set Mode to Shell/Bash.
      • Enter the below script contents:
        #!/bin/zsh
        mkdir -p /etc/vnc/policy.d/licenses/vncserver
        
        OFFLINELICENSE="$4"
        
        cat << EOF > /etc/vnc/policy.d/licenses/vncserver/vnc.lic
        $OFFLINELICENSE
        EOF

        Jamf_Settings_Scripts_Script_Server_Offline

    • Under the Options tab:
        • Set Priority to After.
        • Enter a name for Parameter 4, for example: Offline License

      Jamf_Settings_Scripts_Script_Server_Offline_Options

  6. Click Save.

Configuration

Creating the script Deploying the script
  1. Log in to your Jamf Pro Cloud Dashboard.
  2. On the left menu, click Settings.

    Jamf_Settings.png

  3. In the search bar, type scripts and click the Scripts option.

    Jamf_Settings_Script.png

  4. Click New.

    Jamf_Settings_Scripts_New.png

  5. Complete the script details. The below is the minimum required to deploy the application, please customise to meet your requirements.
    • Under the General tab:
      • Enter a Display Name for the package, for example: RealVNC Server - Configuration

        Jamf_Settings_Scripts_General_Config

    • Under the Script tab:
      • Set Mode to Shell/Bash.
      • Enter the below script contents.

        Note, the parameters shown are for example purposes only and can be added to, amended, or removed as appropriate. For a list of available parameters, please see RealVNC Server Parameter Reference
        #!/bin/zsh
        
        mkdir -p /etc/vnc/policy.d
        
        cat << "EOF" > /etc/vnc/policy.d/vncserver
        Authentication=SystemAuth
        Encryption=AlwaysMaximum
        Permissions=%admin:d
        QueryConnect=0
        EOF

        Jamf_Settings_Scripts_Script_Server_Config

    • Under the Options tab:
        • Set Priority to After.

      Jamf_Settings_Scripts_Script_Server_Config_Options

  6. Click Save.

RealVNC Viewer

Licensing Offline

Creating the script Deploying the script
  1. Log in to your Jamf Pro Cloud Dashboard.
  2. On the left menu, click Settings.

    Jamf_Settings.png

  3. In the search bar, type scripts and click the Scripts option.

    Jamf_Settings_Script.png

  4. Click New.

    Jamf_Settings_Scripts_New.png

  5. Complete the script details. The below is the minimum required to deploy the application, please customise to meet your requirements.
    • Under the General tab:
      • Enter a Display Name for the package, for example: RealVNC Viewer - Licensing - Offline

        Jamf_Settings_Scripts_General_Offline_Viewer

    • Under the Script tab:
      • Set Mode to Shell/Bash.
      • Enter the below script contents:
        #!/bin/zsh
        mkdir -p /etc/vnc/policy.d/licenses/vncviewer
        
        OFFLINELICENSE="$4"
        
        cat << EOF > /etc/vnc/policy.d/licenses/vncviewer/vnc.lic
        $OFFLINELICENSE
        EOF

        Jamf_Settings_Scripts_Script_Viewer_Offline

    • Under the Options tab:
        • Set Priority to After.
        • Enter a name for Parameter 4, for example: Offline License

      Jamf_Settings_Scripts_Script_Server_Offline_Options

  6. Click Save.

Configuration

Creating the script Deploying the script
  1. Log in to your Jamf Pro Cloud Dashboard.
  2. On the left menu, click Settings.

    Jamf_Settings.png

  3. In the search bar, type scripts and click the Scripts option.

    Jamf_Settings_Script.png

  4. Click New.

    Jamf_Settings_Scripts_New.png

  5. Complete the script details. The below is the minimum required to deploy the application, please customise to meet your requirements.
    • Under the General tab:
      • Enter a Display Name for the package, for example: RealVNC Viewer - Configuration

        Jamf_Settings_Scripts_General_Config_Viewer

    • Under the Script tab:
      • Set Mode to Shell/Bash.
      • Enter the below script contents.

        Note, the parameters shown are for example purposes only and can be added to, amended, or removed as appropriate. For a list of available parameters, please see RealVNC Viewer Parameter Reference
        #!/bin/zsh
        
        mkdir -p /etc/vnc/policy.d
        
        cat << "EOF" > /etc/vnc/policy.d/vncviewer
        AllowSignIn=0
        SessionRecordAllSessions=1
        Encryption=AlwaysOn EOF

        Jamf_Settings_Scripts_Script_Viewer_Config

    • Under the Options tab:
        • Set Priority to After.

      Jamf_Settings_Scripts_Script_Server_Config_Options

  6. Click Save.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.