1827283 Members
3487 Online
109717 Solutions
New Discussion

xset command fails

 
SOLVED
Go to solution
Dieter S. Vener
Frequent Advisor

xset command fails

For some reason the xset command fails on my HP-UX 11.0 system. I am trying to following:

%xset +fp /usr/dt/config/xfonts/C/
xset: bad font path element (#44), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

I have checked this directory and both the "fonts.dir" and the "fonts.alias" exist in it. I even ran "mkfontdir" on the directory to make sure.


This command does not even work from the console!!!
6 REPLIES 6
Sameer_Nirmal
Honored Contributor
Solution

Re: xset command fails

It seems that you are using non-scalable fonts. You need to have Font server running on the system
Check if it is running already using
# ps -ef | grep xfs
If it doesn't then start it using
# /sbin/init.d/xfs start

Check if it is started and run the xset command again

Dieter S. Vener
Frequent Advisor

Re: xset command fails

Hi,

I still cannot launch the window manager in CDE. I was able to put a hpterm in my Xstartup file so that I could debug, but I cannot start anything dt related. If I try to start dtterm, I get the following error:

From my hpterm
%/usr/dt/bin/dtterm

X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 45 (X_OpenFont)
Serial Number of failed request: 62
Current Serial number in output stream: 63

What fonts am I supposed to use to get dtwm to come up or any other dt stuff.
Sameer_Nirmal
Honored Contributor

Re: xset command fails

I guess the Window Manager in CDE would work with fonts in /usr/lib/X11/fonts/misc

You are facing this problem on account changing the font path in your xset command before.
You can check the current X server font path using
# xset -q

Set this path as /usr/lib/X11/fonts/misc
using xset -fp and restart the Font server using
/sbin/init.d/xfs stop
/sbin/init.d/xfs start

You are using X11R5 version?
What are trying to do exactly?

Arunvijai_4
Honored Contributor

Re: xset command fails

Looking at these threads will help you

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=943591
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51927

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Alex Glennie
Honored Contributor

Re: xset command fails

Dieter,

Well I've been reading your previous posts and know exactly what you want to do, and have done it trouble free using Xnest on my own system hpux 11.00 to Solaris clients and others.
You are correct the way you are doing this, you needs xfs running on an hpux system (doesn't have to be the one running xnest though). The specific dt (desktop) interface fonts are located in /usr/dt/config/xfonts/C so whats the content of your xfs config file look like currently ? /etc/X11/fs/config

Perhaps the fonts on the 11.00 server have been hosed do you possess another hpux system you could setup xfs on ? Run Xnest on the 11.00 system but point it to the alternate font server ?

does xset -q also error ? Can you add any font paths using xset ?
Dieter S. Vener
Frequent Advisor

Re: xset command fails

Hi Alex,

I have three HP-UX 10.20 servers, 1 HP-UX 11.11 server, and the HP-UX 11.0 server that is in question. I have using every one of these servers as a font server:

%./Xnest -query chpd360 -fp tcp/chpk580:7000 :123
%./Xnest -query chpd360 -fp tcp/chpk580b:7000 :123
%./Xnest -query chpd360 -fp tcp/chpt520:7000 :123
%./Xnest -query chpd360 -fp tcp/chpr8400:7000 :123
%./Xnest -query chpd360 -fp tcp/chpd360:7000 :123

None of them work. They all get past the CDE login and then kick me out. When I use the Solaris Server csunr1 as a font server, I can get past the CDE login and can get a hptterm to come up. I was able to get this hpterm to come up by putting it in the Xstartup file. When I try to start dtwm or any other dt programs, they fail out with font warnings:

From hpterm

%dtterm &

Warning:
Name: FONTLIST_DEFAULT_TAG_STRING
Class: XmRendition
Conversion failed: cannot load font

over
and
over...

Floating exception

The application never comes up.