use X11 client while not logged on

use X11 client while not logged on

Post by Benjamin Fouche » Wed, 17 Apr 2002 15:42:35



Hi there,

I want to run a program needing an X11 display at night when everyone is
logged out. I don't know why this program needs a display but it does. For
the moment, I have to let a workstation logged in to be able to use its
display.

Can I configure dtlogin to let make me use the current display while
nobody's logged ?

If not, is there a way to configure my server to have a :1 entry which is
not connected to a physical device ?

Another solution would be to have a "virtual" X11 server running on no real
screen (all in memory ?) to be used by this program (some sort of Xnest but
not connected to a real server)

However I do not how to make all of these and I imagine this can be useful
to run test programs at night.

I'm working with SUN Solaris 7/8 on Sparc Workstations and CDE login.

Thanks in advance.

Benjamin Foucher.

 
 
 

use X11 client while not logged on

Post by Edwin Wierszeli » Wed, 17 Apr 2002 18:44:48



> Can I configure dtlogin to let make me use the current display while
> nobody's logged ?

If your X server is running while nobody is logged on (it displays
CDE login), try to use this:

 DISPLAY=localhost:0
 export DISPLAY
 yourprogram

yourprogram should be able to use display on localhost even if no session
is open.

--

 "Big mistakes are easier to hide" (EW)

 
 
 

use X11 client while not logged on

Post by Benjamin Fouche » Wed, 17 Apr 2002 20:35:13


At first, thanks for the reply.

Quote:> If your X server is running while nobody is logged on (it displays
> CDE login), try to use this:

When I run my program while the CDE login is displayed, my program gives no
error but never returns. I also tried to run other programs which normally
create windows but they all don't appear on the screen. I also used:
xwd -root -display localhost:0 to view the display remotely but it never
returned.

Quote:> your program should be able to use display on localhost even if no session
> is open.

Can it be a problem which some xhost file ? I can't see anything like this
in /usr/dt/config.

Best regards,
Benjamin Foucher.

 
 
 

use X11 client while not logged on

Post by Richard L. Hamilt » Wed, 17 Apr 2002 22:06:51




Quote:> At first, thanks for the reply.

>> If your X server is running while nobody is logged on (it displays
>> CDE login), try to use this:

> When I run my program while the CDE login is displayed, my program gives no
> error but never returns. I also tried to run other programs which normally
> create windows but they all don't appear on the screen. I also used:
> xwd -root -display localhost:0 to view the display remotely but it never
> returned.

>> your program should be able to use display on localhost even if no session
>> is open.
> Can it be a problem which some xhost file ? I can't see anything like this
> in /usr/dt/config.

By default, dtlogin grabs the server while reading the login name and
password.  This can be turned off.  If /etc/dt/config/Xconfig doesn't
already exist, copy /usr/dt/config/Xconfig to /etc/dt/config/Xconfig.
Then uncomment the line

#  Dtlogin*grabServer:        False

See dtlogin(1) for more details.

--

 
 
 

use X11 client while not logged on

Post by Tony Curti » Wed, 17 Apr 2002 22:46:17


>> On Tue, 16 Apr 2002 08:42:35 +0200,

> Hi there, I want to run a program needing an X11 display
> at night when everyone is logged out. I don't know why
> this program needs a display but it does. For the
> moment, I have to let a workstation logged in to be able
> to use its display.
> If not, is there a way to configure my server to have a
> :1 entry which is not connected to a physical device ?
> Another solution would be to have a "virtual" X11 server
> running on no real screen (all in memory ?) to be used
> by this program (some sort of Xnest but not connected to
> a real server)

Sounds like you might want to use VNC (google).

hth
t
--
Wait up guys!  I've gotta empty my grass bag.

 
 
 

use X11 client while not logged on

Post by Alan Coopersmi » Thu, 18 Apr 2002 01:39:46



|If not, is there a way to configure my server to have a :1 entry which is
|not connected to a physical device ?
|
|Another solution would be to have a "virtual" X11 server running on no real
|screen (all in memory ?) to be used by this program (some sort of Xnest but
|not connected to a real server)

You have just described Xvfb, included in Solaris 9, and available from
a variety of sites for previous releases - search on google and you
shall find.

--
________________________________________________________________________


  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 
 
 

use X11 client while not logged on

Post by Darren Dunha » Thu, 18 Apr 2002 01:46:21



> Hi there,
> I want to run a program needing an X11 display at night when everyone is
> logged out. I don't know why this program needs a display but it does. For
> the moment, I have to let a workstation logged in to be able to use its
> display.

Do you need to interact with the display?

If not, you might want Xvfb (virtual frame buffer).  It lets you
configure a fake X server.  Clients can interact with it, and if you
need to you can get a screen image, but there's no keboard or mouse
input devices, and you don't see a real-time image.

If you do need to interact with it, Xvnc might be better.  You can
connect to it from time to time.  In fact, it might be the better
all-around solution, but Xvfb is available also.

--

Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
          < How are you gentlemen!! Take off every '.SIG'!! >

 
 
 

use X11 client while not logged on

Post by Benjamin Fouche » Thu, 18 Apr 2002 01:16:13


Thanx, that's great, it works.

Indeed, at first it only gave me a "connection refused" message like xdm
does. Then adding a xhost line to Xsetup solved the problem.

Best regards.

PS: If someone is interested, here's how it goes:
copy /usr/dt/config/Xconfig to /etc/dt/config/Xconfig if it doesn't exist
yet.
edit /etc/dt/config/Xconfig and uncomment the line:
Dtlogin*grabServer:        False
in the same file, edit or add the line
Dtlogin*setup: Xsetup_0
copy /usr/dt/config/Xsetup to /etc/dt/config/Xsetup_0
edit /etc/dt/config/Xsetup_0 and add an xhost line, for example:
$XDIR/xhost +

Note: The name Xsetup_0 is only here to be different from the original one
which would be found elsewhere. You can alternatively provide the full
Xsetup file name on the setup line of Xconfig.

----- Original Message -----

Newsgroups: comp.unix.solaris
Sent: Tuesday, April 16, 2002 3:06 PM
Subject: Re: use X11 client while not logged on

> By default, dtlogin grabs the server while reading the login name and
> password.  This can be turned off.  If /etc/dt/config/Xconfig doesn't
> already exist, copy /usr/dt/config/Xconfig to /etc/dt/config/Xconfig.
> Then uncomment the line

> #  Dtlogin*grabServer:        False

> See dtlogin(1) for more details.

 
 
 

use X11 client while not logged on

Post by Benjamin Fouche » Thu, 18 Apr 2002 05:05:48


Thanks to all.

My main idea was to use a fake server. But people around me didn't believe
that it could exist. That why I asked for the problem with CDE as a
workaround. For the moment it's OK but I'll give xvfb and xvnc a try. That
would avoid the problem of using xhost on the display.

Thanks again...
Best regards,

Benjamin Foucher.

Quote:> Can I configure dtlogin to let make me use the current display while
nobody's logged ?
> Another solution would be to have a "virtual" X11 server running on no

real screen (all in memory ?) to be used by this program (some sort of Xnest
not connected to a real server)
 
 
 

use X11 client while not logged on

Post by d.. » Thu, 18 Apr 2002 06:28:06


: Hi there,

: I want to run a program needing an X11 display at night when everyone is
: logged out. I don't know why this program needs a display but it does. For
: the moment, I have to let a workstation logged in to be able to use its
: display.

I would use VNC, if this is a process that you are going to start manually.
VNC allows you to connect from a viewer to a server, start processes, and
break the connection from viewer to server without affecting the server.
It will stilll be running, with no one wathcing.

Even if you aren't starting manually, you could still use VNC.
Something like
        vncserver :92 &
        # ignore an error return, it might already be running
        DISPLAY=localhost:92 myprogram &

At any time, you could start
        vncviewer :92 &
and pick up a view of the screen.

Passwords for the vnc sessions for this user can be set.

The viewer can be run from Solaris, Linux, Windows, WindowsCE...

http://www.uk.research.att.com/vnc/

--
---

                - Pope Valley (Napa County) CA.

 
 
 

1. no x11-server but x11-clients

I had to install redhat5.2 again and didnt install any x-stuff cause I
dont need to run a x-server on a pure text-terminal.

but I still want to ssh-forward my x-sessions to another machine (where a
x-server is installed). but now I cant even run x-clients (netscape etc.)
and ssh tells me that it cant support x11-forward.

so what stuff do I have to install to run x-clients without installing
all the stuff I need for running a x-server. (my harddisk is not as big
as should be ...)

peter

-----------------

ANTISPAM
goldfisch.atat.at

2. strdup

3. X11 forwarding to win98 client using starnet

4. SMB Shares in /etc/fstab

5. Two minor issues: mouse (not X11), display (X11).

6. openbsd 3.3 + (supported) PCMCIA eth. card, quick question.

7. Enable X11 Forwarding : How ? Not in X11 FAQs...

8. Where to find LinuxPPC apps

9. Apache not logging client address

10. Press Ctrl-D whiling inputting

11. Upgrading to 4.6.2...X11 config in /usr/X11R6/lib/X11 or /etc/X11?

12. Using sxpc: term host not home of x clients

13. NIS client is up but not using network maps?