DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2012-11-26 00:17:52

ottsm
Member
Registered: 2010-12-23
Posts: 44

Need Help Installing rrdtool on DNS323/325?

I'm not an expert in Linux but I can hack my way around.  I'm going through the documentation at;
http://oss.oetiker.ch/rrdtool/doc/rrdbu … tml#___top

I know from a previous post that freetype & libart need installed.

I can follow the instructions but don't know how to install MAKE.  I know how to use shell scripts somewhat but when it comes compiling, etc. I'm still learning. 

Anyone got a good step by step guide on how to do this.

I'm working on using my DNS325 as a more detailed logger for a TED5000 to track the energy usage in my house.  So far I've written a shell to get the minute data for an entire day and convert it into a file that is setup so rrdtool update can get it into the rrd database.

Now I need to get rrdtool working on the DNS and start making a few graphs.

Offline

 

#2 2012-11-27 12:59:32

memiks
Member
Registered: 2011-09-02
Posts: 72

Re: Need Help Installing rrdtool on DNS323/325?

I will try to compile it and give you a package.

Memiks.

Offline

 

#3 2012-11-27 17:44:49

rspitz
Member
Registered: 2012-10-13
Posts: 12

Re: Need Help Installing rrdtool on DNS323/325?

Memiks, that would be great! What FFP version will you compile for? I'm hoping for 0.7.

The newer rrdtool versions depend on pango and cairo for text management and graphing, so porting that to FFP is a lot of work. Hats off to you if you can provide that to the community.

Offline

 

#4 2012-11-28 10:32:16

memiks
Member
Registered: 2011-09-02
Posts: 72

Re: Need Help Installing rrdtool on DNS323/325?

I will compile for ffp 0.7 eabi not oarm

Offline

 

#5 2012-11-30 08:15:50

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: Need Help Installing rrdtool on DNS323/325?

Hope you can do this, thanks.

Offline

 

#6 2012-12-03 11:28:14

memiks
Member
Registered: 2011-09-02
Posts: 72

Re: Need Help Installing rrdtool on DNS323/325?

Hello,

My NAS currently build ghostcript to compile libspectre to compile cairo to compile pango :x

After that I must be able to compile rrdtool.

Memiks.

Offline

 

#7 2012-12-07 14:40:53

memiks
Member
Registered: 2011-09-02
Posts: 72

Re: Need Help Installing rrdtool on DNS323/325?

To compile pango last version I need to build new version of glib. so I currently compile glib.

Offline

 

#8 2012-12-11 11:21:41

memiks
Member
Registered: 2011-09-02
Posts: 72

Re: Need Help Installing rrdtool on DNS323/325?

glib 2.35.2 is built, I will compile cairo / pango and rrdtool...

Offline

 

#9 2012-12-11 14:23:45

memiks
Member
Registered: 2011-09-02
Posts: 72

Re: Need Help Installing rrdtool on DNS323/325?

Hello, I just compiled rrdtool for eabi. could you test it and give me a fallback please ?.

In order to compile it I add these packages to my repository :

32d26bc2fb54e3151a3b10029b310a0e  cairo-1.12.8-arm-1.txz
473b0116a2dbd50121f48097b2e5a829  fontconfig-2.10.2-arm-1.txz
fdedc4578b52177d1d36dc48c019e359  ghostscript-9.06-arm-1.txz
102f8bf9b770e8e7701b8ac9cf4e938c  glib-2.35.2-arm-1.txz
d863b220986066854ac7c9b0afb20faa  harfbuzz-0.9.9-arm-1.txz
2d1b88015a8dd263f557fb27043e53f8  libffi-3.0.11-arm-1.txz
549f4f792f3f414dc11a2543aa27a0ff  libspectre-0.2.7-arm-1.txz
b6587c19ed46af536599c44164f30062  pango-1.32.3-arm-1.txz
ac2a6618d9bff07b61619eb43e444f76  pixman-0.28.0-arm-1.txz
16e33376597489b17fc80cc37d00fc5c  rrdtool-1.4.5-arm-1.txz

http://ffp.memiks.fr/pkg/

Memiks.

Offline

 

#10 2012-12-11 15:51:14

rspitz
Member
Registered: 2012-10-13
Posts: 12

Re: Need Help Installing rrdtool on DNS323/325?

Memiks, you are the greatest! ;-)

Just a very short report about my first trial on Medion NAS, FFP 0.7 arm:

In addition to the packages you listed, rrdtool requires several more:
libxml2-2.7.8-arm-1.txz
libpng-1.4.7-arm-1
and others, my screen buffer is too small to get back to all the missing libraries that "rrdtool create" reported. "slacker -Ui" is your friend in finding and installing these.

Loading a few test data into a rrd database with "rrdupdate" was easy, creating a graph with "rrdtool graph" first gives this fatal error:

Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/ffp/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/ffp/etc/pango/pango.modules'

After creating the missing file with the command listed, a graph (png) gets created, but these warnings are displayed:

Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'

The generated graph contains no text, just little boxes where characters are supposed to be. Will have to investigate further, probably will have to run "fontconfig" or something similar.

Offline

 

#11 2012-12-11 17:50:09

memiks
Member
Registered: 2011-09-02
Posts: 72

Re: Need Help Installing rrdtool on DNS323/325?

Ok the system does not have fonts installed, I will check how I can add a font packages for ffp.

For
libxml2-2.7.8-arm-1.txz
libpng-1.4.7-arm-1.txz

I already have them on my system So I did not compiled them... hmm

The error of pango is "usual" since the package does not include the pango.modules (specific on each installation).
But yes I forgot to talk about that...

I will check fonts and come back soon wink

Memiks.

Offline

 

#12 2012-12-17 17:29:52

memiks
Member
Registered: 2011-09-02
Posts: 72

Re: Need Help Installing rrdtool on DNS323/325?

Hello could you try this :

create a folder in your user home directory:

mkdir ~/.fonts/

go to .fonts directory :

cd ~/.fonts/

download the font package:
wget http://ffp.memiks.fr/pkg/truetype.tar.gz

untar it:
tar xf truetype.tar.gz

delete it :
rm truetype.tar.gz

update font cache:
fc-cache -fv

restart rrdtools.

Best regards,
Memiks.

Offline

 

#13 2012-12-27 00:16:08

rspitz
Member
Registered: 2012-10-13
Posts: 12

Re: Need Help Installing rrdtool on DNS323/325?

Hi memiks,

sorry for late reply, didn't get around to testing this earlier. I hope you had enjoyable christmas holidays.

I downloaded your font package and installed as instructed, now I can create rrdtool graphs with readable text. Thank you for your support!

There is just one problem remaining: I'm using the "root" account on my Medion NAS, since I haven't been able to figure out how to create another user account for logging in via ssh. The accounts created for file shares are refused to login via ssh. The contents of /root don't survive a reboot, so the fonts will be lost. As a stopgap measure, I put the truetype directory into a persistent place and created a symlink in /root, which I can recreate in a startup script. Would you recommend another solution?

Regards, Richard

Offline

 

#14 2013-01-18 05:28:49

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: Need Help Installing rrdtool on DNS323/325?

I've been out for awhile.  I tried this.  Getting the following error;
can't load library 'libfreetype.so.6'
I can't find this in the repository?

Offline

 

#15 2013-01-18 06:30:56

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: Need Help Installing rrdtool on DNS323/325?

Ok, was missing;
freetype-2.4.8-arm-1.txz

This seems to have fixed this immediate problem.

Offline

 

#16 2013-01-18 21:30:55

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: Need Help Installing rrdtool on DNS323/325?

OK, I was able to create an RRD database, however when I go to graph it I get the following error;

(process:21228): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/ffp/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/ffp/etc/pango/pango.modules'

(process:21228): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'

(process:21228): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'
490x148

I did the above truetype font instructions.

Offline

 

#17 2013-01-18 21:41:58

ottsm
Member
Registered: 2010-12-23
Posts: 44

Re: Need Help Installing rrdtool on DNS323/325?

I guess I had to update the pango cache, now it seems to be working;

pango-querymodules --update-cache

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB