[winswitch] xmodmap: No protocol specified

Antoine Martin antoine at nagafix.co.uk
Tue Jul 31 19:07:06 BST 2012


On 08/01/2012 12:30 AM, ROGERIO DE CARVALHO BASTOS wrote:
> Hi,
>
> I have problems when I use winswitch + NX, I'm using NX programs
> distributeds by x2go project
> [http://www.x2go.org/doku.php/wiki:libs:nx-libs], but when I test with
> desktop.devloop.org.uk server NX works normally. The problem is
> described below:
>
> First, when a start winswitch_server a notice this error:
>
> [II] 2012/31/07 11:58:06 process_util.exec_nopipe(['/usr/bin/xset',
> 'q'],None,{'DISPLAY': ':0'},True,False,None,True) waiting on
> process=<subprocess.Popen object at 0x18832d0>
> /usr/bin/xset:  unable to open display ":0"
That's the server trying to figure out if it has access to this display.
Do you own the DISPLAY at ":0" ?
Is it running from the same user-id and environment as the winswitch_server?

In any case, this should not be a problem, this is only used for 
detecting existing X11 display sessions to then give you the option of 
shadowing them (either via NX or VNC)

> But, I can connect and start Desktop/Application Sessions.
> However, when I detach and resume a NX session all fonts are hidden and
Are you saying that the fonts are there the first time (when you 
initially start the application) but not the second time? (when you 
re-connect)

If so, that's very odd and I've never seen that.

> server print this error:
> [II] 2012/31/07 11:59:10 NXServerUtil.set_user_keyboard() session
> connected, setting user keyboard mappings
> No protocol specified
> Error:            Cannot open display ":60"
>                    Exiting
> [EE] 2012/31/07 11:59:10 NXServerUtil.set_keymap(ServerSession(:60 - nx
> - connected),User(Suporte REMO : f7258258b3f641e4b75a40883151cd41))
> xkbcomp failed with exit code 1\n
> [II] 2012/31/07 11:59:10 NXServerUtil.do_set_xmodmap(ServerSession(:60 -
> nx - connected),User(Suporte REMO :
> f7258258b3f641e4b75a40883151cd41),False)
> [II] 2012/31/07 11:59:10
> xmodmap_util.threaded_set_xmodmap(ServerSession(:60 - nx -
> connected),User(Suporte REMO : f7258258b3f641e4b75a40883151cd41),False)
> [EE] 2012/31/07 11:59:10 xmodmap_util.exec_xmodmap({'LANG':
> 'en_US.UTF-8', 'TERM': 'xterm', 'SHELL': '/bin/bash',
> 'XDG_SESSION_COOKIE':
> 'd4fd079ba37b93c95f1ff27a501002e6-1343746681.747292-97588504', 'SHLVL':
> '1', 'SSH_TTY': '/dev/pts/0', 'SSH_CLIENT': '10.1.0.70 52664 22',
> 'HISTCONTROL': 'ignoreboth', 'PWD': '/home/neptuno/rogeriobastos',
> 'LOGNAME': 'rogeriobastos', 'USER': 'rogeriobastos', 'MAIL':
> '/var/mail/rogeriobastos', 'PATH':
> '/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games', 'LS_COLORS':
> 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=
01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:',
> 'HOME': '/home/neptuno/rogeriobastos', 'DISPLAY': ':60', '_':
> '/usr/bin/winswitch_server', 'SSH_CONNECTION': '10.1.0.70 52664
> 10.1.0.17 22'},-pke) process terminated with error code 1, stdout=,
> stderr=No protocol specified/usr/bin/xmodmap:  unable to open display ':60'
>
> Any idea?
It's very strange that you are able to connect to the session with NX 
but somehow the winswitch_server seems to fail to connect to the NX 
virtual X11 server to set the keymap, etc.
Sounds like something is preventing access and generally that means 
xauth issues. Do you get any SELinux denials?
What distro is this? Can you try to specify an alternate XAUTHORITY file?

Just out of curiosity, is there anything specific that prevents you from 
using Xpra instead of NX?

Cheers
Antoine



More information about the shifter-users mailing list