Re: [X2Go-User] x2goserver on Ubuntu Mate 15.04 with 4k monitor and high font-rendering DPI

2015-07-05 Thread Milan Knížek
Stefan Baur píše v Fri 26. 06. 2015 v 16:23 +0200:
> Am 26.06.2015 um 15:27 schrieb Milan Knížek:
> > 
> > Anyway, the aim is to use DPI settings as per x2go client setup.
> > It seems that in MATE, once the user sets hiw own value, the DPI
> > from xorg.conf is ignored (which sounds logical but does not fit
> > the bill for our use). xrandr --dpi XX in the running x2go session
> > also does not have any effect.
> 
> So basically, what you'd need for MATE is something that reads the
> desired DPI value from an ENV var or from some file, then issues the
> gsettings command you quoted above, and this would have to run on
> every session startup and reconnect, right?
> 
Yes, something along those lines.

Part of it could be done by x2go (startup, reconnect, terminate) and
the other part by the user, eg. via $HOME/.config/autostart (for
situations when x2go session terminates uncleanly and then the user
starts a local session).

The latter could be done through autodetection, but that approach would
make any user specific DPI for local session obsolete after re-login...

Once I have time I try to look at it, because running the gsettings
command once the user is logged in is suboptimal (e.g. Skype has to be
restarted to reflect the new DPI).

Milan
-- 
http://milan-knizek.net/
About linux and photography (Czech only)
O linuxu a fotografování

___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] x2goserver on Ubuntu Mate 15.04 with 4k monitor and high font-rendering DPI

2015-06-26 Thread Milan Knížek
Robert Dinse píše v Pá 26. 06. 2015 v 05:32 -0700:
>   In Mate, if you go into System->Preferences->Look and Feel
> ->Appearance,
> then select the "Fonts" tab, in the lower right click on "Details", 
> then in
> the upper left you can set the resolution to whatever DPI you want.  
> This
> works with X2Go, NX protocol with Remmina, and pretty much everything 
> else
> I've tried.
> 
It surely does, because it is the same as the command:
gsettings set org.mate.font-rendering dpi XX

Using GUI is great for a once-set-do-not-touch-anymore action, but when
you need to change the DPI often...

Anyway, the aim is to use DPI settings as per x2go client setup. It
seems that in MATE, once the user sets hiw own value, the DPI from
xorg.conf is ignored (which sounds logical but does not fit the bill
for our use). xrandr --dpi XX in the running x2go session also does not
have any effect.

Milan
___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] x2goserver on Ubuntu Mate 15.04 with 4k monitor and high font-rendering DPI

2015-06-26 Thread Milan Knížek
Simon Baev píše v Čt 21. 05. 2015 v 14:22 -0400:
> I saw this setting but for some reason it didn't affect anything when 
> I changed it to 96. Could it be caused by the fact that ongoing (not 
> logged out) session was active on the server (physical console) while 
> I was trying to remotely connect to it via X2Go? 
> 
> The only way I found to connect to that server with reasonable DPI 
> was to create a separate user that runs default settings, but that 
> doesn't seem to be a good fix. 
> 
I switched recently from KDE 4 to MATE (Arch Linux) and can see the
same behaviour with MATE: x2goserver/nxagent ignores the dpi settings
set in x2goclient.

I had not had time to investigate this further and for now worked
around that by placing two launchers on my desktop and running them
manually in the current session:

For local sessions:
gsettings set org.mate.font-rendering dpi 107

For x2go sessions:
gsettings set org.mate.font-rendering dpi 96

It works on the fly, only some apps (skype) need to be closed and
restarted.

I believe one could use .config/autostart/ and some script with tests
of the environment to set the proper DPI during log-in phase. This
would resolve the issue with uncleanly terminated sessions. Perhaps it
may not work for published apps.

I hope to look at the issue later (well, just a cheap promise...)

Milan
___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

[X2Go-User] PyHoca-GUI: Logon script for published apps

2015-02-23 Thread Milan Knížek
Hello,

I'll would like to have some scripts run after login to the server
(through PyHoca-GUI, neither an app or full desktop is autorun).

(In the particular case, it should add keys to the kernel keyring for
the given session so that the user is able to access network CIFS
multiuser-mounts via systemd.automount just by accessing the mount
point).

What is the correct location to drop the script (bash)?

I can see /usr/lib/x2go/extensions/post-start.d exists: is it intended
for this purpose?

If so, is it functional to use the equivalent structure in /etc/x2go
(system-wide) or even /home/user/.x2go directories?

Best regards,
Milan

-- 
http://milan-knizek.net/
About linux and photography (Czech only)
O linuxu a fotografování



___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Testers Wanted: PyHoca-GUI for Windows 0.5.0.4-20150125

2015-02-19 Thread Milan Knížek
Mike Gabriel píše v St 18. 02. 2015 v 05:11 +:
> Hi Milan,
> 
> On  Di 17 Feb 2015 15:58:29 CET, Milan Knížek wrote:
> 
> > BTW, it would be nice if the debug log file is stored inside the
> > --sessions-rootdir so that files are kept within the "portable"
> > definitions.
> 
> It would be fabulous, if you could file this as a bug against  
> pyhoca-gui. I will forget that otherwise. If you (and not I) submit  
> the bug, you will get informed once it is fixed (that is the advantage  
> of you filing the bug).
> 
> Thanks+Greets,
> Mike
> 
Reported as Bug#795 now.

cheers,
Milan

___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Testers Wanted: PyHoca-GUI for Windows 0.5.0.4-20150125

2015-02-17 Thread Milan Knížek


Michael DePaulo píše v Ne 25. 01. 2015 v 12:22 -0500:
> Hello X2Go users,
> 
> See the previous email I sent below.
> 
> PyHoca-GUI 0.5.0.4 was just released with very few changes compared to
> 0.5.0.3. So I will not be making any new 0.5.0.3 builds.

Hello Michael,

I run PyHoca-GUI from a Win 7 workstation w/o admin privileges. To
workaround the installation, I simply extract the contents of the
distribution binary to a folder of my choice ("Current"):

all files in root-> Current
contents of $_OUTDIR -> Current
vcxsrv   -> Current/vcxsrv

This worked fine with older PyHoca-GUI releases.

The actual command run from Cygwin CLI is:
"./pyhoca-gui.exe" --debug --libdebug --start-xserver --lang en
--client-rootdir "D:\Users\username\Current\.x2goclient"
--sessions-rootdir "D:\Users\username\Current\.x2go"
--ssh-rootdir "D:\Users\username\Current\.ssh"

I use password login to connect to X2Go server. After login to X2Go
server, I am not able to open the menu with left-mouse-button click on
PyHoca-GUI tray icon anymore: simply no visual feedback takes place. It
is still possible to see the menu after right-mouse-button click
(About..., Profile Manager, ..., Exit).

The debug log of PyHoca-GUI.log reads:

... cut ...
pyhoca-gui.exe[6252] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian
client management loop...
pyhoca-gui.exe[6252] (x2gocontrolsession-pylib) INFO: executing command
on X2Go server ,,Athlon Local'': echo
X2GODATABEGIN:5f4dfe80-b6aa-11e4-862e-7ce9d3e1e6c8;
PATH=/usr/local/bin:/usr/bin:/bin sh -c "export HOSTNAME &&
x2golistsessions"; echo X2GODATAEND:5f4dfe80-b6aa-11e4-862e-7ce9d3e1e6c8
pyhoca-gui.exe[6252] (x2gocontrolsession-pylib) INFO: executing command
on X2Go server ,,Athlon Local'': echo
X2GODATABEGIN:5f713df0-b6aa-11e4-b1d5-7ce9d3e1e6c8;
PATH=/usr/local/bin:/usr/bin:/bin sh -c "export HOSTNAME &&
x2golistmounts mu-50-1424167886_stRPUBLISHED_dp32"; echo
X2GODATAEND:5f713df0-b6aa-11e4-b1d5-7ce9d3e1e6c8
Traceback (most recent call last):
  File "pyhoca/wxgui/taskbar.py", line 153, in
CreateSessionManagerPopupMenu
  File "pyhoca/wxgui/menus_taskbar.py", line 1063, in __init__
  File "pyhoca/wxgui/menus_taskbar.py", line 692, in __init__
  File "pyhoca/wxgui/menus_taskbar.py", line 497, in
_generate_Menu_PublishedApplications
  File "wx/_core.py", line 2916, in Scale
wx._core.PyAssertionError: C++ assertion "IsOk()" failed at ..\..\src
\common\image.cpp(429) in wxImage::Scale(): invalid image
pyhoca-gui.exe[6252] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian
client management loop...
... cut ...


The syslog on X2Go server does not say anything special, just the
repeated "client management loop" messages (I use debug log-level):

Feb 17 14:39:18 athlon /usr/bin/x2golistsessions[8450]: x2golistsessions
has been called with no option
Feb 17 14:39:19 athlon /usr/bin/x2golistmounts[8472]: db_getmounts
called, session ID: mu-50-1424167886_stRPUBLISHED_dp32; return value:


BTW, it would be nice if the debug log file is stored inside the
--sessions-rootdir so that files are kept within the "portable"
definitions.

regards,
Milan

___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Published applications: subdirectories are ignored

2014-10-08 Thread Milan Knížek
Hi Mike,

thanks for a quick follow-up and as I can see from the bug's history
also for the fix in Git.

regards,
Milan
-- 
http://milan-knizek.net/
About linux and photography (Czech only)
O linuxu a fotografování


Mike Gabriel píše v St 08. 10. 2014 v 03:33 +:
> Hi Milan,
> 
> On  Di 07 Okt 2014 16:06:29 CEST, Milan Knížek wrote:
> 
> > Hello,
> >
> > is it a known limitation of X2Go that as published applications are only
> > those listed, which reside in /etc/x2go/applications, and any that are
> > in subdirectories such as /etc/x2go/applications/kde4 are ignored by
> > X2Go client?
> >
> > (Tested on pyhoca-gui 0.4.0.8, x2goserver 4.0.1.15. I work-around that
> > by symlinking each .desktop file individually
> > instead  /usr/share/applications only.)
> >
> > Regards,
> > Milan
> 
> I have files a bug [1] containing your report. It hasn't been known so  
> far and it is an issue.
> 
> Mike
> 
> http://bugs.x2go.org/633
> 

___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

[X2Go-User] Published applications: subdirectories are ignored

2014-10-07 Thread Milan Knížek
Hello,

is it a known limitation of X2Go that as published applications are only
those listed, which reside in /etc/x2go/applications, and any that are
in subdirectories such as /etc/x2go/applications/kde4 are ignored by
X2Go client?

(Tested on pyhoca-gui 0.4.0.8, x2goserver 4.0.1.15. I work-around that
by symlinking each .desktop file individually
instead  /usr/share/applications only.)

Regards,
Milan

-- 
http://milan-knizek.net/
About linux and photography (Czech only)
O linuxu a fotografování



___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Occassionally very slow display update

2014-06-12 Thread Milan Knížek


Stefan Baur píše v Čt 12. 06. 2014 v 15:10 +0200:
> Am 12.06.2014 15:05, schrieb Milan Knížek:
> > Is there anything I can do at all to improve the user experience? Or at
> > least to debug the issues?
> 
> It might be that some client-side application is getting in the way of
> X2Go. Do check that indexing is disabled for all directories where X2Go
> data is stored (not only the application folder, but also the settings
> etc.), and you might want to check which virus scanner is running -
> possibly defining exceptions for X2Go files and directories in it, so it
> doesn't attempt to scan there (which might lock and thus slow access to
> cached data, AFAIR - it's been a while since I had to deal with issues
> like that).

Good idea, I'll try to look into it.
-- 
Milan

___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

[X2Go-User] Occassionally very slow display update

2014-06-12 Thread Milan Knížek
Hello,

I run x2go server 4.0.1.15 on Arch Linux x86_64
  xorg-server 1.15.1
  x2go-agent 3.5.0.24-1
  nxagent 3.5.0.24-1

and x2goclient V.4.0.2.0 (Qt - 4.8.5) on Windows 7 with internal X
server. (Installed without admin privileges and running in portable
mode.)

Anyway, the issue described below happens for many months now, thus it
is not related to those particular versions.

After connection to the server, the desktop session (KDE) works just
fine. However, once I start using apps (usually Firefox, Evolution,
Smartgit, digiKam, Dolphin, etc.), the screen behaves like there are
timeouts or short drops in connection.

The screen may freeze for several seconds completely, it does not react
on clicks, keyboard typing, though it still remembers the actions and
"replays" them once the desktop resurrects: e.g. the clock widget on
task bar quikly displays the seconds timer changes, like in an
accelerated movie, then it freezes again.

Other times, it just becomes horribly slow - slowly redrawing.

A temporary solution is to close the app window and start it again. It
usually helps better to disconnect (logout) and connect again.
Suspending and resuming the session from the client does not help at
all.

Note that these issues are not caused by a bad connection per se: I can
open another SSH connection from cygqin and transfer big files back and
forth w/o problems at full speed (cca 2 Mbps up/down). SSH typing
response is also quick, hence latency should not be an issue either.

Logs on the server (syslog, x2go log level debug, CLI output of the
applications) do not show anything interesting at all.

I assume it may be due to the often discussed issues with applications
being compiled against up-to-date X libs, while nxagent still uses the
old X server.

I have tried to use x2goclient on Ubuntu 12.04 (armhf) for some time and
it seems it runs stable, w/o the issues.

Is there anything I can do at all to improve the user experience? Or at
least to debug the issues?

regards,
Milan


-- 
http://milan-knizek.net/
About linux and photography (Czech only)
O linuxu a fotografování



___
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user