Fri 21 Nov 2008

    在ARM上移植openssl

    移植过程如下:

    wget http://www.openssl.org/source/openssl-0.9.8h.tar.gz
    tar zxvf openssl-0.9.8h.tar.gz
    cd openssl-0.9.8h/
    ./Configure --prefix=/opt/rootfs/arm/openssl/ os/compiler:arm-li

    (Read more...)

    Tags: Embedded, gcc, arm 评论(0) 阅读(12)

    Wed 19 Nov 2008

    需要文件:

    NET-SNMP-EXAMPLES-MIB.txt
    notification.c
    

    这两个文件都在net-snmp源码包里,我的版本是5.4.1

    NET-SNMP-EXAMPLES-MIB.txt net-snmp-5.4.1.2/mibs目录下 notification.c net-snmp-5.4.1

    (Read more...)

    Tags: 学习笔记, Embedded, snmp 评论(0) 阅读(15)

    Mon 17 Nov 2008

    cross compile net-snmp for mips

    I'm trying to cross-compile NetSNMP 5.4.2 for running on an embedded system (mips).

    由于我使用的CPU是little endian 交叉编译工具是 mipsel-linux

    但是如果你用的是Big endian,交叉编译用具就可能是 mips-linux

    如果你是ARM平台的话,相应的改为 a

    (Read more...)

    Tags: Embedded, gcc, snmp, mips 评论(0) 阅读(25)

    Sun 16 Nov 2008

    snmp学习笔记之一——配置使用trap

    本文主要参考: snmp学习笔记——配置使用trap(一) http//blog.chinaunix.net/u1/43391/showart_355332.html

    一,trap的用途

    TRAP是提供从代理进程到管理站的异步报告机制。

    为了使管理站能够及时而又有效地对

    (Read more...)

    Tags: 学习笔记, snmp 评论(0) 阅读(41)

    Sun 28 Sep 2008

    禁用linux终端中的报警声

    方法一 去掉PC喇叭的驱动模块

    #rmmod pcspkr 已测试

    可以将命令写到 /etc/rc.local 这样下次系统启动的时候就会去掉pcspkr模块了。

    整个世界都清静了!

    方法二 修改 /etc/inputrc 文档

    将 set bell-style none 命令行激活,重启系统。

    方法三 setterm -blength 0

    Jiang Bian 2008.9.28

    --EOF--

    (Read more...)

    Tags: tips, 学习笔记, ubuntu 评论(0) 阅读(238)

    Mon 15 Sep 2008

    Django-1.0-file-upload

    原因

    想通过 Django admin 做个简单的上传文件管理,遇到个问题。files = models.FileField(upload_to=('files')) 默认是把所有的文件都保存在同一个目录 files 下面,我想通过types来判断不同的类型保存到不同目录下,像这样的结构: files/types/filename.

    表结构:

    class Car(models.Model):
        name = models.CharField(max_length=255)
        types = models.CharField(max_length=255)
        files = models.FileField(upl

    (Read more...)

    Tags: Django, web, python 评论(0) 阅读(274)

    Tue 19 Aug 2008

    一、 发现deb包依赖关系错误:

    border@b0rder:~$  sudo apt-get install -f
    正在读取软件包列表... 完成
    正在分析软件包的依赖关系树
    读取状态信息... 完成
    已经不需要下列自动安装的软件包:
      liberror-perl libdigest-sha1-perl
    使用 'apt-get autoremove' 来删除它们。
    共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
    有 6 个软件包没有被完全安装或卸载。
    操作完成后,会消耗掉 0B 的额外磁盘空间。
    正在设置 flex (2.5.34-2.1) ...
    install-info:不能识别的选项“--description=A fast scanner generator”
            试用“install-info --help”以获得选项的完整列表。
    dpkg:处理 flex (--configure)时出错:
     子进程 post-installation

    (Read more...)

    Tags: ubuntu, dpkg 评论(0) 阅读(238)

    Fri 15 Aug 2008

    Cross Compile SSH Server Dropbear For ARM

    编译环境

    • ubuntu 8.04
    • gcc 4.2.3
    • arm_v5t_le-gcc 3.4.3

    (Read more...)

    Tags: 学习笔记, ubuntu, Embedded, gcc 评论(0) 阅读(234)

    Fri 08 Aug 2008

    Django From 0.96 update to 1.0 logging

    Django升级到1.0时,发现原来写的东西就运行不起来, 去官方查了一下原来Admin和newform的API改动了, 还好这次不是大面积的改动.

    更新简单记录一下.

    本文主要参考: http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges

    admin url

    URLconfs:

    # OLD:
    from django.conf.urls.defaults import *
    
    urlpatterns = patterns('',
        (r'^admin/', include('

    (Read more...)

    Tags: Django, web, python 评论(0) 阅读(349)

    Sat 02 Aug 2008

    这几天在做交叉编译的时候,对configure的build, target和host 一直搞不明白,搜了些资料记录一下:

    一、 http://en.wikipedia.org/wiki/Cross_compile

    The GNU autotools packages (i.e. autoconf, automake, and libtool) use the notion of a build platform, a host platform, and a target platform.

    The build platform is where the code is actually compiled.

    The host platform is where the compiled code will execute.

    T

    (Read more...)

    Tags: ubuntu, Embedded, gcc 评论(0) 阅读(303)