Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [dsdp-tm-dev] RSE ssh terminal shell with X11 forwarding enabled

Hi Martin,

Ok, I will try to submit a corresponding feature request though I am not quite sure how (and where) to do that.

I could successfully test the X11 forwarding option using "Run as -> Eclipse Application" but I don't know how to include this new feature in my standard eclipse version. I tried with "Export -> deployable features" and then I selected the org.eclipse.rse feature, but it halts with

Problems during export
  Unable to find plugin: org.eclipse.dstore.core_3.0.3.v200902101918. 

I couldn't resolve this problem. dstore.core is available in my standard eclipse (in version 3.0.3) but the version of org.eclipse.dstore.core I got from the CVS repository (by importinting tm-all-anonymous.psf) is 3.1.1.qualifier. I don't know why building the rse feature is asking for version 3.0.3.

I posted this message also to the newsgroupd.

Best, Dominik

>-----Ursprüngliche Nachricht-----
>Von: dsdp-tm-dev-bounces@xxxxxxxxxxx [mailto:dsdp-tm-dev-
>bounces@xxxxxxxxxxx] Im Auftrag von Oberhuber, Martin
>Gesendet: Donnerstag, 8. Oktober 2009 18:45
>An: Target Management developer discussions
>Betreff: RE: [dsdp-tm-dev] RSE ssh terminal shell with X11 forwarding
>enabled
>
>Hi Dominik,
>
>many thanks for this contribution!
>
>Can you please file a bugzilla enhancement request for this and
>attach your code as a patch?
>
>For legal reasons, we cannot accept patches through the mailing
>list -- they must come through bugzilla such that the bugzilla
>terms of use apply.
>
>Thanks,
>--
>Martin Oberhuber, Senior Member of Technical Staff, Wind River
>Target Management Project Lead, DSDP PMC Member
>http://www.eclipse.org/dsdp/tm
>
>
>
>> -----Original Message-----
>> From: dsdp-tm-dev-bounces@xxxxxxxxxxx
>> [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of Brunner, Dominik
>> Sent: Thursday, October 08, 2009 4:34 PM
>> To: dsdp-tm-dev@xxxxxxxxxxx
>> Subject: [dsdp-tm-dev] RSE ssh terminal shell with X11
>> forwarding enabled
>>
>> Dear all,
>>
>> I just successfully implemented X11 forwarding in the RSE ssh
>> terminal shell. Here are the code changes (only 3 additional
>> lines in total):
>>
>> diff -u -r1.26 SshConnectorService.java
>> ---
>> src/org/eclipse/rse/internal/connectorservice/ssh/SshConnector
>> Service.java	19 Mar 2009 23:16:03 -0000	1.26
>> +++
>> src/org/eclipse/rse/internal/connectorservice/ssh/SshConnector
>> Service.java	8 Oct 2009 14:19:32 -0000
>> @@ -140,6 +142,10 @@
>>  		if (password != null)
>>  			session.setPassword(password);
>>  		session.setUserInfo(wrapperUI);
>> +
>> +        session.setX11Host("localhost");
>> +	    session.setX11Port(6000);
>> +
>>  		return session;
>>  	}
>>
>> and
>>
>> diff -u -r1.3 SshTerminalShell.java
>> ---
>> src/org/eclipse/rse/internal/services/ssh/terminal/SshTerminal
>> Shell.java	14 Dec 2008 18:28:46 -0000	1.3
>> +++
>> src/org/eclipse/rse/internal/services/ssh/terminal/SshTerminal
>> Shell.java	8 Oct 2009 14:24:20 -0000
>> @@ -74,7 +76,9 @@
>>  			fSessionProvider = sessionProvider;
>>  			fEncoding = encoding;
>>  		    fChannel =
>> fSessionProvider.getSession().openChannel("shell"); //$NON-NLS-1$
>> +		    fChannel.setXForwarding(true);
>>
>> 		    if (ptyType != null && (fChannel instanceof
>> ChannelShell)) {
>>  			    //By default, jsch always creates a
>> vt100 connection sized
>>  			    //80x24 / 640x480 (dimensions can
>> be changed).
>>  		    	((ChannelShell) fChannel).setPtyType(ptyType);
>>
>> This is of course only a quick static fix. A final solution
>> should allow interactively selecting the X11 forwarding
>> option. Would it be possible to implement this in a future
>> RSE release?
>>
>> Best, Dominik Brunner
>>
>>
>> ********************************
>> Dr. Dominik Brunner
>> Laboratory for Air Pollution / Environmental Technology
>> Empa - Materials Science & Technology
>> Überlandstrasse 129
>> CH-8600 Dübendorf
>> Tel +41 44 823 49 44
>> Fax +41 44 821 62 44
>> Dominik.Brunner@xxxxxxx
>> www.empa.ch
>> ********************************
>>
>>
>> _______________________________________________
>> dsdp-tm-dev mailing list
>> dsdp-tm-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
>>
>_______________________________________________
>dsdp-tm-dev mailing list
>dsdp-tm-dev@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev


Back to the top