2014年10月29日
摘要: 1.功能作用查看软件包信息2.位置 1 /usr/bin3.格式用法dpkg-query [ ...] 4.主要参数 1 Commands: 2 -s|--status ... 显示软件包详细信息. 3 -p|--print-avail ... 显示package-n... 阅读全文
posted @ 2014-10-29 16:10 main_ryan 阅读(813) 评论(0) 推荐(0) 编辑
  2014年10月28日
摘要: 运行 #make menuconfig1 HOSTLD scripts/kconfig/mconf2 scripts/kconfig/mconf.o: In function `main':3 mconf.c:(.text.startup+0x6a): undefined reference ... 阅读全文
posted @ 2014-10-28 16:46 main_ryan 阅读(869) 评论(0) 推荐(0) 编辑
  2014年10月22日
摘要: helloworld.c 代码#include #include MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){ printk(KERN_ALERT "Hello world\n"); return ... 阅读全文
posted @ 2014-10-22 11:31 main_ryan 阅读(3892) 评论(0) 推荐(0) 编辑
  2014年10月8日
摘要: 1 shell 的$! ,$?, $$,$@$n $1 the first parameter,$2 the second...$# The number of command-line parameters.$0 The name of current program.$? ... 阅读全文
posted @ 2014-10-08 17:14 main_ryan 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: 很多软件只有32位的,有的依赖32位库还挺严重的;从ubuntu 13.10已经废弃了ia32-libs,但可以使用多架构,安装软件或包apt-get install program:i386。有的还是觉得烦,想一步到位安装所有的以前的ia32-libs,可以使用以下方法:sudo -icd /et... 阅读全文
posted @ 2014-10-08 14:33 main_ryan 阅读(2190) 评论(0) 推荐(0) 编辑
  2014年9月22日
摘要: 用‘grep’搜索文本文件如果您要在几个文本文件中查找一字符串,可以使用‘grep’命令。‘grep’在文本中搜索指定的字符串。举个例子:假设您正在‘/usr/src/linux/Documentation’目录下搜索带字符串‘magic’的文件:$ grep magic /usr/src/lin... 阅读全文
posted @ 2014-09-22 14:10 main_ryan 阅读(4012) 评论(0) 推荐(0) 编辑
  2014年9月18日
摘要: 如果你还没装编译环境或自己不确定装没装,不妨先执行sudo apt-get install build-essential如果你已经了解一些 vim 的知识,而且想用它来编辑源代码,那么我们不妨装个完整版sudo apt-get install vim-full安装JDKOracle® Java* ... 阅读全文
posted @ 2014-09-18 16:29 main_ryan 阅读(197) 评论(0) 推荐(0) 编辑
  2014年9月12日
摘要: linux下使用终端不可避免。 使用终端快捷键,当然会使你如虎添翼。记住他们吧终端快捷键tab=补全ctrl+a=开始位置ctrl+e=最后位置alt+shift+f 光标位置移动到前一个单词alt+shift+b 光标位置移动到后一个单词ctrl+k=删除此处至末尾所有内容ctrl+u=删除此处至... 阅读全文
posted @ 2014-09-12 13:31 main_ryan 阅读(275) 评论(0) 推荐(0) 编辑
摘要: rs232串口通信接口:当通信距离较近时(/dev/ttyS0查看串口名称使用 ls -l /dev/ttyS*一般情况下串口的名称全部在dev下面,如果你没有外插串口卡的话默认是dev下的ttyS*,一般ttyS0对应com1,ttyS1对应com2,当然也不一定是必然的;查看串口驱动:cat /... 阅读全文
posted @ 2014-09-12 13:18 main_ryan 阅读(14344) 评论(0) 推荐(0) 编辑