HP Unix NIS

 

中文版:

 

配置NIS Master Server:

1. /var/yp 加入到root的环境变量 PATH 中。因为/var/yp目录包含'ypmake'命令。

 

方法:把以下一行添加到 /.profile 的末尾:

 

export PATH=$PATH:/var/yp

 

2. 检查以下文件,确认其内容是正确的。因为这些文件将被转化进入 NIS maps

 

For example: /etc/passwd, /etc/group, /etc/hosts, and so on.

 

3. 手工设置 domain name:

 

#/usr/bin/domainname 您的域名

 

4. 编辑 /etc/rc.config.d/namesvrs 中的以下内容:

 

NIS_DOMAIN="您的域名"

NIS_MASTER_SERVER=1

NIS_CLIENT=1

 

5. 创建 NIS Master Server

#ypinit -m

 

Note: 'ypinit -m' allows you to interactively add the names of

the slave servers in your NIS domain.

 

6. 启动 NIS Server

#/sbin/init.d/nis.server start

 

7. 启动 NIS Client

#/sbin/init.d/nis.client start

 

 

 

配置 NIS client:

 

1. Edit the /etc/rc.config.d/namesvrs

 

Change the line that starts with: NIS_CLIENT=0

To: NIS_CLIENT=1

 

Change the line that starts with: NISDOMAIN=""

To: NIS_DOMAIN="您的域名"

 

2. /sbin/init.d/nis.client start

 

3. /sbin/init.d/nis.client stop

 

4. 检查 NIS client 是否已经与 NIS server 连接上:

 

ypwhich  (NIS server name will print)

 

Note: It may take up to a minute to bind to an NIS server

that returns the  'domain mydomain.com not bound'

message.  If you get this message, retry the ypwhich

a few more times.

 

-----Original Message-----

From: Zeng, Wen-Bin (TSDO-GSC-China)

Sent: Friday, July 20, 2007 10:06

To: 'herryin@foxconn.com'

Subject: TO 程林:NIS 配置

 

以下是一个英文的步骤,你先参考一下,随后我再给你一个中文的:

 

 

Perform. the following steps to configure an NIS Master Server:

1. Add /var/yp directory to root's PATH variable.  This directory

contains the 'ypmake' command to update maps.

 

This can be accomplished by adding the following line to the

end of any dot file (for example, .profile) that is sourced

by root at login:

 

export PATH=$PATH:/var/yp

 

2. Check all source files that will be coverted into NIS maps to

make sure they are up to date.  Make the changes before you

convert the system to a master server.

 

For example: /etc/passwd, /etc/group, /etc/hosts, and so on.

 

3. Manually set the domain name:

 

#/usr/bin/domainname XXXXXXXX

 

4. Edit /etc/rc.config.d/namesvrs to contain the following

variable assignments:

 

NIS_DOMAIN="domain"   <=replace domain with your domain name

NIS_MASTER_SERVER=1

NIS_CLIENT=1

 

5. #ypinit -m

 

Note: 'ypinit -m' allows you to interactively add the names of

the slave servers in your NIS domain.

 

6. #/sbin/init.d/nis.server start

 

7. #/sbin/init.d/nis.client start

 

 

Perform. the following steps to configure an NIS Slave Server:

 

1. #domainname DOMAIN   <=replace DOMAIN with your domain name

 

2. Edit /etc/rc.config.d/namesvrs to contain the following

variable assignments:

 

NIS_DOMAIN="domain"   <=replace domain with your domain name

NIS_SLAVE_SERVER=1

NIS_CLIENT=1

 

3. Remove all user entries to be maintained via NIS from

/etc/passwd and /etc/group.

 

Note: Do not remove the root entry.

 

4. Add the appropriate escape sequences to the end of the

/etc/passwd and /etc/group files.  HP recommends the

following escape sequences:

 

/etc/passwd:    +::-2:60001:::

/etc/group:     +:*:*

 

5. # ypinit -s ipaddress_of_master

 

6. # /sbin/init.d/nis.server start

 

7. # /sbin/init.d/nis.client start

 

 

Perform. the following steps to configure an NIS client:

 

Note: You cannot use SAM to configure NIS.

 

1. Add '+' entries to 'escape' /etc/passwd to NIS:

 

Add the following entry after the 'local' passwords in

/etc/passwd:

 

+::0:0:::

 

Note: DO NOT PUT AN '*' in the password field! HP-UX assumes

that an '*' represents an invalid passwd file entry and

ignores it.  Keep 'system' Users in the local /etc/passwd

file (for example, root and bin).

 

2. Add '+' entries to 'escape' /etc/group to NIS:

 

Add the following entry after the 'local' group IDs in

/etc/group:

 

+:

 

Note: Keep 'system' group IDs in the local /etc/group file

(for example, bin).

 

3. You do not need to add a '+' in the /etc/hosts file!

 

4. Edit the /etc/netnfsrc file:

 

Note: /etc/netnfsrc is a 9.x file.

/etc/rc.config.d/namesvrs is the correct configuration

file for HP-UX 10.x and 11.0.

 

Change the line that starts with: NIS_CLIENT=0

To: NIS_CLIENT=1

 

Change the line that starts with: NISDOMAIN=""

To: NISDOMAIN="mydomain.com"

 

Note: 'mydomain.com' is your NIS domain name.  You are using

quotes in the event that the domain name contains a

special character.  These changes will take effect

on the next boot.

 

 

To start the NIS client before your next boot:

 

1. Make sure that you are using the 'root' ID.

 

2. /sbin/init.d/nis.client start

 

3. /sbin/init.d/nis.client stop

 

4. Check to see if 'bound' to NIS server:

 

ypwhich  (NIS server name will print)

 

Note: It may take up to a minute to bind to an NIS server

that returns the  'domain mydomain.com not bound'

message.  If you get this message, retry the ypwhich

a few more times.

 

 

Best regards,

 

Zeng Wenbin

HP Response Center

 

 

NIS 相关的额外的设置:

 

/etc/nsswitch.conf

...

passwd: files nis

group:     files nis

hosts:     files nis

 

如果使用以上设置,那么主机允许本机定义的的user, grouphost,同时也使用 NIS 的定义。

 

如果使用以下设置,那么主机只能使用本机定义的user, grouphost,忽略NIS的定义:

passwd:       files

group:     files

hosts:     files

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14876437/viewspace-598192/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/14876437/viewspace-598192/

本指南详细阐述基于Python编程语言结合OpenCV计算机视觉库构建实时眼部状态分析系统的技术流程。该系统能够准确识别眼部区域,并对眨眼动作与持续闭眼状态进行判别。OpenCV作为功能强大的图像处理工具库,配合Python简洁的语法特性与丰富的第三方模块支持,为开发此类视觉应用提供了理想环境。 在环境配置阶段,除基础Python运行环境外,还需安装OpenCV核心模块与dlib机器学习库。dlib库内置的HOG(方向梯度直方图)特征检测算法在面部特征定位方面表现卓越。 技术实现包含以下关键环节: - 面部区域检测:采用预训练的Haar级联分类器或HOG特征检测器完成初始人脸定位,为后续眼部分析建立基础坐标系 - 眼部精确定位:基于已识别的人脸区域,运用dlib提供的面部特征点预测模型准确标定双眼位置坐标 - 眼睑轮廓分析:通过OpenCV的轮廓提取算法精确勾勒眼睑边缘形态,为状态判别提供几何特征依据 - 眨眼动作识别:通过连续帧序列分析眼睑开合度变化,建立动态阈值模型判断瞬时闭合动作 - 持续闭眼检测:设定更严格的状态持续时间与闭合程度双重标准,准确识别长时间闭眼行为 - 实时处理架构:构建视频流处理管线,通过帧捕获、特征分析、状态判断的循环流程实现实时监控 完整的技术文档应包含模块化代码实现、依赖库安装指引、参数调优指南及常见问题解决方案。示例代码需具备完整的错误处理机制与性能优化建议,涵盖图像预处理、光照补偿等实际应用中的关键技术点。 掌握该技术体系不仅有助于深入理解计算机视觉原理,更为疲劳驾驶预警、医疗监护等实际应用场景提供了可靠的技术基础。后续优化方向可包括多模态特征融合、深度学习模型集成等进阶研究领域。 资源来源于网络分享,仅用于学习交流使用,请勿用于商业,如有侵权请联系我删除!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值