[Nix-dev] vncserver

Lluís Batlle viriketo at gmail.com
Thu Feb 26 09:28:52 CET 2009


Hello,

I want to start tightvnc x servers. I enabled xfs, as I saw the
vncserver script wants it.

The server starts fine, but no client can connect to it. I mean the X
clients, the X programs I want to start in the startup. The vnc
clients work fine, but they find no x client running in that server.

I've seen posts of people with the same problem, and most solutions
come from *not using tightvnc*, and using any other system.
The finest I've seen, which doesn't work for me, tells that the
problem appears when the server is started from an ssh session, and
that starting it after a "su $USER" works well. It doesn't work for
me, and I use a ssh session.
Nevertheless, I've noticed that if I do the "su $USER", my environment
has the XAUTHORITY variable, while in a normal ssh sesssion, it
doesn't. I don't know what puts the XAUTHORITY variable there, after
the "su $USER" command. In fact, that variable even doesn't point to
my usual ~/.Xauthority file, but to some ~/.Xauth{RANDOMCHARS}, the
randomchars being like those of mktemp().

I have this startup script:
--------------------
#!/bin/sh

echo Environment:
set
echo End of Enviromnent.

xrdb $HOME/.Xresources
xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
icewm &
--------------------

And I have this log:
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
26/02/09 09:19:04 Xvnc version TightVNC-1.3.9
26/02/09 09:19:04 Copyright (C) 2000-2007 TightVNC Group
26/02/09 09:19:04 Copyright (C) 1999 AT&T Laboratories Cambridge
26/02/09 09:19:04 All Rights Reserved.
26/02/09 09:19:04 See http://www.tightvnc.com/ for information on TightVNC
26/02/09 09:19:04 Desktop name 'X' (comanegra:1)
26/02/09 09:19:04 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
26/02/09 09:19:04 Listening for VNC connections on TCP port 5901
26/02/09 09:19:04 Listening for HTTP connections on TCP port 5801
26/02/09 09:19:04   URL http://comanegra:5801
Environment:
ACLOCAL_PATH=/nix/var/nix/profiles/per-user/llbatlle/profile/share/aclocal:/nix/var/nix/profiles/per-user/llbatlle/profile/share/aclocal:
ASPELL_CONF='dict-dir
/nix/var/nix/profiles/per-user/llbatlle/profile/lib/aspell'
AWT_TOOLKIT=MToolkit
BASH=/bin/sh
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=([0]="0")
BASH_SOURCE=([0]="/home/llbatlle/.vnc/xstartup")
BASH_VERSINFO=([0]="3" [1]="2" [2]="39" [3]="1" [4]="release"
[5]="x86_64-unknown-linux-gnu")
BASH_VERSION='3.2.39(1)-release'
DIRSTACK=()
DISPLAY=:1
EDITOR=vim
EUID=1000
FONTCONFIG_FILE=/etc/fonts/fonts.conf
GROUPS=()
GST_PLUGIN_PATH=/nix/var/nix/profiles/per-user/llbatlle/profile/lib/gstreamer-0.10:/nix/var/nix/profiles/default/lib/gstreamer-0.10:/nix/var/nix/profiles/per-user/llbatlle/profile/lib/gstreamer-0.10:/nix/var/nix/profiles/default/lib/gstreamer-0.10:
HOME=/home/llbatlle
HOSTNAME=comanegra
HOSTTYPE=x86_64
IFS=' 	
'
INFOPATH=/nix/var/nix/profiles/per-user/llbatlle/profile/info:/nix/var/nix/profiles/per-user/llbatlle/profile/share/info:/nix/var/nix/profiles/default/info:/nix/var/nix/profiles/default/share/info:/var/run/current-system/sw/info:/var/run/current-system/sw/share/info
KDEDIRS=/nix/var/nix/profiles/per-user/llbatlle/profile:/nix/var/nix/profiles/default:/var/run/current-system/sw
LANG=ca_ES.UTF-8
LD_LIBRARY_PATH=/home/llbatlle/usr/lib
LOCATE_PATH=/var/cache/locatedb
LOGNAME=llbatlle
MACHTYPE=x86_64-unknown-linux-gnu
MAIL=/var/mail/llbatlle
MANPATH=/usr/share/man/:/home/llbatlle/.nix-profile/share/man
MODULE_DIR=/nix/store/bciddl97r1miipc5pwk72zvv16j6xwcc-kernel-modules/lib/modules
NIXPKGS_ALL=/etc/nixos/nixpkgs
NIXPKGS_CONFIG=/nix/etc/config.nix
NIX_CONF_DIR=/nix/etc/nix
NIX_OTHER_STORES='/var/run/nix/remote-stores/*/nix'
NIX_REMOTE=daemon
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PAGER='less -R'
PATH=/home/llbatlle/bin:/home/llbatlle/usr/bin:/home/llbatlle/bin:/var/setuid-wrappers:/nix/var/nix/profiles/per-user/llbatlle/profile/bin:/nix/var/nix/profiles/per-user/llbatlle/profile/sbin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin:/local/Xilinx/10.1/ISE/bin/lin/
PERL5LIB=/nix/var/nix/profiles/per-user/llbatlle/profile/lib/site_perl:/nix/var/nix/profiles/default/lib/site_perl:/nix/var/nix/profiles/per-user/llbatlle/profile/lib/site_perl:/nix/var/nix/profiles/default/lib/site_perl:
PIPESTATUS=([0]="0")
PKG_CONFIG_PATH=/nix/var/nix/profiles/per-user/llbatlle/profile/lib/pkgconfig:/nix/var/nix/profiles/default/lib/pkgconfig:/nix/var/nix/profiles/per-user/llbatlle/profile/lib/pkgconfig:/nix/var/nix/profiles/default/lib/pkgconfig:
POSIXLY_CORRECT=y
PPID=1
PS4='+ '
PWD=/home/llbatlle
SHELL=/var/run/current-system/sw/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments:posix
SHLVL=3
SSH_CLIENT='192.168.0.53 44637 22'
SSH_CONNECTION='192.168.0.53 44637 192.168.0.59 22'
SSH_TTY=/dev/pts/2
TERM=xterm
TS_ENV='set;pwd'
TZ=Europe/Madrid
TZDIR=/nix/store/a8922c0h87iilxzzvwn2hmv8x210aqb9-glibc-2.7/share/zoneinfo
UID=1000
USER=llbatlle
VNCDESKTOP=X
VXL_DIR=/usr/local/share/vxl/cmake/
XDG_CONFIG_DIRS=/nix/var/nix/profiles/per-user/llbatlle/profile/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/var/run/current-system/sw/etc/xdg
XDG_DATA_DIRS=/nix/var/nix/profiles/per-user/llbatlle/profile/share:/nix/var/nix/profiles/default/share:/var/run/current-system/sw/share
XILINX=/local/Xilinx/10.1/ISE
_=Environment:
End of Enviromnent.
AUDIT: Thu Feb 26 09:19:05 2009: 18776 Xvnc: client 1 rejected from local host
Client is not authorized to connect to Serverxrdb: Can't open display ':1'
AUDIT: Thu Feb 26 09:19:05 2009: 18776 Xvnc: client 1 rejected from local host
Client is not authorized to connect to Serverxsetroot:  unable to open
display ':1'
IceWM: using /home/llbatlle/.icewm for private configuration files
AUDIT: Thu Feb 26 09:19:05 2009: 18776 Xvnc: client 1 rejected from local host
Client is not authorized to connect to ServerIceWM: No es pot obrir la
pantalla: :1. Les X han d'estar funcionant i $DISPLAY configurat.
--------------------



More information about the nix-dev mailing list