CUPS Share Printer


系统版本
cat /etc/centos-release
CentOS Linux release 6.0 (Final)1、安装yum
mount /dev/cdrom /mnt
rpm -ivh /mnt/Packages/yum-3.2.27-14.el6.centos.noarch.rpm2、安装wget
rpm -ivh /mnt/Packages/wget-1.12-1.4.el6.i686.rpm3、备份yum配置文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.开发云主机域名d/CentOS-Base.repo.backup4、下载yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo5、yum makecache生成缓存
yum makecache6、关闭防火墙
service iptables stop
chkconfig iptables off 开机不启动防火墙
chkconfig –list | grep iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off7、关闭SELINUX
vim /etc/sysconfig/selinux
SELINUX=disabled8、安装Cups
yum install cups
查看安装的软件包
rpm -qa |grep cups
cups-1.4.2-78.el6_9.i686
cups-libs-1.4.2-78.el6_9.i6869、运行cups
service cups start10、开机自动启动
chkconfig cups on
chkconfig –list | grep cups
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off11、查看cups状态
service cups status
cupsd (pid 1817) is running…12、允许远程访问CUPS Web
CUPS默认只监听localhost,修改配置文件,允许any监听TCP 631
vim /etc/cups/cupsd.conf把Listen localhost:631修改为Listen *:631允许any访问CUPS WEB
vim /etc/cups/cupsd.conf如下增加Allow all字段
Order allow,deny
Allow all

Order allow,deny
Allow all

AuthType Default
Require user @SYSTEM
Order allow,deny
Allow all
重启服务 service cups restart13、访问CUPS WEB
https://IP:631/admin/
登录账号使用root密码Add print15、查看打印错误log
more /var/log/cups/error_log16、安装samba
yum install samba安装的软件包
rpm -qa |grep samba
samba-winbind-clients-3.6.23-46el6_9.i686
samba-3.6.23-46el6_9.i686
samba-winbind-3.6.23-46el6_9.i686
samba-common-3.6.23-46el6_9.i68617、添加共享打印
vim /etc/samba/smb.conf[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
read only = yes
printable = yes18、重启smb服务
service smb status
smbd (pid 2140) is running…19、设置无认证共享
vim /etc/samba/smb.conf[global]
workgroup = MYGROUP
server string = Samba Server Version %v
security = user
map to guest = Bad User20、测试打印10.4.8.249打印一个文档,选择共享打印机,可以打印21、通过CUPS WEB查看相关打印log
查看打印作业记录,如下,已完成一次打印22、查看log
Page_log,如下pc-10.4.10.53使用打印机ZD-15F-PRINT-10.4.10.190完成了打印ZD-15F-PRINT-10.4.10.190 7 root [21/Mar/2018:20:44:36 +0800] 1 1 – 10.4.10.53 smbprn.00000001 Linux – –
ZD-15F-PRINT-10.4.10.190 7 root [21/Mar/2018:20:44:47 +0800] 1 1 – 10.4.10.53 smbprn.00000001 Linux – –

相关推荐: WSFC CLUSDB

转眼已经是2018年了,真快啊,在这里老王首先祝福各位博友新的一年身体健康,事业顺利,在新的一年里老王仍然会继续为大家分享微软企业级技术,也欢迎大家与我一同探讨,共同学习,这新年第一篇老王想和大家聊聊WSFC的群集数据库,以及和它相关的一些组件 首先,我们回忆…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

Like (0)
Donate 微信扫一扫 微信扫一扫
Previous 04/02 17:01
Next 04/02 17:01