PDA

Bekijk de volledige versie : FYI: Precompiled rsync, thttpd and vsftpd



wouterdm
19-11-2004, 10:30
Has anybody tried to get an rsync server active on the router ?
This could promote the router to a backup server.

eludias
13-02-2005, 00:39
Maybe useful for others:

http://www.wingding.demon.nl contains precompiled versions of rsync for remote backuping, thttpd for webserving with CGI support and vsftpd for simple and secure ftp server.

Disclaimer: Works for me (TM).

Styno
13-02-2005, 16:05
Thanks a lot! :)

(Though vsftpd and thttpd were allready available to the WL-500g)

eludias
13-02-2005, 17:25
Thanks a lot! :)

(Though vsftpd and thttpd were allready available to the WL-500g)

Therefore I added 'netcat' to the collection :)

Where could we find thttpd and vsftpd before? From OpenWRT packages? I extracted tcpdump and strace from them, which are useful.

Styno
13-02-2005, 17:54
Where could we find thttpd and vsftpd before? From OpenWRT packages? I extracted tcpdump and strace from them, which are useful.vsftpd has been compiled for WL-HDD (In jockey's firmware if i'm not mistaken).
thttpd was available with PHP 3 and 4 support here: http://wl500g.info/showthread.php?t=495

rdk
16-02-2005, 09:47
Hi I am very interested in rsync. :) I tried the link to download but its down. Can you upload these items here?

Many thanks!
Rainer

eludias
16-02-2005, 19:54
Link down? That's strange, it just resides at my provider. Be sure not to forget the 'www.' part in the link.

Ok, attached the rsync binary.

New on http://www.wingding.demon.nl/ : ssmtp, to mail data. For example log files, ...

hugo
16-02-2005, 21:33
Link down? That's strange, it just resides at my provider. Be sure not to forget the 'www.' part in the link.

Ok, attached the rsync binary.

New on http://www.wingding.demon.nl/ : ssmtp, to mail data. For example log files, ...

It's already available on my mail tools :rolleyes: but I like the way you organise information on your webpage.

eludias
16-02-2005, 21:45
A central repository for WL500g packages would be nice. Nothing fancy, just a list of package-version.tar.gz files (with absolute filenames!) to start with. Or create our own ipkgs?

What should the default directory be for the applications? --prefix=/usr/local ?

Styno
17-02-2005, 08:20
A central repository for WL500g packages would be nice. Nothing fancy, just a list of package-version.tar.gz files (with absolute filenames!) to start with. Or create our own ipkgs?

What should the default directory be for the applications? --prefix=/usr/local ?
Well, the WIKI system is a nice place to start. Info on HOWTO configure and use the packages can be stored and updated there by the users from this forum.

You can PM Antiloop with packages and he will make them available in the download section.

mAz
20-02-2005, 22:01
could u help me getting the vsftpd server to run?
i tried, but it didn't work!

i only transfered the precompiled vsftpd file from that page
to my wl500g. according to that i tried to run that file with:
./vsftpd 2.0.2pre2

but it says to me, "500 OOPS: vsftpd: not configured for standalone, must be started from inetd".
what shall i do?

thx
mAz

hugo
21-02-2005, 18:11
Add listen=YES at the end of your /etc/vsftpd.conf

Make sure you have a user called ftp

rlopes
09-08-2005, 16:05
Hi!

Did anybody manage to have rsync and/or xinetd running on a wl500gx? I have other packages working (such as samba, dropbear and svn) but did not manage to get rsync and xinetd running.
I installed it with:
$ ipkg install xinetd

and, after executing
$ /opt/etc/init.d/S10xinetd

I can't get the daemon to show up in the process list (ps).

I'm using oleg's latest (excelent work).

Cheers,

/rp

Oleg
09-08-2005, 18:42
perhaps you've to enable to some services first...

tormen
02-09-2006, 01:55
Hi.

I have a WL-HDD with OLEG 1.9.2.7-7e and rsync --version = 2.6.8 installed via ipkg.

First I tried simply to use rsync via the builtin dropbear ssh-daemon, but I got 80-90% dropbear on the cpu and so 10-20 were left for rsync... :-(
And as like this the transfers were to slow and I don't know if there is a way to speed things up using some special SSH (encryption?) options, I decided to give pure rsync a shot.

It took me a while to figure out, WHY rsync --daemon did NOT want to start... until I added the "address = IP-ADRESS" to rsyncd.conf, because (I suppose) the rsync --daemon call got confused with the lots of interfaces this OLEG firmware kernel provides: br0, eth0, eth1, eth2, lo (but only br0 has an IP address).

And now that rsync --daemon does NOT quit directly anymore... I instantly have the next problem ... but this time I think I need some help:

If I call rsync from my windows-box (rsync version 2.6.8 protocol version 29) (=cwrsync) as follows:

rsync -rutL --delete --exclude "/RECYCLER/***" --exclude "/System Volume Information/***" /cygdrive/d/ tormen@10.10.10.222::windata/

I get the following output on the windows (SENDER) side:
---------------------------------------------------------
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(610) [sender=2.6.8]
---------------------------------------------------------

And on the WL-HDD linux (RECEIVER) side in the rsync --daemon logfile:
---------------------------------------------------------
Sep 2 02:50:10 rsyncd[171]: rsyncd version 2.6.8 starting, listening on port 873
Sep 2 02:50:10 rsyncd[171]: bind() failed: Address already in use (address-family 2)
Sep 2 02:50:10 rsyncd[171]: unable to bind any inbound sockets on port 873
Sep 2 02:50:10 rsyncd[171]: rsync error: error in socket IO (code 10) at socket.c(482) [receiver=2.6.8]
Sep 2 02:50:17 ntp client: Synchronizing time with time.nist.gov ...
Sep 2 02:52:04 rsyncd[175]: connect from WINDOWS-BOX (10.10.10.28)
Sep 2 02:52:04 rsyncd[175]: ERROR: out of memory in glob_expand
Sep 2 02:52:04 rsyncd[175]: rsync error: error allocating core memory buffers (code 22) at util.c(120) [receiver=2.6.8]
---------------------------------------------------------

I tried already to freshly boot with only the necessary processes, but it did not work.
Maybe my RAM-fs is too full? How can I decrease the size?

And WHY does the rsync work via ssh???

What else can I try or do?

For any help or hint I would be really glad, because I have no idea for the moment what else to try...

To maybe help you answering me I added parts of /proc/cpuinfo and the /proc/meminfo output at the end of this posting.

Greetings,

tormen



--------------------------------------------
cat /proc/cpuinfo |head -4
--------------------------------------------
system type : Broadcom BCM947XX
processor : 0
cpu model : BCM4710 V0.0
BogoMIPS : 82.94

--------------------------------------------
cat /proc/meminfo
--------------------------------------------
total: used: free: shared: buffers: cached:
Mem: 14266368 11984896 2281472 0 1241088 6426624
Swap: 62922752 516096 62406656
MemTotal: 13932 kB
MemFree: 2228 kB
MemShared: 0 kB
Buffers: 1212 kB
Cached: 5976 kB
SwapCached: 300 kB
Active: 4580 kB
Inactive: 3392 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 13932 kB
LowFree: 2228 kB
SwapTotal: 61448 kB
SwapFree: 60944 kB
--------------------------------------------

Winne2Koslowski
12-10-2008, 22:54
Can you login via ssh?

What does free say? Are you using swap? You really must.

I also have 80% cpu usge by dropbear when rsyncing to the wl-hdd and i only get 300k transfer speed (and 2MB/s via plain old ftp). But it works fine. Just make sure ssh works fine, install rsync, make sure it runs and rsync.