How to Create Custom Theme for Logon Page of NetScaler Gateway 10.1 and 10.5

How to Create Custom Theme for Logon Page of NetScaler Gateway 10.1 and 10.5

book

Article ID: CTX200920

calendar_today

Updated On:

Description

This article describes how to create custom theme for logon page of NetScaler Gateway virtual server.


Instructions

Note: This procedure is provided as-is. The Citrix technical support might ask you to reverse these changes when issues related to authentication occur before troubleshooting the issue.

Complete the following steps to create custom theme using the command line interface:

  1. In the configuration utility, on the Configuration tab, in the navigation pane, expand NetScaler Gateway and then click Global Settings.

  2. In the details pane, under Settings, click Change Global Settings.

  3. In Global NetScaler Gateway Settings, click the Client Experience tab.

  4. Next to UI Theme, select Default or Green Bubble, depending on which theme you want to use as a base template for the customization and then click OK.

  5. Make customization changes under /var/netscaler/gui/vpn. You can:

    1. Make edits to the css/ctx.authentication.css file.

    2. Copy a custom logo to the /var/netscaler/gui/vpn/media folder.
      Note: You can use WinSCP to transfer the files.

  6. Log on to the NetScaler Gateway command line.

  7. At the command prompt, type shell.

  8. At the command prompt, type:
    mkdir /var/ns_gui_custom; cd /netscaler; tar –cvzf /var/ns_gui_custom/customtheme.tar.gz ns_gui/*

  9. If you have multiple NetScaler Gateway appliances, then repeat Steps 1 to 8 for all appliances.

  10. If you have an HA environment then complete the following steps:
    1. Log on to the primary NetScaler command line.

    2. At the command prompt, type shell.

    3. Copy the customtheme.tar.gz file under "/var/ns_gui_custom" to the secondary NetScaler:
      scp customtheme.tar.gz nsroot@secondary.netscaler.ip:/var/ns_custom_theme

      Note: You can use WinSCP to transfer the files.

  11. In the configuration utility, on the Configuration tab, in the navigation pane, expand NetScaler Gateway and then click Global Settings.

  12. In the details pane, under Settings, click Change Global Settings.

  13. In Global NetScaler Gateway Settings, click the Client Experience tab.

  14. Next to UI Theme, click Custom and then click OK.

Note: If you upgrade NetScaler Gateway from an earlier version, Citrix recommends that you set the theme back to the default theme page before the upgrade. When the upgrade is complete, you can use either of the preceding procedures to apply the custom theme page.

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Issue/Introduction

This article describes how to create custom theme for logon page of NetScaler Gateway virtual server.