X11 forwarding and LBX

Darren Tucker dtucker at zip.com.au
Wed May 8 12:17:31 EST 2002

John Hardin wrote:
> So I fire off lbxproxy and try to run an xterm to see if it works. No
> dice, authentication denied.
> Does anybody have any experience with this? Is it possible to run
> lbxproxy and ssh X11 forwarding simultaneously? If so, does it result in
> any noticable performance gains over basic ssh compressing?

I've used it with a network management product over a WAN link. To open
a map with compressing ssh took ~12sec. With LBX, it took ~9sec, but to
re-open a map that had previously been opened took <1sec.

The script I used to sort out xauth stuff is attached. The caveats are:
you need to source it (ie ". ./lbx") and various versions of LBX behave
differently so you may need to adjust it to local conditions. I also
found that some versions of LBX running on Solaris wouldn't bind()
unless they ran as root, although I never figured out why.

-------------- next part --------------

export LIBPATH

export PATH

if [ "$DISPLAY" = "" ]
        echo "No DISPLAY variable set, LBX cannot start."
        exit 1

echo Starting Low Bandwidth X proxy.
lbxproxy :10 2> $HOME/.lbxproxy &

until egrep "Using port number .[0-9]*." $HOME/.lbxproxy
  sleep 1

lbxport=`awk '/Using port number/{print $4}' $HOME/.lbxproxy | tr -d "'"`


authtype=`xauth list $DISPLAY | awk '{print $2}'`
authkey=`xauth list $DISPLAY | awk '{print $3}'`

if [ ! -z "$authtype" ]
  echo "Adding Xauthority for lbxproxy"
  xauth add $LBXDISPLAY $authtype $authkey
  echo "No Xauthority found for display $DISPLAY."
  echo "You may have authorization problems (especially via SSH!)"

echo Standard X11 display: $DISPLAY
echo LBX proxy display: $LBXDISPLAY

ps -eaf |grep [l]bxproxy

export DISPLAY

More information about the openssh-unix-dev mailing list