I recommend the dyndns option. I have a little apt installable daemon on my laptop that refreshes the entry <a href="http://rura-penthe.ath.cx">rura-penthe.ath.cx</a> with my current IP. That way, if it's ever stolen, I have a name to watch the trail of if the machine goes online at any point.
<br><br>hank@rura-penthe ~ $ host <a href="http://rura-penthe.ath.cx">rura-penthe.ath.cx</a><br><a href="http://rura-penthe.ath.cx">rura-penthe.ath.cx</a> has address <a href="http://66.223.247.194">66.223.247.194</a><br>
<br>It's very nice. Get the package ddclient. Then, set up your /etc/ddclient.conf like this:<br><br># Configuration file for ddclient generated by debconf<br>#<br># /etc/ddclient.conf<br><br>pid=/var/run/ddclient.pid
<br>protocol=dyndns2<br>use=web<br>server=<a href="http://members.dyndns.org">members.dyndns.org</a><br>login=<your login><br>password='<your Password>'<br><your dynamic name><br><br>Where my dynamic name is
<a href="http://rura-penthe.ath.cx">rura-penthe.ath.cx</a>. Then, just run ddclient as root. It also has an initscript in /etc/init.d/ddclient. You can use this to schedule your updates. There's a ton more information here:
<br><br><a href="http://ddclient.sourceforge.net/?page=1">http://ddclient.sourceforge.net/?page=1</a><br><br>Good luck.<br><br>- Hank<br><br><br><div><span class="gmail_quote">On 4/12/07, <b class="gmail_sendername">Dayne Broderson
</b> <<a href="mailto:dayne@alaska.edu">dayne@alaska.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>You probably need to configure the box to had the mail to your mom's ISP.
<br>They should have an SMTP server, and that is what you'd have to configure<br>the box to use for mail delivery.<br><br>You could do the scp using ssh-keys so it doesn't prompt for a password..<br>but I'd avoid that.. since that would be passwordless keys to your account
<br>sitting on a machine you don't fully control.<br><br>A better option would be to write a tiny little CGI/php app on Mod0 that<br>allowed a machine to submit its 'name' and 'ip'. Then have it store that
<br>for you to go and check to see what IP that machine's name is.<br><br>Another option is to get a dynamic DNS provider and setup their script..<br>then just use that domain name. Might have to tweak the script to pull
<br>the IP from your script instead of ifconfig.<br><br># <a href="mailto:dayne@alaska.edu">dayne@alaska.edu</a> # 907.474.6182 #<br><br>On Thu, 12 Apr 2007, Paul Swanson wrote:<br><br>> I'm running Ubuntu Feisty, and I can't send myself an email using
<br>> 'mail' (I installed mailutils).<br>><br>> mail -s "Subject" <a href="mailto:email@address.com">email@address.com</a><br>> Body text blah<br>> [ctrl+d]<br>><br>> Correct? Well, it's not working.
<br>><br>> In a more generic sense, I just need to get a tiny bit of information<br>> off of a remote computer every now and then. If there's some other way<br>> to get it to me, that'd work as well.<br>
><br>> What I'm ultimately trying to do is get the IP address of my mom's<br>> computer. It changes every few days, and I need to SSH into it. What<br>> I'm thinking right now is - Run a cron job that twice a day runs this
<br>> script:<br>><br>> rm index.html<br>> wget <a href="http://whatismyip.com">whatismyip.com</a><br>> egrep -m 1 -o '([0-9]{1,3}\.){3}[0-9]{1,3}' index.html > temp.txt<br>> if [ "`cat momsip.txt`
" != "`cat temp.txt`" ]; then<br>> mv temp.txt momsip.txt<br>> mail -s "Mom's IP address" -t <a href="mailto:my@email.com">my@email.com</a><br>> # ???<br>> fi<br>
><br>> I suppose I could also have it scp the file into my modzer0 account,<br>> but this seems more elegant. Also, would it need the password every<br>> time?<br>><br>> Or is there a much more elegant solution?
<br>><br>> Thanks,<br>> Paul<br>> _______________________________________________<br>> uaflug mailing list<br>> <a href="mailto:uaflug@linux0.cs.uaf.edu">uaflug@linux0.cs.uaf.edu</a><br>> <a href="http://linux0.cs.uaf.edu/mailman/listinfo/uaflug">
http://linux0.cs.uaf.edu/mailman/listinfo/uaflug</a><br>><br>_______________________________________________<br>uaflug mailing list<br><a href="mailto:uaflug@linux0.cs.uaf.edu">uaflug@linux0.cs.uaf.edu</a><br><a href="http://linux0.cs.uaf.edu/mailman/listinfo/uaflug">
http://linux0.cs.uaf.edu/mailman/listinfo/uaflug</a><br></blockquote></div><br><br clear="all"><br>-- <br>ruby -ropen-uri -e "eval(open('<a href="http://sig.ralree.info').read.gsub(/\s/,'')">http://sig.ralree.info').read.gsub(/\s/,'')
</a>)"