2013年4月30日

windows下使用samba访问ubuntu目录

摘要: 首先使用apt-get安装samba和cifs-utils,装好以后修改/etc/samba/smb.conf文件,在文件末尾增加共享目录相关配置:[include]comment = linux headerpath = /usr/includeguest ok = yes修改完成后,使用testparm测试配置结果:tony@ubuntu-a:~$ testparmLoad smb config files from /etc/samba/smb.confrlimit_max: increasing rlimit_max (1024) to minimum Windows limit (1 阅读全文

posted @ 2013-04-30 18:49 tonybuaa 阅读(495) 评论(0) 推荐(0) 编辑

一个简单的内核模块编程实例

摘要: 学习netfilter的使用,需要用到模块编程,所以先学习写个模块的例子。#include <linux/init.h>#include <linux/module.h>#include <linux/kernel.h>static int __init hello_init(void){ printk(KERN_INFO "call hello_init\n"); return 0;}static void __exit hello_exit(void){ printk(KERN_INFO "call hello_exit\n 阅读全文

posted @ 2013-04-30 17:35 tonybuaa 阅读(379) 评论(0) 推荐(0) 编辑

内核模块头文件的存放地址

摘要: 学习写内核编译的Makefile的时候,发现网上的例子里有的这样用:/lib/modules/$(shell uname -r)/build还有的用的是这个:/usr/src/$(shell uname -r)其实这两个是同一个位置,build是个软连接而已:build -> /usr/src/linux-headers-3.8.0-19-generic 阅读全文

posted @ 2013-04-30 16:48 tonybuaa 阅读(362) 评论(0) 推荐(0) 编辑

导航