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
The font server (xfs) is used to supply fonts from one machine to
another, to save you the hassle of installing them on every client. You
should only require one font server instance, on a machine which
actually has the fonts installed locally.
Any client machine (with local X server) which requires those fonts can
access them by having the font server added to its font path. The syntax
to add a font server to the font path is:
xset +fp fontserver:tcp/7100
where "fontserver" is the hostname/IP of the font server.
After doing this you should verify it's been added to the font path
using "xset q", and that the fonts are available by "xlsfonts".
Don't forget that if you run xlsfonts whilst logged into a remote system
you will not see the fonts which are installed on that remote system.
You will see the fonts which your local X server has available (the X
server which any X client will display to). xlsfonts is an X client,
just as xterm, xclock etc. and shows information about your local X
server, not the remote system.
--
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
10-26-2011, 03:51 PM
"Doll, Margaret Ann"
questions about xset
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?
On Wed, Oct 26, 2011 at 11:43 AM, Nigel Wade <nmw@ion.le.ac.uk> wrote:
> On 26/10/11 14:54, Doll, Margaret Ann wrote:
>
>> 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
>>
>>
>>
>>
> The font server (xfs) is used to supply fonts from one machine to another,
> to save you the hassle of installing them on every client. You should only
> require one font server instance, on a machine which actually has the fonts
> installed locally.
>
> Any client machine (with local X server) which requires those fonts can
> access them by having the font server added to its font path. The syntax to
> add a font server to the font path is:
>
> xset +fp fontserver:tcp/7100
>
> where "fontserver" is the hostname/IP of the font server.
>
> After doing this you should verify it's been added to the font path using
> "xset q", and that the fonts are available by "xlsfonts".
>
> Don't forget that if you run xlsfonts whilst logged into a remote system
> you will not see the fonts which are installed on that remote system. You
> will see the fonts which your local X server has available (the X server
> which any X client will display to). xlsfonts is an X client, just as xterm,
> xclock etc. and shows information about your local X server, not the remote
> system.
>
>
> --
> 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
10-26-2011, 04:43 PM
Nigel Wade
questions about xset
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:
$ 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).
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@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
10-26-2011, 05:34 PM
"Doll, Margaret Ann"
questions about xset
On Wed, Oct 26, 2011 at 12:43 PM, Nigel Wade <nmw@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
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@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
>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
10-26-2011, 05:46 PM
questions about xset
Doll, Margaret Ann wrote:
> On Wed, Oct 26, 2011 at 12:43 PM, Nigel Wade <nmw@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.
<snip>
>> 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
<snip>
> 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.
<snip>
Hmmm... can you try telneting from your Mac to ted, port 7100?
mark
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
10-26-2011, 05:53 PM
"Doll, Margaret Ann"
questions about xset
telnet ted 7100
Trying 128.148.229.2...
telnet: connect to address 128.148.229.2: Connection refused
telnet: Unable to connect to remote host
However, this gives me an idea. The campus may have firewall rules that
are not allowing the connection.
Thanks everyone for your help. I'll let you know my final setup when it all
works.
On Wed, Oct 26, 2011 at 1:46 PM, <m.roth@5-cent.us> wrote:
> Doll, Margaret Ann wrote:
> > On Wed, Oct 26, 2011 at 12:43 PM, Nigel Wade <nmw@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.
> <snip>
> >> 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
> <snip>
> > 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.
> <snip>
> Hmmm... can you try telneting from your Mac to ted, port 7100?
>
> mark
>
> --
> 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
10-26-2011, 06:04 PM
questions about xset
Doll, Margaret Ann wrote:
> telnet ted 7100
> Trying 128.148.229.2...
> telnet: connect to address 128.148.229.2: Connection refused
> telnet: Unable to connect to remote host
>
>
> However, this gives me an idea. The campus may have firewall rules that
> are not allowing the connection.
>
Oh. Are you trying to get in from outside the campus network?
<snip>
mark
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
10-26-2011, 06:08 PM
"Doll, Margaret Ann"
questions about xset
No. We just have firewalls between departments and servers sometimes.
On Wed, Oct 26, 2011 at 2:04 PM, <m.roth@5-cent.us> wrote:
> Doll, Margaret Ann wrote:
> > telnet ted 7100
> > Trying 128.148.229.2...
> > telnet: connect to address 128.148.229.2: Connection refused
> > telnet: Unable to connect to remote host
> >
> >
> > However, this gives me an idea. The campus may have firewall rules that
> > are not allowing the connection.
> >
> Oh. Are you trying to get in from outside the campus network?
> <snip>
> mark
>
> --
> 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
10-26-2011, 06:21 PM
questions about xset
Doll, Margaret Ann wrote:
> On Wed, Oct 26, 2011 at 2:04 PM, <m.roth@5-cent.us> wrote:
>> Doll, Margaret Ann wrote:
>> > telnet ted 7100
>> > Trying 128.148.229.2...
>> > telnet: connect to address 128.148.229.2: Connection refused
>> > telnet: Unable to connect to remote host
>> >
>> >
>> > However, this gives me an idea. The campus may have firewall rules
>> > that are not allowing the connection.
>> >
>> Oh. Are you trying to get in from outside the campus network?
>> <snip>
>>
> No. We just have firewalls between departments and servers sometimes.
Oh. Yup. We've got some of those in my division. I think the telnet
response is your answer, and you may have to apply/negotiate this access.
mark
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
10-26-2011, 06:43 PM
"Richardson, Joshua A."
questions about xset
Agreed, not familiar with the Mathematica software, but maybe you could run it over an open port as a temporary workaround?
Joshua A. Richardson
-----Original Message-----
From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@redhat.com] On Behalf Of m.roth@5-cent.us
Sent: Wednesday, October 26, 2011 2:21 PM
To: General Red Hat Linux discussion list
Subject: Re: questions about xset
Doll, Margaret Ann wrote:
> On Wed, Oct 26, 2011 at 2:04 PM, <m.roth@5-cent.us> wrote:
>> Doll, Margaret Ann wrote:
>> > telnet ted 7100
>> > Trying 128.148.229.2...
>> > telnet: connect to address 128.148.229.2: Connection refused
>> > telnet: Unable to connect to remote host
>> >
>> >
>> > However, this gives me an idea. The campus may have firewall rules
>> > that are not allowing the connection.
>> >
>> Oh. Are you trying to get in from outside the campus network?
>> <snip>
>>
> No. We just have firewalls between departments and servers sometimes.
Oh. Yup. We've got some of those in my division. I think the telnet
response is your answer, and you may have to apply/negotiate this access.
mark
--
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