|
发表于 2004-5-4 09:48:29
|
显示全部楼层
: Can I add the lrp "IPupdate" to CoyoteLinux?
A: Please note that this needs to be done before you make the coyote bootup floppy. You also need a box already running linux, and have the coyote file uncompressed. Instructions are as follows:
You’ll need: ez-ipupdate.lrp, availabe here.
Uncompress the files.
mkdir coyote/pkgsrc/coyote
mv ez-ipupdate.lrp ez-ipupdate.tgz
gunzip ez-ipupdate.tgz
tar -xvf ez-ipupdate.tar -C coyote/pkgsrc/ez-ipupdate
Configure makefloppy script by modifying the coyote/scripts/mkflp-ppp (or the one best for you) adding somewhere before the last instructions:
# Ez-Ipupdate
echo
echo "This section installs ez-ipupdate on coyote"
echo
YNMSG="Would you like to install ez-ipupdate ? [y/n]: "
check_yn
[ "$YN" = "Y" ] && echo "ez-ipupdate" >> pkgsrc/config/etc/coyote/packages
Make your new floppy by running ./makefloppy.sh and remember to install ez-ipupdate.
Now that you have booted up coyote and all is well (your internet and LAN is up), edit the file /etc/ez-ipupdate.conf:
cd /etc
edit ez-ipupdate.conf
...and this file should look like following:
#!/usr/bin/ez-ipupdate -c
#
# example config file for ez-ipupdate
#
# this file is actually executable!
#
service-type=dyndns
user=your_dyndns_username:your_dyndns_password (please note the : in the middle)
host=yourhostname (something like something.dyndns.com, in my case harman.homeip.net)
interface=ppp0
max-interval=2073600
# please create this file and ensure that the user that ez-ipupdate is running
# as has write permissions to it then uncomment this line, if you don't your
# dyndns account will probably get banned. if you run ez-ipupdate as root (bad
# idea, use "run-as-user") then you can just uncomment this line.cache-file=/etc/ez-ipupdate.cache.ppp0
#NOTE: There is NO "#" in front of the line
# for the mean time we'll just use a cache file in the temp directory
# cache-file=/tmp/ez-ipupdate.cache #NOTE: the "#" in front of this line - you will have to add it
# uncomment this once you have everything working how you want and you are
# ready to have ez-ipupdate running in the background all the time. to stop it
# you can use "killall -QUIT ez-ipupdate" under linux.
daemon #NOTE: There is NO "#" in front of the line
Once you have done the above and saved the file...
edit /etc/ppp/ip-up
...and add the following:
#Dyndns.org update with comparison of the IPs:
LASTIP=`cat /etc/lastip`
rm /etc/lastip
MYIP=`getifaddr ppp0`
echo $MYIP > /etc/lastip
if [ "$MYIP" = "$LASTIP" ]
then
else
/usr/bin/ez-ipupdate -d -c /etc/ez-ipupdate.conf
fi
You'll want this otherwise some have found that they've been blocked because the script is sending the same IP as often as 3 times a day!
The .list-file is not conform to the package name ez-ipupd.tgz, making it difficult to save any changes with the Back-Up Utility. To get the backup-option to work, change the /var/lib/lrpkg/ez-ipupd.list to /var/lib/lrpkg/ez-ipupdate.list and then change the .list-file itself to match the .list-file to be backed-up.
Now back to the configuration menu with lrcfg, use option backup and reboot. All should be well.
Q: Is it possible to use DynDNS.org (or any other DynDNS-site) in connection with CoyoteLinux?
A: Yes - install the client as instructed by the DynDNS-site.
Alternately, you can use these instructs to use a script to update www.no-ip.com:
看看对不对? |
|