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)

    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)

    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)

    Fri 01 Aug 2008

    Howto-Cross-Compile-Python2.5.2-For-ARM

    Cross Compile Python 2.5.2 For ARM

    本文排版有问题可以看排版后的: http://wiki.woodpecker.org.cn/moin/Cross_Compile_Python_2.5.2_For_ARM

    编译环境:

    ubuntu 8.04, gcc 4.2.3, arm_v5t_le-gcc 3.4.3

    1. 下载Python,http://www.python.org/download/ 下载Python源码,我下载的:

      http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2
      

    (Read more...)

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

    Wed 23 Jul 2008

    VIA P4M890 install openchrome

    把系统升级到ubuntu 8.04 后分辨率变为800*600, Google找到开源的OpenChrome驱动支持P4M890, 就自己手动编译:

    border@b0rder:~$ wget http://openchrome.org/releases/xf86-video-openchrome-0.2.902.tar.gz
    border@b0rder:~$ tar xvzf xf86-video-openchrome-0.2.902.tar.gz
    sudo apt-get build-dep xserver-xorg-driver-via
    cd xf86-video-openchrome-0.2.902/
    ./configure --prefix=/usr
    make
    sudo make install
    border@b0rder:~$ sudo displayconfig-gtk
    通过displayconfig-gtk 选择openchrome驱动就可以
    

    硬件信息:

    (Read more...)

    Tags: ubuntu, OpenChrome 评论(0) 阅读(285)

    Tue 15 Jul 2008

    Install Trac and svn on ubuntu

    Install Python2.5:

    border@ubuntu:/bvcomsvn/svnrepos$ sudo apt-get install python
    

    Install Apache(如果没有必要可以不用安装):

    border@ubuntu:/bvcomsvn/svnrepos$ sudo apt-get install apache2
    border@ubuntu:/bvcomsvn/tracs/web2.0$ sudo apt-get install libapache2-mod-python
    

    Install Genshi:

    border@ubuntu:~/tools$ wget http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.tar.gz
    border@

    (Read more...)

    Tags: ubuntu, Trac, svn 评论(0) 阅读(340)

    Mon 14 Jul 2008

    在linux中格式化一个新硬盘并加载分区

    确定你要格式化的硬盘,我的两块硬盘都是SCSI接口的,可以通过:

    border@ubuntu:/dev$ ls sd*
    sda  sda1  sda2  sda5  sda6  sda7  sdb  sdb1
    

    如果是USB设备:

    cd /dev
    ls hd*
    

    IDE设备是:

    cd /dev
    ls hd*
    

    查看分区信息:

    border@ubuntu:~$ sudo fdisk -l
    [sudo] password for border:
    
    Disk /dev/sda: 146.8 GB, 146815733760 bytes
    255 heads, 63 sectors/track, 17849 cylinders
    Units = 

    (Read more...)

    Tags: ubuntu, fdisk, mkfs.ext3 评论(0) 阅读(484)

    Sun 13 Jul 2008

    从硬盘安装 ubuntu 8.04 server

    下载ubuntu 8.04 server

    从ubuntu.com官方网站下载ubuntu 8.04 server 镜像文件 ubuntu-8.04-server-i386.iso

    (Read more...)

    Tags: ubuntu 评论(0) 阅读(1405)