自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 Centos 命令自动补全,为make自动补全

需要安装bash-completion-extras工具包sudo yum install bash-completion-extras若没有该工具包,可尝试一下命令后在安装yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm...

2020-02-10 14:07:36 900

原创 .vimrc配置

set nocompatible " be iMproved, requiredfiletype off " required" set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#b...

2019-12-11 15:06:28 252

原创 linux使用dbus通信-方法测试

client端#include<dbus/dbus.h>DBusError dbus_error;void print_dbus_error (char *str);bool isinteger (char *ptr);void print_dbus_error (char *str) { fprintf (stderr, "%s: %s\n", str, db...

2019-11-25 16:05:36 1794 1

原创 ConnectionErr : Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

在测试dbus通信是出现错误:ConnectionErr : Unable to autolaunch a dbus-daemon without a $DISPLAY for X11解决方法:执行以下命令:eval dbus-launch --sh-syntax重启dbus服务:service dbus restart...

2019-11-21 10:47:01 2082

原创 错误:dbus/dbus.h:No such file or directory

在运行dbus测试程序时出现错误:dbus/dbus.h:No such file or directory如果已经安装了dbus(没有请安装)查找dbus.h位置$ sudo locate dbus.h如果提示错误,执行 $ sudo updatedb/usr/local/include/dbus-1.0/dbus/dbus.h/usr/include/dbus-1.0/dbus/...

2019-11-20 16:18:34 9528 2

原创 git远程仓库IP变更,修改本地git地址

1、使用git remote -v查看当前remotes例如:View existing remotesorigin https://github.com/user/repo.git (fetch)origin https://github.com/user/repo.git (push)2、修改remotesgit remote set-url origin https://gi...

2019-11-19 08:36:22 2313

原创 linux共享队列

linux内核有自己的一个workqueue,叫keventd_wq,这个工作队列也叫做“共享队列”。若驱动模块使用的workqueue功能很简单的话,可以使用“共享队列”,不用自己再建一个队列。1、创建结构体struct work_struct XXX_work;2、初始化队列INIT_WORK(&XXX_work,my_function);//my_function 为自己...

2019-11-19 08:34:17 327

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除