Linux上autofs配置及其说明....
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://blog.csdn.net/Neverland2012
我们经常会去下载别的服务器上的东西..或者挂载本地的目录到一另一个目录主要为了访问起来方便路径容易记住.这个服务主要有两个配置文件一个是/etc/auto.master.这个文件定义了挂载的挂载点后面紧跟着mount动作...另一个是/etc/auto.misc,这个文件定义挂载的地方以及被挂在的目录.此目录可以是远程服务器上的目录也可以是本地目录.....我们可以间接来进行映射远程机器上的目录到本机,也可直接映射本地的目录...
下面我来给大家详细讲解间接映射远程机器目录到本地的目录.......先看看看/etc/auto.master的配置文件
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc /etc/auto.misc
/myfiles /etc/auto.home # /myfiles定义了mount的挂载点.而/etc/auto.home定义了mount的动作./etc/auto.home本身不存在可以自己创建..
/myftp /etc/auto.misc # 同理/myftp定义了mount的挂载点而/etc/auto.misc定义了mount的动作..
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the inc
相关文档:
作为两个系统而言,要进行资源的共享,方法很多,
最常用的两种方案是FTP访问和 Samba服务。
但对于很多新手来说配置这些服务可能会比较吃力,还有一个简单的两系统间文件互访的方法就是使用USB设备。
在安装有虚拟机Linux的Windows XP系统中插入U盘,在两个 ......
Linux上构筑iPhone OS3.1.2开发环境搭建
教程地址: http://www.yifeiyang.net/iphone-development-introduction-3-linux-development-environment-on-the-build-iphone-os3-1-2/
#第一步没有什么问题
$ ./toolchain.sh headers
#第二步也顺利通过
$ ./toolchain.sh firmware
#第三步也挺顺利
$ ./toolchain ......
总结章节:第三节 字符设备驱动
这一章主要是讲一些字符设备驱动程序的相关知识。在进行字符设备驱动程序学习之前,我们必须得弄明白一个问题:驱动程序时给谁用的。
很多驱动程序的初学者,按照一般编程语言(C,java等等)编写应用程序的经验,函数就是用来调用的。这种调用关系,在应用空间来看,限制不是很明显。很多 ......
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH&nbs ......
#include
#include
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
void *thread1(void *);
void *thread2(void *);
int i=1;
main(void)
{
pthread_t t_a;
pthread_t t_b;
pthread_create(&t_a,NULL,thread1,(void *)NULL) ......