Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just got Security+ certified and stared to care about my network (or use my newly aquired knowledge to make everything better)

I just installed Snort the open source IDS. I am having one issue erything working correctly, but the graphs in BASE have no words.

I have googled and found no answers. Haas anyone else seen anything like this?

share|improve this question
1  
Wild guess mode: you're missing whatever font files BASE thinks it's using for creating the labels. You might be getting error messages logged in your webserver's error log if this is the case (depending on your webserver, its setup, and how it's running PHP). –  DerfK Feb 28 '11 at 16:37
    
@DerfK It was a font problem. I did some more googling with the errors in the apache log file and found some unhelpful answers. I finally did get it to work after copying font files all over the place. I would make this as the answer, if you can post it without it being a comment. –  BLAKE Feb 28 '11 at 17:22
    
Take a couple of minutes, find which of those copies is the one it really needed, then answer it yourself (it'll ask you to wait a bit before marking it as the correct answer). That would be a much better answer for posterity than my wild guess. –  DerfK Feb 28 '11 at 21:35

3 Answers 3

Like my not below, in 14.04 use:

sudo ln -s /usr/share/fonts/truetype/dejavu /usr/share/php/Image/Canvas/Fonts
share|improve this answer
up vote 0 down vote accepted

I did this on CentOS. It looks like the PEAR::Image_Graph doesn't use the OS's default font cache.

I had to copy a font file to the Pear folder and edit a config file.

I created a "Fonts" folder in /usr/share/pear/Image/Canvas/

A copied a font file from /usr/share/fonts to the new Fonts folder

$ cp /usr/share/fonts/dejavu-lgc/DejaVuLGCSerif.ttf /usr/share/pear/Image/Canvas/Fonts/

I then had to edit base_conf.php, I changed the $graph_font_name value to DejaVuLGCSerif.ttf

share|improve this answer

The above didn't work for me in Ubuntu (12.04.4). I found information here.

Basically I linked where my fonts were

/usr/share/fonts/truetype/ttf-dejavu

to where PEAR expected them.

sudo ln -s /usr/share/fonts/truetype/ttf-dejavu /usr/share/php/Image/Canvas/Fonts
share|improve this answer
    
I just re-installed BASE on 14.04. Overcoming various PEAR issues I ran into "my graphs have no words". I searched and come up with my own answer! NOTE: in 14.04, the source font location doesn't have 'ttf-'. –  AlnHky May 24 at 3:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.