Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] how to set DISPLAY environment var. for lotus notes?

392 views
Skip to first unread message

Matthias F. Brandstetter

unread,
Jul 13, 2004, 5:40:08 AM7/13/04
to
Hi all,

after successfully installing Lotus Notes 6 (on a remote server) I want to
setup it now via httpsetup. So I activated X11 forwarding in server's
sshd_config and on my local ssh_config. Then I did a

$ xhost +<serverIP>

After connecting to my server via ssh and switching to notes user, I did

$ export DISPLAY="<localIP>:0"

and then

$ /opt/lotus/bin/http httpsetup

but I still get this error message:

--<snip>--
./java -ss512k -Xoss5M -cp jhall.jar:cfgdomserver.jar:Notes.jar
lotus.domino.setup.WizardManagerDomino -data /usr/local/notesdata
Please edit your shell's DISPLAY environment variable to reflect an
unlocked terminal that you would like to launch the Domino Setup Program
on.
--</snip>--

Any ideas on this? Did I miss something?
Greetings and TIA, Matthias

--
They said the same thing about Urkle; that little snot. Boy I'd like
to smack that kid.

-- Homer Simpson
Bart Gets Famous

--
gento...@gentoo.org mailing list

Peter van Eck

unread,
Jul 13, 2004, 6:00:15 AM7/13/04
to
Hi

It looks like you mixed up 2 different things. the xhost command is used
for plain remote login
to allow connections from theremote server to your X server.

However you use ssh and in that case you shouldn't need export/set the
DISPLAY variable.

As you said you have enabled X11 forwarding in the ssh config files so
your DISPLAY variable should be set when you login to the remote server.

You switch user that will lose the DISPLAY setting probably. Have you
tried logging on directly as the user you execute the program from ?

Peter

Matthias F. Brandstetter wrote:

>Hi all,
>
>after successfully installing Lotus Notes 6 (on a remote server) I want to
>setup it now via httpsetup. So I activated X11 forwarding in server's
>sshd_config and on my local ssh_config. Then I did a
>
>$ xhost +<serverIP>
>
>After connecting to my server via ssh and switching to notes user, I did
>
>$ export DISPLAY="<localIP>:0"
>
>and then
>
>$ /opt/lotus/bin/http httpsetup
>
>but I still get this error message:
>
>--<snip>--
>./java -ss512k -Xoss5M -cp jhall.jar:cfgdomserver.jar:Notes.jar
>lotus.domino.setup.WizardManagerDomino -data /usr/local/notesdata
> Please edit your shell's DISPLAY environment variable to reflect an
>unlocked terminal that you would like to launch the Domino Setup Program
>on.
>--</snip>--
>
>Any ideas on this? Did I miss something?
>Greetings and TIA, Matthias
>
>
>

--
gento...@gentoo.org mailing list

Matthias F. Brandstetter

unread,
Jul 13, 2004, 6:20:06 AM7/13/04
to
---------- quoting Peter van Eck ----------

> You switch user that will lose the DISPLAY setting probably. Have you
> tried logging on directly as the user you execute the program from ?

It seems DISPLAY var isn't set at all:

--<snip>--
[ 12:07 haim@itchy ~ ] ssh -X -l root bruyere
Password:

bruyere root # set | grep DISPLAY
bruyere root # grep "X11" /etc/ssh/sshd_config
X11Forwarding yes
#X11DisplayOffset 10
X11UseLocalhost no
bruyere root #
--</snip>--

What did I wrong?
Greetings, Matthias

--
Hee, hee! I can be a jerk and no one can stop me!

-- Homer Simpson
Itchy & Scratchy Land

--
gento...@gentoo.org mailing list

Peter van Eck

unread,
Jul 13, 2004, 6:30:12 AM7/13/04
to
Ah you should remove the comment out "#" mark for

#X11DisplayOffset 10

Then sshd creates the DISPLAY number in this case you should see
<hostname>:10.0
when you do echo $DISPLAY


Matthias F. Brandstetter wrote:

>---------- quoting Peter van Eck ----------
>
>
>>You switch user that will lose the DISPLAY setting probably. Have you
>>tried logging on directly as the user you execute the program from ?
>>
>>
>
>It seems DISPLAY var isn't set at all:
>
>--<snip>--
>[ 12:07 haim@itchy ~ ] ssh -X -l root bruyere
>Password:
>
>bruyere root # set | grep DISPLAY
>bruyere root # grep "X11" /etc/ssh/sshd_config
>X11Forwarding yes
>#X11DisplayOffset 10
>X11UseLocalhost no
>bruyere root #
>--</snip>--
>
>What did I wrong?
>Greetings, Matthias
>
>
>

--
gento...@gentoo.org mailing list

Alexander Skwar

unread,
Jul 13, 2004, 6:30:12 AM7/13/04
to
Am Tue, 13 Jul 2004 11:33:48 +0200 schrieb Matthias F. Brandstetter:

> Hi all,
>
> after successfully installing Lotus Notes 6 (on a remote server) I want to
> setup it now via httpsetup. So I activated X11 forwarding in server's
> sshd_config and on my local ssh_config. Then I did a
>
> $ xhost +<serverIP>
>
> After connecting to my server via ssh and switching to notes user, I did
>
> $ export DISPLAY="<localIP>:0"
>
> and then
>
> $ /opt/lotus/bin/http httpsetup
>
> but I still get this error message:

On the machine with <serverIP>, can you open an xterm (or whatever) and
have it displayed on the display 0 of machine with <localIP>?


Alexander Skwar
--
/* So there I am, in the middle of my `netfilter-is-wonderful'
talk in Sydney, and someone asks `What happens if you try
to enlarge a 64k packet here?'. I think I said something
eloquent like `fuck'. */
2.4.3 linux/net/ipv4/netfilter/ip_nat_ftp.c


--
gento...@gentoo.org mailing list

Matthias F. Brandstetter

unread,
Jul 13, 2004, 6:40:06 AM7/13/04
to
---------- quoting Peter van Eck ----------
> Ah you should remove the comment out "#" mark for
>
> #X11DisplayOffset 10
>
> Then sshd creates the DISPLAY number in this case you should see
> <hostname>:10.0
> when you do echo $DISPLAY

[ 12:30 haim@itchy ~ ] ssh -X -l root bruyere
Password:

bruyere root # set | grep DISPLAY
bruyere root #
bruyere root # grep "X11" /etc/ssh/sshd_config
X11Forwarding yes

X11DisplayOffset 10
X11UseLocalhost no
bruyere root #

--
You see, boy? The real money's in bootlegging! Not in your childish
vandalism.

-- Homer Simpson
Homer vs. the Eighteenth Amendment

--
gento...@gentoo.org mailing list

Matthias F. Brandstetter

unread,
Jul 13, 2004, 6:40:08 AM7/13/04
to
---------- quoting Alexander Skwar ----------

> On the machine with <serverIP>, can you open an xterm (or whatever) and
> have it displayed on the display 0 of machine with <localIP>?

Unfortunately, I have no X installed on this server, so no xterm or
similar. Is there any tool I could install to test what you mean, w/o
installing all X11 (as for dependecies)?

Greetings, Matthias

--
Homer: Little baby batter,
Can't control his bladder!

Burns: Mmm...Crude, but I like it. What do you say we freshen up out
little drinkie poos?

Homer: Don't mind if I do.

Dancin' Homer

--
gento...@gentoo.org mailing list

Peter van Eck

unread,
Jul 13, 2004, 7:00:16 AM7/13/04
to
Needless to say probably but you did restart the sshd after you made the
changes ...

You can try to run ssh in verbose (ssh -vv root@<hostname> mode and
check the output for
X11 related messages......


Matthias F. Brandstetter wrote:

>---------- quoting Peter van Eck ----------
>
>
>>Ah you should remove the comment out "#" mark for
>>
>>#X11DisplayOffset 10
>>
>>Then sshd creates the DISPLAY number in this case you should see
>><hostname>:10.0
>>when you do echo $DISPLAY
>>
>>
>
>[ 12:30 haim@itchy ~ ] ssh -X -l root bruyere
>Password:
>
>bruyere root # set | grep DISPLAY
>bruyere root #
>bruyere root # grep "X11" /etc/ssh/sshd_config
>X11Forwarding yes
>X11DisplayOffset 10
>X11UseLocalhost no
>bruyere root #
>
>
>

--
gento...@gentoo.org mailing list

Matthias F. Brandstetter

unread,
Jul 13, 2004, 7:50:07 AM7/13/04
to
---------- quoting Peter van Eck ----------
> Needless to say probably but you did restart the sshd after you made the
> changes ...

yep, I even restarted the whole machine...

> You can try to run ssh in verbose (ssh -vv root@<hostname> mode and
> check the output for
> X11 related messages......

...
debug2: callback start
debug2: ssh_session2_setup: id 0
debug2: channel 0: request pty-req
debug2: x11_get_proto: /usr/X11R6/bin/xauth list :0.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req
debug2: channel 0: request shell
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug1: Remote: No xauth program; cannot forward with spoofing.
debug2: channel 0: rcvd adjust 131072
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
...

--
Your mother seems really upset. I better go have a talk with
her -- during the commercial.

-- Homer Simpson
Simpsoncalifragilisticexpiala(annoyed grunt)ocious

--
gento...@gentoo.org mailing list

Peter van Eck

unread,
Jul 13, 2004, 8:20:08 AM7/13/04
to
As you see ssh uses xauth for X forwarding. If you don't have X
installed you can't use X forwarding.....

You don't have X installed on the remote host I reckon ?

Matthias F. Brandstetter wrote:

--
gento...@gentoo.org mailing list

Matthias F. Brandstetter

unread,
Jul 13, 2004, 8:20:09 AM7/13/04
to
---------- quoting Peter van Eck ----------
> As you see ssh uses xauth for X forwarding. If you don't have X
> installed you can't use X forwarding.....
>
> You don't have X installed on the remote host I reckon ?

Indeed ... Do I need X installed on the remote host as well to forward any
X related stuff? I can't start a X app on the remote host and forward
output to my local machine that way?

Greetings, Matthias

--
It's just that I've only seen this movie twice before, and I've seen
you every night for the last eleven ye -- aha. What I mean to say is:
We'll snuggle tomorrow, sweetie. I promise.

-- Homer Simpson
Grampa vs. Sexual Inadequacy

--
gento...@gentoo.org mailing list

Peter van Eck

unread,
Jul 13, 2004, 8:50:07 AM7/13/04
to
With ssh yes, well at least the xuath program in order to establish a
secure X forwarding connection.

Now I read your original post again, and assuming you don't need to have
your X session to run
within the ssh tunnel , you should be able to set your DISPLAY manually.

I noticed that you didn't set the DISPLAY's session just the 0 for the
display to use.

so can you try after using xhost + to allow connections on the localhost
and then set the DISPLAY on the remote host to <localhost>:0.0

I'm not sure if it works as I don't know how regualr X server do their
authentication actually.
I think using xhost is all there is to it for host based authentication
but I could be wrong


Matthias F. Brandstetter wrote:

>---------- quoting Peter van Eck ----------
>
>
>>As you see ssh uses xauth for X forwarding. If you don't have X
>>installed you can't use X forwarding.....
>>
>>You don't have X installed on the remote host I reckon ?
>>
>>
>
>Indeed ... Do I need X installed on the remote host as well to forward any
>X related stuff? I can't start a X app on the remote host and forward
>output to my local machine that way?
>
>Greetings, Matthias
>
>
>

--
gento...@gentoo.org mailing list

0 new messages