Redhat共享 window打印机
时间:2006-04-20 来源:gridpc
Redhat共享 window打印机
<!--[if !supportEmptyParas]--> <!--[endif]-->
打印机为 HP 1200
#rpm –qa|grep samba (查看samba是否安装)
samba-client-2.2.3a-6
samba-2.2.3a-6
samba-common-2.2.3a-6
samba-swat-2.2.3a-6
<!--[if !supportEmptyParas]--> <!--[endif]-->
安装samba
#rpm -ivh --force --nodeps samba*.rpm
打开服务
#chkconfig --level 35 smb on
#chkconfig --level 35 lpd on
启动服务
#service smb start
#service lpd start
创建口令文件
#cat /etc/passwd|mksmbpasswd.sh>/etc/samba/smbpasswd
#chmod 600 /etc/samba/passwd
<!--[if !supportEmptyParas]--> <!--[endif]-->
<!--[if !supportLists]-->1、 <!--[endif]-->启动 linux 图形界面
<!--[if !supportLists]-->2、 <!--[endif]-->#printtool
<!--[if !supportLists]-->3、 <!--[endif]-->新加一个打印机
<!--[if !supportLists]-->4、 <!--[endif]-->新建 queue 输入 Name : printer ,short description: aaa
<!--[if !supportLists]-->5、 <!--[endif]-->选择 queue type 为 network windows (SMB)
<!--[if !supportLists]-->6、 <!--[endif]-->选择 specify 添加打印机
<!--[if !supportLists]-->7、 <!--[endif]-->workgroup :windows主机工作组名称,server : windows服务器 ip 地址,
share ://win主机名/共享打印机名,username :windows 服务器用户名
<!--[if !supportEmptyParas]--> <!--[endif]-->
<!--[if !supportLists]-->8、 <!--[endif]-->选择打印机 Hp laserjet 1200
9点击apply和default
<!--[if !supportLists]-->9、 <!--[endif]-->打印测试。
<!--[if !supportEmptyParas]--> <!--[endif]-->
<!--[if !supportEmptyParas]--> <!--[endif]-->
<!--[if !supportEmptyParas]--> <!--[endif]-->