Hi,
I want to replace old NX server with X2GO. At this moment i have just one issue with printing, and it does not allow to deploy X2GO.
x2goclient does not have any issues with printing, but we need to use pyhoca-cli for saving passwords in the startup script.
So, when I start pyhoca-cli
*krasikov@krasikov-suse:~> pyhoca-cli --session-profile wmove --password 11122233*
*pyhoca-cli[29471] NOTICE: preparing requested X2Go session
pyhoca-cli[29471] (PyHocaCLI) NOTICE: preparing requested X2Go session
pyhoca-cli[29471] (x2gosessregistry-pylib) NOTICE: registering X2Go
session wmove...
pyhoca-cli[29471] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-cli[29471] (x2gocontrolsession-pylib) NOTICE: connecting to
[10.101.2.178]:22
pyhoca-cli[29471] (x2goterminalsession-pylib) NOTICE: x2gomountdirs
stdout is:
['dirs:/home/krasikov/.x2go/S-krasikov-53-1493977424_stRkwrite_dp24/spool__PRINT_SPOOL___REVERSESSH_PORT__30014',
'ssh port:30014', 'Host:127.0.0.1', 'User:krasikov', 'inserted, timeout
30 sshfs -o idmap=user,uid=id -u
,gid=id -g
,default_permissions,ServerAliveInterval=300,Cipher=blowfish,IdentityFile=/home/krasikov/.x2go/ssh/key.z14529,UserKnownHostsFile=/home/krasikov/.x2go/ssh/key.z14529.ident
"krasikov"@127.0.0.1:"/home/krasikov/.x2go/S-krasikov-53-1493977424_stRkwrite_dp24/spool"
"/tmp/.x2go-krasikov/spool/C-krasikov-53-1493977424_stRkwrite_dp24" -p
30014', 'mount
/home/krasikov/.x2go/S-krasikov-53-1493977424_stRkwrite_dp24/spool ok', '']
pyhoca-cli[29471] (PyHocaCLI) NOTICE: give the X2Go session some time to
come up...
pyhoca-cli[29471] (PyHocaCLI) NOTICE: Press CTRL+C to suspend the
running session...
*
session started normally and after, print job give me an errror:
*pyhoca-cli[29471] (x2goprintqueue-pylib) NOTICE: processing incoming X2Go print job: krasikov-53-1493977424_stRkwrite_dp24_345-krasikov-cupsjob14977X5bFtNsL8GYLdpAo.pdf Exception in thread Thread-12: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib/python2.7/site-packages/x2go/printqueue.py", line 258, in x2go_printjob_handler spool_dir=parent_thread.spool_dir, File "/usr/lib/python2.7/site-packages/x2go/printactions.py", line 135, in do_print self._do_print(pdf_file, job_title, spool_dir) File "/usr/lib/python2.7/site-packages/x2go/printactions.py", line 336, in _do_print _hr_filename = self._humanreadable_filename(pdf_file, job_title, spool_dir) File "/usr/lib/python2.7/site-packages/x2go/printactions.py", line 151, in _humanreadable_filename _hr_path = os.path.normpath(os.path.expanduser(os.path.join(os.path.normpath(target_path), '%s.pdf' % utils.slugify(job_title)))) File "/usr/lib/python2.7/site-packages/x2go/utils.py", line 107, in slugify value = unicodedata.normalize('NFKD', unicode(value)).encode('ascii', 'ignore') UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)*
I think its a bug with codepages on client side.
here is my configs:
*krasikov@krasikov-suse:~> cat /home/krasikov/.x2goclient/sessions** **[20170427121255689]** **speed=2** **pack=16m-jpeg** **quality=9** **fstunnel=true** **export=** **iconvto=KOI8R** **iconvfrom=UTF-8** **useiconv=false** **fullscreen=false** **multidisp=false** **display=1** **maxdim=false** **rdpclient=rdesktop** **directrdpsettings=** **width=800** **height=600** **dpi=97** **setdpi=true** **xinerama=false** **clipboard=both** **usekbd=true** **type=auto** **sound=false** **soundsystem=pulse** **startsoundsystem=true** **soundtunnel=true** **defsndport=true** **sndport=4713** **print=true** **name=wmove** **icon=:/img/icons/128x128/x2gosession.png** **host=10.101.2.178** **user=krasikov** **key=** **rdpport=3389** **sshport=22** **autologin=false** **krblogin=false** **krbdelegation=false** **directrdp=false** **rootless=true** **published=false** **applications=kwrite, WWWBROWSER, MAILCLIENT, OFFICE, TERMINAL, leafpad, /home/wmove** **command=kwrite** **rdpoptions=** **rdpserver=** **xdmcpserver=localhost** **usesshproxy=false** **sshproxytype=SSH** **sshproxyuser=** **sshproxykeyfile=** **sshproxyhost=** **sshproxyport=22** **sshproxysamepass=false** **sshproxysameuser=false** **sshproxyautologin=false** **sshproxykrblogin=false*
*krasikov@krasikov-suse:~> cat /home/krasikov/.x2goclient/printing** **[General]** **showdialog=false** **pdfview=false** **[CUPS]** **defaultprinter=2-HP_M602_pict_hpcups** **[print]** **startcmd=false** **command=lpr** **stdin=false** **ps=false** **[view]** **open=true** **command=xpdf** *
*krasikov@krasikov-suse:~> cat /etc/SuSE-release** **openSUSE 13.1 (i586)** **VERSION = 13.1** **CODENAME = Bottle** *
*krasikov@krasikov-suse:~> locale** **LANG=ru_RU.UTF-8** **LC_CTYPE="ru_RU.UTF-8"** **LC_NUMERIC="ru_RU.UTF-8"** **LC_TIME="ru_RU.UTF-8"** **LC_COLLATE="ru_RU.UTF-8"** **LC_MONETARY="ru_RU.UTF-8"** **LC_MESSAGES="ru_RU.UTF-8"** **LC_PAPER="ru_RU.UTF-8"** **LC_NAME="ru_RU.UTF-8"** **LC_ADDRESS="ru_RU.UTF-8"** **LC_TELEPHONE="ru_RU.UTF-8"** **LC_MEASUREMENT="ru_RU.UTF-8"** **LC_IDENTIFICATION="ru_RU.UTF-8"** **LC_ALL=*
Thank you for any advice
-- С уважением, Красиков Олег Игоревич, e-mail:krasikov@finvest.biz e-mail:kr@rp.ru тлф: +7(499)4900547
Best regards, Krasikov Oleg Igorevich e-mail:krasikov@finvest.biz e-mail:kr@rp.ru tel: +7(499)4900547
Am 10.05.2017 um 14:59 schrieb Krasikov Oleg Igorevich:
Hi,
I want to replace old NX server with X2GO. At this moment i have just one issue with printing, and it does not allow to deploy X2GO.
x2goclient does not have any issues with printing, but we need to use pyhoca-cli for saving passwords in the startup script. Why don't you deploy X2GoClient with passwordless SSH Private Key files? No user interaction required for logon that way, either, plus added security as you can easily disable keys on the server.
Storing passwords is so ... ugh. Please don't do that.
Kind Regards, Stefan Baur
-- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
Because we use pam_mount auth module that requed password for mounting network resources (smb and nfs) into user homedir.
Best Regards, Krasikov Oleg Igorevich, e-mail: krasikov@finvest.biz e-mail: kr@rp.ru tel: +7(499)4900547
25.05.2017 15:17, Stefan Baur пишет:
Am 10.05.2017 um 14:59 schrieb Krasikov Oleg Igorevich:
Hi,
I want to replace old NX server with X2GO. At this moment i have just one issue with printing, and it does not allow to deploy X2GO.
x2goclient does not have any issues with printing, but we need to use pyhoca-cli for saving passwords in the startup script. Why don't you deploy X2GoClient with passwordless SSH Private Key files? No user interaction required for logon that way, either, plus added security as you can easily disable keys on the server.
Storing passwords is so ... ugh. Please don't do that.
Kind Regards, Stefan Baur