指定Farm的虚拟桌面在客户端隐藏和显示工具栏的配置
2012-09-25 17:43
246 查看
当一个web interface关联多个xendesktop或xenapp集群(Server Farm)时,所有的虚拟桌面和共享桌面被客户端打开时候默认都会带有虚拟桌面的工具栏(toolbar)。但是有时候我们不希望所有的Server Farm都显示工具栏。通过对WebInterface站点的配置文件做修改,可以隐藏指定的ServerFarm的工具栏。
1. 找到Web Interface两个配置文件,分别是(1)webinterface.conf位于C:\inetpub\wwwroot\Citrix\站点名称\conf(2)LaunchShared.java位于C:\inetpub\wwwroot\Citrix\站点名称\app_code\PagesJava\com\citrix\wi\pages\site
2.记事本打开webinterface.conf文件确认(1)不包含ConnectionBar=0 或 ConnectionBar=1,如果有则删除。(2)包含ShowDesktopView=On,默认这行设置为#ShowDesktopView=Off。追加一行FarmsWithNoConnectionBar=Farm1, Farm2, Farm3, ...我通常放webinterface.conf文件的最后一行,多个Farm用逗号隔开,Farm名称为webinterface站点Server Farm下配置的名称。
3.编辑LaunchShared.java对于WebInterface 5.4和之前的5.1,5.2,5.3配置方法略有不同,用记事本打开后找到下面这行:ICAFile icaFile = generateIcaFile (userContext, launchInfo);在这行代码后面追加如下代码:
(1)对于WebInterface5.4,追加代码
boolean disableConnectionBar = false;String currentFarmName = launchInfo.getNameOfSource();String noConnectionBarFarms =(String)wiContext.getConfiguration().getSettings().get("FARMSWITHNOCONNECTIONBAR");if (noConnectionBarFarms != null) {String[] farmsArray = Strings.split(noConnectionBarFarms, ',');for (int count = 0; count < farmsArray.length; count++) {if (currentFarmName.equalsIgnoreCase(farmsArray[count].trim())) {disableConnectionBar = true;break;}}}if (disableConnectionBar) {icaFile.setValue(ICAConstants.SECTION_APPLICATION,ICAConstants.VALNAME_CONNECTION_BAR, "0");}
(2)对于webinterface 5.1,5.2,5.3追加代码boolean disableConnectionBar = false;String currentFarmName = launchInfo.getNameOfSource();String noConnectionBarFarms =(String)wiContext.getConfiguration().getSettings().get("FARMSWITHNOCONNECTIONBAR");if (noConnectionBarFarms != null) {String[] farmsArray = Strings.split(noConnectionBarFarms, ',');for (int count = 0; count < farmsArray.length; count++) {if (currentFarmName.equalsIgnoreCase(farmsArray[count].trim())) {disableConnectionBar = true;break;}}}if (disableConnectionBar) {icaFile.setValue(ICAFile.SECTION_APPLICATION,ICAFile.VALNAME_CONNECTION_BAR, "0");}保存修改并关闭LaunchShared.java文件。
本文出自 “Citrix virtual techno..” 博客,请务必保留此出处http://vtech.blog.51cto.com/238654/1006522
1. 找到Web Interface两个配置文件,分别是(1)webinterface.conf位于C:\inetpub\wwwroot\Citrix\站点名称\conf(2)LaunchShared.java位于C:\inetpub\wwwroot\Citrix\站点名称\app_code\PagesJava\com\citrix\wi\pages\site
2.记事本打开webinterface.conf文件确认(1)不包含ConnectionBar=0 或 ConnectionBar=1,如果有则删除。(2)包含ShowDesktopView=On,默认这行设置为#ShowDesktopView=Off。追加一行FarmsWithNoConnectionBar=Farm1, Farm2, Farm3, ...我通常放webinterface.conf文件的最后一行,多个Farm用逗号隔开,Farm名称为webinterface站点Server Farm下配置的名称。
3.编辑LaunchShared.java对于WebInterface 5.4和之前的5.1,5.2,5.3配置方法略有不同,用记事本打开后找到下面这行:ICAFile icaFile = generateIcaFile (userContext, launchInfo);在这行代码后面追加如下代码:
(1)对于WebInterface5.4,追加代码
boolean disableConnectionBar = false;String currentFarmName = launchInfo.getNameOfSource();String noConnectionBarFarms =(String)wiContext.getConfiguration().getSettings().get("FARMSWITHNOCONNECTIONBAR");if (noConnectionBarFarms != null) {String[] farmsArray = Strings.split(noConnectionBarFarms, ',');for (int count = 0; count < farmsArray.length; count++) {if (currentFarmName.equalsIgnoreCase(farmsArray[count].trim())) {disableConnectionBar = true;break;}}}if (disableConnectionBar) {icaFile.setValue(ICAConstants.SECTION_APPLICATION,ICAConstants.VALNAME_CONNECTION_BAR, "0");}
(2)对于webinterface 5.1,5.2,5.3追加代码boolean disableConnectionBar = false;String currentFarmName = launchInfo.getNameOfSource();String noConnectionBarFarms =(String)wiContext.getConfiguration().getSettings().get("FARMSWITHNOCONNECTIONBAR");if (noConnectionBarFarms != null) {String[] farmsArray = Strings.split(noConnectionBarFarms, ',');for (int count = 0; count < farmsArray.length; count++) {if (currentFarmName.equalsIgnoreCase(farmsArray[count].trim())) {disableConnectionBar = true;break;}}}if (disableConnectionBar) {icaFile.setValue(ICAFile.SECTION_APPLICATION,ICAFile.VALNAME_CONNECTION_BAR, "0");}保存修改并关闭LaunchShared.java文件。
本文出自 “Citrix virtual techno..” 博客,请务必保留此出处http://vtech.blog.51cto.com/238654/1006522
相关文章推荐
- 显示或隐藏客户端页面中包含指定文字的DIV 标签
- 如何让XenDesktop客户端用户显示桌面工具栏(Desktop Viewer toolbar)
- View、XenDesktop等虚拟桌面继承模板虚拟机的配置
- iphone自动隐藏和显示工具栏和导航条
- IDEA使用笔记(四)——工具栏的显示隐藏切换
- QQ桌面边缘停靠隐藏显示问题
- 实现桌面应用图标的动态隐藏和显示,触发事件为SIM卡的状态
- jsp js鼠标移动到指定区域显示选项卡离开时隐藏示例
- 客户端动态实现某些项的显示与隐藏
- XP系统桌面图标的显示与隐藏方法
- c#显示服务器的配置和客户端的配置
- ubuntu下桌面显示内容配置
- 隐藏与显示桌面和任务栏
- Android虚拟导航键的显示隐藏
- virtenv 0.8.6 发布,虚拟桌面配置工具 - 开源中国社区
- js 滚动到指定位置显示或隐藏元素
- 配置WIN2003远程桌面的客户端连接数
- powershell 调用API显示或隐藏指定程序的主窗口
- 2012 VDI环境下,实现WIN7/ThinPC客户端自动配置RemoteAPP和桌面连接
- Xcode 5.0.2 如何显示、隐藏运行调试工具栏