Showing posts with label webtop. Show all posts
Showing posts with label webtop. Show all posts

Tuesday, September 28, 2010

Oracle Secure Global Desktop 4.6 Screenshots

Although Oracle Secure Global Deskop (OSGD) 4.6 is the first Oracle release of the product and Oracle re-branded the Look and Feel, the new release contains some very good innovations. More on these changes (like Automatic Recovery after Array Failover, Dynamic Launch and Dynamic Drive mapping) in later posts. This post contains a few screen shots of OSGD 4.6 to show the new colors.

To start the list of screen shots the Login page:

Login Screen


My personal favorite is the Splash-screen. The screen that looks to control the login-procedure, but in fact it contains a subtle animated-gif. The real work is done in an invisible page on the background.
Splash Screen


And then after login to OSGD the Webtop. The main page of the product for all users, where the user applications can be started/controlled.
OSGD Webtop

There are more screens which have been re-branded, in fact all the screens of both the Webtop and the Web Admin GUI contain the new Look&Feel, but it will be too much for this post to shown them. There is however one small thing to show: The 'new' session names:
New session names
In the former versions the sessions were named like: Session 1, Session 2, etc. Changing these to timestamps make it much easier to identify the sessions :)

Friday, June 19, 2009

Login button on logged-out-page not always 'active'

When a users logs out of the SSGD webtop with the logout-button the logged-out-page is shown. The logged-out-page contains a login-button. The login-button is not always 'active' (when clicking on the login-button nothing happens).

When looking into the JSP-code of the logged-out-page the 'activation' of the login-button is based upon the status of the TCC (Tarantella Client Connector/a SSGD-application which displays the applications). When the TCC is still running the login-button is 'activated'. This is a bit strange since logging out of the SGD webtop will stop the TCC.

/opt/tarantella/webserver/tomcat//webapps/sgd/webtops/standard/webtop/logged-out.jsp
I saw a check to 'enable' or 'disable' the login-button. The button is 'enabled' when the TCC is stll running.


A quick fix to always show the link by editing the logged-out-page. Follow these steps:

  • Logon to the SSGD server
  • Go to the directory:
    /opt/tarantella/webserver/tomcat//webapps/sgd/webtops/standard/webtop
  • Edit the file:
    logged-out.jsp
  • change line (109 for SGD4.50) from
boolean showLoginLink = (tccStarted != null && tccStarted.equals("true"));
  • to
boolean showLoginLink = (tccStarted != null && tccStarted.equals("true"));
showLoginLink = true;

After this change verify the change by logging on to the webtop and log out again to see if the login-button is 'active'.

Saturday, May 24, 2008

Some lesser know extras of Sun Secure Global Desktop

There are some extra features of Sun Secure Global Desktop (SSGD) which are only known to a few SSGD Administrators. It is my intention to post information on these features on this blog.

Today I will start with a set of pages for Administrators and SSGD Developers and explain what their function is.

If you have SSGD installed take a look at:

http(s):///sgd/admin

On the URL above the following subdirectories are visable:


  • apitest; Pages for developers to test SSGD API calls,

  • checker; A simple reloading page to see who is logged on,

  • configmgr; The old configuration wizard (used to be available on the Administrator webtop),

  • datastore; a very simplistic view of all the object in the datastore (nice for Developers),

  • loaddist; Contains the swcd.jsp, which is a software based SSGD Loadbalancing script (I will surely post more on this one in a separate post),

  • printman; Shows the printqueue of SSGD,

  • profiles; Create or edit the profiles for the current user,

  • sessman; The old SSGD Session Manager,

  • sessmgr; A simple (not reloading page) to see who is logged on,

  • sessxml; Also a simple (not reloading page) to see who is logged on<./LI>


Most of these pages require an SSGD Administrator to log on before they show information. Normal users are unable to get more information then they get on theire normal webtop.

Although it is save to have these webpages open on the internet I want to suggest to disable access to these pages or completely remove them from your system (a move of teh directory "/opt/tarantella/webserver/tomcat//webapps/sgd/admin" to "/tmp" will do as well).

More on these extra lesser known features in later posts.

(PS: Sorry for the 3 month silence not posting to my blog. I will do my best to make sure this won't happen again.)

Wednesday, November 14, 2007

Adding new icons for SSGD Applications

Sun Secure Global Desktop comes standard with a couple of application icons.


Most users do not really care about the icon in front of the Application name, but there are some who are more visually focussed then textual. For the latter (and also for the other users) it would be nice to add new icons to SSGD.

New icons can be added to SSGD. This means every application can have its own normal icon if that icon is not in the default set of icons.

The following text may require knowledge of the Solaris/Linux Operating System.

Adding a new icon to SSGD can only be performed by the root-user of the SSGD server (hopefully the new version of SSGD, 4.40, will have a nice feature for adding icons).

Instructions for adding a new icon (version 4.2/4.3/4.31):

  1. Create an icon with size 20x20 with 256 or 16bit colour in gif or jpg format

  2. Copy the icon to the SSGD server (via scp/ftp or alike)

  3. As root copy the icon to the following location:
    /opt/tarantella/webserver/tomcat/<version>/
    webapps/sgd/resources/images/icons

  4. make sure the group ttaserv has read permissions on the icon
    chgrp ttaserv <iconname>;chmod g+r <iconname>


It is now possible to set the icon-name for the application via the command line:
/opt/tarantella/bin/tarantella object edit
--name <end_objectname> --icon <iconname>


Changing icons via the Object Manager is also possible. Just copy the icon file to the following location and restart the Object Manager.
/opt/tarantella/var/docroot/resources/
icons/sco/tta/standard/locale=en-us.size=24

(This will also make the icon available for the classic webtop)

Wednesday, September 12, 2007

Customizing the SSGD wait screen Look and Feel

The first thing a user sees when he/she accesses the SSGD environment is a web page with a scrolling orange dot ('splash screen'). This screen is presented for a couple of seconds before it changes to the 'log on' screen.

The 'splash screen' is a very simple html-page which contains an animated gif image (the orange dot). This web page can easily be changed by following these steps:

  1. Create your own 'splash screen' page in html with your favorite web page editor
    (It is wise to have some sort of animation in it to give your users the feeling there is still progress in setting up the SSGD connection)
  2. Copy the html code into a text editor (vi,Notepad/Textpad/Ultraedit or alike)
  3. Remove everything except the part between <body> and </body>
  4. Replace all image locations to <%= path %>
    So
    http://servername/image_dir/image.gif
    is changed to
    <%= path %>image.gif
  5. Add the following lines at the top:
    <%@ page errorPage="/resources/jsp/errorpage.jsp" %>
    <%@ page contentType="text/html" %>
    <%@ include file="/attributes.jsp" %>
    <%@ include file="/resources/jsp/utilities.jsp" %>
    <%
    String path = getContextPath(request) + "/resources/images/splash/locale=";
    path = path + getBestSupportedLocale(request) + "/";
    %>
  6. Copy the new html(/jsp)-code to the file splash.jsp:
    /opt/tarantella/webserver/tomcat/5.0.28_axis1.2/
    webapps/sgd/webtops/standard/tcc/splash.jsp

  7. Copy all images used in the page to:
    /opt/tarantella/webserver/tomcat/5.0.28_axis1.2/
    webapps/sgd/resources/images/splash/


To make sure the new 'splash screen' is available clear the browser cache and enjoy your new page :)

Friday, August 10, 2007

Customizing the Webtop Look and Feel

Most customers like the fact that is quite easy to change the Look and Feel (L&F) of SSGD. Changing the L&F is not not that easy as changing the template of a weblog or a portal, but with a bit of knowledge of HTML the changes can be made in the webtop-pages.

The first change I normally do at a customer site is replace the SUN logo in the left top corner of the webtop:


To change this logo create a new logo image (size: 242 x 77 px) and place this file in the following location:


/opt/tarantella/webserver/tomcat/5.0.28_axis1.2/webapps/sgd/resources/images/webtop


Next edit the file:

/opt/tarantella/webserver/tomcat/5.0.28_axis1.2/webapps/sgd/webtops/standard/webtop/topFrame.jsp


On line 95 change the filename of the Sun Logo (sgdLogo.gif) with the filename of the new company logo.

After the topFrame.jsp has been saved a refresh of the complete webtop page within the browser the new logo will appear.

In future post I will try to describe more simple small changes which can be made to the webtop. Changing the splash-screen during logon is amongst this list I have in my mind. When someone wants to know how to make other changes please write a comment on this post.

Wednesday, July 18, 2007

Change double click behaviour on SSGD application

This post contains information for administrators who present the browser based webtop (version 4.x and higher) to their users and the users are using Internet Explorer.
(If someone can make this work for other browsers as well I will be very happy to recieve that sollution)

When a users starts an application from a normal Windows Desktop he/she needs to double click the application icon. I have seen many users doing the same (double click) with the application icon on the SSGD webtop. Since the double click is not implemented on the webtop the browser treads this behaviour as clicking the link twice and therefor SSGD will try to start the application twice.

Looking a bit deeper into SSGD the click on an application icon results in a signal to the tcc.exe to start a new application session. When the tcc.exe has started the application session it will give a signal back to the webtop refresh the application list. This step normally takes one to two seconds. When during those one or two seconds an other click on the icon occurs a new signal is given to the tcc.exe. This second click may not be valid when the limit of applications for this application has been reached. This will result in an error 'Error - Launch failed'.

I have been searching for a sollution and found a simple sollution. But this sollution only works for Internet Explorer. (I have tested this with Mozilla as well, but Mozilla treads javascript a bit different.)

A small adaption of the webtop can be made to disable the application link after it has been clicked and enable it again when the application list has been refreshed.
This adaption can be done by changing one single file: webtop.jsp

The changes below will change the behaviour of the webtop in the following manner:
When a users starts an application the webtop will not allow the users to start/resume/suspend the same application again until the webtop application list has been refreshed.
It will still be possible to start multiple different applications.

The file location of webtop.jsp can differ between different SSGD versions. For SSGD version 4.3 the location is:

/opt/tarantella/webserver/tomcat/5.0.28_axis1.2/webapps/sgd/webtops/standard/webtop

The location for version 4.2 is:
/opt/tarantella/webserver/tomcat/5.0.28_axis1.2final_jk1.2.8/webapps/sgd/webtops/standard/locale=en-us/webtop/


Changes in javasctript of the webtop.jsp are:

add array link_active_names (contains the already started applications
add variable link_counter = 0 (contains the number of applications in the array)
Add function ActivateLink(..) (being called when an application starts)
Change function OnKeyPress(..) (return false when the application has already been started)

Changes have to be made on all the function calls (8 times) to OnKeyPress(..). The name of the applcation link has to be added as the first parameter.
Changes have to be made on the application links which start a new application (4 times). The OnClick events must also call the ActivateLink() function.

The actual code for these changes are:

Replace the function OnKeyPress in the webtop.jsp

var link_counter = 0;
var link_active_names = new Array();
function ActivateLink( linkname )

link_active_names[link_counter] = linkname;
link_counter = link_counter + 1;
}
function OnKeyPress( linkname, event, url, target, toggleTarget, resumeOpt, toggleResumeOpt )
{
var newurl;

var disable_link = 0;
for (i=0;i<link_active_names.length;i++)
if (link_active_names[i] == linkname)
{
disable_link = 1;
}


if (disable_link==0) {
if (window.event)
{
ctrl = window.event.ctrlKey;
shift = window.event.shiftKey;
}
else if (event)
{
ctrl = event.ctrlKey;
shift = event.shiftKey;
}
else
{
ctrl = false;
shift = false;
}

if (ctrl && shift)
{
newurl=url+"&toggledisplay=true&forceauthentication=true"+toggleResumeOpt;
window.open(newurl, toggleTarget);
}
else if (ctrl)
{
newurl=url+"&toggledisplay=true"+toggleResumeOpt;
window.open(newurl, toggleTarget);
}
else if (shift)
{
newurl=url+"&forceauthentication=true"+resumeOpt;
window.open(newurl, target);
}
else
{
return true;
}
}

if (window.event)
{
window.event.returnValue=false;
}
else if (event)
{
event.returnValue=false;
event.cancelBubble=true;
}

return false;
}


All the function calls changes in the webtop.jsp are shown via a diff between the old 4.3 version of the webtop.jsp and the changed webtop.jsp:

294c312
< <a onclick="OnKeyPress(event, '<%= launchUrl %>', '<%= target %>', '<%= toggleTarget %>', '<%= resumeOpt %>', '<%= toggleResumeOpt %>')" href="<%= launchUrl + resumeOpt %>" target="<%= target %>" title="<%= toolTip %>"><img src="<%= getIconGif(icon) %>" alt="<%= displayname %>" border="0" width="20" height="20"></a>
---
> <a onclick="OnKeyPress('<%= displayname %>', event, '<%= launchUrl %>', '<%= target %>', '<%= toggleTarget %>', '<%= resumeOpt %>', '<%= toggleResumeOpt %>');ActivateLink('<%= displayname %>');" href="<%= launchUrl + resumeOpt %>" target="<%= target %>" title="<%= toolTip %>"><img src="<%= getIconGif(icon) %>" alt="<%= displayname %>" border="0" width="20" height="20"></a>
336c354
< <a onclick="OnKeyPress(event, '<%= launchUrl %>', '<%= target %>', '<%= toggleTarget %>', '<%= resumeOpt %>', '<%= toggleResumeOpt %>')" href="<%= launchUrl + resumeOpt %>" target="<%= target %>" title="<%= toolTip %>"><%= displayname %></a></p>
---
> <a onclick="OnKeyPress('<%= displayname %>', event, '<%= launchUrl %>', '<%= target %>', '<%= toggleTarget %>', '<%= resumeOpt %>', '<%= toggleResumeOpt %>');ActivateLink('<%= displayname %>');" href="<%= launchUrl + resumeOpt %>" target="<%= target %>" title="<%= toolTip %>"><%= displayname %></a></p>
471c489
< <a onclick="OnKeyPress(event, '<%= resumeUrl %>', '<%= target %>', '<%= toggleTarget %>', '', '')" href="<%= resumeUrl %>" target="<%= target %>">Session <%= i.toString(sess_no++)%></a>
---
> <a onclick="OnKeyPress('<%= displayname %>', event, '<%= resumeUrl %>', '<%= target %>', '<%= toggleTarget %>', '', '')" href="<%= resumeUrl %>" target="<%= target %>">Session <%= i.toString(sess_no++)%></a>
488c506
< <a onclick="OnKeyPress(event, '<%= resumeUrl %>', '<%= target %>', '<%= toggleTarget %>', '', '')" href="<%= resumeUrl %>" target="<%= target %>"><img src="<%= getWebtopGif("play.gif")%>" alt="<%=getWebtopString("I0_AltResume")%>" title="<%=getWebtopString("I0_AltResume")%>" width="12" height="10" hspace="2" border="0" align="absmiddle" id="Resume"></a>
---
> <a onclick="OnKeyPress('<%= displayname %>', event, '<%= resumeUrl %>', '<%= target %>', '<%= toggleTarget %>', '', '')" href="<%= resumeUrl %>" target="<%= target %>"><img src="<%= getWebtopGif("play.gif")%>" alt="<%=getWebtopString("I0_AltResume")%>" title="<%=getWebtopString("I0_AltResume")%>" width="12" height="10" hspace="2" border="0" align="absmiddle" id="Resume"></a>
568c586
< <a onclick="OnKeyPress(event, '<%= launchUrl %>', '<%= target %>', '<%= toggleTarget %>', '<%= resumeOpt %>', '<%= toggleResumeOpt %>')" href="<%= launchUrl + resumeOpt %>" target="<%= target %>" title="<%= toolTip %>"><img src="<%= getIconGif(icon) %>" alt="<%= displayname %>" border="0" width="20" height="20"></a>
---
> <a onclick="OnKeyPress('<%= displayname %>', event, '<%= launchUrl %>', '<%= target %>', '<%= toggleTarget %>', '<%= resumeOpt %>', '<%= toggleResumeOpt %>');ActivateLink('<%= displayname %>');" href="<%= launchUrl + resumeOpt %>" target="<%= target %>" title="<%= toolTip %>"><img src="<%= getIconGif(icon) %>" alt="<%= displayname %>" border="0" width="20" height="20"></a>
610c628
< <a onclick="OnKeyPress(event, '<%= launchUrl %>', '<%= target %>', '<%= toggleTarget %>', '<%= resumeOpt %>', '<%= toggleResumeOpt %>')" href="<%= launchUrl + resumeOpt %>" target="<%= target %>" title="<%= toolTip %>"><%= displayname %></a></p>
---
> <a onclick="OnKeyPress('<%= displayname %>', event, '<%= launchUrl %>', '<%= target %>', '<%= toggleTarget %>', '<%= resumeOpt %>', '<%= toggleResumeOpt %>');ActivateLink('<%= displayname %>');" href="<%= launchUrl + resumeOpt %>" target="<%= target %>" title="<%= toolTip %>"><%= displayname %></a></p>
695c713
< <a onclick="OnKeyPress(event, '<%= resumeUrl %>', '<%= target %>', '<%= toggleTarget %>', '', '')" href="<%= resumeUrl %>" target="<%= target %>">Session <%= i.toString(sess_no++)%></a>
---
> <a onclick="OnKeyPress('<%= displayname %>', event, '<%= resumeUrl %>', '<%= target %>', '<%= toggleTarget %>', '', '')" href="<%= resumeUrl %>" target="<%= target %>">Session <%= i.toString(sess_no++)%></a>
712c730
< <a onclick="OnKeyPress(event, '<%= resumeUrl %>', '<%= target %>', '<%= toggleTarget %>', '', '')" href="<%= resumeUrl %>" target="<%= target %>"><img src="<%= getWebtopGif("play.gif")%>" alt="<%=getWebtopString("I0_AltResume")%>" title="<%=getWebtopString("I0_AltResume")%>" width="12" height="10" hspace="2" border="0" align="absmiddle" id="Resume"></a>
---
> <a onclick="OnKeyPress('<%= displayname %>', event, '<%= resumeUrl %>', '<%= target %>', '<%= toggleTarget %>', '', '')" href="<%= resumeUrl %>" target="<%= target %>"><img src="<%= getWebtopGif("play.gif")%>" alt="<%=getWebtopString("I0_AltResume")%>" title="<%=getWebtopString("I0_AltResume")%>" width="12" height="10" hspace="2" border="0" align="absmiddle" id="Resume"></a>