Operating System - HP-UX
1821540 Members
2177 Online
109633 Solutions
New Discussion юеВ

Device name invalid or missing after keyword "Screen"

 
SOLVED
Go to solution
dan dobbs
Frequent Advisor

Device name invalid or missing after keyword "Screen"

I'm trying to export the display of my N-class (HP-UX 11), and I get the following error:

# xhost + 10.1.1.41 {my desktop PC}
10.1.1.41 being added to access control list
# export DISPLAY=10.1.1.41:0.0
# startx &
[1] 10168
#
X server: Error in /etc/X11/X0screens (line 511)
Device name invalid or missing after keyword "Screen".
X server: Will try default "/dev/crt"
Failure to open default device file `/dev/crt`.
Please either specify the proper device filename in
your /etc/X11/X0screens file or fix `/dev/crt`. This filename is either
non-existent or is not a character special file.

Fatal server error:


X connection to :0.0 broken (explicit kill or server shutdown).

[1] + Done(1)

Anyone have an example I could paste into my /etc/X11/X0screens file to make it all work?

Thanks!

-dd
Hey, that's not a spoon.
10 REPLIES 10
MANOJ SRIVASTAVA
Honored Contributor

Re: Device name invalid or missing after keyword "Screen"

Hi Dan

Here is a working copy of X0screens from one of our N Class servers hope this works .

But this also points to /dev/crt , I think you need to look at soemthing else.


Manoj Srivastava
harry d brown jr
Honored Contributor

Re: Device name invalid or missing after keyword "Screen"

What kind of X emulation server are you running on your PC?

live free or die
harry
Live Free or Die
Sachin Patel
Honored Contributor

Re: Device name invalid or missing after keyword "Screen"

Also check /dev/crt file
It should look like this
# ll crt
crw-rw-rw- 1 bin bin 174 0x000000 Feb 7 18:15 crt

Sachin
Is photography a hobby or another way to spend $
hpuxrox
Respected Contributor

Re: Device name invalid or missing after keyword "Screen"

Do a,

ls -la /dev/crt
lssf /dev/crt

Does the file exist?

Here are the major and minor numbers to recreate,

Major 174
Minor 0
harry d brown jr
Honored Contributor

Re: Device name invalid or missing after keyword "Screen"

/dev/crt is not necessary to run xterm, or any X program for that matter.

for exceed X server on my PC I use this to start an xterm session:

/usr/bin/X11/xterm -sl 2000 -ls -sb -cr Wheat -T `hostname` -bg MidnightBlue -fg Wheat -fn 7x13 -fb 7x13B -display @d


live free or die
harry
Live Free or Die
Sachin Patel
Honored Contributor

Re: Device name invalid or missing after keyword "Screen"

I don't think you can run startx on pc. you need somekind of xemulator like exceed. then setup display back to pc and can run any graphics or even bring your cde on pc.

Sachin
Is photography a hobby or another way to spend $
Alex Glennie
Honored Contributor

Re: Device name invalid or missing after keyword "Screen"

the device files or the entries in X0.screens file will only be relevant(used) on the local N-class system ....... if it has a graphics card and graphics monitor (not a console).

you can use rmsf /dev/*crt* to remove any duff ones and then use insf -evd framebuf to recreate them.

HOWEVER Your PC needs to run a X-emulation package for startX to work .... without it it's a non-starter.

eg ReflectionX, Exceed, KeaX or vnc .....
Wodisch
Honored Contributor
Solution

Re: Device name invalid or missing after keyword "Screen"

Hi,

"startx" and "xinit" are only to start the LOCAL X-server on a UNIX/Linux system, *not* to be used for remote X-servers, like your PC!

Do you want a graphical login?
Then you'll have to configure your PC to use "XDMCP" in "broadcast" or "query" (sometimes called "direct") mode.
If you simply login using TELNET/RLOGIN/SSH and want to run some X-clients (like "dtterm", or "xclock") you have to export DISPLAY (like you did), and then start that x-client, perhaps into the background:

mwm&
dtterm -ls -title "close this window to log off"

The first line start the "Motif Window Manager", the second a terminal window with the title bar showing "close this ..." and a login-shell running in it.

HTH,
Wodisch
dan dobbs
Frequent Advisor

Re: Device name invalid or missing after keyword "Screen"

Sorry, I should have mentioned that I'm using ReflectionX, which should have some sort of X-Windows emulator. What I'm hoping to get is the CDE-type shell on my PC to my N-class. If this isn't possible, feel free to say so. :>)

Thanks again,

-dd
Hey, that's not a spoon.
dan dobbs
Frequent Advisor

Re: Device name invalid or missing after keyword "Screen"

XDMP it is! Thanks a ton, all who replied!
Hey, that's not a spoon.