More Citrix Web Interface 5.4 customizations

I recently accepted a job in a large enterprise company… I had to put the developers hat on and customize a new set of Web Interface 5.4 sites I set up.  I don’t know, but I can not leave the standard stuff up.  Where is the fun in that? :P

Well after working on the site I found many places where it makes sense to modify a bit of code.  Below is what I changed.  The end result looks great.  I also made a ton of changes to the web webinterface.conf file.  Will post those as a new post as it will be a little lengthy… :)

Lets stat by editing the logout process of WI.  When a user log’s off, you have to click once again to relog in.  Why do that?  Instead you can redirect WI to go directly to the logon page (Makes sense right?)

Well here is the process

** Edit the Loggedout.aspx file in C:\inetpub\wwwroot\Citrix\sitename\auth

All the way at the end… make sure you have the following syntax

// A new Session will have been created for this page request as it has already been

// abandoned while logging out.

// Abandon this new session otherwise the session will remain active until timeout.

// Avoid session fixation by checking that it’s a new session which is abandoned

if (wiContext.getWebAbstraction().isNewSession()) {

wiContext.getWebAbstraction().abandonSession();

}

Response.Redirect(“login.aspx?CTX_FromLoggedoutPage=1″);

%>

** Now lets get some funky stuff going…

The file below is under your Citrix site root’s \app_data\include\fullstyle.inc

Fullstyle.inc Edits:

**Remove CTX tagline – only use if not changing tagline text. Otherwise, see “Change CTX Default Tagline Text” below.

#hor1izonTagline {

color: #F2F2F2;

font-size: 180%;

font-weight: normal;

margin: 50px 0 0 0;

padding-bottom: 10px;

text-align: center;

display: none;

}

** Remove all footer images and text (this includes the HDX and Citrix logos, and also any Footer text you may have specified in the Web Site Appearance Wizard)

#footer img

{

padding: 0 8px;

vertical-align: middle;

display: none;

}

.horizonPage #hdxLogo {

display: inline;

display: none;

}

.horizonPage #footer p {

color: #F2F2F2;

display: none;

}

**Change SysMessage text size and bold

#sysMessage

{

width: <%=wiContext.getString(“PageWidth”)%>;

margin: 0 auto;

padding-top: 8px;

font-size: 12px;

font-weight: bold;

}

<%

// The width is set shorter than the background width

%>

#sysMessage p

{

text-align: left;

padding: 10px 0;

font-size: 14px;

font-weight: bold;

}

**Change Tagline to smaller font

#horizonTagline {

color: #F2F2F2;

font-size: 120%;

font-weight: normal;

margin: 50px 0 0 0;

padding-bottom: 10px;

text-align: center;

}

Graphics Changes:

**Replace CTX XenApp top logo with YourLogo.png

  • replace \media\CitrixXenApp.png
  • replace \media\CitrixXenAppLoggedoff.png

**Remove computer screens graphic

  • rename \media\Devices.png to Devices_orig.png
  • rename \media\Devices.gif to Devices_orig.gif
  • rename \media\DevicesLoggedoff.gif to DevicesLoggedoff_orig.gif
  • rename \media\DevicesLoggedoff.png to DevicesLoggedoff_orig.png

Misc. Changes:

**Change CTX default tagline text

  • copy \program giles\citrix\web interface\5.4.0\languages\accessplatform_strings.properties to \inetpub\wwwroot\citrix\<site name>\languages.
  • Edit file:
    • #HorizonTagline=Your Windows desktops and apps on demand – from any PC, Mac, smartphone or tablet.
    • HorizonTagline=<Whatever you want here>

**Add logo to Login box (Thanks Jon Woods!)

\inetpub\wwwroot\Citrix\XenApp\app_data\include\loginMainForm.inc
<% // LoginType set to Explicit, but only if it is allowed
if (viewControl.getExplicitDisabled()) {
%>
value=””>
<% } else { %>
value=”<%=WIAuthType.EXPLICIT%>”>
<% } %>
<%
}
%>
<% // added table row and cell for logo %>
<table>
<tr><td rowspan=”6″ valign=”Top” align=”left”><img src=”../media/Your Logo Filename Here.png” alt=””></td></tr>
<% // end table row and cell for logo %>
<%
if (viewControl.getShowLoginTypeOptions()) {
%>

**Add the desktop Viewer (Drop-down toolbar) to Virtual Desktops (Be careful, this has been known to mess with Dual Displays):

In the sites webinterface.conf file, add line – “ShowDesktopViewer=On”

**Override the styles:

read the posting on this forum string from “efontan512″. Really good stuff.

**Add logo to top left:

\inetpub\wwwroot\Citrix\XenApp\app_data\include\header.inc
before:
<div id=”headerWrapper”>
<div id=”header”>
<table id=”headerLeft” cellspacing=”0″>
<tr>
<%
after:
<div id=”headerWrapper”>
<div id=”header”>
<table id=”headerLeft” cellspacing=”0″>
<tr>
<td>
<img id=”headerLogo” src=”../media/AtosLogoHeader.png” alt=”Seiten-Header” title=””&gt;
</td>;
<%

About these ads

Web Interface 5.4 slow start up times (not a thing of the past)

When Cirix WI 5.0 first came out, and all the Citrix geeks where jumping of joy (I was) about the new “black” look and feel, well there was sort of an issue with slow load times for the fist users hitting the site after either a reboot of your WI boxes or an iisreset.

The “problem” remains the same with WI 5.4, however lets be clear that this is not really an issue with Citrix Web Interface, but rather with the way Applications Pools are started in IIS (This by way does not happen if you run WI on Apache or WI on the NetScaler nCore firmware)

The reason for this is in the background… as the different IIS worker processes (Application Pools) need time to get started. And the .NET framework does his magic thing.

To speeds up things a little bit, you can disable the check for digital signatures.

And here we go…

Open the file: “C:\Windows\Microsoft.NET\Framework (or Framework64)\v2.0.50727\Aspnet.config

Add the line: <generatePublisherEvidence enabled=”false”/> (Watch out for the “” if you copy/paste the line)

image

Reboot the server or give a iisreset. Now the first user doesn’’t have to wait.

But there is more. If you have a dedicated Web Interface server and the available resources aren’t that important. You can change the default 20 minutes of idle time per Application Pool to, for instance, 60 minutes.

image

Follow

Get every new post delivered to your Inbox.

Join 51 other followers