Re: Help with thttpd

2007-02-19 Thread Marius Gedminas
On Mon, Feb 19, 2007 at 03:49:23AM +0100, sebastian maemo wrote:
 Thank you very much, Kon. That's been so kind of you :)
 
 It's simply great. I'm testing it and works perfect. I'm going to write a
 fine config file for inadyn and configure it to run at startup.

You don't want to run it at startup.  You want to run it when an
internet connection appears.  You can do that by adding scripts in
/etc/network/if-up.d/ and /etc/ppp/ip-up.d/

If the package is any good, it will already have those scripts.

 2007/2/19, konfoo [EMAIL PROTECTED]:
 
 I compiled a pretty good dnydns client.
 
 http://www.internettablettalk.com/forums/showthread.php?p=35420

Is it available from downloads.maemo.org?


Marius Gedminas
-- 
If it wasn't for C, we'd be using BASI, PASAL and OBOL


signature.asc
Description: Digital signature
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: Help with thttpd

2007-02-19 Thread Zoran Kolic
 installed ddclient for my desktop pc.

I thought you should install it on the box you wanted to show to the world.

 Now comes the big problem. I must implement Zoran's idea to get my 770
 automatically sending its IP to dyndns server.

Zoran's ideas come and go. If I read correct, client is in perl and will
work on 770. So, 770 has to send new address to central server, to update
dns. You only know the name (sebas.homedns.org). On the desktop you type
that name in browser and voila.

 770 gets its IP from a phone connection. This means that my phone company
 changes its IP every time I connect the device to the net. I've got no
 experience with scripts, but I'll do my best, and maybe it'll be the first
 of a long list :)

It will cost, I think. Why not simply use existing provider, for the same
amount of cash? You could get the domain, dns servers, place to store your
ideas. Or just experiment inside local net, till you feel ready to be the
man, who has 1M/sec connections on just one 770.

  Zoran


___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: Help with thttpd

2007-02-19 Thread Acadia Secure Networks

Kon,

can the LInux version be installed as a service?

I ask this only because, although your www page indicates that it DOES 
install as a service, the www page that you reference,


   http://inadyn.ina-tech.net/readme.html#install


suggests that the LInux version only runs as a user or script initiated 
executable.


Did you modify the version at the inadyn.ina-tech.net www site to make 
it install as a Linux service?


Best Regards,



John Holmblad



Acadia Secure Networks

GSEC Gold, GCWN Gold, GGSC-0100, NSA-IAM, NSA-IEM
serving the digital home, entrepreneurial enterprise, and emerging 
carrier markets




(M) 703 407 2278

(F)  703 620 5388

primary email address:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

backup email address:  [EMAIL PROTECTED]





konfoo wrote:

I compiled a pretty good dnydns client.

http://www.internettablettalk.com/forums/showthread.php?p=35420

Cheers
Kon

On 2/18/07, *sebastian maemo* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


I'll do my best, but am not very used to developing. I've
programmed in c, and c++, but it's not what I usually do. I'll try
to learn. Thank you.

 
2007/2/19


There are a couple of dd clients that run under python. You
could probably make one of those work quite easily. There's
also a few coded in C and those should compile easily under
the scratchbox :-)

Cheers
Kon 





___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users
  
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: Help with thttpd

2007-02-19 Thread Kon Wilms

On 2/19/07, Marius Gedminas [EMAIL PROTECTED] wrote:


 2007/2/19, konfoo [EMAIL PROTECTED]:
 
 I compiled a pretty good dnydns client.
 
 http://www.internettablettalk.com/forums/showthread.php?p=35420

Is it available from downloads.maemo.org?




No

Cheers
Kon
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: Help with thttpd

2007-02-19 Thread Kon Wilms

You mean as a daemon of some sort? I didn't call it a service... in any case
I don't see why you would want to - just trigger it with an ifup script.

Cheers
Kon

On 2/19/07, Acadia Secure Networks [EMAIL PROTECTED] wrote:


 Kon,

can the LInux version be installed as a service?

I ask this only because, although your www page indicates that it DOES
install as a service, the www page that you reference,

http://inadyn.ina-tech.net/readme.html#install


suggests that the LInux version only runs as a user or script initiated
executable.

Did you modify the version at the inadyn.ina-tech.net www site to make it
install as a Linux service?

 Best Regards,



John Holmblad



Acadia Secure Networks

GSEC Gold, GCWN Gold, GGSC-0100, NSA-IAM, NSA-IEM
serving the digital home, entrepreneurial enterprise, and emerging carrier
markets



(M) 703 407 2278

(F)  703 620 5388

primary email address:  [EMAIL PROTECTED]
backup email address:  [EMAIL PROTECTED]




konfoo wrote:

I compiled a pretty good dnydns client.

http://www.internettablettalk.com/forums/showthread.php?p=35420

Cheers
Kon

On 2/18/07, sebastian maemo [EMAIL PROTECTED] wrote:

 I'll do my best, but am not very used to developing. I've programmed in
 c, and c++, but it's not what I usually do. I'll try to learn. Thank you.


 2007/2/19
 
  There are a couple of dd clients that run under python. You could
  probably make one of those work quite easily. There's also a few coded in C
  and those should compile easily under the scratchbox :-)
 
  Cheers
  Kon


--

___
maemo-users mailing list
[EMAIL PROTECTED]://maemo.org/mailman/listinfo/maemo-users


___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: Help with thttpd

2007-02-19 Thread Acadia Secure Networks

Kon,

the only reason would be to avoid having to use/modify scripts or .conf 
files.


Having said that I will look into getting a dyndns account and trying 
this out.


Best Regards,



John Holmblad




Kon Wilms wrote:
You mean as a daemon of some sort? I didn't call it a service... in 
any case I don't see why you would want to - just trigger it with an 
ifup script.


Cheers
Kon

On 2/19/07, *Acadia Secure Networks* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Kon,

can the LInux version be installed as a service?

I ask this only because, although your www page indicates that it
DOES install as a service, the www page that you reference,

http://inadyn.ina-tech.net/readme.html#install


suggests that the LInux version only runs as a user or script
initiated executable.

Did you modify the version at the inadyn.ina-tech.net
http://inadyn.ina-tech.net www site to make it install as a
Linux service?

Best Regards,

 


John Holmblad

 



mailto:[EMAIL PROTECTED]

 




konfoo wrote:

I compiled a pretty good dnydns client.

http://www.internettablettalk.com/forums/showthread.php?p=35420

Cheers
Kon

On 2/18/07, *sebastian maemo* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

I'll do my best, but am not very used to developing. I've
programmed in c, and c++, but it's not what I usually do.
I'll try to learn. Thank you.

 
2007/2/19


There are a couple of dd clients that run under python.
You could probably make one of those work quite easily.
There's also a few coded in C and those should compile
easily under the scratchbox :-)

Cheers
Kon 





___
maemo-users mailing list
maemo-users@maemo.org mailto:maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users
  



___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: Help with thttpd

2007-02-18 Thread Marius Gedminas
On Sun, Feb 18, 2007 at 03:23:30AM +0100, sebastian maemo wrote:
 Hi, folks. I need some help with thttpd.
 
 I've installed and run it to get easy access to my 770 via a Web browser.
 
 The problem I've got is that every time I get an Internet connection (via
 wifi or phone) my IP address changes. So that I've prepared a very simple
 web page at a fixed URL. In that page I've uploaded a simple index.html with
 my new IP, and it redirects the reader to my 770 web server. The problem is
 that I must update that index.html every time I connect my 770 in order to
 have a correct IP address.
 
 Is there any way to automate the process via a script? Could anybody help me
 with the script? Is there a simpler way to achieve what I need?

Dynamic DNS is the solution.  There are many zero-cost providers, e.g.
http://www.dyndns.com/services/dns/dyndns/.  You would need a small
program on your 770 to update the dyndns IP every time you connect.
Debian had a bunch of these packaged, it shouldn't be too difficult to
port one.

Marius Gedminas
-- 
Anyone can do any amount of work provided it isn't the work he is supposed
to be doing at the moment.
-- Robert Benchley


signature.asc
Description: Digital signature
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: Help with thttpd

2007-02-18 Thread Zoran Kolic
 I've installed and run it to get easy access to my 770 via a Web browser.
 The problem I've got is that every time I get an Internet connection (via
 wifi or phone) my IP address changes.

Incoming connection is rather not the cause of the change.You didn't mention
how do you get addresses. If you make it via dhcp from wireless router, then
the leasing time should be considerably long enough. Time is measured in se-
conds, so get it high.

 So that I've prepared a very simple
 web page at a fixed URL. In that page I've uploaded a simple index.html with
 my new IP, and it redirects the reader to my 770 web server. The problem is
 that I must update that index.html every time I connect my 770 in order to
 have a correct IP address.

You have ip problem. And looks you have two web pages, one on desktop, one
on 770. One of them is overfluous. Take this scenario:
you have router that gives ip address to the box that asks for it. 770 asks
and gets new address for every 43200 seconds or similar. You should know
address range of that router. Fire up nmap and get the result from it.
  nmap -p 80 192.168.1.0/24 | pipe
The pipe means you have to use grep or whatever you like to see the line
with positive match. That line gives you ip address of your 770. Little
cut command and you could get rid off un-necessary particules. All in pipes.
Then use ajax to dinamicaly change the page or put it in command line, like
  lynx $ADDRESS
Cron could do it a regular interval. Or your 770 has no power or memory and
reboots and gets new address whenever it happens.

 Is there any way to automate the process via a script? Could anybody help me
 with the script? Is there a simpler way to achieve what I need?

You could change the way your router sees boxen. But dhcp is fine for home
usage.

  Zoran


___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Re: Help with thttpd

2007-02-18 Thread sebastian maemo

Thank you, Zoran. I'll try to implement your ideas. As Marius said, dynamic
dns is a good solution. I've just opened an account at dyndns site. I've
installed ddclient for my desktop pc.

Now comes the big problem. I must implement Zoran's idea to get my 770
automatically sending its IP to dyndns server.

770 gets its IP from a phone connection. This means that my phone company
changes its IP every time I connect the device to the net. I've got no
experience with scripts, but I'll do my best, and maybe it'll be the first
of a long list :)

It would be easier if there was a fine package of ddclient. But I suppose
that binaries available at dyndns are not useful for 770, am I right?


2007/2/18, Zoran Kolic [EMAIL PROTECTED]:


 I've installed and run it to get easy access to my 770 via a Web
browser.
 The problem I've got is that every time I get an Internet connection
(via
 wifi or phone) my IP address changes.

Incoming connection is rather not the cause of the change.You didn't
mention
how do you get addresses. If you make it via dhcp from wireless router,
then
the leasing time should be considerably long enough. Time is measured in
se-
conds, so get it high.

 So that I've prepared a very simple
 web page at a fixed URL. In that page I've uploaded a simple index.htmlwith
 my new IP, and it redirects the reader to my 770 web server. The problem
is
 that I must update that index.html every time I connect my 770 in order
to
 have a correct IP address.

You have ip problem. And looks you have two web pages, one on desktop, one
on 770. One of them is overfluous. Take this scenario:
you have router that gives ip address to the box that asks for it. 770
asks
and gets new address for every 43200 seconds or similar. You should know
address range of that router. Fire up nmap and get the result from it.
nmap -p 80 192.168.1.0/24 | pipe
The pipe means you have to use grep or whatever you like to see the line
with positive match. That line gives you ip address of your 770. Little
cut command and you could get rid off un-necessary particules. All in
pipes.
Then use ajax to dinamicaly change the page or put it in command line,
like
lynx $ADDRESS
Cron could do it a regular interval. Or your 770 has no power or memory
and
reboots and gets new address whenever it happens.

 Is there any way to automate the process via a script? Could anybody
help me
 with the script? Is there a simpler way to achieve what I need?

You could change the way your router sees boxen. But dhcp is fine for home
usage.

 Zoran


___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users

___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users


Help with thttpd

2007-02-17 Thread sebastian maemo

Hi, folks. I need some help with thttpd.

I've installed and run it to get easy access to my 770 via a Web browser.

The problem I've got is that every time I get an Internet connection (via
wifi or phone) my IP address changes. So that I've prepared a very simple
web page at a fixed URL. In that page I've uploaded a simple index.html with
my new IP, and it redirects the reader to my 770 web server. The problem is
that I must update that index.html every time I connect my 770 in order to
have a correct IP address.

Is there any way to automate the process via a script? Could anybody help me
with the script? Is there a simpler way to achieve what I need?

Thank you in advance.

Sebas.
___
maemo-users mailing list
maemo-users@maemo.org
https://maemo.org/mailman/listinfo/maemo-users