上一页 1 ··· 73 74 75 76 77
摘要: linux下SVN中改变执行权限 http://www.111cn.net/sys/linux/47964.htm 本地文件在commit到仓库之前若没有chmod +x 权限的话,那在svn仓库里的文件将会保持当前无可执行属性状态。 即使在本地chmod +x filename 之后,再提交到仓库 阅读全文
posted @ 2013-09-22 10:39 静之深 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 指定行范围替换: sed -i "520,950s/\(.*\)\(HOST_CMD_.*\)\(,\)/\1{ \2, \"\2\" },/g" hostCmdMacro.h linux shell sed命令与转义字符 sed 指定行范围匹配 删除文本中的重复行(sort+uniq/awk/se 阅读全文
posted @ 2013-09-22 10:16 静之深 阅读(416) 评论(0) 推荐(0) 编辑
摘要: minicom显示中文的设置: env LANG=en_US minicom可以再.bashrc 中添加alias minicom='env LANG=en_US minicom'我的配置:alias minicom='env LANG=en_US minicom -o -w'1:GDB单步调试程序 http://blog.csdn.net/yangtaolyt/article/details/6960562在板子上启动:gdbserver 192.168.110.58:8888 out.elf(注:此ip为pc端ip)pc端:csky-linux-gdb ou 阅读全文
posted @ 2013-09-17 16:24 静之深 阅读(288) 评论(0) 推荐(0) 编辑
摘要: GIMP-》linux下16位图查看工具 国内一个较好的vim配置实例 实用手册:130+ 提高开发效率的 vim 常用命令 http://www.cnblogs.com/lhb25/p/130-essential-vim-commands.html vim 粘贴时取消自动换行 vim tab设置为 阅读全文
posted @ 2013-09-13 14:56 静之深 阅读(437) 评论(0) 推荐(1) 编辑
摘要: 参考文档请参考文章:http://www.ibm.com/developerworks/cn/linux/l-cn-shell-debug/index.htmlhttp://blog.csdn.net/baobeijianjia/article/details/4353560http://blog.csdn.net/wklken/article/details/6991581Linux笔记——shell补充:参数传递&函数等 读后的感觉,还是用shell的选项灵活,方便。trap方式在捕捉ERR信号的时候比较方便。shell的执行选项-n: 只是读取脚本,但不执行命令。用于在执行脚本前 阅读全文
posted @ 2013-06-30 19:22 静之深 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 参考文档:http://wenku.baidu.com/view/a51ac26c9b6648d7c1c746d7.html1、首先,先去官网(http://www.virtualbox.org)下载所需的、对应的 VitrualBox (Linux 下的 Ubuntu 版),本文以目前最新版 virtualbox-4.2_4.2.4-81684~Ubuntu~precise_i386.deb 为例。【注意软件包名,Ubuntu 后面的单词是“precise”】2、然后,下载相应版本的 VitrualBox 扩展包,本文对应的是:Oracle_VM_VirtualBox_Extension_P 阅读全文
posted @ 2013-06-30 19:09 静之深 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 在Linux 服务器上配置好NFS 根文件系统后,在单板侧挂载NFS 文件系统,具体操作如下:ifconfig eth0 hw ether 00:10:85:18:01:84 /*配置MAC地址*/ifconfig eth0 10.85.180.184 netmask 255.255.254.0 / 阅读全文
posted @ 2013-06-30 18:43 静之深 阅读(5385) 评论(0) 推荐(1) 编辑
摘要: unpipc.h/* include unpipch *//* Our own header. Tabs are set for 4 spaces, not 8 */#ifndef __unpipc_h#define __unpipc_h#include "../config.h" /* configuration options for current OS */ /* "../config.h" is generated by configure *//* If anything changes in the following list of #i 阅读全文
posted @ 2013-04-17 20:40 静之深 阅读(381) 评论(0) 推荐(0) 编辑
摘要: fcntl()/mmap()1、fcntl#include <sys/types.h>#include <unistd.h>#include <fcntl.h>定义函数 int fcntl(int fd, int cmd); int fcntl(int fd, int cmd, long arg); int fcntl(int fd, int cmd, struct flock *lock); fcntl()针对(文件)描述符提供控制.参数fd 是被参数cmd操作(如下面的描述)的描述符. 针对cmd的值,fcntl能够接受第三个参数int arg1. 参数 阅读全文
posted @ 2013-04-17 17:28 静之深 阅读(308) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include typedef long LONG;typedef char CHAR;#define CONST const#ifndef SUCCESS#define SUCCESS 0#endif#ifndef FAIL#define FAIL -1#endifLONG GetMac(CONST CHAR *pcIfName, CHAR *pcMac... 阅读全文
posted @ 2013-04-17 14:32 静之深 阅读(7625) 评论(2) 推荐(0) 编辑
上一页 1 ··· 73 74 75 76 77