找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: moran321

[coyote] [分享]在Coyote中加入动态域名支持详细方法.

[复制链接]
 楼主| 发表于 2004-5-3 21:52:37 | 显示全部楼层
哦.我终于明白了.原来我是认错人了.
你下载的EZ-IPUP是在哪下的.有没试过我在上面放的那个.
routeros
回复

使用道具 举报

发表于 2004-5-4 08:25:26 | 显示全部楼层
我用的就是你放的哪个文件,里边有一个是CONIF和TGZ的文件,我把它解压。并把TGZ文件拷贝到硬盘上加载。就出现了“EZ-IPUP(PT!)”?是我加载的文件错误了?
routeros
回复

使用道具 举报

发表于 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:

看看对不对?
routeros
回复

使用道具 举报

发表于 2004-5-4 16:54:09 | 显示全部楼层
我已经加载了,你放的那个文件可以用。只是你要解压并改名字-》EZ-IPUPDATE。TGZ 。
但是我更改后运行在TMP里没有这个cache的文件。只是在ETC里有个。打开是空的。我的CONF文件内容是:
#!/usr/local/bin/ez-ipupdate -c
#
# example config file for ez-ipupdate
#
# this file is actually executable!
#
server=members.3322.org:80
request=/dyndns/update
service-type=dyndns
#service-type=dyndns-static
user=cjumna:******
host=cjumna.3322.org
interface=ppp0
max-interval=86400
retrys=999999
resolv-period=300
period=300

# 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

# for the mean time we'll just use a cache file in the temp directory
cache-file=/tmp/ez-ipupdate.cache

# 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
routeros
回复

使用道具 举报

发表于 2004-5-4 16:58:56 | 显示全部楼层
service: ez-ipupdate -C /etc/ez-ipupdate.conf
unknown service type: ez-ipupdate -C /etc/ez-ipupdate.conf
try one of:
  null ezip pgpow dhs dyndns dyndns-static dyndns-custom ods
  tzo easydns easydns-partner gnudip justlinux dyns hn zoneedit
  heipv6tb
这是什么意思?
routeros
回复

使用道具 举报

发表于 2004-5-4 18:07:58 | 显示全部楼层
QUOTE
service: ez-ipupdate -C /etc/ez-ipupdate.conf
unknown service type: ez-ipupdate -C /etc/ez-ipupdate.conf
try one of:
  null ezip pgpow dhs dyndns dyndns-static dyndns-custom ods
  tzo easydns easydns-partner gnudip justlinux dyns hn zoneedit
  heipv6tb
这是什么意思?
你打的命令行有错误。
如果你直接输入ez-ipupdate,而后面不加任何参数,就会出现如下的情况
CODE
coyote# ez-ipupdateez-ipupdate Version 3.0.11b7Copyright (C) 1998-2001 Angus Mackay.service:
这是就要求你手动输入conf中的那堆参数。
所以,只有在提示符下输入才是正确的。 :!:
CODE
coyote# ez-ipupdate -c /etc/ez-ipupdate.conf

还有,请你注意你附加参数的大小写,在linux下,字母的大小写是有区别的 :!:
routeros
回复

使用道具 举报

 楼主| 发表于 2004-5-4 21:58:16 | 显示全部楼层
因为论坛不支持附件为.tgz的格式.所以打包成RAR了.我也有注明怎么使用.

/tmp目录下那个文件是空的话代表你没有更新成功.
是你参数加错了.        ez-ipupdate空格-c /etc/.....注意那个参数-c是小写的.在Linux中大小写的参数用途是不一样的.
routeros
回复

使用道具 举报

发表于 2004-5-5 10:08:35 | 显示全部楼层
coyote# ez-ipupdate
ez-ipupdate Version 3.0.11b7
Copyright ?1998-2001 Angus Mackay.
service:
coyote# ez-ipupdate -c /etc/ez-ipupdate.conf
其实我在输入时已经看到C的大小写,不过我用小写的C输入时,它没有什么反映。而且在TMP里没有文件。还有我一值觉得是自己的3322上没有设置好。你们可以看到我在CONF文件里的设置,应该是正确的。不过我在3322上看到,每次我更新IP时,它指向的也更新了。那说明了什么?
routeros
回复

使用道具 举报

发表于 2004-5-5 14:49:21 | 显示全部楼层
QUOTE
因为论坛不支持附件为.tgz的格式.所以打包成RAR了.我也有注明怎么使用.

/tmp目录下那个文件是空的话代表你没有更新成功.
是你参数加错了.        ez-ipupdate空格-c /etc/.....注意那个参数-c是小写的.在Linux中大小写的参数用途是不一样的.
那更新不成功是什么问题?我已经申请好3322的域名,还有什么要设置?
routeros
回复

使用道具 举报

发表于 2004-5-5 15:57:07 | 显示全部楼层
谢谢我的更新成功了,可是有个问题请教,就是楼主在上面说到如下:

(最后把ez-ipupdate.tgz加到/etc/rc.d/rc.local中即可实现开机就自动更新动态域名.)

我想问的是这个具体怎么用啊?是在rc.local里面加入ez-ipupdate -c /etc/ez-ipupdate.conf就可以了吗 ?
routeros
回复

使用道具 举报

发表于 2004-5-5 16:00:54 | 显示全部楼层
我也可以使用拉!在DOS下PING成功!
但是们所说的CACHE文件里可以看到IP,我没有看到文件,不要说看到IP了!
routeros
回复

使用道具 举报

发表于 2004-5-5 21:54:31 | 显示全部楼层
按照楼主的做发,在/tmp/ez-ipupdate.cache就可以看见更新了IP啊

可是我不知道怎么让它开机就运行,请问这个怎么做啊,谢谢?
routeros
回复

使用道具 举报

 楼主| 发表于 2004-5-5 22:27:47 | 显示全部楼层
开机是默认就会运行的.只要你按那配置文件做好就行了.
routeros
回复

使用道具 举报

发表于 2004-5-6 12:02:27 | 显示全部楼层
你不是说
“最后把ez-ipupdate.tgz加到/etc/rc.d/rc.local中即可实现开机就自动更新动态域名. ”

请问这个具体要怎么做才可以实现啊?怎么输入命令,输入在哪里?
routeros
回复

使用道具 举报

发表于 2004-6-4 03:41:12 | 显示全部楼层
QUOTE
CF卡都到啦.也已经卖完啦.其它的我也都发给各位网友了.如果要的话看你要多少了.多的话我可以帮你发.其实我给大家的价格我真的一分都没赚,有些地方的我还贴了邮资.我那么辛苦为的是什么呢.我是为大家提供个方便希望大家有机会去DIY.
带背光的HD44780 LCD记得是180吧.你可以看我过去发关于LCD的帖子在置顶中.


你真好人。。。   可以把你的QQ给我,我们交流一下吗?
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-9 19:38 , Processed in 0.061712 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表