• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2 3 ... 6
1  General Category / Application ideas and development Q/A / Re: Has Anyone Built A Live CD for Development? on: February 11, 2011, 09:47:22 AM
Does anyone know if there's an updated version of this?   Huh

All my systems are 64bit Linux and I'm lost, when it comes to the openocd (and compiling etc). I'd really appreciate it if someone could upload a current working LiveCD, if there isn't a current one.

Thanks.
2  General Category / Success stories / Re: Script for Emailing change in WAN IP Address using Cron Job and sSMTP... on: December 13, 2009, 03:03:46 AM
cbxbiker61:

Hi.

I have set up the two scripts, I have my magic key. The only thing I've changed in the CheckIpaddress.sh is the Eth0.1 to Eth0.

When I run the scripts and check the /tmp/ExternalIp.prev file, what I see is my Internal IP and not the External WAN IP address.

Now, I can just throw in my
Code:
get_ip=`wget -q -O - http://checkip.dyndns.org/ | grep -Eo '[0-9\.]+'`
command, but perhaps there's something I've missed.

Do you have any suggestions as to why I'm not getting the WAN IP?

Thanks.
3  General Category / Success stories / Re: Script for Emailing change in WAN IP Address using Cron Job and sSMTP... on: December 12, 2009, 12:19:14 PM
Here is a little script that queries http://checkip.dyndns.org/ and compares it to my Routers WAN IP address. If there's no change, the script exits. If the IP address doesn't match the result returned from DynDns, an email is sent to a Gmail address using sSMTP mail server.
Why do you need to know?  Why not just use the name? The routers I have had handle updating the dynamic DNS server themselves.  Doesn't yours?

The Sheeva will be sent to someone else. They have a cable modem and no idea how to access it and I don't either. We're in different countries. They're quite PC illiterate, so the easiest solution for us is to send it and get them to just plug it in and connect it to their network.

cbxbiker61's solution is a much more elegant method than mine, so I'll adopt that. My way meant that I would have to check my gmail. I never knew until cbxbiker61 suggested it, that you could auto update a dns site.
4  General Category / Success stories / Re: Script for Emailing change in WAN IP Address using Cron Job and sSMTP... on: December 12, 2009, 01:58:19 AM
I'm set up my freedns details and am waiting for the domain name to be authorised. So, all good so far.

How do I set up this magic string please? I can't find anything on their site that mentions this.
5  General Category / Success stories / Re: Script for Emailing change in WAN IP Address using Cron Job and sSMTP... on: December 11, 2009, 10:53:33 PM
cbxbiker61:

Sorry, but which particular freedns site is it that you use? There seem to be quite a few.
6  General Category / Success stories / Re: Script for Emailing change in WAN IP Address using Cron Job and sSMTP... on: December 11, 2009, 10:41:37 PM
Great. Thanks.

I'll check out freedns while I'm about it.  Cheesy
7  General Category / Success stories / Re: Script for Emailing change in WAN IP Address using Cron Job and sSMTP... on: December 11, 2009, 10:12:32 PM
I'm curious why you would automatically "check" for a change in IP address without automatically "changing" the ip address association at dnydns.org
I'm not quite sure what you mean here.  I assume what your saying here is related to your script you mention next. Could you please clarify?

Quote
Polling dnydns.org every 15 minutes seems like overkill.

15 minutes is set because I can't wait 1 hour before I get the first email.  It's easy to change. For the situation I'm using this particular plug in, 15 minutes is a good time to wait.

Quote
I've got a script on a router that checks it's current ip address once an hour (it saves it's previous ip address in /tmp).  If the address changed in that hour it runs a section of code that update freedns.  It doesn't poll freedns at all.  Freedns only get's hit when there is an actual update to handle.

Well, that sounds mighty handy. Would you mind posting that here? I'd be happy to try it out.

Please bear in mind. I know nothing about these sorts of things. I'm just a babe in the woods when it comes to this sort of stuff.  Tongue
8  General Category / Success stories / Script for Emailing change in WAN IP Address using Cron Job and sSMTP... on: December 11, 2009, 07:40:07 PM
Here is a little script that queries http://checkip.dyndns.org/ and compares it to my Routers WAN IP address. If there's no change, the script exits. If the IP address doesn't match the result returned from DynDns, an email is sent to a Gmail address using sSMTP mail server.

I used this tutorial http://www.nixtutor.com/linux/send-mail-with-gmail-and-ssmtp/ to set up sSMTP. I highly recommend this site.

This is my ssmtp.conf file. It's slightly different to the tutorial. Suggestions for improvement would be gratefully accepted:

Code:
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mail

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=sheeva

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

root=myemailaddresshere@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=gmail.com
AuthUser=myemailaddresshere # (without@gmail.com)
AuthPass=*************

Three files will be created in the root of my user directory (in this case badcam):

iplog.txt          -   This file is blank initially. The script will use this for storing the current WAN IP address which is compared against the DynDns.org websites CheckIP.

whereami.txt    -  This file is used to store the data which will be sent as an email

whereami.sh     -  This is my Bash script, which is as follows:


Code:
#!/bin/bash
# A script for sending myself an email containing my WAN IP Address
get_ip=`wget -q -O - http://checkip.dyndns.org/ | grep -Eo '[0-9\.]+'`
if [ "$get_ip" = "$(cat ./iplog.txt)" ]; then
echo "No need, I'm out of here..."
exit;
else
echo "The IP has changed! Sending an email..."
echo "SUBJECT: My External WAN IP Address has changed" > ./whereami.txt
echo "FROM: Badcam's Island in the Net" >> ./whereami.txt
date >> ./whereami.txt
echo " " >> ./whereami.txt
echo "$get_ip" >> ./whereami.txt
echo "$get_ip" > ./iplog.txt
/usr/sbin/ssmtp -oi myemailaddress@gmail.com < ./whereami.txt
fi

Then I used this tutorial  http://www.nixtutor.com/linux/sending-email-alerts-through-cron/   to set up a Cron Job to automatically run every 15 minutes.

My Crontab -e file looks like this, where the */15 means run every fifteen minutes:

Code:
# m h  dom mon dow   command
MAILTO="myemailaddresshere@gmail.com
*/5 * * * * /home/badcam/whereami.sh
~

If anyone can find something I can improve here, or make clearer, please let me know.
9  General Category / General Discussion / Re: Backup and restore of the plug on: December 07, 2009, 01:42:30 AM
I also have a related query.

I have now set up my Sheeva the way I like it. I've copied the Nand to several SD Cards using Rexxmagnus's advice:

Copy NAND to card (quick and dirty - works better when not copying from active filesystem):
>cp -ax / /mnt/sdcard # takes 13 minutes
>cp -a /dev /mnt/sdcard

which came from this post:

http://plugcomputer.org/plugforum/index.php?topic=1001.0

I'd now like to copy my setup to my other two plug computers (Ionic's). What would be the best way to do this please?

10  Hardware and U-Boot firmware / Hardware / Re: USB to Ethernet Adaptor. Has anyone actually set up one of these? on: December 02, 2009, 10:56:47 PM
Can you run a 2.5" USB Hard Drive off of the same USB Port without having to power either from other than the Sheeva USB port?
You certainly can't run a USB Wifi dongle and 2.5" USB hard drive without extra power - which can be done with a powered hub.

Thanks. Just to clarify though; I won't be running a Wifi Adaptor, it will be an Ethernet Port. It's not a major I suppose, but it would great if it was possible.
11  Hardware and U-Boot firmware / Hardware / USB to Ethernet Adaptor. Has anyone actually set up one of these? on: December 02, 2009, 12:06:44 PM
Has anyone set their Sheeva up with one of these yet?

Does it work well?

Can you run a 2.5" USB Hard Drive off of the same USB Port without having to power either from other than the Sheeva USB port?

Edit:

How easy would it be to turn this into a Router?
12  General Category / Success stories / Re: Seedbox on: December 02, 2009, 01:20:08 AM
You're such a tease LordAzuzu.  Roll Eyes
13  General Category / General Discussion / Re: Multi Boot. Question RE: CqCn comment... on: December 01, 2009, 02:30:56 AM
Nice.

I'll have to give it a go Marcus.
14  General Category / General Discussion / Re: New IT SheevaPlug Customers - Which config did you buy? on: November 28, 2009, 06:00:25 PM
I think that getting the basic is a good idea as it seems everything that is done on the higher packages can be done for free, using instructions on here, anyway... Though I'd (a) be a little worried about messing up and (b) like to make an image of the SD card if I got one with that so I could back up in case I do mess up. I assume there is a simple way to image the on-board flash if I buy the basic model however I don't know what that is yet.

Here's a good place to start:

http://plugcomputer.org/plugforum/index.php?topic=717.0

http://www.plugcomputer.org/plugwiki/index.php/Main_Page

Quote
I'm hoping to use Sheeva to, initially install Tonido and use their software to easily access my work. Normally at the moment I carry a pen disk to Uni with me but actually work on a machine there and a local machine at home. Keeping things in sync is a pain so being able to always access a "latest" version would be good.

Beyond this, I'd simply like to experiment... There are a few cool things I've seen. I'd like the idea of trying out SSH and also trying to set a Squeezebox server on it (Hopefully getting a Squeezebox for Christmas). The idea of VNC is also something I'd like to try.

I'm not all that familiar with Linux. I've used it in fits and starts, with my latest attempt messing with it on my EEE PC. I actually got pretty reasonable (Obviously no guru) when doing that but once I'd got it set up how I liked it, I never messed with it anymore and then that was that. I did try to run a mail server on a linux server at Uni however that setup was too old and didn't have the packages I wanted, I wasn't allowed to install what I wanted and so that never happened. I guess I could also play with mail servers on the Sheeva too...

I guess what I'm saying is I'd like to use it as a Linux educational tool that also servers a functional purpose, too.

If you can set up a Pendrive and you've dabbled a littel with Linux and most importantly Wink can cut and paste, you'll be fine following the instructions on the forum here and the Wiki How To's.

Buy the SD Card version if it makes you feel more comfortable, but I expect you'll be wanting learn how to reflash the Nand and SD Cards yourself in no timeat all. So really, I'd rather spend the difference in price on a better SD Card.
15  General Category / General Discussion / Re: New IT SheevaPlug Customers - Which config did you buy? on: November 28, 2009, 12:20:26 PM
I'll even be happy to contribute now.

Personally, I would just buy the basic configuration & buy a Sandisk Extreme II or III, at the highest capacity I could get for the best value. It's probably cheaper to buy an SD Card yourself, or one you already have.

Then I'd learn how to reinstall everything from scratch. You can get cut down versions of Ubuntu and also find images for other Distros, and install them your self and there's a LOT of good help & info here.

What are you wanting to do with the Sheeva?

How familiar are you with Linux?
Pages: [1] 2 3 ... 6