- 博客(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
原创 使用chroot
chroot是一个比较有用的命令,它可以构造一个相对封闭的环境(sandbox),在这个封闭系统里运行命令而不必担心会对原有系统造成影响。Linux/Unix系统里的每个命令或者进程,都有一个 当前的运行目录 (current working directory, i.e., root directory), 这个目录可以使用 chroot来改变。chroot改变的目录后,在这个目录下面
2014-11-21 03:53:59 843
原创 查看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 33307
转载 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 826
转载 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 2017
转载 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 7022
转载 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内核和用户空间通信的方式(一)— proc文件和mmap共享内存
动态的将内核空间的物理地址和大小传给用户空间。本文也演示了内核空间和用户空间进行通信可以使用的两种常用方法:proc文件系统和mmap共享内存。整个内核模块,在模块插入时建立proc文件,分配内存。卸载模块的时候将用户空间写入的内容打印出来。以下是内核模块的代码和用户空间的测试代码。
2014-11-05 00:19:58 2611 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人