自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小猪爱拱地

勤奋和毅力是通向成功的阶梯

  • 博客(22)
  • 资源 (1)
  • 收藏
  • 关注

原创 如何测试 DBUS Daemon

方法如下:./dbus-daemon --print-address --config-file=/home/charles/code/dbus/cmake/cmake/bus/session.confunix:abstract=/tmp/dbus-ZfKHkBvsWm,guid=6fcb847152517d1d7a75bafa5474bf74org.freedesktop.DBus.Er

2014-11-26 02:06:02 4386

原创 改变打开文件的个数

1. 显示当前可以打开的文件个数:$ ulimit -S -n1024$ ulimit -H -n4096-S 表示 soft limit, -H 表示 hard limit2.设置 可以打开的文件个数:~$ ulimit -S -n 2048~$ ulimit -S -n 2048普通用户只可设置 soft limit, 且只能小于 hard lim

2014-11-26 01:33:14 691

原创 打印DBUS连接对应的进程的PID和名字

1) C 语言实现:

2014-11-25 04:01:38 1899

原创 CMAKE 设置Build Type (Debug/Release)

原来以为可以在 CMak eLists.txt中做如下设置:

2014-11-24 11:36:00 45788 10

原创 编译 DBUS 时的一个错误:target pattern contains no `%

使用cmake编译。在make的时候,报错:

2014-11-23 22:55:35 5894

原创 设置DNS的两种方法(Ubuntu)

1. 修改 /etc/network/interfaces, 添加:

2014-11-22 14:54:23 1049

原创 使用chroot

chroot是一个比较有用的命令,它可以构造一个相对封闭的环境(sandbox),在这个封闭系统里运行命令而不必担心会对原有系统造成影响。Linux/Unix系统里的每个命令或者进程,都有一个 当前的运行目录 (current working directory, i.e., root directory), 这个目录可以使用  chroot来改变。chroot改变的目录后,在这个目录下面

2014-11-21 03:53:59 842

原创 查看tar包文件内容的方法

1. tar 文件:code$ tar tvf etc.tar drwxr-xr-x root/root 0 2014-09-12 22:20 etc/-rw-r--r-- root/root 153 2013-12-15 23:26 etc/inittab-rw-r--r-- root/root 293 2014-09-12 22:15 etc/

2014-11-20 08:39:43 33299

转载 Linux Tips: Force Fsck Run During the Next Reboot

Here is a quick tip that will show how you can tell your Linux system to perform a fsck on its partitions on the next reboot. Normally this will happen by default, after some time as configured in t

2014-11-19 00:25:25 1114

转载 How to Enable User and Group Quotas

Installing QuotaThis guide starts by installing the quota program using the following command:apt-get install quotaThe mount options of the file system need to be edited before user specific qu

2014-11-18 23:59:20 825

原创 Ubuntu 服务器基本配置

1. SSH 安装  openssh-server

2014-11-18 23:48:03 711

转载 DBus services

The message bus can start applications (services) on behalf of other applications, the application asks DBus to start a service by its name, usually the name should be known such as org.freedesktop.Te

2014-11-16 01:51:01 2016

转载 Reading device input directly from/to /dev/input/eventX in Ubuntu with C

In this code example we will be able to read a keyboard device input directly from/to /dev/input/eventX in Ubuntu with C++. You might want to change the default event device if that is not your keyboa

2014-11-16 01:37:03 1270

原创 使用 DBUS (2): 嵌入式XML描述接口

server:#include #include #ifdef G_OS_UNIX//#include /* For STDOUT_FILENO */#include #endifstatic GDBusNodeInfo *introspection_data = NULL;/* Introspection data for the service we are expo

2014-11-15 00:53:22 7020

原创 Ubuntu 不显示时间了

升级到  14.04之后,发现

2014-11-13 23:30:06 1779

原创 使用DBUS (1): 使用 DBU low-level API

1)使用 DBUS low-level API

2014-11-13 08:29:37 1448

原创 find 忽略某些目录

有几种方法:1)

2014-11-11 09:11:22 2299 1

转载 linux 的代码格式化工具 indent

indent -npro -nip -nlp -npsl -i4 -ts4 -sob -l200 -ss -bl -bli 0代码文件名

2014-11-07 12:20:36 955

转载 icescrum 升级到 R6 10

icescrum 升级到 R6 10分类: Scrum 2013-05-19 14:16 1220人阅读 评论(2)收藏 举报关闭tomcat7服务[plain] view plaincopyprint?service tomcat7 stop  备份数据库,我用的是mysql。下载文件并解压:[plain

2014-11-07 10:43:10 1041

转载 linux 内存映射 remap_pfn_range操作

下面是 mmap的读写例子:

2014-11-06 09:08:03 1593

转载 Linux内核和用户空间通信的方式(一)— proc文件和mmap共享内存

动态的将内核空间的物理地址和大小传给用户空间。本文也演示了内核空间和用户空间进行通信可以使用的两种常用方法:proc文件系统和mmap共享内存。整个内核模块,在模块插入时建立proc文件,分配内存。卸载模块的时候将用户空间写入的内容打印出来。以下是内核模块的代码和用户空间的测试代码。

2014-11-05 00:19:58 2611 2

原创 差之毫厘,谬以千里

今天在编一段代码的时候,遇到一个很奇怪的报错:

2014-11-03 01:00:34 1471

空空如也

空空如也

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

TA关注的人

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