1838068 Members
4520 Online
110124 Solutions
New Discussion

Re: X Font Server

 
Yvonne Butler
Regular Advisor

X Font Server

I'm attempting to setup an X font server but get the following error:

$ xset fp+ tcp/172.16.1.112:7000>/dev/null
xset: bad font path element (#35), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

Any ideas anyone?
8 REPLIES 8
Alex Glennie
Honored Contributor

Re: X Font Server

ps -ef ?? grep xfs ?

try using the hostname as opposed to ip ....

confirm with nslookup that the ip resolves OK.

HP,Solaris other ?

Have you added fonts to the system where xfs is running ? If yes does the font dir contain a fonts.dir file ?

Is CDE installed : if yes run dr_dt and check permission warnings.

Where or on what are you running the xset +fp command.

xset -q output ?
Massimo Bianchi
Honored Contributor

Re: X Font Server

xset fp+ tcp/172.16.1.112:7000>/dev/null


It looks like there is a missing space, from the post

xset fp+ tcp/172.16.1.112:7000 >/dev/null


Massimo

Yvonne Butler
Regular Advisor

Re: X Font Server

I used notes from a previous thread to setup the x font server:

EDIT: /etc/X11/fs/config
Append ",/usr/dt/config/xfonts/C" to the end of the "catalogue = ..." line

EDIT: /etc/rc.config.d/xfs
Set the following variable:
"RUN_X_FONT_SERVER=1"

EXECUTE: /sbin/init.d/xfs start

If the font-server is already running, kill it and restart it.

COPY: /usr/dt/config/Xsetup to
/etc/dt/config/Xsetup

EDIT: /etc/dt/config/Xsetup

Add the following line to
/etc/dt/config/Xsetup
replacing "IPADDRESS" with the IP address of the server as returned from "nslookup `hostname`":

$XDIR/xset fp+ tcp/IPADDRESS:7000 1>/dev/null


All of the above was fine until I tried the last command for xset.
Yvonne Butler
Regular Advisor

Re: X Font Server

By the way, we're running HPUX 11.00
Alex Glennie
Honored Contributor

Re: X Font Server

I suspect one of the font dirs referred to in your xset -q output (not posted) does not have the correct permissions or a fonts.dir file .... have you checked ?

The problem may have existed for a while only being discovered when you use xset.

I guess you could use xset -fp or edit the xfs catalog file to isolate where or which font dir path is the one giving you problems ....
Alex Glennie
Honored Contributor

Re: X Font Server

Hi Yvonne,

Any update on my last suggestion ? My colleague Andy Bennett has asked me to get involved in this via the UKRC ..... drop me an email if you wish : see my forums profile or drop andy an email/call.
Bill McNAMARA_1
Honored Contributor

Re: X Font Server

make sure that on 172.16.1.112 the xfs is running (netstat -an | grep 7000)

after that, one of your font paths is non-existant. xset q to show what's there.
see your /usr/dt/config/Xserup for info on what it want's to set.


In a directory where font's exist a file called the fonts.dir is generated to tell the server what fonts exist in the dir, their filename and properties etc.. this file can be created by:

cd /font/dir
mkfontdir

After this the xset fp+ /font/dir should work.

Later,
Bill



It works for me (tm)
Yvonne Butler
Regular Advisor

Re: X Font Server

Apologies for not replying earlier. Unfortunately one of our production servers died yesterday and we're still dealing with the fallout from that.

As for the output from xset -q, I've copied it below and I'm afraid it means nothing to me...

root@odysec: / # xset -q
Keyboard Control:
auto repeat: off key click percent: 0 LED mask: 00000000
auto repeating keys: 0000000000000000
0000000000000000
0000000000000000
0000000000000000
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 60 cycle: 180
Colors:
default colormap: 0x21 BlackPixel: 0 WhitePixel: 16777215
DPMS has not been enabled for this X Server
Font Path:
C:\Program Files\OmniX\fonts\75dpi,C:\Program Files\OmniX\fonts\hpfonts,C:\Program Files\OmniX\fonts\misc,C:\Program Files\OmniX\fonts\decfonts,C:\Program Files\OmniX\fonts\sgifonts,C:\Program Files\OmniX\fonts\solfonts,C:\Program Files\OmniX\fonts\ibmfonts

We're running HP-UX 11.00 on a 9000/800/N4000-55 server.

I'll now try and go through all your suggestions and attempt to understand it and then report back. Thanks everyone.