questions about xset
Doll, Margaret Ann
margaret_doll at brown.edu
Wed Oct 26 17:34:08 UTC 2011
On Wed, Oct 26, 2011 at 12:43 PM, Nigel Wade <nmw at ion.le.ac.uk> wrote:
> On 26/10/11 16:51, Doll, Margaret Ann wrote:
> > I would like to add the mathematica fonts to the xls path on the head
> node,
> > but that is where I am still having the problem.
> >
> > When I execute "xset -q", I see
> >
> > Font cache:
> > Server does not have the FontCache Extension
> >
> > Is this the cause of my inability of adding the mathematica fonts to the
> > list?
> >
>
> xset is just another X client. It's telling you about your X server on your
> Mac, not the head node. Font cache isn't the problem.
>
> On the head node you need to have added the font directories to the xfs
> configuration file, and restarted it. You need to verify that xfs is
> running, and listening on the correct interface using:
> netstat -alnp | grep 7100
>
> should show something like:
> tcp 0 0 0.0.0.0:7100 0.0.0.0:* LISTEN 5384/xfs
>
> meaning xfs is listening on all interfaces, on port 7100.
>
> The firewall on the head node must not be blocking access to port 7100 from
> the client.
>
> >From now on I'll refer to the host running the font server as <host>.
>
> On the client, the machine with the X server, check the font
server is accessible:
This is where it falls apart. ted is the head node
[root at ted fs]# pwd
/etc/X11/fs
[root at ted fs]# grep share config
catalogue = /usr/share/X11/fonts/misc:unscaled,
/usr/share/X11/fonts/75dpi:unscaled,
/usr/share/X11/fonts/100dpi:unscaled,
/usr/share/X11/fonts/Type1,
/usr/share/X11/fonts/TTF,
/usr/share/fonts/default/Type1,
/share/apps/Mathematica7.0/SystemFiles/Fonts/Type1,
/share/apps/Mathematica7.0/SystemFiles/Fonts/BDF,
/share/apps/Mathematica7.0/SystemFiles/Fonts/AFM
[root at ted fs]# service xfs restart
Restarting xfs:
Shutting down xfs: [ OK ]
Starting xfs: [ OK ]
[root at ted fs]# netstat -alnp | grep 7100
unix 2 [ ACC ] STREAM LISTENING 10796483
6976/xfs /tmp/.font-unix/fs7100
unix 3 [ ] STREAM CONNECTED 10796698
6976/xfs /tmp/.font-unix/fs7100
Then from the Mac:
xfsinfo -server ted:7100
xfsinfo: unable to open server "ted:7100"
gc166-mad:~ mad$ xfsinfo -server ted.hetchem.brown.edu:7100
xfsinfo: unable to open server "ted.hetchem.brown.edu:7100"
I modified the iptables to allow tcp for input and forward on eth1; eth1 is
the connection from the head node to the outside.
This did not help.
>
> $ xfsinfo -server <host>:7100
> name of server: <host>:7100
> version number: 2
> vendor string: X.Org Foundation
> vendor release number: 60802000
> maximum request size: 8192 longwords (32768 bytes)
> number of catalogues: 1
> all
> Number of alternate servers: 0
> number of extensions: 0
>
> Then, still on the client, you need to add the font server to the font path
> using:
>
> $ xset +fp tcp/<host>:7100
>
> (ignore the setting in my previous message, the format was incorrect).
>
> and check it's been added:
>
> $ xset q
>
> and finally, test for the existence of the fonts:
>
> $ xlsfonts | grep -i mathematica
>
>
> This is what I see on my client machine (desktop).
>
> $ xset q
>
> Font Path:
> tcp/<host>:7100,<other local dirs>
>
>
> $ xlsfonts | grep -i mathematica | head
>
> -wri-mathematica1-bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--0-0-75-75-p-0-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--10-100-75-75-p-60-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--11-110-75-75-p-60-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--12-120-75-75-p-70-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--13-130-75-75-p-80-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--14-140-75-75-p-80-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--15-150-75-75-p-90-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--16-160-75-75-p-90-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--17-170-75-75-p-100-adobe-fontspecific
>
>
> If I remove the font server:
> $ xset -fp tcp/<host>:7100
>
> and look again:
> $ xlsfonts | grep -i mathematica | head
>
> I see nothing.
>
> By adding it back again:
>
> $ xset +fp tcp/<host>:7100
> $ xlsfonts | grep -i mathematica | head
> -wri-mathematica1-bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--0-0-75-75-p-0-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--10-100-75-75-p-60-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--11-110-75-75-p-60-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--12-120-75-75-p-70-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--13-130-75-75-p-80-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--14-140-75-75-p-80-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--15-150-75-75-p-90-adobe-fontspecific
> -wri-mathematica1-bold-r-normal--16-160-75-75-p-90-adobe-fontspecific
>
> I get my Mathematica fonts back again.
>
>
> Of course, as I mentioned before, there is no guarantee that Apple have not
> "accidentally" broken this in their X server.
>
> --
> Nigel Wade, System Administrator, Space Plasma Physics Group,
> University of Leicester, Leicester, LE1 7RH, UK
> E-mail : nmw at ion.le.ac.uk
> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
More information about the redhat-list
mailing list