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-06-30 12:04:50

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Some Programms I compiled

Hi,

Had some time last week and compiled some Progs for my dns 323, and I`m curious if someone else is interested in them, then I could pack them for installation over the fonz Installer.

I don`t like vi, so first I compiled:

nano

Needed a jabber Server so I compiled

ejabberd

And of course I have a bunch of libs n Stuff which was needed to compile these two packages (some of them I compiled for jabberd14, but I then switcht to ejabberd, don`t know which exactly ;-):

asn1c-0.9.21     
libgpg-error-1.6     
libtasn1-1.4 
pkg-config-0.22
libidn-1.8
pth-2.0.7
erlang         
libpopt-1.10-1       
starttls-0.10
expat-1.95.8   
gnutls-2.0.4
libgcrypt-1.4.1 
libtasn1-0.3.6

If you`d like me to compile some other stuff, tell me, got some time @ work ;-)

regards
Chris

Offline

 

#2 2008-06-30 12:45:55

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Some Programms I compiled

stylesuxx wrote:

expat-1.95.8

There's already expat-2.0.1. Is there a package that requires the older version?

Offline

 

#3 2008-06-30 13:10:27

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

Oh that`s a good question, don`t think it realy _needs_ the older Version, I guess I just didn`t saw that it was available on your Site allready ;-)

However, ircd is ready too,...

Offline

 

#4 2008-07-01 12:53:33

thunderbird1
Member
From: Australia
Registered: 2008-07-01
Posts: 7

Re: Some Programms I compiled

stylesuxx wrote:

Hi,
If you`d like me to compile some other stuff, tell me,

Any chance of a TFTP server?

got some time @ work ;-)

In that case I'd be happy to swap jobs tongue

Last edited by thunderbird1 (2008-07-01 12:54:54)

Offline

 

#5 2008-07-01 13:30:27

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

atftpd would be ok?

Offline

 

#6 2008-07-01 14:08:41

thunderbird1
Member
From: Australia
Registered: 2008-07-01
Posts: 7

Re: Some Programms I compiled

stylesuxx wrote:

atftpd would be ok?

If it works ..... yep!

First thing's first - I'm a total noob when it comes to Linux. The closest I've come to Linux is through dabbling a bit with Asterisk/Trixbox/Elastix. I can change directories, copy & move files/directories & use nano & vi to edit config files without necessarily understanding what I'm editing smile That's the extent of my knowledge.

Currently, I have a number of VoIP phones which can be configured through the use of a TFTP server running on my Windows XP machine. Having recently purchased a DNS-323, I'd like to be able to use it to it's fullest potential by utilizing the ftp/http features and creating the ability for the phones to pull config files off the DNS-323 rather than my XP machine.

I've installed fun_plug without issue. I downloaded & attempted to install tftp-hpa-0.48 and TFTP Server but got easily confused whilst reading the readme & install files. Obviously I need to undertake quite a lot more reading/research & comprehend the info I come across.

In response to your question, if atftpd can achieve my initial requirements, then by all means I'd be satisfied with that.

Offline

 

#7 2008-07-01 14:21:13

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

Should work, atftpd is a tftp server, so no reason why it should not work, by the way, it is compiled allready, when I have some more time @ work I will write the startuo script, otherwise I will do that at home in the evening,...

Offline

 

#8 2008-07-01 14:50:42

thunderbird1
Member
From: Australia
Registered: 2008-07-01
Posts: 7

Re: Some Programms I compiled

That would be great. No rush.

Offline

 

#9 2008-07-01 23:09:35

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

OK, so here we go.
You can install it as all the other fun plug stuff via funpkg -i packagename.
There is a startscript in the /ffp/start/ folder where you can change your default shared directory and port, and add stuff you need to the programm call, don`t forget to make it executable if you want atftpd to be  started on startup ;-)

http://stylesuxx.com/dns323/atftpd-0.7.tgz

If there are any Problems please tell me.

Regards Chris

Offline

 

#10 2008-07-03 18:03:35

thunderbird1
Member
From: Australia
Registered: 2008-07-01
Posts: 7

Re: Some Programms I compiled

stylesuxx wrote:

If there are any Problems please tell me.

Don't seem to be having much luck trying to run atftpd.

Dowloaded the tarball, and using Windows Explorer,  copied the file to Volume_1 then:

Telnet 192.168.x.x
/ # cd /mnt/HD_a2
/mnt/HD_a2 # funpkg -i atftpd-0.7.tgz
Installing package atftpd-0.7 ...
/mnt/HD_a2 #

I then tried running atftpd but got:

/mnt/HD_a2 # atftpd
Usage: tftpd [options] [directory]
[options] may be:
  -t, --tftpd-timeout <value>: number of second of inactivity before exiting
  -r, --retry-timeout <value>: time to wait a reply before retransmition
.
.
.
.
  -V, --version              : print version information
  -h, --help                 : print this help

[directory] must be a world readable/writable directories.
By default /tftpboot is assumed.

/mnt/HD_a2 #

I then created a tftpboot directory:

/mnt/HD_a2 # mkdir tftpboot
/mnt/HD_a2 #

and then edited atftpd.sh:

/mnt/HD_a2/ffp/start # vi atftpd.sh

changing atftpd_share="/mnt/HD_a2/" to atftpd_share="/mnt/HD_a2/tftpboot/"

Tried running atftpd again but got the same result as above. What am I missing?

Offline

 

#11 2008-07-03 20:08:43

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

Yeah, well atftpd doesn`t run without options, please try to start it over sthe start script which is located in /ffp/start/atftpd.sh =>

Code:

sh /ffp/start/atftpd.sh start

then check if it is running

Code:

sh /ffp/start/atftpd.sh status

Last edited by stylesuxx (2008-07-03 20:10:34)

Offline

 

#12 2008-07-04 02:34:58

thunderbird1
Member
From: Australia
Registered: 2008-07-01
Posts: 7

Re: Some Programms I compiled

stylesuxx wrote:

please try to start it over sthe start script which is located in /ffp/start/atftpd.sh =>

Code:

sh /ffp/start/atftpd.sh start

That did the trick!

then check if it is running

Code:

sh /ffp/start/atftpd.sh status

You read my mind - that was going to be my next question smile

I'll test it out with my files over the weekend.

Thanks for the help so far, stylesuxx.

Offline

 

#13 2008-07-04 09:45:46

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

Hey, no Prob you are welcome, tell me if it works for you :-)

But if I may add one thing: get rid of telnet and activate ssh ;-)

Offline

 

#14 2008-07-06 11:40:49

thunderbird1
Member
From: Australia
Registered: 2008-07-01
Posts: 7

Re: Some Programms I compiled

stylesuxx wrote:

But if I may add one thing: get rid of telnet and activate ssh ;-)

Don't worry, I will. I had it enabled initially but whilst I'm playing around with the unit deleting files, reformatting drives, etc, it's not a concern at this stage. Eventually, the unit will become accessible from the Net which, in that case, I'll definitely enable SSH & disable telnet.

Hey, no Prob you are welcome, tell me if it works for you :-)

Kinda does smile but it will only allow 1 file to be downloaded before it 'hangs'.

After playing around all weekend trying to get my VoIP phone to download config files off the tftp server without success, I reverted to using the Windows command prompt to try & figure out what was/wasn't happening.

After starting atftpd.sh I opened up a Windows cmd prompt to download a test file. The initial 'GET' would download the file ok but any subsequent attempts resulted in time-outs:

Code:

C:\>tftp -i 192.168.1.234 get test1.txt
Transfer successful: 10 bytes in 1 second, 10 bytes/s

C:\>tftp -i 192.168.1.234 get test1.txt
Timeout occurred

Restarting atftpd.sh & trying again yields the same result as above - ie. 1 file downloaded & then time-outs.

During this I ran the 'ps aux' to see what processes were running. I noted that when atftpd.sh first ran, there was only one instance of atftpd:

Code:

2791 nobody   /ffp/sbin/atftpd --daemon --port 69 --user nobody --group 501 /mnt/HD_a2/

but as soon as I downloaded the test file & ran 'ps aux' again, there were two atftpd processes:

Code:

2791 nobody   /ffp/sbin/atftpd --daemon --port 69 --user nobody --group 501 /mnt/HD_a2/
2797 root     /ffp/bin/sh
2833 nobody   /ffp/sbin/atftpd --daemon --port 69 --user nobody --group 501 /mnt/HD_a2/

and any subsequent download attempts would time-out.

On the other hand, if I add '--no-fork' as a start-up option in atftpd.sh, although the daemon sits in the foreground, I can download multiple instances of the test file without problem.

Got any ideas or suggestions?

Cheers,
-TB1

Offline

 

#15 2008-07-06 22:39:07

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

Hmmm, quite strange, don`t understand why this happens, so it seems adding --no-fork and sending it then to background with "&" works.

So try exchanging the executable line in the start script with the following =>

Code:

/ffp/sbin/atftpd --daemon --port $atftpd_port --user $atftpd_user --group $atftpd_group $atftpd_share --no-fork&

Offline

 

#16 2008-07-07 16:51:26

thunderbird1
Member
From: Australia
Registered: 2008-07-01
Posts: 7

Re: Some Programms I compiled

stylesuxx wrote:

HmmmSo try exchanging the executable line in the start script with the following =>

Thanks heaps stylesuxx - works a treat now smile

After adding --no-fork& the VoIP phone is now able to pull down all the required config files. To test, I changed a few parameters in the config files & then forced the phone to update. After a reboot the phone initialized with the new changes.

Life is good for now wink

Thanks once again!

-TB1

Offline

 

#17 2008-07-07 17:01:05

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

No Problem :-)

Offline

 

#18 2008-07-07 22:41:13

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: Some Programms I compiled

@stylesuxx:
would you like to maintain a repository of compiled packages for the DNS? Or do you have a website where one can download the packages you compiled?

Offline

 

#19 2008-07-07 22:43:49

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

Yeah, sure if there is interest i can do that, I will do during the week and post the Links ;-)

Offline

 

#20 2008-07-15 08:23:53

riordach
New member
Registered: 2008-07-02
Posts: 4

Re: Some Programms I compiled

stylesuxx, could I get access to your ejabberd compilation. Thank you.

Offline

 

#21 2008-07-15 10:22:04

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

Sure, right now I`m writing a basic setup script for ejabberd and start and stop stuff, I guess I should be finished today or tomorrow.

Offline

 

#22 2008-07-16 06:53:33

riordach
New member
Registered: 2008-07-02
Posts: 4

Re: Some Programms I compiled

Thank you. Cheers.

Offline

 

#23 2008-07-19 20:58:31

stylesuxx
Member
Registered: 2008-06-19
Posts: 13

Re: Some Programms I compiled

Just wanted to tell you that i didn`t forget.
The config and start script is ready, just need to pack erlang and ejabberd so that they are working, right now there are some probs with dependencies, but I'm compiling erlang again, which takes quite long, I guess after it is compiled in a clean environment ir will work :-)

Offline

 

#24 2008-10-05 12:07:51

xhaos
New member
Registered: 2008-10-02
Posts: 3

Re: Some Programms I compiled

it would be really cool if we got a murble service running on the dns323 but ti requires qt.
for info on murble try http://mumble.sourceforge.net/

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB