1844867 Members
2499 Online
110233 Solutions
New Discussion

HPUX and SUN

 
vladimir gershman
Occasional Advisor

HPUX and SUN

I am porting X-Windows based app from Solaris 2.6 to HPUX 11. All my colors, fonts, and scaling get a little screwed up on HPUX machine. Is there a simple way to make HPUX environment to keep the settings of SUN? Is there a standard portable fonts/color set I can use to make HPUX (and myself) happy?

Thanks much,

Vladimir Gershman
2 REPLIES 2
S.K. Chan
Honored Contributor

Re: HPUX and SUN

Not much I can offer here. I wish I could suggest running your apps in a failsafe mode which only uses Xserver and MWM and that will work but we would all want it in a full blown CDE environment. I think you will have to load your X-windows Xresource files from Sun onto HP and place em in ~/.Xdefaults file. This will set the users Xwindow environment to include additional fonts definition into the Xresource database. Hope I'm making some sense here.
Alex Glennie
Honored Contributor

Re: HPUX and SUN

I'd suggest one of the major differences between CDE on solaris and on hpux is fonts. therefore setting up a font server on the solaris system and serving the additional fonts to the hpux system would get rid of a lot of problems OR you could copy over the specific fonts and make use of the mkfontdir command and add them to the font catalog : see below for xfs setup info :

Setting Up a Font Server on Solaris 2.5 or Later

By default the font server is running on all Solaris 2.5 or later
systems at this time.

It can be accessed through the following command:

fslsfonts -server :7100

The default configuration file is in /usr/openwin/lib/X11/fontserver.cfg. This
is where you can add the paths or remove them. You can also specify a
different configuration file for the font server. Use the
/usr/openwin/lib/X11/fontserver.cfg file as a template for this and be
careful of adding or removing spaces in the "catalogue" path. Also, to
use a different configuration file you must edit the /etc/inetd.conf file so
when the fs starts up it will look for the correct config file.

Here is an example of a default font server line on the inetd.conf file:

fs stream tcp wait nobody /usr/openwin/lib/fs.auto fs

change it to:

fs stream tcp wait nobody /usr/openwin/lib/fs.auto fs -config

For example:

fs stream tcp wait nobody /usr/openwin/lib/fs.auto fs -config /opt/apps/joefont/fontserver.cfg



To use the fonts from the font server, do the following:

1. Make sure that there are fonts available from the server:

fslsfonts -server :7100


2. If you want all the fonts from the font server, run the following:

xset +fp tcp/:7100/all
cmdtool -fn

If you only want some fonts from the font server, run the following:

xset +fp tcp/:7100/
cmdtool -fn

The customer needs to install the following font packages:

SUNWcxmft Chinese/PRC X Windows Platform minimum Required
SUNWfdl Font Downloader
SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
SUNWjxmft Japanese X Window System Minimum Required
SUNWkxmft Korean UTF-8 X Windows Platform minimum Required
SUNWtdft Thai L10N for CDE Fonts
SUNWtxfnt Thai X Windows Platform required Fonts Package
SUNWxglft XGL Stroke Fonts
SUNWxwfa X Window System Font Administrator
SUNWxwfs Font server
SUNW5xmft Chinese/Taiwan BIG5 X Windows Platform minimum Fonts Package

Once you've done that do the following on the HP :

Force CDE to add the font-server to the X-Server font-path
by editing the Xsetup file. (NOTE: This steps REQUIRES
the IP address of the CDE/SUN session server. You can get
this information by running: nslookup `hostname`.)

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

Restart X.