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 2008-05-22 06:21:47

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

BackupPC on the DNS-323 running and working

I've seen a few people asking about BackupPC and if anyone has gotten it running

In case you're not familiar with BackupPC, it's a great server-side backup program for backing up multiple computers.  Though it's server-side, it requires some client side software.

I'll write up a howto in the wiki eventually.  I used the v0.5 of fun_plug and just compiled BackupPC and installed everything on the volume (RAID 1)

But right now, I'm trying to solve some other problems

It took  891 minutes (~15hr) to transfer 47622 MB in 61388 files coming out to a transfer speed of 0.89 MB/sec.  But that time includes all the processing that the DNS-323 was having to do (rsync, etc..., but no compression).  While transferring single files (over 100mbs line) it did not seem to be running too fast either (maybe 1 MB/s on the high end of what I saw).

I'm using v1.3

Offline

 

#2 2008-05-22 06:41:26

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

hmm, I directly connected the unit to my PC now (1000mb/s vs 100 mb/s before) and it's alleviating the problems I was having

I was a bit skeptical of the wall port that I was using before

Essentially, the unit was VERY slow to respond to anything: web, telnet, ssh, lighttd web, even just editing a text file over the network (using either vim or nano) was making it go really slow).  Everything was way slower than I expected and often times things timed out.  File transfers were also very very slow.  So either my router (linksys wrt-54g w/ dd-wrt) or that wall port (which I've had problems w/ before) is messing up.
I was very surprised by this when I learned that the processor was 500 mhz--more than enough to run quickly for what it is doing.

So if you come across those symptoms (super slow file editing over ssh, locking up, not responding, etc... when you think it shouldn't be doing that), trying direct connecting to your pc (or a different ethernet cable).


Anyway

Now that my issues are gone, perhaps I'll write up some instructions tomorrow for the wiki.  It's really not that hard if you've ever done any building programs from source before...
So the instructions will be aimed at those who haven't.

Do I have permissions to create a page if I'm a new user?

Last edited by pwnb0t (2008-05-22 06:42:41)

Offline

 

#3 2008-05-23 07:51:06

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

Alright, I fixed my transferring problem like I already talked about
my new backup only took 8.5 hrs for 53086 files of 47 GB  giving an average transfer speed of 1.54 MB/sec

I also wrote up a howto on all that I did:
http://dns323.kood.org/howto:backuppc

I very much recommend backuppc for this server as it easily handles it

Thanks go out to fonz for the fun_plug and all the work he did.  That certainly made everything easier (having gcc, perl, rsync, lighttpd, etc.. already built and easily installed).

Offline

 

#4 2008-05-23 08:04:14

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

Also, if you don't know anything about BackupPC

I prefer it because basically everything visible is done server side
You only have to set up the rsyncd on the host computer and configure files to be backed up, and then the server does all the scheduling, etc... and it can all be managed from one web interface

Offline

 

#5 2008-05-23 10:35:25

heazlewood
Member
Registered: 2008-05-22
Posts: 11

Re: BackupPC on the DNS-323 running and working

hey thanks

Offline

 

#6 2008-05-26 12:20:46

heazlewood
Member
Registered: 2008-05-22
Posts: 11

Re: BackupPC on the DNS-323 running and working

I'm sure this is a noob question however, i still need to ask it.

after setting up the latest ffp (0.5 beta).
I'm stepping through your install guide, and i get to the perl command and it fails as i don't have perl installed.

perl configure.pl

im guessing i dl http://www.inreto.de/dns323/fun-plug/0. … .8.8-2.tgz

how do I install this, is the command ?
funpkg -i /path/to/perl-5.8.8-2.tgz

is there anything else that perl needs to get running

and thanks for the write up much appreciated.

cheers
Max

Offline

 

#7 2008-05-26 17:35:35

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: BackupPC on the DNS-323 running and working

Yes, just do the following:

Code:

/ # cd /mnt/HD_a2/
/mnt/HD_a2 # wget http://www.inreto.de/dns323/fun-plug/0.5/packages/perl-5.8.8-2.tgz
Connecting to www.inreto.de (217.119.59.48:80)
perl-5.8.8-2.tgz     100% |*******************************| 11025k 00:00:00 ETA
/mnt/HD_a2 # funpkg -i perl-5.8.8-2.tgz
Installing package /mnt/HD_a2/perl-5.8.8-2.tgz ...
/mnt/HD_a2 #

DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#8 2008-05-26 18:32:39

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

heazlewood, you're going to need more than just the perl program
though after you learn how to install that, I'm sure you could learn how to install lighttpd as well

but anyway, I have updated the wiki with instructions on how to install all of the fun_plug packages at once

Offline

 

#9 2008-05-27 02:47:24

heazlewood
Member
Registered: 2008-05-22
Posts: 11

Re: BackupPC on the DNS-323 running and working

I will run through the rest of that, and let you know when i have it all running (or if I get stuck).

just wondering, you said that we have to compile the app for the DNS, where does that actually take place

from your instructions

wget http://internap.dl.sourceforge.net/sour … 1.0.tar.gz
downloads the zip

tar zxvf BackupPC-3.1.0.tar.gz
unzip the files

perl configure.pl
runs the config script.

im interested in learning enough to try compile stuff for myself.

Ok after writing the above i assume it takes place in the perl script, is that something you wrote specific to set up backupPC for the DNS323 with ffp setup, or did it come with BackupPC and is generic for that app?

cheers

Offline

 

#10 2008-05-27 03:58:35

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

Yes, the compiling is done in the configure.pl for BackupPC
For other programs, the sequence often looks like:

Code:

./configure
make
make install

So if you want to try building a program yourself, you could go through that.  For example, I built the editor called "nano" for my DNS-323 in the beginning when I was having timing out problems (I thought vim was taking up too many resources perhaps)

If you'd like to try building that yourself, here you go:

Download nano from http://www.nano-editor.org/
or easier, on the DNS-323:

Code:

cd /ffp/tmp
wget http://www.nano-editor.org/dist/v2.0/nano-2.0.7.tar.gz
tar zxvf nano-2.0.7.tar.gz
cd nano-2.0.7

Have a look at the INSTALL file if you'd like.  It's a typical INSTALL file that comes with a lot programs
Also have a look at all of the configure options:

Code:

./configure --help

There are two options we need to specify are the prefix and bindir.  Often times you don't have to set these options, but in this case, the defaults will go to /usr/local and /usr/local/bin respectively.  The problem with these directories is that they're not on the large RAID volume that's been created, and instead are on the OS volume which is very small in size (try running "df" or "df -h" to see the difference), in addition to anything that's saved on the OS volume will be gone on next reboot.  I'm not an expert on this device, but I'm guessing that the OS volume is on some kind of non-volatile flash memory that is then loaded into a ram disk on startup -- someone that really knows, please correct me on this.

We can set the prefix (basically the installation directory) where ever we would like (except where it will be erased on reboot).  The bin directory could go anywhere, but it really needs to be in the $PATH.  $PATH is a global variable that specifies all of the directories where the system looks for programs to run.  For example, when you type "ls" at the command prompt, it looks in the directories specified by the $PATH variable to find a program called "ls" and then runs it.  To see what's in your $PATH variable:

Code:

echo $PATH

The result should be something like:

Code:

/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin

So a good directory to install the nano binary (executable) to is /ffp/bin

Code:

./configure --prefix=/ffp/usr/ --bindir=/ffp/bin

now to compile and then install:

Code:

make
make install

You should now be able type "nano" at the command prompt and bring up the nano editor

Offline

 

#11 2008-05-27 04:01:44

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

I wonder if I should copy that post into a wiki page for newer linux users

Offline

 

#12 2008-07-05 03:26:23

heazlewood
Member
Registered: 2008-05-22
Posts: 11

Re: BackupPC on the DNS-323 running and working

hey pwnbot
i know its been a while but i finally got time to install backup pc.
i have done everything except config backupPC.

when i try to navigate to
http://192.168.x.x:8080/cgi-bin/BackupPC_Admin.pl or
http://192.168.x.x:8080/cgi-bin/sample.pl (file does exist)
i get a 403 - Forbidden

when i look at the permisions on the files i see
-rwxrwxrwx 1 root root 3989 Jul  4 09:29 BackupPC_Admin
lrwxrwxrwx 1 root root   14 Jul  4 09:32 BackupPC_Admin.pl -> BackupPC_Admin
-rw-r--r-- 1 root root   26 Jul  5 09:10 BackupPC_admin

have any idea what i might have done wrong?

cheers for your time agan

Last edited by heazlewood (2008-07-05 03:34:15)

Offline

 

#13 2008-07-06 01:18:28

SVD
New member
Registered: 2008-06-22
Posts: 4

Re: BackupPC on the DNS-323 running and working

I've installed BackupPC however it is not running like it should be.

I get the following errors when I launch a Backup via the web interface: Below the log file

File /mnt/HD_a2/User_Data/BackupPC_Data/pc/win2000/LOG.072008
Contents of file /mnt/HD_a2/User_Data/BackupPC_Data/pc/win2000/LOG.072008, modified 2008-07-05 23:00:03

2008-07-05 21:00:03 Can't find host win2000 via netbios
2008-07-05 21:27:09 Can't find host win2000 via netbios                                             # <-- solved by adding a alias name with the IP adress van the PC.
2008-07-05 21:46:02 dump failed: can't find Compress::Zlib                                        # <-- Zlib is install however this error is appearing when the compression level is different from 0
2008-07-05 21:53:03 dump failed: File::RsyncP module doesn't exist                             # <-- in the root with the command 'find | grep Rsync' the file RsyncP is not found. Perl and Rsync is installed
2008-07-05 22:00:03 dump failed: File::RsyncP module doesn't exist
2008-07-05 22:40:48 dump failed: File::RsyncP module doesn't exist
2008-07-05 23:00:03 dump failed: File::RsyncP module doesn't exist

When I want to start with the command ' /mnt/HD_a2/ffp/start/rsyncd.sh start' I get the following message

               /ffp/etc/rsyncd.conf: Required file not found or not readable


Can someone help me to solve this out. I've followed the install process given in the Wiki.

Thanks

Last edited by SVD (2008-07-06 01:21:32)

Offline

 

#14 2008-07-06 22:26:21

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

heazlewood wrote:

-rwxrwxrwx 1 root root 3989 Jul  4 09:29 BackupPC_Admin
lrwxrwxrwx 1 root root   14 Jul  4 09:32 BackupPC_Admin.pl -> BackupPC_Admin
-rw-r--r-- 1 root root   26 Jul  5 09:10 BackupPC_admin

On the list of files you have given here, what directory is this?
Why is there a file called BackupPC_Admin and one called BackupPC_admin

and where is sample.pl?

I have just gone through the instructions with another DNS-323 that I'm setting up for someone else so I'm fixing a couple of issues in the wiki page, but I did not encounter your problem.

My guess is that you did not do the lighttpd.conf file correctly or that the permissions on the /mnt/HD_a2/www/ directory (or one of the sub directories) are not set correctly

Here is the listing of my /mnt/HD_a2/www directory:

Code:

root@HOSTNAME:/mnt/HD_a2/www# ls -lR
.:
total 8
drwxr-xr-x 2 root root 4096 Jul  6 13:15 logs
drwxr-xr-x 4 root root 4096 Jul  6 11:10 pages

./logs:
total 8
-rw-r--r-- 1 root root 575 Jul  6 13:17 access.log
-rw-r--r-- 1 root root  48 Jul  6 13:15 error.log

./pages:
total 8
drwxr-xr-x 2 root root 4096 Jul  6 11:10 BackupPC
drwxr-xr-x 2 root root 4096 Jul  6 13:16 cgi-bin

./pages/BackupPC:
total 180
-r--r--r-- 1 root root   52 Jul  6 11:10 0000000.gif
 ... bunch of other gif files ...
-r--r--r-- 1 root root   69 Jul  6 11:10 1111111.gif
-r--r--r-- 1 root root 4016 Jul  6 11:10 BackupPC_stnd.css
-r--r--r-- 1 root root 3358 Jul  6 11:10 BackupPC_stnd_orig.css
-r--r--r-- 1 root root  420 Jul  6 11:10 icon-dir.png
-r--r--r-- 1 root root  441 Jul  6 11:10 icon-file.png
-r--r--r-- 1 root root  710 Jul  6 11:10 icon-hardlink.png
-r--r--r-- 1 root root  659 Jul  6 11:10 icon-symlink.png
-r--r--r-- 1 root root 1394 Jul  6 11:10 logo.gif
-r--r--r-- 1 root root 6463 Jul  6 11:10 sorttable.js

./pages/cgi-bin:
total 8
-r-sr-xr-- 1 root root 3999 Jul  6 11:16 BackupPC_Admin
lrwxrwxrwx 1 root root   14 Jul  6 11:16 BackupPC_Admin.pl -> BackupPC_Admin
-rw-r--r-- 1 root root  132 Jul  6 13:15 sample.pl

Offline

 

#15 2008-07-06 23:41:06

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

SVD wrote:

2008-07-05 21:00:03 Can't find host win2000 via netbios

I have come across this too

SVD wrote:

2008-07-05 21:46:02 dump failed: can't find Compress::Zlib                                        # <-- Zlib is install however this error is appearing when the compression level is different from 0
2008-07-05 21:53:03 dump failed: File::RsyncP module doesn't exist                             # <-- in the root with the command 'find | grep Rsync' the file RsyncP is not found. Perl and Rsync is installed

I've added some instructions for installing File::RsyncP.  The instructions for Compress::Zlib are similar, but you have to install a few other packages as well -- though I haven't tested it out.  If you want, you can try out getting it to work without compression, and then go back and put compression on.  The main problem with this approach is that you'll have an uncompressed set of files and a compressed set of files until the uncompressed files are phased out.

SVD wrote:

When I want to start with the command ' /mnt/HD_a2/ffp/start/rsyncd.sh start' I get the following message

               /ffp/etc/rsyncd.conf: Required file not found or not readable

Are you trying to start rsyncd in order to get BackupPC working on the server?  If that's the case, you shouldn't have to.  Installing File::RsyncP from the new wiki instructions should get you going. 

Otherwise, if you're trying to do something else with rsyncd (and I suspect this is not the case), you need to set up a rsyncd.conf file and a google search could help you find an example file.

Offline

 

#16 2008-07-08 23:15:17

SVD
New member
Registered: 2008-06-22
Posts: 4

Re: BackupPC on the DNS-323 running and working

Thanks pwnbot for your replay.

I had made a misstake in downloading the funplug packages and therefore some applications where not installed.
I was not able to download the packages as mentined in the wiki pages for two reasons:
       1. I didn't enter the '.' at the of the line "----- Packages ."
       2. The DNS setting were not filled via the normal web interface "LAN settings". For some reason it was empty and so there
           DNS323 was not able to connect to the internet.

I've installed the ZLib package but didn't tested it already. Installation was successfully and it didin't take that much time.

You have to install the following packages:

             tar zxvf Compress-Raw-Zlib-2.011.tar.gz
             cd Compress-Raw-Zlib-2.011.tar.gz
             perl Makefile.pl
             make
             make install
             cd ..

             tar zxvf IO-Compress-Base-2.011.tar.gz
             perl Makefile.pl
             make
             make install
             cd ..

             tar zxvf IO-Compress-Zlib-2.011.tar.gz
             perl Makefile.pl
             make
             make install
             cd ..

             tar zxvf Compress-Zlib-2.011.tar.gz
             perl Makefile.pl
             make
             make install
             cd ..


My first backup has been completed successfully.

Thanks.


Question.

Does sombody know how to build some security on the CGI interface as everybody on the network has access to this interface.
Is there a way to work with a kind of authentication procedure?

Thanks

Offline

 

#17 2008-07-09 00:16:43

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

SVD wrote:

Does sombody know how to build some security on the CGI interface as everybody on the network has access to this interface.
Is there a way to work with a kind of authentication procedure?

Everytime I've installed this on a server with apache instead of lighttpd, I've had to log in.  But I've also always installed with a user (backuppc) running the BackupPC processes.  So I'm pretty sure you can make it so that you have to log in, but it's probably going to have to do with setting up BackupPC running as a different user and setting up lighttpd correctly.  I plan on doing this at some point as I really need to get a login on the CGI page.

If you get it working, please respond back in this thread.

Offline

 

#18 2008-07-28 18:35:42

brunal2496
New member
Registered: 2008-07-24
Posts: 2

Re: BackupPC on the DNS-323 running and working

Hi all,

thanks so much for all the work everybody does on that subject, this is so helpfull.

My time to share my experience :

Be carefull to UNCOMMENT THE LINE "mod_cgi" in the lighttpd.conf file.
This is why you might get a 403 - forbidden error when you try to connect to sample.pl page.

Offline

 

#19 2008-07-31 13:26:44

brunal2496
New member
Registered: 2008-07-24
Posts: 2

Re: BackupPC on the DNS-323 running and working

Hi all,

Does some of you found a way to run Backuppc on the DNS-323 using the rsync mehod?

When I launch a backup, I got an

Read EOF: Connection reset by peer
Tried again: got 0 bytes
Done: 0 files, 0 bytes
Got fatal error during xfer (Unable to read 4 bytes)
Backup aborted (Unable to read 4 bytes)

error from backuppc, and when I try the command itself with --server --sender from a shell, rsync jsut hang without doing anything.

Offline

 

#20 2008-09-16 22:02:22

mrmiketheman
Member
Registered: 2007-08-16
Posts: 10

Re: BackupPC on the DNS-323 running and working

Thanks for building the directions for BackupPC. Any thoughts on just building a binary install for fonz0.5?  e.g. an idiot proof install smile

I'm not a UNIX newbie, but it's the first time I've compiled anything in a long time and the first time on the DNS-323.

Do you have any ideas why I would be getting this error with rsync.h?  I'm using a DNS-323 FW 1.05 and fonz0.5 and compiling on the box itself.

distcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= FileList.c
distcc[28872] ERROR: nonblocking connect to 127.0.0.1:3632 failed: Connection refused
distcc[28872] Warning: failed to distribute FileList.c to 127.0.0.1, running locally instead
In file included from FileList.xs:5:
rsync.h:361: error: expected ':', ',', ';', '}' or '__attribute__' before 'inode'
rsync.h:516: error: expected ':', ',', ';', '}' or '__attribute__' before 'dev'
In file included from rsync.h:599,
                 from FileList.xs:5:
proto.h:218: warning: 'struct direct' declared inside parameter list
proto.h:218: warning: its scope is only this definition or declaration, which is probably not what you want
FileList.xs: In function 'XS_File__RsyncP__FileList_get':
FileList.xs:222: error: 'struct file_list' has no member named 'link_idev_data_done'
FileList.xs:242: error: 'struct idev' has no member named 'dev'
FileList.xs:243: error: 'struct idev' has no member named 'inode'
FileList.xs: In function 'XS_File__RsyncP__FileList_encode':
FileList.xs:327: error: 'struct file_list' has no member named 'encode_lastdir_len'
FileList.xs:345: error: 'struct file_list' has no member named 'encode_lastdir_len'
FileList.xs:346: error: 'struct file_list' has no member named 'encode_lastdir'
FileList.xs:347: error: 'struct file_list' has no member named 'encode_lastdir_len'
FileList.xs:348: error: 'struct file_list' has no member named 'encode_lastdir'
FileList.xs:400: error: 'struct idev' has no member named 'dev'
FileList.xs:401: error: 'struct idev' has no member named 'inode'
FileList.xs:405: error: 'struct file_list' has no member named 'encode_lastdir'
FileList.xs:406: error: 'struct file_list' has no member named 'encode_lastdir_len'
FileList.xs: In function 'XS_File__RsyncP__FileList_exclude_list_clear':
FileList.xs:544: error: 'struct file_list' has no member named 'exclude_list'
FileList.xs: In function 'XS_File__RsyncP__FileList_exclude_list_get':
FileList.xs:558: error: 'struct file_list' has no member named 'exclude_list'
distcc[28872] ERROR: compile FileList.c on localhost failed
make[1]: *** [FileList.o] Error 1
make[1]: Leaving directory `/mnt/HD_a2/Software/DNS-323/fonz0.5-Beta/File-RsyncP-0.68/FileList'
make: *** [subdirs] Error 2

Offline

 

#21 2008-09-16 22:30:20

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

brunal2496 wrote:

Hi all,

Does some of you found a way to run Backuppc on the DNS-323 using the rsync mehod?

When I launch a backup, I got an

Read EOF: Connection reset by peer
Tried again: got 0 bytes
Done: 0 files, 0 bytes
Got fatal error during xfer (Unable to read 4 bytes)
Backup aborted (Unable to read 4 bytes)

error from backuppc, and when I try the command itself with --server --sender from a shell, rsync jsut hang without doing anything.

I just now saw your message, I don't know if I got the notification before.  Anyway, I use the rsync method.  It looks like you might have a firewall problem with Windows Firewall perhaps.  Make sure you uncommented the lines in the rsync setup file on windows (rsync.bat I think), so that it configures the Windows Firewall Properly.  Lastly, you did install rsyncd on windows right?

Offline

 

#22 2008-09-16 22:44:16

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

mrmiketheman wrote:

Thanks for building the directions for BackupPC. Any thoughts on just building a binary install for fonz0.5?  e.g. an idiot proof install smile

I'm not a UNIX newbie, but it's the first time I've compiled anything in a long time and the first time on the DNS-323.

Do you have any ideas why I would be getting this error with rsync.h?  I'm using a DNS-323 FW 1.05 and fonz0.5 and compiling on the box itself.

distcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= FileList.c
distcc[28872] ERROR: nonblocking connect to 127.0.0.1:3632 failed: Connection refused
distcc[28872] Warning: failed to distribute FileList.c to 127.0.0.1, running locally instead

I would really like a binary build, but I think that's going to be a fair amount of work that I'll have to put into it.  One of these days, perhaps....


Anyway, to your problem, why are you doing this through distcc?  You're doing the distcc, right?  I don't remember that being in the rsync install.

Offline

 

#23 2008-10-16 03:18:33

log2g
New member
Registered: 2008-10-16
Posts: 4

Re: BackupPC on the DNS-323 running and working

Hi everybody.

I followed pwnb0t's tutorial; but when I want to compile Perl modules, in "make test" step, I had these error:

Code:

PERL_DL_NONLAZY=1 /ffp/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
/ffp/bin/perl: can't resolve symbol 'clock_getres'
make: *** [test_dynamic] Error 1

Even so, I can continue and, finally, the module seems to be installed..
But when I want to install Backuppc, it failed:

Code:

Error loading BackupPC::Lib: Bareword "compareLOGName" not allowed while "strict subs" in use at lib/BackupPC/Lib.pm line 1466.
Compilation failed in require at (eval 20) line 2.
BEGIN failed--compilation aborted at (eval 20) line 2.

BackupPC cannot load the package BackupPC::Lib, which is included in the
BackupPC distribution.  This probably means you did not cd to the
unpacked BackupPC distribution before running configure.pl, eg:
    cd BackupPC-3.1.0
    ./configure.pl
Please try again.

I tried with 1.03 and frodoII (1.05 modified) firmware, and it failed too...

So, if somebody has any idea or solution, it'll be cool.

Or, if somebody had Perl perl-5.8.8-2 file, I would like to test with this version (actually, it's 5.10-2 version).

Thanks.

Last edited by log2g (2008-10-16 03:24:49)

Offline

 

#24 2008-10-16 09:48:04

pwnb0t
Member
Registered: 2008-05-22
Posts: 17

Re: BackupPC on the DNS-323 running and working

Have you installed all of the fonz packages from here: http://www.inreto.de/dns323/fun-plug/0.5/packages/ through the instructions that he gives here: http://www.inreto.de/dns323/fun-plug/0.5/README.txt

Also, can you please list the actual commands you're using and also a little more of the output from that first code snippet?


Lastly, you did do what the BackupPC script was suggesting you do, correct?
    cd BackupPC-3.1.0
    ./configure.pl

Though I suspect that won't work until the perl install gets fixed first.

Offline

 

#25 2008-10-17 02:11:00

log2g
New member
Registered: 2008-10-16
Posts: 4

Re: BackupPC on the DNS-323 running and working

First, thanks for your fast reply smile

So, I'd installed all packages from http://www.inreto.de/dns323/fun-plug/0.5/packages/ and http://www.inreto.de/dns323/fun-plug/0. … kages/All/ via funpkg.
[ funpkg -i *tgz ]
And I downloaded all perl modules via cpan.org (eg., http://search.cpan.org/~cbarratt/File-R … /RsyncP.pm)

When I compile a perl module:

Code:

root@casa-backup:/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68# perl Makefile.PL 
Writing Makefile for File::RsyncP::Digest
Writing Makefile for File::RsyncP::FileList
Writing Makefile for File::RsyncP
root@casa-backup:/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68# make
make[1]: Entering directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/Digest'
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER=1234 Digest.c
distcc[2339] ERROR: nonblocking connect to 127.0.0.1:3632 failed: Connection refused
distcc[2339] Warning: failed to distribute Digest.c to 127.0.0.1, running locally instead
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER=1234 md4c.c
distcc[2346] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER=1234 rsync_lib.c
distcc[2351] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
Running Mkbootstrap for File::RsyncP::Digest ()
chmod 644 Digest.bs
rm -f ../blib/arch/auto/File/RsyncP/Digest/Digest.so
distcc gcc  -shared  -Wl,-rpath -Wl,/ffp/lib -O2 Digest.o md4c.o rsync_lib.o  -o ../blib/arch/auto/File/RsyncP/Digest/Digest.so     \
             \
      
chmod 755 ../blib/arch/auto/File/RsyncP/Digest/Digest.so
cp Digest.bs ../blib/arch/auto/File/RsyncP/Digest/Digest.bs
chmod 644 ../blib/arch/auto/File/RsyncP/Digest/Digest.bs
Manifying ../blib/man3/File::RsyncP::Digest.3
make[1]: Leaving directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/Digest'
make[1]: Entering directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/FileList'
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= FileList.c
distcc[2382] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= exclude.c
distcc[2387] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= flist.c
distcc[2392] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= hlink.c
distcc[2400] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= pool_alloc.c
distcc[2405] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= snprintf.c
distcc[2410] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -O2 -pipe -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/ffp/lib/perl5/5.10.0/arm-linux-thread-multi/CORE"  -DPERL_BYTEORDER= wildmatch.c
distcc[2415] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
Running Mkbootstrap for File::RsyncP::FileList ()
chmod 644 FileList.bs
rm -f ../blib/arch/auto/File/RsyncP/FileList/FileList.so
distcc gcc  -shared  -Wl,-rpath -Wl,/ffp/lib -O2 FileList.o exclude.o flist.o hlink.o pool_alloc.o snprintf.o wildmatch.o   -o ../blib/arch/auto/File/RsyncP/FileList/FileList.so     \
       -lm      \
      
chmod 755 ../blib/arch/auto/File/RsyncP/FileList/FileList.so
cp FileList.bs ../blib/arch/auto/File/RsyncP/FileList/FileList.bs
chmod 644 ../blib/arch/auto/File/RsyncP/FileList/FileList.bs
Manifying ../blib/man3/File::RsyncP::FileList.3
make[1]: Leaving directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/FileList'
Manifying blib/man3/File::RsyncP::FileIO.3
Manifying blib/man3/File::RsyncP.3
root@casa-backup:/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68# make test
make[1]: Entering directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/Digest'
make[1]: Leaving directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/Digest'
make[1]: Entering directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/FileList'
make[1]: Leaving directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/FileList'
PERL_DL_NONLAZY=1 /ffp/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
/ffp/bin/perl: can't resolve symbol 'clock_getres'
make: *** [test_dynamic] Error 1
root@casa-backup:/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68# make 
make[1]: Entering directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/Digest'
make[1]: Leaving directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/Digest'
make[1]: Entering directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/FileList'
make[1]: Leaving directory `/mnt/HD_a2/ffp/tmp/File-RsyncP-0.68/FileList'

For configure.pl file, you've to replace "#!/bin/perl" by "#!/ffp/bin/perl -w", "./configure.pl" will works but the same error will be displayed..

Code:

root@casa-backup:/mnt/HD_a2/ffp/tmp/BackupPC-3.1.0# ./configure.pl 
Name "main::value" used only once: possible typo at ./configure.pl line 851.
Statement unlikely to be reached at lib/BackupPC/Lib.pm line 1273.
    (Maybe you meant system() when you said exec()?)
Statement unlikely to be reached at lib/BackupPC/Lib.pm line 1338.
    (Maybe you meant system() when you said exec()?)

Error loading BackupPC::Lib: Bareword "compareLOGName" not allowed while "strict subs" in use at lib/BackupPC/Lib.pm line 1466.
Compilation failed in require at (eval 20) line 2.
BEGIN failed--compilation aborted at (eval 20) line 2.

BackupPC cannot load the package BackupPC::Lib, which is included in the
BackupPC distribution.  This probably means you did not cd to the
unpacked BackupPC distribution before running configure.pl, eg:

    cd BackupPC-3.1.0
    ./configure.pl

Please try again.

I wish it could help you.

As I'm novice in Perl, the last attempt (for me) is to use the same version of Perl you used in your tutorial...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB