系統版本
centos linux release 6.0 (final)
1、安裝yum
mount /dev/cdrom /mnt
rpm -ivh /mnt/packages/yum-3.2.27-14.el6.centos.noarch.rpm
2、安裝wget
rpm -ivh /mnt/packages/wget-1.12-1.4.el6.i686.rpm
3、備份yum配置檔案
mv /etc/yum.repos.d/centos-base.repo /etc/yum.repos.d/centos-base.repo.backup
wget -o /etc/yum.repos.d/centos-base.repo
5、yum makecache生成快取
yum makecache
6、關閉防火牆
service iptables stop
chkconfig iptables off 開機不啟動防火牆
chkconfig --list | grep iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
7、關閉selinux
vim /etc/sysconfig/selinux
selinux=disabled
8、安裝cups
yum install cups
#檢視安裝的軟體包
rpm -qa |grep cups
cups-1.4.2-78.el6_9.i686
cups-libs-1.4.2-78.el6_9.i686
9、執行cups
service cups start
10、開機自動啟動
chkconfig cups on
chkconfig --list | grep cups
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off
11、檢視cups狀態
service cups status
cupsd (pid 1817) is running...
12、允許遠端訪問cups web
cups預設只監聽localhost,修改配置檔案,允許any監聽tcp 631
#把listen localhost:631修改為listen *:631
#允許any訪問cups web
vim /etc/cups/cupsd.conf
如下增加allow all欄位
# restrict access to the server...
order allow,deny
allow all
# restrict access to the admin pages...
order allow,deny
allow all
# restrict access to configuration files...
authtype default
require user @system
order allow,deny
allow all
重啟服務 service cups restart
13、訪問cups web
14、新增印表機
image.png
15、檢視列印錯誤log
more /var/log/cups/error_log
16、安裝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.i686
17、新增共享列印
vim /etc/samba/smb.conf
[printers]
comment = all printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
read only = yes
printable = yes
18、重啟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 user
20、測試列印
windows下訪問共享印表機
\\10.x.x.x
21、通過cups web檢視相關列印log
檢視列印作業記錄,已完成一次列印
printserver-10.4.x.x 7 root [21/mar/2018:20:44:36 +0800] 1 1 - 10.4.x.x smbprn.00000001 linux - -
printserver-10.4.x.x 7 root [21/mar/2018:20:44:47 +0800] 1 1 - 10.4.x.x smbprn.00000001 linux - -
cups支援的印表機列表 印表機支援列表新
品牌 型號品牌 型號hp 惠普business inkjet 1000 hp惠普 laserjet p1100 hp惠普 deskjet 1000 j110 hp惠普 laserjet p1102 hp惠普 deskjet j210 hp惠普 laserjet p1104 hp惠普 deskjet ...
cups支援的印表機列表 CUPS共享網路印表機
一 安裝cups伺服器 docker pull olbat cupsd 2 執行cups映象,直接使用網頁登入cups伺服器,進行設定。docker run d p 172.29.11.7 631 631 restart always v var run dbus var run dbus name...
linux 使用cups配置網路印表機
首先系統需要安裝 cups 安裝完成以後 通過訪問http localhost 631 進行配置管理 在administration 下 add printers 如果是直接連線的可以在 local printers 下檢視。假如在discovered network printer 下發現了自己的...