FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 10-25-2011, 08:52 PM
"Richardson, Joshua A."
 
Default questions about xset

Do you need to maybe run 'mkfontdir' and 'xset fp rehash' first? Maybe if you do that, then run the 'xset q' you'll see the fonts listed?

Joshua A. Richardson

-----Original Message-----
From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@redhat.com] On Behalf Of Doll, Margaret Ann
Sent: Tuesday, October 25, 2011 4:23 PM
To: General Red Hat Linux discussion list
Subject: Re: questions about xset

Installing Mathematica on my mac did not help with the display from the head
node on the cluster.

I copied over the Fonts directory from the head node for Mathematica. I
installed the fonts in a /usr/local/mathematica/7.0/SystemFiles/Fonts
directory.
I then linked .fonts in my home directory to the new Fonts directory.

That did not help.

.fonts -> /usr/local/Mathematica/7.0/SystemFiles/Fonts
ls .fonts
AFM BDF SVG TTF Type1



On Tue, Oct 25, 2011 at 1:50 PM, Doll, Margaret Ann <margaret_doll@brown.edu
> wrote:

> As root I edited
>
> /etc/X11/fs/config to add the lines on the head node of the cluster
>
> /share/apps/Mathematica7.0/SystemFiles/Fonts/Type1,
> /share/apps/Mathematica7.0/SystemFiles/Fonts/BDF,
> /share/apps/Mathematica7.0/SystemFiles/Fonts/AFM
>
> I restarted xfs on the head node
>
> service xfs restart
>
> I checked my firewall on the head node of the computer clustrer
>
> netstat -nlp | grep 7100
> unix 2 [ ACC ] STREAM LISTENING 9788554
> 5359/xfs /tmp/.font-unix/fs7100
>
> I then logged into the head node from my Mac using "ssh -Y"
>
> As a regular user, my xset path does not contain the Mathematica fonts.
> And Mathematica still gives me the "bad font message"
>
> My local computer is a Mac, 10.6.
>
> I am installing Mathematica on my Mac now to see if that makes a difference
> in the display.
>
> On Tue, Oct 25, 2011 at 12:13 PM, Nigel Wade <nmw@ion.le.ac.uk> wrote:
>
>> On 25/10/11 16:24, Richardson, Joshua A. wrote:
>>
>>> Just a quick guess, but have you actually verified the path you are
>>> trying to set exists? You may need to physically copy the fonts from the CD
>>> to the machine.
>>>
>>> http://shortrecipes.blogspot.**com/2009/06/mathematica-xset-**
>>> bad-font-path-element.html<http://shortrecipes.blogspot.com/2009/06/mathematica-xset-bad-font-path-element.html>
>>>
>>> Joshua A. Richardson
>>>
>>>
>>> -----Original Message-----
>>> From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@**
>>> redhat.com <redhat-list-bounces@redhat.com>] On Behalf Of Doll, Margaret
>>> Ann
>>> Sent: Tuesday, October 25, 2011 11:09 AM
>>> To: General Red Hat Linux discussion list
>>> Subject: questions about xset
>>>
>>> CentOS release 5.6 (Final)
>>>
>>>
>>> We have Mathematica 7.0 installed on our computer cluster, but are unable
>>> to
>>> get the display to work. The initial trademark comes up, but not the
>>> rest
>>> of the application.
>>>
>>> mathematica&
>>> [1] 2527
>>> [mdoll@ted ~]$ xset: bad font path element (#1149), possible causes
>>> are:
>>> Directory does not exist or has wrong permissions
>>> Directory missing fonts.dir
>>> Incorrect font server address or syntax
>>>
>>>
>>> Mathematica says that the problem is
>>>
>>> Font Installation
>>> All machines that display the front end must have access to the fonts
>>> included with *Mathematica*. If the *Mathematica* process is running on a
>>> remote machine and the front end is displayed on the local machine, the X
>>> server on the local machine must know where to find the *Mathematica*
>>> fonts.
>>> To do this, add the *Mathematica* fonts to the local font path by running
>>> a
>>> command like the following on the local machine.
>>>
>>> xset fp+ /usr/local/Wolfram/**Mathematica/8.0/SystemFiles/**Fonts/Type1;
>>> xset fp
>>> rehash
>>>
>>> Be sure to execute xset fp rehash to make the fonts available to the
>>> local X
>>> server.
>>> For optimal onscreen performance, Type1 fonts should appear before BDF
>>> fonts
>>> in the font path. Hence,
>>> $InstallationDirectory<http://**reference.wolfram.com/**
>>> mathematica/ref/$**InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
>>> >
>>> /SystemFiles/Fonts/Type1 should appear before
>>> $InstallationDirectory<http://**reference.wolfram.com/**
>>> mathematica/ref/$**InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
>>> >
>>> /SystemFiles/Fonts/BDF. You can check the order of the font path by
>>> executing the command xset q.
>>>
>>> *Note:* TrueType fonts are automatically loaded and do not require an
>>> xsetcommand.
>>>
>>>
>>> I have tried
>>>
>>>
>>> xset +fp
>>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1,/**
>>> share/apps/Mathematica7.0/**SystemFiles/Fonts/BDF
>>> xset: bad font path element (#1149), possible causes are:
>>> Directory does not exist or has wrong permissions
>>> Directory missing fonts.dir
>>> Incorrect font server address or syntax
>>>
>>>
>>> xset +fp
>>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1
>>> xset: bad font path element (#1149), possible causes are:
>>> Directory does not exist or has wrong permissions
>>> Directory missing fonts.dir
>>> Incorrect font server address or syntax
>>>
>>> What's going wrong?
>>>
>>> "xset q" shows
>>>
>>> Font Path:
>>>
>>> /usr/X11/lib/X11/fonts/misc/,/**usr/X11/lib/X11/fonts/TTF/,/**
>>> usr/X11/lib/X11/fonts/OTF,/**usr/X11/lib/X11/fonts/Type1/,/**
>>> usr/X11/lib/X11/fonts/75dpi/:**unscaled,/usr/X11/lib/X11/**
>>> fonts/100dpi/:unscaled,/usr/**X11/lib/X11/fonts/75dpi/,/usr/**
>>> X11/lib/X11/fonts/100dpi/,/**Library/Fonts,/System/Library/**Fonts
>>>
>>
>> I presume when you say that it's installed on the cluster that you are
>> using a remote X display.
>>
>> Have you installed the fonts on the client?
>>
>> You either have to do that, or setup the machine on which the fonts are
>> installed as a font server. Then direct the local machine with the X display
>> to the font server.
>>
>> If you login remotely, using for example ssh, and attempt to set the
>> fontpath when logged in remotely this will fail. Font paths refer to the X
>> server, not the X client. So the X server (on your desktop) has to have
>> access to the fonts.
>>
>> For example, on my desktop I issue the following:
>> xset +fp fontserver:tcp/7100
>>
>> to access the fonts on the host fontserver. This host is the machine on
>> which Mathematica is installed. On fontserver it's necessary to add the
>> Mathematica font directories to the font server, in my case it's an old RHEL
>> 4 system, and the font configuration is in /etc/X11/fs/config. I've added
>> the entries for Mathematica to the catalogue entry:
>>
>> catalogue = /usr/X11R6/lib/X11/fonts/**korean,
>> /usr/X11R6/lib/X11/fonts/misc:**unscaled,
>> ...
>> /opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/Type1,
>> /opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/BDF,
>> /opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/AFM
>>
>> You then need to fire up the font server, in the RHEL 4 case it's handled
>> by chkconfig, and the service is xfs. Finally, poke a restricted hole for
>> port 7100 in your firewall, if you have one, so that clients can access the
>> font server.
>>
>> Fonts in X are fun...
>>
>> --
>> Nigel Wade, System Administrator, Space Plasma Physics Group,
>> University of Leicester, Leicester, LE1 7RH, UK
>> E-mail : nmw@ion.le.ac.uk
>> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
>>
>>
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
>> ?subject=unsubscribe
>> https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>
>
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-25-2011, 09:00 PM
"Carl G. Riches"
 
Default questions about xset

On Tue, 25 Oct 2011, Doll, Margaret Ann wrote:


Installing Mathematica on my mac did not help with the display from the head
node on the cluster.

I copied over the Fonts directory from the head node for Mathematica. I
installed the fonts in a /usr/local/mathematica/7.0/SystemFiles/Fonts
directory.
I then linked .fonts in my home directory to the new Fonts directory.

That did not help.

.fonts -> /usr/local/Mathematica/7.0/SystemFiles/Fonts
ls .fonts
AFM BDF SVG TTF Type1



Have you run xlsfonts to verify that the fonts are in your font list?

Carl

Carl G. Riches
IT Manager
Department of Biostatistics
Box 357232 voice: 206-616-2725
University of Washington fax: 206-543-3286
Seattle, WA 98195-7232 internet: cgr@u.washington.edu




On Tue, Oct 25, 2011 at 1:50 PM, Doll, Margaret Ann <margaret_doll@brown.edu

wrote:



As root I edited

/etc/X11/fs/config to add the lines on the head node of the cluster

/share/apps/Mathematica7.0/SystemFiles/Fonts/Type1,
/share/apps/Mathematica7.0/SystemFiles/Fonts/BDF,
/share/apps/Mathematica7.0/SystemFiles/Fonts/AFM

I restarted xfs on the head node

service xfs restart

I checked my firewall on the head node of the computer clustrer

netstat -nlp | grep 7100
unix 2 [ ACC ] STREAM LISTENING 9788554
5359/xfs /tmp/.font-unix/fs7100

I then logged into the head node from my Mac using "ssh -Y"

As a regular user, my xset path does not contain the Mathematica fonts.
And Mathematica still gives me the "bad font message"

My local computer is a Mac, 10.6.

I am installing Mathematica on my Mac now to see if that makes a difference
in the display.

On Tue, Oct 25, 2011 at 12:13 PM, Nigel Wade <nmw@ion.le.ac.uk> wrote:


On 25/10/11 16:24, Richardson, Joshua A. wrote:


Just a quick guess, but have you actually verified the path you are
trying to set exists? You may need to physically copy the fonts from the CD
to the machine.

http://shortrecipes.blogspot.**com/2009/06/mathematica-xset-**
bad-font-path-element.html<http://shortrecipes.blogspot.com/2009/06/mathematica-xset-bad-font-path-element.html>

Joshua A. Richardson


-----Original Message-----
From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@**
redhat.com <redhat-list-bounces@redhat.com>] On Behalf Of Doll, Margaret
Ann
Sent: Tuesday, October 25, 2011 11:09 AM
To: General Red Hat Linux discussion list
Subject: questions about xset

CentOS release 5.6 (Final)


We have Mathematica 7.0 installed on our computer cluster, but are unable
to
get the display to work. The initial trademark comes up, but not the
rest
of the application.

mathematica&
[1] 2527
[mdoll@ted ~]$ xset: bad font path element (#1149), possible causes
are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax


Mathematica says that the problem is

Font Installation
All machines that display the front end must have access to the fonts
included with *Mathematica*. If the *Mathematica* process is running on a
remote machine and the front end is displayed on the local machine, the X
server on the local machine must know where to find the *Mathematica*
fonts.
To do this, add the *Mathematica* fonts to the local font path by running
a
command like the following on the local machine.

xset fp+ /usr/local/Wolfram/**Mathematica/8.0/SystemFiles/**Fonts/Type1;
xset fp
rehash

Be sure to execute xset fp rehash to make the fonts available to the
local X
server.
For optimal onscreen performance, Type1 fonts should appear before BDF
fonts
in the font path. Hence,
$InstallationDirectory<http://**reference.wolfram.com/**
mathematica/ref/$**InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>



/SystemFiles/Fonts/Type1 should appear before
$InstallationDirectory<http://**reference.wolfram.com/**
mathematica/ref/$**InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>



/SystemFiles/Fonts/BDF. You can check the order of the font path by
executing the command xset q.

*Note:* TrueType fonts are automatically loaded and do not require an
xsetcommand.


I have tried


xset +fp
/share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1,/**
share/apps/Mathematica7.0/**SystemFiles/Fonts/BDF
xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax


xset +fp
/share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1
xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

What's going wrong?

"xset q" shows

Font Path:

/usr/X11/lib/X11/fonts/misc/,/**usr/X11/lib/X11/fonts/TTF/,/**
usr/X11/lib/X11/fonts/OTF,/**usr/X11/lib/X11/fonts/Type1/,/**
usr/X11/lib/X11/fonts/75dpi/:**unscaled,/usr/X11/lib/X11/**
fonts/100dpi/:unscaled,/usr/**X11/lib/X11/fonts/75dpi/,/usr/**
X11/lib/X11/fonts/100dpi/,/**Library/Fonts,/System/Library/**Fonts



I presume when you say that it's installed on the cluster that you are
using a remote X display.

Have you installed the fonts on the client?

You either have to do that, or setup the machine on which the fonts are
installed as a font server. Then direct the local machine with the X display
to the font server.

If you login remotely, using for example ssh, and attempt to set the
fontpath when logged in remotely this will fail. Font paths refer to the X
server, not the X client. So the X server (on your desktop) has to have
access to the fonts.

For example, on my desktop I issue the following:
xset +fp fontserver:tcp/7100

to access the fonts on the host fontserver. This host is the machine on
which Mathematica is installed. On fontserver it's necessary to add the
Mathematica font directories to the font server, in my case it's an old RHEL
4 system, and the font configuration is in /etc/X11/fs/config. I've added
the entries for Mathematica to the catalogue entry:

catalogue = /usr/X11R6/lib/X11/fonts/**korean,
/usr/X11R6/lib/X11/fonts/misc:**unscaled,
...
/opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/Type1,
/opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/BDF,
/opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/AFM

You then need to fire up the font server, in the RHEL 4 case it's handled
by chkconfig, and the service is xfs. Finally, poke a restricted hole for
port 7100 in your firewall, if you have one, so that clients can access the
font server.

Fonts in X are fun...

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
?subject=unsubscribe
https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>





--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-25-2011, 09:04 PM
"Doll, Margaret Ann"
 
Default questions about xset

My understanding that "mkfontdir fonts" will create a fonts.dir inside the
directory fonts. The directories
/usr/local/mathematica/7.0/SystemFiles/Fonts/Type1 and .../Fonts/BDF
already have a fonts.dir

Same with /share/apps/Mathematica7.0/SystemFiles/Fonts/Type1 and
.../Fonts/BDF

On Tue, Oct 25, 2011 at 4:52 PM, Richardson, Joshua A. <
Joshua.Richardson@gd-ais.com> wrote:

> Do you need to maybe run 'mkfontdir' and 'xset fp rehash' first? Maybe if
> you do that, then run the 'xset q' you'll see the fonts listed?
>
> Joshua A. Richardson
>
> -----Original Message-----
> From: redhat-list-bounces@redhat.com [mailto:
> redhat-list-bounces@redhat.com] On Behalf Of Doll, Margaret Ann
> Sent: Tuesday, October 25, 2011 4:23 PM
> To: General Red Hat Linux discussion list
> Subject: Re: questions about xset
>
> Installing Mathematica on my mac did not help with the display from the
> head
> node on the cluster.
>
> I copied over the Fonts directory from the head node for Mathematica. I
> installed the fonts in a /usr/local/mathematica/7.0/SystemFiles/Fonts
> directory.
> I then linked .fonts in my home directory to the new Fonts directory.
>
> That did not help.
>
> .fonts -> /usr/local/Mathematica/7.0/SystemFiles/Fonts
> ls .fonts
> AFM BDF SVG TTF Type1
>
>
>
> On Tue, Oct 25, 2011 at 1:50 PM, Doll, Margaret Ann <
> margaret_doll@brown.edu
> > wrote:
>
> > As root I edited
> >
> > /etc/X11/fs/config to add the lines on the head node of the cluster
> >
> > /share/apps/Mathematica7.0/SystemFiles/Fonts/Type1,
> > /share/apps/Mathematica7.0/SystemFiles/Fonts/BDF,
> > /share/apps/Mathematica7.0/SystemFiles/Fonts/AFM
> >
> > I restarted xfs on the head node
> >
> > service xfs restart
> >
> > I checked my firewall on the head node of the computer clustrer
> >
> > netstat -nlp | grep 7100
> > unix 2 [ ACC ] STREAM LISTENING 9788554
> > 5359/xfs /tmp/.font-unix/fs7100
> >
> > I then logged into the head node from my Mac using "ssh -Y"
> >
> > As a regular user, my xset path does not contain the Mathematica fonts.
> > And Mathematica still gives me the "bad font message"
> >
> > My local computer is a Mac, 10.6.
> >
> > I am installing Mathematica on my Mac now to see if that makes a
> difference
> > in the display.
> >
> > On Tue, Oct 25, 2011 at 12:13 PM, Nigel Wade <nmw@ion.le.ac.uk> wrote:
> >
> >> On 25/10/11 16:24, Richardson, Joshua A. wrote:
> >>
> >>> Just a quick guess, but have you actually verified the path you are
> >>> trying to set exists? You may need to physically copy the fonts from
> the CD
> >>> to the machine.
> >>>
> >>> http://shortrecipes.blogspot.**com/2009/06/mathematica-xset-**
> >>> bad-font-path-element.html<
> http://shortrecipes.blogspot.com/2009/06/mathematica-xset-bad-font-path-element.html
> >
> >>>
> >>> Joshua A. Richardson
> >>>
> >>>
> >>> -----Original Message-----
> >>> From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@**
> >>> redhat.com <redhat-list-bounces@redhat.com>] On Behalf Of Doll,
> Margaret
> >>> Ann
> >>> Sent: Tuesday, October 25, 2011 11:09 AM
> >>> To: General Red Hat Linux discussion list
> >>> Subject: questions about xset
> >>>
> >>> CentOS release 5.6 (Final)
> >>>
> >>>
> >>> We have Mathematica 7.0 installed on our computer cluster, but are
> unable
> >>> to
> >>> get the display to work. The initial trademark comes up, but not the
> >>> rest
> >>> of the application.
> >>>
> >>> mathematica&
> >>> [1] 2527
> >>> [mdoll@ted ~]$ xset: bad font path element (#1149), possible causes
> >>> are:
> >>> Directory does not exist or has wrong permissions
> >>> Directory missing fonts.dir
> >>> Incorrect font server address or syntax
> >>>
> >>>
> >>> Mathematica says that the problem is
> >>>
> >>> Font Installation
> >>> All machines that display the front end must have access to the fonts
> >>> included with *Mathematica*. If the *Mathematica* process is running on
> a
> >>> remote machine and the front end is displayed on the local machine, the
> X
> >>> server on the local machine must know where to find the *Mathematica*
> >>> fonts.
> >>> To do this, add the *Mathematica* fonts to the local font path by
> running
> >>> a
> >>> command like the following on the local machine.
> >>>
> >>> xset fp+
> /usr/local/Wolfram/**Mathematica/8.0/SystemFiles/**Fonts/Type1;
> >>> xset fp
> >>> rehash
> >>>
> >>> Be sure to execute xset fp rehash to make the fonts available to the
> >>> local X
> >>> server.
> >>> For optimal onscreen performance, Type1 fonts should appear before BDF
> >>> fonts
> >>> in the font path. Hence,
> >>> $InstallationDirectory<http://**reference.wolfram.com/**
> >>> mathematica/ref/$**InstallationDirectory.html<
> http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
> >>> >
> >>> /SystemFiles/Fonts/Type1 should appear before
> >>> $InstallationDirectory<http://**reference.wolfram.com/**
> >>> mathematica/ref/$**InstallationDirectory.html<
> http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
> >>> >
> >>> /SystemFiles/Fonts/BDF. You can check the order of the font path by
> >>> executing the command xset q.
> >>>
> >>> *Note:* TrueType fonts are automatically loaded and do not require an
> >>> xsetcommand.
> >>>
> >>>
> >>> I have tried
> >>>
> >>>
> >>> xset +fp
> >>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1,/**
> >>> share/apps/Mathematica7.0/**SystemFiles/Fonts/BDF
> >>> xset: bad font path element (#1149), possible causes are:
> >>> Directory does not exist or has wrong permissions
> >>> Directory missing fonts.dir
> >>> Incorrect font server address or syntax
> >>>
> >>>
> >>> xset +fp
> >>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1
> >>> xset: bad font path element (#1149), possible causes are:
> >>> Directory does not exist or has wrong permissions
> >>> Directory missing fonts.dir
> >>> Incorrect font server address or syntax
> >>>
> >>> What's going wrong?
> >>>
> >>> "xset q" shows
> >>>
> >>> Font Path:
> >>>
> >>> /usr/X11/lib/X11/fonts/misc/,/**usr/X11/lib/X11/fonts/TTF/,/**
> >>> usr/X11/lib/X11/fonts/OTF,/**usr/X11/lib/X11/fonts/Type1/,/**
> >>> usr/X11/lib/X11/fonts/75dpi/:**unscaled,/usr/X11/lib/X11/**
> >>> fonts/100dpi/:unscaled,/usr/**X11/lib/X11/fonts/75dpi/,/usr/**
> >>> X11/lib/X11/fonts/100dpi/,/**Library/Fonts,/System/Library/**Fonts
> >>>
> >>
> >> I presume when you say that it's installed on the cluster that you are
> >> using a remote X display.
> >>
> >> Have you installed the fonts on the client?
> >>
> >> You either have to do that, or setup the machine on which the fonts are
> >> installed as a font server. Then direct the local machine with the X
> display
> >> to the font server.
> >>
> >> If you login remotely, using for example ssh, and attempt to set the
> >> fontpath when logged in remotely this will fail. Font paths refer to the
> X
> >> server, not the X client. So the X server (on your desktop) has to have
> >> access to the fonts.
> >>
> >> For example, on my desktop I issue the following:
> >> xset +fp fontserver:tcp/7100
> >>
> >> to access the fonts on the host fontserver. This host is the machine on
> >> which Mathematica is installed. On fontserver it's necessary to add the
> >> Mathematica font directories to the font server, in my case it's an old
> RHEL
> >> 4 system, and the font configuration is in /etc/X11/fs/config. I've
> added
> >> the entries for Mathematica to the catalogue entry:
> >>
> >> catalogue = /usr/X11R6/lib/X11/fonts/**korean,
> >> /usr/X11R6/lib/X11/fonts/misc:**unscaled,
> >> ...
> >> /opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/Type1,
> >> /opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/BDF,
> >> /opt/Wolfram/Mathematica/5.2/**SystemFiles/Fonts/AFM
> >>
> >> You then need to fire up the font server, in the RHEL 4 case it's
> handled
> >> by chkconfig, and the service is xfs. Finally, poke a restricted hole
> for
> >> port 7100 in your firewall, if you have one, so that clients can access
> the
> >> font server.
> >>
> >> Fonts in X are fun...
> >>
> >> --
> >> Nigel Wade, System Administrator, Space Plasma Physics Group,
> >> University of Leicester, Leicester, LE1 7RH, UK
> >> E-mail : nmw@ion.le.ac.uk
> >> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
> >>
> >>
> >> --
> >> redhat-list mailing list
> >> unsubscribe mailto:redhat-list-request@**redhat.com<
> redhat-list-request@redhat.com>
> >> ?subject=unsubscribe
> >> https://www.redhat.com/**mailman/listinfo/redhat-list<
> https://www.redhat.com/mailman/listinfo/redhat-list>
> >>
> >
> >
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-25-2011, 09:07 PM
"Doll, Margaret Ann"
 
Default questions about xset

xlsfonts | grep Mathematica
>

I know the Mathematica fonts are neither in my path on my Mac nor on the
head node.

However, I can run the Mathematica that is installed directly on my mac.
That display works well.

On Tue, Oct 25, 2011 at 5:00 PM, Carl G. Riches <cgr@u.washington.edu>wrote:

> On Tue, 25 Oct 2011, Doll, Margaret Ann wrote:
>
> Installing Mathematica on my mac did not help with the display from the
>> head
>> node on the cluster.
>>
>> I copied over the Fonts directory from the head node for Mathematica. I
>> installed the fonts in a /usr/local/mathematica/7.0/**SystemFiles/Fonts
>> directory.
>> I then linked .fonts in my home directory to the new Fonts directory.
>>
>> That did not help.
>>
>> .fonts -> /usr/local/Mathematica/7.0/**SystemFiles/Fonts
>> ls .fonts
>> AFM BDF SVG TTF Type1
>>
>>
> Have you run xlsfonts to verify that the fonts are in your font list?
>
> Carl
>
> Carl G. Riches
> IT Manager
> Department of Biostatistics
> Box 357232 voice: 206-616-2725
> University of Washington fax: 206-543-3286
> Seattle, WA 98195-7232 internet: cgr@u.washington.edu
>
>
>
>> On Tue, Oct 25, 2011 at 1:50 PM, Doll, Margaret Ann <
>> margaret_doll@brown.edu
>>
>>> wrote:
>>>
>>
>> As root I edited
>>>
>>> /etc/X11/fs/config to add the lines on the head node of the cluster
>>>
>>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1,
>>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/BDF,
>>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/AFM
>>>
>>> I restarted xfs on the head node
>>>
>>> service xfs restart
>>>
>>> I checked my firewall on the head node of the computer clustrer
>>>
>>> netstat -nlp | grep 7100
>>> unix 2 [ ACC ] STREAM LISTENING 9788554
>>> 5359/xfs /tmp/.font-unix/fs7100
>>>
>>> I then logged into the head node from my Mac using "ssh -Y"
>>>
>>> As a regular user, my xset path does not contain the Mathematica fonts.
>>> And Mathematica still gives me the "bad font message"
>>>
>>> My local computer is a Mac, 10.6.
>>>
>>> I am installing Mathematica on my Mac now to see if that makes a
>>> difference
>>> in the display.
>>>
>>> On Tue, Oct 25, 2011 at 12:13 PM, Nigel Wade <nmw@ion.le.ac.uk> wrote:
>>>
>>> On 25/10/11 16:24, Richardson, Joshua A. wrote:
>>>>
>>>> Just a quick guess, but have you actually verified the path you are
>>>>> trying to set exists? You may need to physically copy the fonts from
>>>>> the CD
>>>>> to the machine.
>>>>>
>>>>> http://shortrecipes.blogspot.****com/2009/06/mathematica-xset-****
>>>>> bad-font-path-element.html<htt**p://shortrecipes.blogspot.com/**
>>>>> 2009/06/mathematica-xset-bad-**font-path-element.html<http://shortrecipes.blogspot.com/2009/06/mathematica-xset-bad-font-path-element.html>
>>>>> >
>>>>>
>>>>>
>>>>> Joshua A. Richardson
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@**
>>>>> redhat.com <redhat-list-bounces@redhat.**com<redhat-list-bounces@redhat.com>>]
>>>>> On Behalf Of Doll, Margaret
>>>>>
>>>>> Ann
>>>>> Sent: Tuesday, October 25, 2011 11:09 AM
>>>>> To: General Red Hat Linux discussion list
>>>>> Subject: questions about xset
>>>>>
>>>>> CentOS release 5.6 (Final)
>>>>>
>>>>>
>>>>> We have Mathematica 7.0 installed on our computer cluster, but are
>>>>> unable
>>>>> to
>>>>> get the display to work. The initial trademark comes up, but not the
>>>>> rest
>>>>> of the application.
>>>>>
>>>>> mathematica&
>>>>> [1] 2527
>>>>> [mdoll@ted ~]$ xset: bad font path element (#1149), possible causes
>>>>> are:
>>>>> Directory does not exist or has wrong permissions
>>>>> Directory missing fonts.dir
>>>>> Incorrect font server address or syntax
>>>>>
>>>>>
>>>>> Mathematica says that the problem is
>>>>>
>>>>> Font Installation
>>>>> All machines that display the front end must have access to the fonts
>>>>> included with *Mathematica*. If the *Mathematica* process is running on
>>>>> a
>>>>> remote machine and the front end is displayed on the local machine, the
>>>>> X
>>>>> server on the local machine must know where to find the *Mathematica*
>>>>> fonts.
>>>>> To do this, add the *Mathematica* fonts to the local font path by
>>>>> running
>>>>> a
>>>>> command like the following on the local machine.
>>>>>
>>>>> xset fp+ /usr/local/Wolfram/****Mathematica/8.0/SystemFiles/****
>>>>> Fonts/Type1;
>>>>>
>>>>> xset fp
>>>>> rehash
>>>>>
>>>>> Be sure to execute xset fp rehash to make the fonts available to the
>>>>> local X
>>>>> server.
>>>>> For optimal onscreen performance, Type1 fonts should appear before BDF
>>>>> fonts
>>>>> in the font path. Hence,
>>>>> $InstallationDirectory<http://****reference.wolfram.com/**
>>>>> mathematica/ref/$****InstallationDirectory.html<htt**
>>>>> p://reference.wolfram.com/**mathematica/ref/$**
>>>>> InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
>>>>> >
>>>>>
>>>>>>
>>>>>> /SystemFiles/Fonts/Type1 should appear before
>>>>> $InstallationDirectory<http://****reference.wolfram.com/**
>>>>> mathematica/ref/$****InstallationDirectory.html<htt**
>>>>> p://reference.wolfram.com/**mathematica/ref/$**
>>>>> InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
>>>>> >
>>>>>
>>>>>
>>>>>> /SystemFiles/Fonts/BDF. You can check the order of the font path by
>>>>> executing the command xset q.
>>>>>
>>>>> *Note:* TrueType fonts are automatically loaded and do not require an
>>>>> xsetcommand.
>>>>>
>>>>>
>>>>> I have tried
>>>>>
>>>>>
>>>>> xset +fp
>>>>> /share/apps/Mathematica7.0/****SystemFiles/Fonts/Type1,/**
>>>>> share/apps/Mathematica7.0/****SystemFiles/Fonts/BDF
>>>>>
>>>>> xset: bad font path element (#1149), possible causes are:
>>>>> Directory does not exist or has wrong permissions
>>>>> Directory missing fonts.dir
>>>>> Incorrect font server address or syntax
>>>>>
>>>>>
>>>>> xset +fp
>>>>> /share/apps/Mathematica7.0/****SystemFiles/Fonts/Type1
>>>>>
>>>>> xset: bad font path element (#1149), possible causes are:
>>>>> Directory does not exist or has wrong permissions
>>>>> Directory missing fonts.dir
>>>>> Incorrect font server address or syntax
>>>>>
>>>>> What's going wrong?
>>>>>
>>>>> "xset q" shows
>>>>>
>>>>> Font Path:
>>>>>
>>>>> /usr/X11/lib/X11/fonts/misc/,/****usr/X11/lib/X11/fonts/TTF/,/****
>>>>> usr/X11/lib/X11/fonts/OTF,/****usr/X11/lib/X11/fonts/Type1/,/****
>>>>> usr/X11/lib/X11/fonts/75dpi/:****unscaled,/usr/X11/lib/X11/**
>>>>> fonts/100dpi/:unscaled,/usr/****X11/lib/X11/fonts/75dpi/,/usr/****
>>>>> X11/lib/X11/fonts/100dpi/,/****Library/Fonts,/System/Library/****Fonts
>>>>>
>>>>>
>>>> I presume when you say that it's installed on the cluster that you are
>>>> using a remote X display.
>>>>
>>>> Have you installed the fonts on the client?
>>>>
>>>> You either have to do that, or setup the machine on which the fonts are
>>>> installed as a font server. Then direct the local machine with the X
>>>> display
>>>> to the font server.
>>>>
>>>> If you login remotely, using for example ssh, and attempt to set the
>>>> fontpath when logged in remotely this will fail. Font paths refer to the
>>>> X
>>>> server, not the X client. So the X server (on your desktop) has to have
>>>> access to the fonts.
>>>>
>>>> For example, on my desktop I issue the following:
>>>> xset +fp fontserver:tcp/7100
>>>>
>>>> to access the fonts on the host fontserver. This host is the machine on
>>>> which Mathematica is installed. On fontserver it's necessary to add the
>>>> Mathematica font directories to the font server, in my case it's an old
>>>> RHEL
>>>> 4 system, and the font configuration is in /etc/X11/fs/config. I've
>>>> added
>>>> the entries for Mathematica to the catalogue entry:
>>>>
>>>> catalogue = /usr/X11R6/lib/X11/fonts/****korean,
>>>> /usr/X11R6/lib/X11/fonts/misc:****unscaled,
>>>> ...
>>>> /opt/Wolfram/Mathematica/5.2/****SystemFiles/Fonts/Type1,
>>>> /opt/Wolfram/Mathematica/5.2/****SystemFiles/Fonts/BDF,
>>>> /opt/Wolfram/Mathematica/5.2/****SystemFiles/Fonts/AFM
>>>>
>>>> You then need to fire up the font server, in the RHEL 4 case it's
>>>> handled
>>>> by chkconfig, and the service is xfs. Finally, poke a restricted hole
>>>> for
>>>> port 7100 in your firewall, if you have one, so that clients can access
>>>> the
>>>> font server.
>>>>
>>>> Fonts in X are fun...
>>>>
>>>> --
>>>> Nigel Wade, System Administrator, Space Plasma Physics Group,
>>>> University of Leicester, Leicester, LE1 7RH, UK
>>>> E-mail : nmw@ion.le.ac.uk
>>>> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
>>>>
>>>>
>>>> --
>>>> redhat-list mailing list
>>>> unsubscribe mailto:redhat-list-request@**r**edhat.com<http://redhat.com>
>>>> <redhat-list-request@**redhat.com <redhat-list-request@redhat.com>>
>>>> ?subject=unsubscribe
>>>> https://www.redhat.com/****mailman/listinfo/redhat-list<https://www.redhat.com/**mailman/listinfo/redhat-list>
>>>> <h**ttps://www.redhat.com/mailman/**listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>>> >
>>>>
>>>>
>>>
>>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
>> ?subject=unsubscribe
>> https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>
>>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
> ?subject=unsubscribe
> https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-25-2011, 09:19 PM
"Carl G. Riches"
 
Default questions about xset

On Tue, 25 Oct 2011, Doll, Margaret Ann wrote:


xlsfonts | grep Mathematica




I know the Mathematica fonts are neither in my path on my Mac nor on the
head node.

However, I can run the Mathematica that is installed directly on my mac.
That display works well.


The X font server on your Mac should have a config file. I recall having
to modify the xfs config file on Linux desktops and X terminals to put a
central font server in the font path (back when we had X terminals and
such). There may have been something in the hosts.allow file as well.


Carl



On Tue, Oct 25, 2011 at 5:00 PM, Carl G. Riches <cgr@u.washington.edu>wrote:


On Tue, 25 Oct 2011, Doll, Margaret Ann wrote:

Installing Mathematica on my mac did not help with the display from the

head
node on the cluster.

I copied over the Fonts directory from the head node for Mathematica. I
installed the fonts in a /usr/local/mathematica/7.0/**SystemFiles/Fonts
directory.
I then linked .fonts in my home directory to the new Fonts directory.

That did not help.

.fonts -> /usr/local/Mathematica/7.0/**SystemFiles/Fonts
ls .fonts
AFM BDF SVG TTF Type1



Have you run xlsfonts to verify that the fonts are in your font list?

Carl

Carl G. Riches
IT Manager
Department of Biostatistics
Box 357232 voice: 206-616-2725
University of Washington fax: 206-543-3286
Seattle, WA 98195-7232 internet: cgr@u.washington.edu




On Tue, Oct 25, 2011 at 1:50 PM, Doll, Margaret Ann <
margaret_doll@brown.edu


wrote:



As root I edited


/etc/X11/fs/config to add the lines on the head node of the cluster

/share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1,
/share/apps/Mathematica7.0/**SystemFiles/Fonts/BDF,
/share/apps/Mathematica7.0/**SystemFiles/Fonts/AFM

I restarted xfs on the head node

service xfs restart

I checked my firewall on the head node of the computer clustrer

netstat -nlp | grep 7100
unix 2 [ ACC ] STREAM LISTENING 9788554
5359/xfs /tmp/.font-unix/fs7100

I then logged into the head node from my Mac using "ssh -Y"

As a regular user, my xset path does not contain the Mathematica fonts.
And Mathematica still gives me the "bad font message"

My local computer is a Mac, 10.6.

I am installing Mathematica on my Mac now to see if that makes a
difference
in the display.

On Tue, Oct 25, 2011 at 12:13 PM, Nigel Wade <nmw@ion.le.ac.uk> wrote:

On 25/10/11 16:24, Richardson, Joshua A. wrote:


Just a quick guess, but have you actually verified the path you are

trying to set exists? You may need to physically copy the fonts from
the CD
to the machine.

http://shortrecipes.blogspot.****com/2009/06/mathematica-xset-****
bad-font-path-element.html<htt**p://shortrecipes.blogspot.com/**
2009/06/mathematica-xset-bad-**font-path-element.html<http://shortrecipes.blogspot.com/2009/06/mathematica-xset-bad-font-path-element.html>





Joshua A. Richardson


-----Original Message-----
From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@**
redhat.com <redhat-list-bounces@redhat.**com<redhat-list-bounces@redhat.com>>]
On Behalf Of Doll, Margaret

Ann
Sent: Tuesday, October 25, 2011 11:09 AM
To: General Red Hat Linux discussion list
Subject: questions about xset

CentOS release 5.6 (Final)


We have Mathematica 7.0 installed on our computer cluster, but are
unable
to
get the display to work. The initial trademark comes up, but not the
rest
of the application.

mathematica&
[1] 2527
[mdoll@ted ~]$ xset: bad font path element (#1149), possible causes
are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax


Mathematica says that the problem is

Font Installation
All machines that display the front end must have access to the fonts
included with *Mathematica*. If the *Mathematica* process is running on
a
remote machine and the front end is displayed on the local machine, the
X
server on the local machine must know where to find the *Mathematica*
fonts.
To do this, add the *Mathematica* fonts to the local font path by
running
a
command like the following on the local machine.

xset fp+ /usr/local/Wolfram/****Mathematica/8.0/SystemFiles/****
Fonts/Type1;

xset fp
rehash

Be sure to execute xset fp rehash to make the fonts available to the
local X
server.
For optimal onscreen performance, Type1 fonts should appear before BDF
fonts
in the font path. Hence,
$InstallationDirectory<http://****reference.wolfram.com/**
mathematica/ref/$****InstallationDirectory.html<htt**
p://reference.wolfram.com/**mathematica/ref/$**
InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>






/SystemFiles/Fonts/Type1 should appear before

$InstallationDirectory<http://****reference.wolfram.com/**
mathematica/ref/$****InstallationDirectory.html<htt**
p://reference.wolfram.com/**mathematica/ref/$**
InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>






/SystemFiles/Fonts/BDF. You can check the order of the font path by

executing the command xset q.

*Note:* TrueType fonts are automatically loaded and do not require an
xsetcommand.


I have tried


xset +fp
/share/apps/Mathematica7.0/****SystemFiles/Fonts/Type1,/**
share/apps/Mathematica7.0/****SystemFiles/Fonts/BDF

xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax


xset +fp
/share/apps/Mathematica7.0/****SystemFiles/Fonts/Type1

xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

What's going wrong?

"xset q" shows

Font Path:

/usr/X11/lib/X11/fonts/misc/,/****usr/X11/lib/X11/fonts/TTF/,/****
usr/X11/lib/X11/fonts/OTF,/****usr/X11/lib/X11/fonts/Type1/,/****
usr/X11/lib/X11/fonts/75dpi/:****unscaled,/usr/X11/lib/X11/**
fonts/100dpi/:unscaled,/usr/****X11/lib/X11/fonts/75dpi/,/usr/****
X11/lib/X11/fonts/100dpi/,/****Library/Fonts,/System/Library/****Fonts



I presume when you say that it's installed on the cluster that you are
using a remote X display.

Have you installed the fonts on the client?

You either have to do that, or setup the machine on which the fonts are
installed as a font server. Then direct the local machine with the X
display
to the font server.

If you login remotely, using for example ssh, and attempt to set the
fontpath when logged in remotely this will fail. Font paths refer to the
X
server, not the X client. So the X server (on your desktop) has to have
access to the fonts.

For example, on my desktop I issue the following:
xset +fp fontserver:tcp/7100

to access the fonts on the host fontserver. This host is the machine on
which Mathematica is installed. On fontserver it's necessary to add the
Mathematica font directories to the font server, in my case it's an old
RHEL
4 system, and the font configuration is in /etc/X11/fs/config. I've
added
the entries for Mathematica to the catalogue entry:

catalogue = /usr/X11R6/lib/X11/fonts/****korean,
/usr/X11R6/lib/X11/fonts/misc:****unscaled,
...
/opt/Wolfram/Mathematica/5.2/****SystemFiles/Fonts/Type1,
/opt/Wolfram/Mathematica/5.2/****SystemFiles/Fonts/BDF,
/opt/Wolfram/Mathematica/5.2/****SystemFiles/Fonts/AFM

You then need to fire up the font server, in the RHEL 4 case it's
handled
by chkconfig, and the service is xfs. Finally, poke a restricted hole
for
port 7100 in your firewall, if you have one, so that clients can access
the
font server.

Fonts in X are fun...

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@**r**edhat.com<http://redhat.com>
<redhat-list-request@**redhat.com <redhat-list-request@redhat.com>>
?subject=unsubscribe
https://www.redhat.com/****mailman/listinfo/redhat-list<https://www.redhat.com/**mailman/listinfo/redhat-list>
<h**ttps://www.redhat.com/mailman/**listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>







--

redhat-list mailing list
unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
?subject=unsubscribe
https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
?subject=unsubscribe
https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-26-2011, 08:44 AM
Nigel Wade
 
Default questions about xset

On 25/10/11 21:23, Doll, Margaret Ann wrote:

Installing Mathematica on my mac did not help with the display from the head
node on the cluster.

I copied over the Fonts directory from the head node for Mathematica. I
installed the fonts in a /usr/local/mathematica/7.0/SystemFiles/Fonts
directory.
I then linked .fonts in my home directory to the new Fonts directory.

That did not help.

.fonts -> /usr/local/Mathematica/7.0/SystemFiles/Fonts
ls .fonts
AFM BDF SVG TTF Type1



You may need to restart the X server for new font directories to get
noticed. I can't remember if there's a way to tell the X server to load
new configuration files. To get it to use new font directories on the
fly you would normally use xset +fp.


--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-26-2011, 08:45 AM
Nigel Wade
 
Default questions about xset

On 25/10/11 18:50, Doll, Margaret Ann wrote:

As root I edited

/etc/X11/fs/config to add the lines on the head node of the cluster

/share/apps/Mathematica7.0/SystemFiles/Fonts/Type1,
/share/apps/Mathematica7.0/SystemFiles/Fonts/BDF,
/share/apps/Mathematica7.0/SystemFiles/Fonts/AFM

I restarted xfs on the head node

service xfs restart

I checked my firewall on the head node of the computer clustrer

netstat -nlp | grep 7100
unix 2 [ ACC ] STREAM LISTENING 9788554
5359/xfs /tmp/.font-unix/fs7100

I then logged into the head node from my Mac using "ssh -Y"

As a regular user, my xset path does not contain the Mathematica fonts.
And Mathematica still gives me the "bad font message"

My local computer is a Mac, 10.6.



After doing that did you add the font server to the font path on your
Mac? If you don't then your X server doesn't know anything about the
font server you've just set up.


--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-26-2011, 01:54 PM
"Doll, Margaret Ann"
 
Default questions about xset

On my Mac
mkfontdir .fonts
ln -s /usr/local/Mathematica/7.0/SystemFiles/Fonts .fonts
ls -sal .fonts
8 lrwxr-xr-x 1 mad staff 44 Oct 25 15:16 .fonts ->
/usr/local/Mathematica/7.0/SystemFiles/Fonts
gc166-mad:~ mad$ ls -sal /usr/local/Mathematica/7.0/SystemFiles/Fonts
total 0
0 drwxr-xr-x 7 root wheel 238 Oct 21 09:20 .
0 drwxr-xr-x 4 root wheel 136 Oct 25 15:15 ..
0 drwxr-xr-x 66 root wheel 2244 Oct 25 13:25 AFM
0 drwxr-xr-x 655 root wheel 22270 Oct 25 13:25 BDF
0 drwxr-xr-x 30 root wheel 1020 Oct 21 09:20 SVG
0 drwxr-xr-x 40 root wheel 1360 Oct 21 09:20 TTF
0 drwxr-xr-x 78 root wheel 2652 Oct 25 13:25 Type1

xset +fp .fonts
xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
gc166-mad:~ mad$ xset +fp .fonts/BDF
xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
gc166-mad:~ mad$ xset +fp .fonts/BDF/font.dir
xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

This is the same problem that I have on the head node:


ls -sal /share/apps/Mathematica7.0/SystemFiles/Fonts
total 60
4 drwxr-xr-x 7 root root 4096 Oct 21 09:20 .
4 drwxr-xr-x 18 root root 4096 Oct 25 15:10 ..
4 drwxr-xr-x 2 root root 4096 Oct 25 13:25 AFM
36 drwxr-xr-x 2 root root 36864 Oct 25 13:25 BDF
4 drwxr-xr-x 2 root root 4096 Oct 21 09:20 SVG
4 drwxr-xr-x 2 root root 4096 Oct 21 09:20 TTF
4 drwxr-xr-x 2 root root 4096 Oct 25 13:25 Type1

[root@ted Fonts]# xset +fp /share/apps/Mathematica7.0/SystemFiles/Fonts/BDF
xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

Although xfs is running on the head node:
xfs 5359 1 0 Oct25 ? 00:00:00 xfs -droppriv -daemon

It was not running on the mac. I started the process on the mac and tried
the xset again.

sudo /usr/X11/bin/xfs &
[1] 7770
gc166-mad:~ mad$ xset +fp .fonts/BDF
xset: bad font path element (#1149), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax




On Wed, Oct 26, 2011 at 4:45 AM, Nigel Wade <nmw@ion.le.ac.uk> wrote:

> On 25/10/11 18:50, Doll, Margaret Ann wrote:
>
>> As root I edited
>>
>> /etc/X11/fs/config to add the lines on the head node of the cluster
>>
>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/Type1,
>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/BDF,
>> /share/apps/Mathematica7.0/**SystemFiles/Fonts/AFM
>>
>> I restarted xfs on the head node
>>
>> service xfs restart
>>
>> I checked my firewall on the head node of the computer clustrer
>>
>> netstat -nlp | grep 7100
>> unix 2 [ ACC ] STREAM LISTENING 9788554
>> 5359/xfs /tmp/.font-unix/fs7100
>>
>> I then logged into the head node from my Mac using "ssh -Y"
>>
>> As a regular user, my xset path does not contain the Mathematica fonts.
>> And Mathematica still gives me the "bad font message"
>>
>> My local computer is a Mac, 10.6.
>>
>>
> After doing that did you add the font server to the font path on your Mac?
> If you don't then your X server doesn't know anything about the font server
> you've just set up.
>
>
> --
> Nigel Wade, System Administrator, Space Plasma Physics Group,
> University of Leicester, Leicester, LE1 7RH, UK
> E-mail : nmw@ion.le.ac.uk
> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
> ?subject=unsubscribe
> https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-26-2011, 01:58 PM
"Doll, Margaret Ann"
 
Default questions about xset

I don't believe that this is a firewall problem with hosts.allow, etc.,
because I can display comsol images from a qlogin session back to my Mac.
There I have "ssh -Y" into the head node, started a qlogin to a compute node
and then started up comsol. There were a lot of libraries that had to be
installed to make this work.

On Tue, Oct 25, 2011 at 5:19 PM, Carl G. Riches <cgr@u.washington.edu>wrote:

> On Tue, 25 Oct 2011, Doll, Margaret Ann wrote:
>
> xlsfonts | grep Mathematica
>>
>>>
>>>
>> I know the Mathematica fonts are neither in my path on my Mac nor on the
>> head node.
>>
>> However, I can run the Mathematica that is installed directly on my mac.
>> That display works well.
>>
>
> The X font server on your Mac should have a config file. I recall having
> to modify the xfs config file on Linux desktops and X terminals to put a
> central font server in the font path (back when we had X terminals and
> such). There may have been something in the hosts.allow file as well.
>
> Carl
>
>
>> On Tue, Oct 25, 2011 at 5:00 PM, Carl G. Riches <cgr@u.washington.edu
>> >wrote:
>>
>> On Tue, 25 Oct 2011, Doll, Margaret Ann wrote:
>>>
>>> Installing Mathematica on my mac did not help with the display from the
>>>
>>>> head
>>>> node on the cluster.
>>>>
>>>> I copied over the Fonts directory from the head node for Mathematica. I
>>>> installed the fonts in a /usr/local/mathematica/7.0/****
>>>> SystemFiles/Fonts
>>>>
>>>> directory.
>>>> I then linked .fonts in my home directory to the new Fonts directory.
>>>>
>>>> That did not help.
>>>>
>>>> .fonts -> /usr/local/Mathematica/7.0/****SystemFiles/Fonts
>>>>
>>>> ls .fonts
>>>> AFM BDF SVG TTF Type1
>>>>
>>>>
>>>> Have you run xlsfonts to verify that the fonts are in your font list?
>>>
>>> Carl
>>>
>>> Carl G. Riches
>>> IT Manager
>>> Department of Biostatistics
>>> Box 357232 voice: 206-616-2725
>>> University of Washington fax: 206-543-3286
>>> Seattle, WA 98195-7232 internet: cgr@u.washington.edu
>>>
>>>
>>>
>>> On Tue, Oct 25, 2011 at 1:50 PM, Doll, Margaret Ann <
>>>> margaret_doll@brown.edu
>>>>
>>>> wrote:
>>>>>
>>>>>
>>>> As root I edited
>>>>
>>>>>
>>>>> /etc/X11/fs/config to add the lines on the head node of the cluster
>>>>>
>>>>> /share/apps/Mathematica7.0/****SystemFiles/Fonts/Type1,
>>>>> /share/apps/Mathematica7.0/****SystemFiles/Fonts/BDF,
>>>>> /share/apps/Mathematica7.0/****SystemFiles/Fonts/AFM
>>>>>
>>>>>
>>>>> I restarted xfs on the head node
>>>>>
>>>>> service xfs restart
>>>>>
>>>>> I checked my firewall on the head node of the computer clustrer
>>>>>
>>>>> netstat -nlp | grep 7100
>>>>> unix 2 [ ACC ] STREAM LISTENING 9788554
>>>>> 5359/xfs /tmp/.font-unix/fs7100
>>>>>
>>>>> I then logged into the head node from my Mac using "ssh -Y"
>>>>>
>>>>> As a regular user, my xset path does not contain the Mathematica fonts.
>>>>> And Mathematica still gives me the "bad font message"
>>>>>
>>>>> My local computer is a Mac, 10.6.
>>>>>
>>>>> I am installing Mathematica on my Mac now to see if that makes a
>>>>> difference
>>>>> in the display.
>>>>>
>>>>> On Tue, Oct 25, 2011 at 12:13 PM, Nigel Wade <nmw@ion.le.ac.uk> wrote:
>>>>>
>>>>> On 25/10/11 16:24, Richardson, Joshua A. wrote:
>>>>>
>>>>>>
>>>>>> Just a quick guess, but have you actually verified the path you are
>>>>>>
>>>>>>> trying to set exists? You may need to physically copy the fonts from
>>>>>>> the CD
>>>>>>> to the machine.
>>>>>>>
>>>>>>> http://shortrecipes.blogspot.******com/2009/06/mathematica-**
>>>>>>> xset-****
>>>>>>> bad-font-path-element.html<**htt**p://shortrecipes.**blogspot.com/**<http://shortrecipes.blogspot.com/**>
>>>>>>> 2009/06/mathematica-xset-bad-****font-path-element.html<http:/**
>>>>>>> /shortrecipes.blogspot.com/**2009/06/mathematica-xset-bad-**
>>>>>>> font-path-element.html<http://shortrecipes.blogspot.com/2009/06/mathematica-xset-bad-font-path-element.html>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> Joshua A. Richardson
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@**
>>>>>>> redhat.com <redhat-list-bounces@redhat.****com<redhat-list-bounces@*
>>>>>>> *redhat.com <redhat-list-bounces@redhat.com>>>]
>>>>>>>
>>>>>>> On Behalf Of Doll, Margaret
>>>>>>>
>>>>>>> Ann
>>>>>>> Sent: Tuesday, October 25, 2011 11:09 AM
>>>>>>> To: General Red Hat Linux discussion list
>>>>>>> Subject: questions about xset
>>>>>>>
>>>>>>> CentOS release 5.6 (Final)
>>>>>>>
>>>>>>>
>>>>>>> We have Mathematica 7.0 installed on our computer cluster, but are
>>>>>>> unable
>>>>>>> to
>>>>>>> get the display to work. The initial trademark comes up, but not
>>>>>>> the
>>>>>>> rest
>>>>>>> of the application.
>>>>>>>
>>>>>>> mathematica&
>>>>>>> [1] 2527
>>>>>>> [mdoll@ted ~]$ xset: bad font path element (#1149), possible causes
>>>>>>> are:
>>>>>>> Directory does not exist or has wrong permissions
>>>>>>> Directory missing fonts.dir
>>>>>>> Incorrect font server address or syntax
>>>>>>>
>>>>>>>
>>>>>>> Mathematica says that the problem is
>>>>>>>
>>>>>>> Font Installation
>>>>>>> All machines that display the front end must have access to the fonts
>>>>>>> included with *Mathematica*. If the *Mathematica* process is running
>>>>>>> on
>>>>>>> a
>>>>>>> remote machine and the front end is displayed on the local machine,
>>>>>>> the
>>>>>>> X
>>>>>>> server on the local machine must know where to find the *Mathematica*
>>>>>>> fonts.
>>>>>>> To do this, add the *Mathematica* fonts to the local font path by
>>>>>>> running
>>>>>>> a
>>>>>>> command like the following on the local machine.
>>>>>>>
>>>>>>> xset fp+ /usr/local/Wolfram/******Mathematica/8.0/SystemFiles/******
>>>>>>>
>>>>>>> Fonts/Type1;
>>>>>>>
>>>>>>> xset fp
>>>>>>> rehash
>>>>>>>
>>>>>>> Be sure to execute xset fp rehash to make the fonts available to the
>>>>>>> local X
>>>>>>> server.
>>>>>>> For optimal onscreen performance, Type1 fonts should appear before
>>>>>>> BDF
>>>>>>> fonts
>>>>>>> in the font path. Hence,
>>>>>>> $InstallationDirectory<http://******reference.wolfram.com/**
>>>>>>> mathematica/ref/$******InstallationDirectory.html<**htt**
>>>>>>> p://reference.wolfram.com/****mathematica/ref/$**<http://reference.wolfram.com/**mathematica/ref/$**>
>>>>>>>
>>>>>>> InstallationDirectory.html<htt**p://reference.wolfram.com/**
>>>>>>> mathematica/ref/$**InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
>>>>>>> >
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>> /SystemFiles/Fonts/Type1 should appear before
>>>>>>>>
>>>>>>> $InstallationDirectory<http://******reference.wolfram.com/**
>>>>>>> mathematica/ref/$******InstallationDirectory.html<**htt**
>>>>>>> p://reference.wolfram.com/****mathematica/ref/$**<http://reference.wolfram.com/**mathematica/ref/$**>
>>>>>>>
>>>>>>> InstallationDirectory.html<htt**p://reference.wolfram.com/**
>>>>>>> mathematica/ref/$**InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
>>>>>>> >
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> /SystemFiles/Fonts/BDF. You can check the order of the font path by
>>>>>>>>
>>>>>>> executing the command xset q.
>>>>>>>
>>>>>>> *Note:* TrueType fonts are automatically loaded and do not require an
>>>>>>> xsetcommand.
>>>>>>>
>>>>>>>
>>>>>>> I have tried
>>>>>>>
>>>>>>>
>>>>>>> xset +fp
>>>>>>> /share/apps/Mathematica7.0/******SystemFiles/Fonts/Type1,/**
>>>>>>> share/apps/Mathematica7.0/******SystemFiles/Fonts/BDF
>>>>>>>
>>>>>>>
>>>>>>> xset: bad font path element (#1149), possible causes are:
>>>>>>> Directory does not exist or has wrong permissions
>>>>>>> Directory missing fonts.dir
>>>>>>> Incorrect font server address or syntax
>>>>>>>
>>>>>>>
>>>>>>> xset +fp
>>>>>>> /share/apps/Mathematica7.0/******SystemFiles/Fonts/Type1
>>>>>>>
>>>>>>>
>>>>>>> xset: bad font path element (#1149), possible causes are:
>>>>>>> Directory does not exist or has wrong permissions
>>>>>>> Directory missing fonts.dir
>>>>>>> Incorrect font server address or syntax
>>>>>>>
>>>>>>> What's going wrong?
>>>>>>>
>>>>>>> "xset q" shows
>>>>>>>
>>>>>>> Font Path:
>>>>>>>
>>>>>>> /usr/X11/lib/X11/fonts/misc/,/******usr/X11/lib/X11/fonts/TTF/**
>>>>>>> ,/****
>>>>>>> usr/X11/lib/X11/fonts/OTF,/******usr/X11/lib/X11/fonts/Type1/,**
>>>>>>> /****
>>>>>>> usr/X11/lib/X11/fonts/75dpi/:******unscaled,/usr/X11/lib/X11/****
>>>>>>> fonts/100dpi/:unscaled,/usr/******X11/lib/X11/fonts/75dpi/,/**
>>>>>>> usr/****
>>>>>>> X11/lib/X11/fonts/100dpi/,/******Library/Fonts,/System/**
>>>>>>> Library/****Fonts
>>>>>>>
>>>>>>>
>>>>>>> I presume when you say that it's installed on the cluster that you
>>>>>> are
>>>>>> using a remote X display.
>>>>>>
>>>>>> Have you installed the fonts on the client?
>>>>>>
>>>>>> You either have to do that, or setup the machine on which the fonts
>>>>>> are
>>>>>> installed as a font server. Then direct the local machine with the X
>>>>>> display
>>>>>> to the font server.
>>>>>>
>>>>>> If you login remotely, using for example ssh, and attempt to set the
>>>>>> fontpath when logged in remotely this will fail. Font paths refer to
>>>>>> the
>>>>>> X
>>>>>> server, not the X client. So the X server (on your desktop) has to
>>>>>> have
>>>>>> access to the fonts.
>>>>>>
>>>>>> For example, on my desktop I issue the following:
>>>>>> xset +fp fontserver:tcp/7100
>>>>>>
>>>>>> to access the fonts on the host fontserver. This host is the machine
>>>>>> on
>>>>>> which Mathematica is installed. On fontserver it's necessary to add
>>>>>> the
>>>>>> Mathematica font directories to the font server, in my case it's an
>>>>>> old
>>>>>> RHEL
>>>>>> 4 system, and the font configuration is in /etc/X11/fs/config. I've
>>>>>> added
>>>>>> the entries for Mathematica to the catalogue entry:
>>>>>>
>>>>>> catalogue = /usr/X11R6/lib/X11/fonts/******korean,
>>>>>> /usr/X11R6/lib/X11/fonts/misc:******unscaled,
>>>>>> ...
>>>>>> /opt/Wolfram/Mathematica/5.2/******SystemFiles/Fonts/Type1,
>>>>>> /opt/Wolfram/Mathematica/5.2/******SystemFiles/Fonts/BDF,
>>>>>> /opt/Wolfram/Mathematica/5.2/******SystemFiles/Fonts/AFM
>>>>>>
>>>>>>
>>>>>> You then need to fire up the font server, in the RHEL 4 case it's
>>>>>> handled
>>>>>> by chkconfig, and the service is xfs. Finally, poke a restricted hole
>>>>>> for
>>>>>> port 7100 in your firewall, if you have one, so that clients can
>>>>>> access
>>>>>> the
>>>>>> font server.
>>>>>>
>>>>>> Fonts in X are fun...
>>>>>>
>>>>>> --
>>>>>> Nigel Wade, System Administrator, Space Plasma Physics Group,
>>>>>> University of Leicester, Leicester, LE1 7RH, UK
>>>>>> E-mail : nmw@ion.le.ac.uk
>>>>>> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
>>>>>>
>>>>>>
>>>>>> --
>>>>>> redhat-list mailing list
>>>>>> unsubscribe mailto:redhat-list-request@****r**edhat.com<
>>>>>> http://redhat.com**>
>>>>>> <redhat-list-request@**redhat.**com <http://redhat.com> <
>>>>>> redhat-list-request@redhat.**com <redhat-list-request@redhat.com>>>
>>>>>> ?subject=unsubscribe
>>>>>> https://www.redhat.com/******mailman/listinfo/redhat-list<https://www.redhat.com/****mailman/listinfo/redhat-list>
>>>>>> <h**ttps://www.redhat.com/****mailman/listinfo/redhat-list<https://www.redhat.com/**mailman/listinfo/redhat-list>
>>>>>> >
>>>>>> <h**ttps://www.redhat.com/**mailman/**listinfo/redhat-list<http://www.redhat.com/mailman/**listinfo/redhat-list>
>>>>>> **<https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>>>>> >
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>>
>>>> redhat-list mailing list
>>>> unsubscribe mailto:redhat-list-request@**r**edhat.com<http://redhat.com>
>>>> <redhat-list-request@**redhat.com <redhat-list-request@redhat.com>>
>>>> ?subject=unsubscribe
>>>> https://www.redhat.com/****mailman/listinfo/redhat-list<https://www.redhat.com/**mailman/listinfo/redhat-list>
>>>> <h**ttps://www.redhat.com/mailman/**listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>>> >
>>>>
>>>>
>>>> --
>>> redhat-list mailing list
>>> unsubscribe mailto:redhat-list-request@**r**edhat.com<http://redhat.com>
>>> <redhat-list-request@**redhat.com <redhat-list-request@redhat.com>>
>>> ?subject=unsubscribe
>>> https://www.redhat.com/****mailman/listinfo/redhat-list<https://www.redhat.com/**mailman/listinfo/redhat-list>
>>> <h**ttps://www.redhat.com/mailman/**listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>> >
>>>
>>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
>> ?subject=unsubscribe
>> https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>
>>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
> ?subject=unsubscribe
> https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 10-26-2011, 02:28 PM
"Doll, Margaret Ann"
 
Default questions about xset

I found on the mac that I had to enter the full path name

sudo xset +fp /Users/mad/.fonts/BDF
gc166-mad:~ mad$ sudo xset +fp /Users/mad/.fonts/Type1

xset fp rehash
xset q
...
Font Path:

/Users/mad/.fonts/Type1,/Users/mad/.fonts/BDF,/usr/X11/lib/X11/fonts/misc/,/usr/X11/lib/X11/fonts/TTF/,/us
...

On Wed, Oct 26, 2011 at 9:58 AM, Doll, Margaret Ann <margaret_doll@brown.edu
> wrote:

> I don't believe that this is a firewall problem with hosts.allow, etc.,
> because I can display comsol images from a qlogin session back to my Mac.
> There I have "ssh -Y" into the head node, started a qlogin to a compute node
> and then started up comsol. There were a lot of libraries that had to be
> installed to make this work.
>
>
> On Tue, Oct 25, 2011 at 5:19 PM, Carl G. Riches <cgr@u.washington.edu>wrote:
>
>> On Tue, 25 Oct 2011, Doll, Margaret Ann wrote:
>>
>> xlsfonts | grep Mathematica
>>>
>>>>
>>>>
>>> I know the Mathematica fonts are neither in my path on my Mac nor on the
>>> head node.
>>>
>>> However, I can run the Mathematica that is installed directly on my mac.
>>> That display works well.
>>>
>>
>> The X font server on your Mac should have a config file. I recall having
>> to modify the xfs config file on Linux desktops and X terminals to put a
>> central font server in the font path (back when we had X terminals and
>> such). There may have been something in the hosts.allow file as well.
>>
>> Carl
>>
>>
>>> On Tue, Oct 25, 2011 at 5:00 PM, Carl G. Riches <cgr@u.washington.edu
>>> >wrote:
>>>
>>> On Tue, 25 Oct 2011, Doll, Margaret Ann wrote:
>>>>
>>>> Installing Mathematica on my mac did not help with the display from the
>>>>
>>>>> head
>>>>> node on the cluster.
>>>>>
>>>>> I copied over the Fonts directory from the head node for Mathematica.
>>>>> I
>>>>> installed the fonts in a /usr/local/mathematica/7.0/****
>>>>> SystemFiles/Fonts
>>>>>
>>>>> directory.
>>>>> I then linked .fonts in my home directory to the new Fonts directory.
>>>>>
>>>>> That did not help.
>>>>>
>>>>> .fonts -> /usr/local/Mathematica/7.0/****SystemFiles/Fonts
>>>>>
>>>>> ls .fonts
>>>>> AFM BDF SVG TTF Type1
>>>>>
>>>>>
>>>>> Have you run xlsfonts to verify that the fonts are in your font list?
>>>>
>>>> Carl
>>>>
>>>> Carl G. Riches
>>>> IT Manager
>>>> Department of Biostatistics
>>>> Box 357232 voice: 206-616-2725
>>>> University of Washington fax: 206-543-3286
>>>> Seattle, WA 98195-7232 internet: cgr@u.washington.edu
>>>>
>>>>
>>>>
>>>> On Tue, Oct 25, 2011 at 1:50 PM, Doll, Margaret Ann <
>>>>> margaret_doll@brown.edu
>>>>>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>> As root I edited
>>>>>
>>>>>>
>>>>>> /etc/X11/fs/config to add the lines on the head node of the cluster
>>>>>>
>>>>>> /share/apps/Mathematica7.0/****SystemFiles/Fonts/Type1,
>>>>>> /share/apps/Mathematica7.0/****SystemFiles/Fonts/BDF,
>>>>>> /share/apps/Mathematica7.0/****SystemFiles/Fonts/AFM
>>>>>>
>>>>>>
>>>>>> I restarted xfs on the head node
>>>>>>
>>>>>> service xfs restart
>>>>>>
>>>>>> I checked my firewall on the head node of the computer clustrer
>>>>>>
>>>>>> netstat -nlp | grep 7100
>>>>>> unix 2 [ ACC ] STREAM LISTENING 9788554
>>>>>> 5359/xfs /tmp/.font-unix/fs7100
>>>>>>
>>>>>> I then logged into the head node from my Mac using "ssh -Y"
>>>>>>
>>>>>> As a regular user, my xset path does not contain the Mathematica
>>>>>> fonts.
>>>>>> And Mathematica still gives me the "bad font message"
>>>>>>
>>>>>> My local computer is a Mac, 10.6.
>>>>>>
>>>>>> I am installing Mathematica on my Mac now to see if that makes a
>>>>>> difference
>>>>>> in the display.
>>>>>>
>>>>>> On Tue, Oct 25, 2011 at 12:13 PM, Nigel Wade <nmw@ion.le.ac.uk>
>>>>>> wrote:
>>>>>>
>>>>>> On 25/10/11 16:24, Richardson, Joshua A. wrote:
>>>>>>
>>>>>>>
>>>>>>> Just a quick guess, but have you actually verified the path you are
>>>>>>>
>>>>>>>> trying to set exists? You may need to physically copy the fonts
>>>>>>>> from
>>>>>>>> the CD
>>>>>>>> to the machine.
>>>>>>>>
>>>>>>>> http://shortrecipes.blogspot.******com/2009/06/mathematica-**
>>>>>>>> xset-****
>>>>>>>> bad-font-path-element.html<**htt**p://shortrecipes.**
>>>>>>>> blogspot.com/** <http://shortrecipes.blogspot.com/**>
>>>>>>>> 2009/06/mathematica-xset-bad-****font-path-element.html<http:/**
>>>>>>>> /shortrecipes.blogspot.com/**2009/06/mathematica-xset-bad-**
>>>>>>>> font-path-element.html<http://shortrecipes.blogspot.com/2009/06/mathematica-xset-bad-font-path-element.html>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> Joshua A. Richardson
>>>>>>>>
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@**
>>>>>>>> redhat.com <redhat-list-bounces@redhat.****com<redhat-list-bounces@
>>>>>>>> **redhat.com <redhat-list-bounces@redhat.com>>>]
>>>>>>>>
>>>>>>>> On Behalf Of Doll, Margaret
>>>>>>>>
>>>>>>>> Ann
>>>>>>>> Sent: Tuesday, October 25, 2011 11:09 AM
>>>>>>>> To: General Red Hat Linux discussion list
>>>>>>>> Subject: questions about xset
>>>>>>>>
>>>>>>>> CentOS release 5.6 (Final)
>>>>>>>>
>>>>>>>>
>>>>>>>> We have Mathematica 7.0 installed on our computer cluster, but are
>>>>>>>> unable
>>>>>>>> to
>>>>>>>> get the display to work. The initial trademark comes up, but not
>>>>>>>> the
>>>>>>>> rest
>>>>>>>> of the application.
>>>>>>>>
>>>>>>>> mathematica&
>>>>>>>> [1] 2527
>>>>>>>> [mdoll@ted ~]$ xset: bad font path element (#1149), possible
>>>>>>>> causes
>>>>>>>> are:
>>>>>>>> Directory does not exist or has wrong permissions
>>>>>>>> Directory missing fonts.dir
>>>>>>>> Incorrect font server address or syntax
>>>>>>>>
>>>>>>>>
>>>>>>>> Mathematica says that the problem is
>>>>>>>>
>>>>>>>> Font Installation
>>>>>>>> All machines that display the front end must have access to the
>>>>>>>> fonts
>>>>>>>> included with *Mathematica*. If the *Mathematica* process is running
>>>>>>>> on
>>>>>>>> a
>>>>>>>> remote machine and the front end is displayed on the local machine,
>>>>>>>> the
>>>>>>>> X
>>>>>>>> server on the local machine must know where to find the
>>>>>>>> *Mathematica*
>>>>>>>> fonts.
>>>>>>>> To do this, add the *Mathematica* fonts to the local font path by
>>>>>>>> running
>>>>>>>> a
>>>>>>>> command like the following on the local machine.
>>>>>>>>
>>>>>>>> xset fp+ /usr/local/Wolfram/******Mathematica/8.0/SystemFiles/****
>>>>>>>> **
>>>>>>>>
>>>>>>>> Fonts/Type1;
>>>>>>>>
>>>>>>>> xset fp
>>>>>>>> rehash
>>>>>>>>
>>>>>>>> Be sure to execute xset fp rehash to make the fonts available to the
>>>>>>>> local X
>>>>>>>> server.
>>>>>>>> For optimal onscreen performance, Type1 fonts should appear before
>>>>>>>> BDF
>>>>>>>> fonts
>>>>>>>> in the font path. Hence,
>>>>>>>> $InstallationDirectory<http://******reference.wolfram.com/**
>>>>>>>> mathematica/ref/$******InstallationDirectory.html<**htt**
>>>>>>>> p://reference.wolfram.com/****mathematica/ref/$**<http://reference.wolfram.com/**mathematica/ref/$**>
>>>>>>>>
>>>>>>>> InstallationDirectory.html<htt**p://reference.wolfram.com/**
>>>>>>>> mathematica/ref/$**InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
>>>>>>>> >
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>> /SystemFiles/Fonts/Type1 should appear before
>>>>>>>>>
>>>>>>>> $InstallationDirectory<http://******reference.wolfram.com/**
>>>>>>>> mathematica/ref/$******InstallationDirectory.html<**htt**
>>>>>>>> p://reference.wolfram.com/****mathematica/ref/$**<http://reference.wolfram.com/**mathematica/ref/$**>
>>>>>>>>
>>>>>>>> InstallationDirectory.html<htt**p://reference.wolfram.com/**
>>>>>>>> mathematica/ref/$**InstallationDirectory.html<http://reference.wolfram.com/mathematica/ref/$InstallationDirectory.html>
>>>>>>>> >
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> /SystemFiles/Fonts/BDF. You can check the order of the font path
>>>>>>>>> by
>>>>>>>>>
>>>>>>>> executing the command xset q.
>>>>>>>>
>>>>>>>> *Note:* TrueType fonts are automatically loaded and do not require
>>>>>>>> an
>>>>>>>> xsetcommand.
>>>>>>>>
>>>>>>>>
>>>>>>>> I have tried
>>>>>>>>
>>>>>>>>
>>>>>>>> xset +fp
>>>>>>>> /share/apps/Mathematica7.0/******SystemFiles/Fonts/Type1,/**
>>>>>>>> share/apps/Mathematica7.0/******SystemFiles/Fonts/BDF
>>>>>>>>
>>>>>>>>
>>>>>>>> xset: bad font path element (#1149), possible causes are:
>>>>>>>> Directory does not exist or has wrong permissions
>>>>>>>> Directory missing fonts.dir
>>>>>>>> Incorrect font server address or syntax
>>>>>>>>
>>>>>>>>
>>>>>>>> xset +fp
>>>>>>>> /share/apps/Mathematica7.0/******SystemFiles/Fonts/Type1
>>>>>>>>
>>>>>>>>
>>>>>>>> xset: bad font path element (#1149), possible causes are:
>>>>>>>> Directory does not exist or has wrong permissions
>>>>>>>> Directory missing fonts.dir
>>>>>>>> Incorrect font server address or syntax
>>>>>>>>
>>>>>>>> What's going wrong?
>>>>>>>>
>>>>>>>> "xset q" shows
>>>>>>>>
>>>>>>>> Font Path:
>>>>>>>>
>>>>>>>> /usr/X11/lib/X11/fonts/misc/,/******usr/X11/lib/X11/fonts/TTF/**
>>>>>>>> ,/****
>>>>>>>> usr/X11/lib/X11/fonts/OTF,/******usr/X11/lib/X11/fonts/Type1/,**
>>>>>>>> /****
>>>>>>>> usr/X11/lib/X11/fonts/75dpi/:******unscaled,/usr/X11/lib/X11/****
>>>>>>>> fonts/100dpi/:unscaled,/usr/******X11/lib/X11/fonts/75dpi/,/**
>>>>>>>> usr/****
>>>>>>>> X11/lib/X11/fonts/100dpi/,/******Library/Fonts,/System/**
>>>>>>>> Library/****Fonts
>>>>>>>>
>>>>>>>>
>>>>>>>> I presume when you say that it's installed on the cluster that you
>>>>>>> are
>>>>>>> using a remote X display.
>>>>>>>
>>>>>>> Have you installed the fonts on the client?
>>>>>>>
>>>>>>> You either have to do that, or setup the machine on which the fonts
>>>>>>> are
>>>>>>> installed as a font server. Then direct the local machine with the X
>>>>>>> display
>>>>>>> to the font server.
>>>>>>>
>>>>>>> If you login remotely, using for example ssh, and attempt to set the
>>>>>>> fontpath when logged in remotely this will fail. Font paths refer to
>>>>>>> the
>>>>>>> X
>>>>>>> server, not the X client. So the X server (on your desktop) has to
>>>>>>> have
>>>>>>> access to the fonts.
>>>>>>>
>>>>>>> For example, on my desktop I issue the following:
>>>>>>> xset +fp fontserver:tcp/7100
>>>>>>>
>>>>>>> to access the fonts on the host fontserver. This host is the machine
>>>>>>> on
>>>>>>> which Mathematica is installed. On fontserver it's necessary to add
>>>>>>> the
>>>>>>> Mathematica font directories to the font server, in my case it's an
>>>>>>> old
>>>>>>> RHEL
>>>>>>> 4 system, and the font configuration is in /etc/X11/fs/config. I've
>>>>>>> added
>>>>>>> the entries for Mathematica to the catalogue entry:
>>>>>>>
>>>>>>> catalogue = /usr/X11R6/lib/X11/fonts/******korean,
>>>>>>> /usr/X11R6/lib/X11/fonts/misc:******unscaled,
>>>>>>> ...
>>>>>>> /opt/Wolfram/Mathematica/5.2/******SystemFiles/Fonts/Type1,
>>>>>>> /opt/Wolfram/Mathematica/5.2/******SystemFiles/Fonts/BDF,
>>>>>>> /opt/Wolfram/Mathematica/5.2/******SystemFiles/Fonts/AFM
>>>>>>>
>>>>>>>
>>>>>>> You then need to fire up the font server, in the RHEL 4 case it's
>>>>>>> handled
>>>>>>> by chkconfig, and the service is xfs. Finally, poke a restricted hole
>>>>>>> for
>>>>>>> port 7100 in your firewall, if you have one, so that clients can
>>>>>>> access
>>>>>>> the
>>>>>>> font server.
>>>>>>>
>>>>>>> Fonts in X are fun...
>>>>>>>
>>>>>>> --
>>>>>>> Nigel Wade, System Administrator, Space Plasma Physics Group,
>>>>>>> University of Leicester, Leicester, LE1 7RH, UK
>>>>>>> E-mail : nmw@ion.le.ac.uk
>>>>>>> Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> redhat-list mailing list
>>>>>>> unsubscribe mailto:redhat-list-request@****r**edhat.com<
>>>>>>> http://redhat.com**>
>>>>>>> <redhat-list-request@**redhat.**com <http://redhat.com> <
>>>>>>> redhat-list-request@redhat.**com <redhat-list-request@redhat.com>>>
>>>>>>> ?subject=unsubscribe
>>>>>>> https://www.redhat.com/******mailman/listinfo/redhat-list<https://www.redhat.com/****mailman/listinfo/redhat-list>
>>>>>>> <h**ttps://www.redhat.com/****mailman/listinfo/redhat-list<https://www.redhat.com/**mailman/listinfo/redhat-list>
>>>>>>> >
>>>>>>> <h**ttps://www.redhat.com/**mailman/**listinfo/redhat-list<http://www.redhat.com/mailman/**listinfo/redhat-list>
>>>>>>> **<https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>>>>>> >
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>>
>>>>> redhat-list mailing list
>>>>> unsubscribe mailto:redhat-list-request@**r**edhat.com<http://redhat.com>
>>>>> <redhat-list-request@**redhat.com <redhat-list-request@redhat.com>>
>>>>> ?subject=unsubscribe
>>>>> https://www.redhat.com/****mailman/listinfo/redhat-list<https://www.redhat.com/**mailman/listinfo/redhat-list>
>>>>> <h**ttps://www.redhat.com/mailman/**listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>>>> >
>>>>>
>>>>>
>>>>> --
>>>> redhat-list mailing list
>>>> unsubscribe mailto:redhat-list-request@**r**edhat.com<http://redhat.com>
>>>> <redhat-list-request@**redhat.com <redhat-list-request@redhat.com>>
>>>> ?subject=unsubscribe
>>>> https://www.redhat.com/****mailman/listinfo/redhat-list<https://www.redhat.com/**mailman/listinfo/redhat-list>
>>>> <h**ttps://www.redhat.com/mailman/**listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>>> >
>>>>
>>>> --
>>> redhat-list mailing list
>>> unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
>>> ?subject=unsubscribe
>>> https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>>
>>>
>> --
>> redhat-list mailing list
>> unsubscribe mailto:redhat-list-request@**redhat.com<redhat-list-request@redhat.com>
>> ?subject=unsubscribe
>> https://www.redhat.com/**mailman/listinfo/redhat-list<https://www.redhat.com/mailman/listinfo/redhat-list>
>>
>
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 09:23 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org