ez-ipupdate的移植

简介:

1.下载ez-ipupdate-3.0.10.tgz源码包

tar    xvf   ez-ipupdate-3.0.10.tgz

2.修改代码

vi  conf_file.c

添加 #include<errno.h>

vi ez-ipupdate.c 
查找“no update needed at this time” 
注释掉那几行 

else

{

fprintf(stderr, "no update needed at this time\n");

}

3.进入目录编译

[root@tooth local ez-ipupdate-3.0.10]./configure     

[root@tooth local ez-ipupdate-3.0.10] vi   Makefile

CC=mipsel-linux-gcc

CPP = mipsel-linux-gcc -E

保存退出

[root@tooth local ez-ipupdate-3.0.10]make 

4.移植并配置信息

移植ez-ipupdate和qdns.conf 到开发板

[root@tooth local]# vi qdns.conf 
service-type=qdns 
user=网站注册的账户和密码
host=申请的免费域名
interface=eth0     绑定的网口
max-interval=2073600 
cache-file=/tmp/ez-ipupdate.cache

5.启动程序

 [root@tooth local]./ez-ipupdate –c  ./qdns.conf

也可以用shell执行如下命令

ez-ipupdate -h 域名 -i  网口 -S  服务类型 -u 用户名:密码

不报错就可以。

6.测试

[root@tooth local]#ping    申请的域名
PING tooth.3322.org (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_seq=0 ttl=0 time=0.070 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=0 time=0.037 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=0 time=0.036 ms



本文转自 Linux_woniu 51CTO博客,原文链接:http://blog.51cto.com/linuxcgi/1965322

相关文章
|
3天前
|
Linux 编译器 测试技术
嵌入式 Linux 下的 LVGL 移植
嵌入式 Linux 下的 LVGL 移植
|
3月前
|
Ubuntu Shell 芯片
详细讲解移植u-boot.2022.10版本移植到开发板基本方法
详细讲解移植u-boot.2022.10版本移植到开发板基本方法
64 0
|
6月前
|
消息中间件
嵌入式:UCOS移植+简单创建任务
嵌入式:UCOS移植+简单创建任务
|
7月前
|
存储 SQL Linux
嵌入式Linux上移植SQLite数据库
SQLite是一种轻量级的嵌入式数据库引擎,适用于各种应用,包括嵌入式系统。在嵌入式Linux上移植SQLite数据库可以为嵌入式设备提供持久性数据存储和查询功能。本文将介绍如何在嵌入式Linux上移植SQLite数据库。
84 0
|
10月前
|
存储 数据可视化 安全
ucgui在嵌入式linux下的移植
ucgui在嵌入式linux下的移植
|
11月前
|
Java Linux 开发工具
嵌入式 linux 之 Lzma 移植
嵌入式 linux 之 Lzma 移植
227 0
|
Linux
linux嵌入式移植部分配置
linux嵌入式移植部分配置
|
Java Linux 程序员
移植之乱谈
昨天有一个博友回复,说他已经完成了android系统在windows上的移植,其中比较难的是binder系统的移植。下面是两个demo网址,我看了后倍有感触。 http://v.youku.com/v_show/id_XMzIwMDkxOTQ4.htmlhttp://v.youku.com/v_show/id_XMzIwNzI2NTg4.html 这才是真正有技术含量的移植啊! 从做android开始,听到的最多的就是移植+merge了。
1005 0