FAQ SparkView

Search all FAQ’s

SparkView (31)

From Windows 10 and Windows Server 2016 / 2019, Microsoft has this “Microsoft Print to PDF” driver which can generate PDF in Terminal Server environment directly, so GhostScript will not be needed anymore (convert PS to PDF).

No configuration on SparkGateway needed, as it will detect the server capability and use this driver automatically unless you specified printer driver in gateway.conf (not recommended).

Category: SparkView

Use the universal forwarder, which will read the gateway log and send it to Splunk:

https://docs.splunk.com/Documentation/Splunk/5.0.2/Deploy/Introducingtheuniversalforwarder

Category: SparkView
Tag: splunk

If keys are not reserved by the browser or OS, then they can be sent directly to the server, otherwise, you can:

Use the alternative (Admin Manual Appendix A):
Create a on-screen button or menu to send special keys, like Ctrl+Alt+Del, you can call rdp.writeKeyComb(‘Ctrl+Alt+Del’) to do that.

Category: SparkView

Bandwidth usage can be very different depends on the content, Spark View is based on standard RDP protocol, so you can check Microsoft’s white paper for details: http://www.microsoft.com/en-us/download/details.aspx?id=23236

From our testing and customer response, One RDP session needs about 260 Kbit bandwidth for normal business applications (Office, ERP etc).

Category: SparkView
Tags: bandwith, RDP

If you are using a self-signed certificate on iOS, you’ll have to import it first:

http://stackoverflow.com/questions/4589562/how-to-install-my-servers-self-signed-certificate-on-an-ipad

Five Tips for Using Self Signed SSL Certificates with iOS

Category: SparkView

Q: How can I use the authentication token returned by Active Directory with Remote Spark?

A: This kind of token is not supported by RDP protocol, so for now you’ll have to forward the credential to the RDP server which is the only way.

Category: SparkView

Make sure you are using HTTP Basic Authentication as SSO method. Also it doesn’t work on login.html, you’ll have to create a new web page with all the links you want.

Category: SparkView

Set credSSP = true in gateway.conf (need to restart the gateway) which will apply to all the connections on the gateway.

Please also be aware, you may need to install this Windows update (support TLS 1.1, 1.2 in RDP server) on your RDP server if your RDP server is Windows 7 or 2008:

support.microsoft.com/en-us/kb/3080079

You can also disable Network Level Authentication (“Allow connections from any versions of client…”) on your RDP server because the communication between gateway and RDP server is usually in internal network.

On Windows 10, there is a bug which will not fully turn off the NLA, you also need to make following registry change:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp:
MinEncryptionLavel = (DWORD) 2
SecurityLayer = (DWORD) 1

Category: SparkView
Tags: 10, CredSSP, NLA

You can use $rdp.sessionInfo.appInfo.joinLink to get the join link, modify it in onsessionstart(sessionInfo) event.

Category: SparkView

First of all check if the screen saver is enabled on the server locally (log on to the server and check). Also check this setting in the Group Policy. Go to GPO linked to your Terminal Server > User Configuration > Policies > Administrative Templates > Control Panel > Display > you need a setting called “Screen Saver” Also Please make sure that Loopback Processing of Group Policy is enabled , so that User Configuration applied to your TS is enforced. source

Category: SparkView

Please set shared folder Read/Write permission to everyone.

Category: SparkView

How to lock down a Windows Server 2003 or Windows 2000 Terminal Server session
Specify a program to start automatically when a user logs on
http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/8a3125a5-6805-4c5c-9b5e-370003ff987f

Category: SparkView
Tags: 2003, RDP, RDS, WTS
  1. Check with MS RDC client first.
  2. Check with our demo gateway
  3. Make sure there is no “Printer redirection: false” in the log file which means this feature is disabled (on the client side or server side) or your license file expired.
  4. Printing service is working in RDP host (try print something)
  5. Printer redirection is enabled in RDP host.
  6. You domain controller is not Windows 2003 or before.
  7. Spark View use “MS Publisher Imagesetter” as the driver of “Remote Printer from Client”, please check if you can see this printer driver when you try to add a printer (Under “Generric” manufacturer). If not, you can let Spark View use other GhostScript Printer Driver in gateway.conf.
  8. Same printer driver may have different name on Windows 2003 or before. You can map the drive names in Windows 2003.
  9. Try disalbe Easy Print.
Category: SparkView
Tags: Print, printer

Windows 8 and 2012 has a bug: there is co-dependence between sound and drive redirection. Please make sure you enabled both.

Category: SparkView
  1. Chrome: change the target of your Chrome shortcut as “C:\Users\xxx\AppData\Local\Google\Chrome\Application\chrome.exe” –kiosk –kiosk-printing URL
  2. Firefox: Type “about:config” to address bar and add a new Boolean preference item named “print.always_print_silent” then set value of the newly-added item to “true”.
Category: SparkView
  1. IE: http://support.microsoft.com/kb/154780
  2. Chrome: change the target of your Chrome shortcut as “C:\Users\xxx\AppData\Local\Google\Chrome\Application\chrome.exe” –kiosk URL
  3. Firefox: firefox -chrome URL
Category: SparkView
Tag: Kiosk

Please start IE in Kiosk mode: http://support.microsoft.com/kb/154780

Category: SparkView

Unfortunately, you can not disable this on IE unless you use Kiosk Mode:
http://support.microsoft.com/kb/154780
You can use Alt+F and arrow keys as workaround.

Category: SparkView
Tags: browser, IE
  1. In server side plug in, if SessionInformation.getConfig().session.random is not null, that means the user logged in successfully.
  2. On client, the RDP JS library has onloggedin() event.
  3. In the log, you can see “User: xxx domain: xxx in session: xxx successfully logged into RDP session: xxx”
Category: SparkView

The server side component (SparkGateway.jar) can be used as a library and included in your project. You may want to remove the third party libraries from the jar if you have version conflict. Make sure following packages are not removed:

  1. com.toremote.*
  2. net.protocol.*

To start the gateway server, you can use: com.toremote.gateway.SparkGateway.main(String[] args)
or
com.toremote.gateway.SparkGateway.init(String[] args) or com.toremote.gateway.SparkGateway.init(Properties p)
com.toremote.gateway.SparkGateway.start();
com.toremote.gateway.SparkGateway.stop();

Following arguments can be used:

-c=C:\SparkGateway\gateway.conf (specify the location of gateway.conf, you can also use SparkGateway.init(Properties p) to transfer the configuration values instead of specify the file location).
-console (output logs to console only)

Category: SparkView
Tags: Java, JDK
  1. Make sure time zone redirection is enabled on the RDP host.
  2. Time zone name may be different on your RDP host. Plese check [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones], and modify the time zone name on your web page accordingly(e.g. rdp.html)
Category: SparkView
  1. . Which is very important because the box model is different.
  2. View port configuration if you want to make it works better on mobile devices.
  3. “filecontainer” div if you want file uploading/downloading
  4. “appinfo” div if you want session shadowing and following JavaScript:
    	var info = $id("joinSelect");
    	if (info){
    		info.onchange = function(e){
    			svManager.getInstance().setJoinMode(e.target.value);
    		};
    	}
    	
    	var control =$id("requestControl");
    	if (control){
    		control.onclick = function(e){
    			svManager.getInstance().requestControl();
    		};
    	}
    
  5. “pc_key” div if you want the PC keys toolbar on touch UI
  6. “svToolbar” div, you must have the input with id “svTouchInput” inside if you want to make it work on mobile OS.
Category: SparkView
function _fullscr(e){
	var element = document.webkitFullscreenElement || document.mozFullScreenElement || document.mozFullscreenElement || document.fullscreenElement || null;
	console.log("fullscreen..... w:" + window.innerWidth + " e:" + e.target + " elm:" + element);
	if (!svManager.getInstance()){
		if (element){
			$id("width").value = window.innerWidth;
			$id("height").value = window.innerHeight;
		}
		connectRDP();
	}
}


function connectFullscr(){
	var enabled = document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.fullscreenEnabled || false;
	if (enabled){//has fullscreen support
		var b = document.body;
		if (b.webkitRequestFullScreen){
			b.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
		}else if (b.mozRequestFullScreen){
			b.mozRequestFullScreen();
		}else if (b.requestFullscreen){
			b.requestFullscreen();
		}
		
		document.addEventListener("fullscreenchange", _fullscr);
		document.addEventListener("webkitfullscreenchange", _fullscr);
		document.addEventListener("mozfullscreenchange", _fullscr);
		document.addEventListener("fullscreenchange", _fullscr);
	}else{
		connectRDP();//no fullscreen support, start it directly
	}
	return false;
}
Category: SparkView

Don’t reinstall the application. Please download the zip file. Replace the html directory and SparkGateway.jar with the new files extracted from the zip file, then restart the gateway.

Category: SparkView
Tag: Update

If you see java errors in commons-daemon*.log, that may be:

  1. Java is not installed, run “java -version” to check.
  2. Multiple JDK/JRE installed, and you are using the wrong version (X64 SparkGateway can only run on X64 JDK). Open SparkGateway Manager, “Java” tab, unselect “Use default”, choose the correct JDK like this: C:\Program Files\Java\jdk1.6.0_27\jre\bin\server\jvm.dll

If you see error in gateway.log, that may be:

  1. Default port 80 is used by other application (You could see related error in gateway.log), please change the default listening port in gateway.conf
  2. Please send us the log if it’s other error.
Category: SparkView

NLA/CredSSP can slow down the RDP connection a little bit (Exactly like https vs. http). If all your RDP hosts are in internal network, it’s OK to disable it, otherwise, it’s better to turn it on. Make sure you are using JDK 1.6.0_27 or below if you turned on NLA.

Category: SparkView
Tags: CredSSP, NLA

64 bit Spark View can only run on 64 bit JDK/JRE, 32 bit Spark View can runs on 32 bit or 64 bit JDK/JRE.

Category: SparkView
Tag: JDK

The 64 bit JDK can allocate more memory (> 2GB) to java applications, but 32 bit JDK is usually 0%-10% faster. SparkGateway doesn’t use too much memory, so you can install 32bit JDK and keep an eye on the memory usage. Also make sure you are using JDK instead of JRE if you are using 32bit Java, because 32 bit JRE doesn’t include the server side JIT.

Category: SparkView
Tag: JDK

https://support.microsoft.com/en-us/kb/3080079

 

Category: SparkView
var surface = new svGlobal.LocalInterface();
surface.onstart = function(canvas){
   //you can draw something on the canvas here.
}

rdp.addSurface(surface);
Category: SparkView

Load More