Hi Pierre,

On  Fr 20 Jun 2014 12:55:00 CEST, SARL Mezzònomy wrote:

Hi,

Thanks for your rapid answer. We found the issue.

In fact, I use the client (more or less) as I should use the proxy. Sorry!

 params = {
  'profile_name':              raw_input(),
  'cmd':                       raw_input(),
  'server':                    raw_input(),
  'port':                      int(raw_input()),
  'username':                  raw_input(),
  'key_filename':              '',
  'allow_share_local_folders': False,
  'share_local_folders':       [],

  'link':                      'adsl',
  'use_sshproxy':              False,
  'sshproxy_key_filename':     '',
  'sshproxy_host':             '',
  'sshproxy_tunnel':           '',
  'sshproxy_user':             '',

  'session_type':              'application',
  'geometry':                  '800x600',
  'convert_encoding':          False,
  'client_encoding':           'ISO8859-1',
  'server_encoding':           'UTF-8',

  'rdp_server':                '',
  'rdp_options':               '',

  'allow_mimebox':             False,
  'mimebox_action':            'OPEN',
  'mimebox_extensions':        '',

  'snd_port':                  4713,
  'snd_system':                'pulse',
  'kbtype':                    'pc105/us',
  'kblayout':                  'us',
  'printing':                  True,
  'pack':                      '16m-jpeg-9',
  'xdmcp_server':              'localhost',
 }
 reg_session_instance = x2go.X2goSession(**params)
reg_session_instance.connect(params['username'], raw_input());#this was already wrong...
 reg_session_instance.start()
 stderr.write('Hand-shake over, nxproxy starts.\n')
 while reg_session_instance.is_running():
  gevent.sleep(1)
 reg_session_instance.terminate()
 exit()

And thus, I have no client to indicate the local Xserver, on ubuntu it works fine, but on windows...

How can I proceed the same way (without a parameter file) with a proper client to fit with the local XServer ?

On Windows you either have to launch VcXsrv manually with the above approach or switch over to using the X2GoClient class [1]. The X2GoClient class can handle the start-up of the X-Server on Windows.

Mike

[1] http://code.x2go.org/gitweb?p=python-x2go.git;a=blob;f=examples/x2go_start_session.py;h=958a82232a3c29a034b0bac09c29e26348001b4f;hb=61de9d792390a30aa2e6e8a143bc28bf27bebadd

--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpg6ePGj6XGI.pgp
Description: Digitale PGP-Signatur

_______________________________________________
x2go-dev mailing list
[email protected]
http://lists.x2go.org/listinfo/x2go-dev

Reply via email to