Re: Xnest & nesting servers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



jayjwa wrote:
Hello All,

I'm having trouble getting the Xnest server to allow clients access when
running as a second server on the same workstation. (I probably won't do
this in practice, but I'd like to know why it's not allowing access.) One
server starts OK. Then I'll start the second server, Xnest, on another
display like so: Xnest -display :1. It starts fine, I can see it. The man
page for Xnest states now I should be able to run xclients on the Xnest
server, such as: xterm -display :1, and then lauch whatever from there.
This is the part were trouble sets in. The xterm is refused, can't
connect. In the term that I started the Xnest server, I see error
messages:
AUDIT: <date> Xnest: client 1 rejected from local host

and this repeats each time I try, same results. I changed the display
numbers around but no luck. It seems something is default set overly
protective, but I'm not sure how to stop it, or what it is. It's not
xhost +<host>, because I tried that in desperation. It won't take a
-display tag, either. So now I have a lovely Xnest server with a paranoid
complex that I can't access from the machine that started it (I could
simply kill it off, so I don't see the security in this.) Thanks in
advance for anyone that can help. I'll keep checking the man pages 'till
then :(

-Jay




_______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86


I'm using this script: ----- #! /bin/sh

HOST="$1"
if [ "$HOST" = "" ]; then HOST="localhost"; fi
SCREEN="$2"
#if [ "$SCREEN" = "" ]; then SCREEN="8"; fi
GEOMETRY="1258x914"

if [ "`echo $HOST | grep tamagoci`" ]; then GEOMETRY="1024x768"; fi
if [ "`uname -n | grep tamagoci`" ]; then GEOMETRY="960x665"; fi

if [ "$SCREEN" = "" ]; then
  TMP=`mktemp /var/tmp/xnest.XXXXXX || exit 1`
  OLDSCR=7
  ps -A -o cmd | grep ^Xnest | sort > $TMP
  exec 3< $TMP
  while read <&3 ln; do
    SCREEN=`echo "$ln" | awk -F " " '{print $2}'`
    SCREEN=`echo "$SCREEN" | awk -F ":" '{print $2}'`
    SCREEN=`echo "$SCREEN" | awk -F "." '{print $1}'`
    if [ $OLDSCR -le $SCREEN ]; then OLDSCR=$SCREEN; fi
  done
  exec 3<&-
  SCREEN=`expr $OLDSCR + 1`
  rm $TMP
fi

Xnest :${SCREEN}.0 -wm -full -query $HOST -once -geometry $GEOMETRY -name "${HOST}.${SCREEN}" &
-----


xterm -display localhost:8
works properly

--
 Bob Marcan                     mailto:bob.marcan@xxxxxxxxxxxxxx
 Aster^H^H...HermesPlus^H^H^H...S&T
 Slandrova ul. 2                       tel:    +386 (1) 5895-200
 1000 Ljubljana, Slovenia              http://www.hermes-plus.si

_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux