mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-28 01:01:09 +08:00
PUB:20140812 How to set up a USB network printer and scanner server on Debian
@GOLinux
This commit is contained in:
parent
ec0d19874d
commit
3d3e7d432c
@ -25,33 +25,35 @@
|
|||||||
然后,编辑原始文件(下面只显示了最为有关联的部分):
|
然后,编辑原始文件(下面只显示了最为有关联的部分):
|
||||||
|
|
||||||
- **Listen**:监听指定的地址和端口,或者域套接口路径。
|
- **Listen**:监听指定的地址和端口,或者域套接口路径。
|
||||||
- **Location /path**:为命名的位置指定访问控制。
|
- **Location /path**:为该名字所代表的位置指定访问控制。
|
||||||
- **Order**:指定HTTP访问控制顺序(allow,deny或deny,allow)。Order allow,deny是说允许规则先于(并且优先处理)拒绝规则。
|
- **Order**:指定HTTP访问控制顺序(allow,deny或deny,allow)。Order allow,deny是说允许规则先于(并且优先处理)拒绝规则。
|
||||||
- **DefaultAuthType** (也可以用**AuthType**): 指定默认使用的认证类型。Basic是指使用/etc/passwd文件来认证CUPS中的用户。
|
- **DefaultAuthType** (也可以用**AuthType**): 指定默认使用的认证类型。Basic是指使用/etc/passwd文件来认证CUPS中的用户。
|
||||||
- **DefaultEncryption**:指定认证请求说使用的加密类型。
|
- **DefaultEncryption**:指定认证请求所使用的加密类型。
|
||||||
- **WebInterface**:指定是否启用网页接口。
|
- **WebInterface**:指定是否启用网页接口。
|
||||||
|
|
||||||
# Listen for connections from the local machine
|
---
|
||||||
Listen 192.168.0.15:631
|
|
||||||
|
# Listen for connections from the local machine
|
||||||
|
Listen 192.168.0.15:631
|
||||||
|
|
||||||
# Restrict access to the server
|
# Restrict access to the server
|
||||||
<Location />
|
<Location />
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allo 192.168.0.0/24
|
Allow 192.168.0.0/24
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
# Default authentication type, when authentication is required
|
# Default authentication type, when authentication is required
|
||||||
DefaultAuthType Basic
|
DefaultAuthType Basic
|
||||||
DefaultEncryption IfRequested
|
DefaultEncryption IfRequested
|
||||||
|
|
||||||
# Web interface setting
|
# Web interface setting
|
||||||
WebInterface Yes
|
WebInterface Yes
|
||||||
|
|
||||||
# Restrict access to the admin pages
|
# Restrict access to the admin pages
|
||||||
<Location /admin>
|
<Location /admin>
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow 192.168.0.0/24
|
Allow 192.168.0.0/24
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
现在,让我们重启CUPS来应用修改:
|
现在,让我们重启CUPS来应用修改:
|
||||||
|
|
||||||
@ -66,27 +68,27 @@
|
|||||||
|
|
||||||
### 通过网页接口配置网络打印机 ###
|
### 通过网页接口配置网络打印机 ###
|
||||||
|
|
||||||
1. 启动网页浏览器,并打开CUPS接口http://<Server IP>:Port,这里在我们的例子中是http://192.168.0.15:631:
|
1、 启动网页浏览器,并打开CUPS接口http://<Server IP>:Port,这里在我们的例子中是http://192.168.0.15:631:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
2. 转到**管理**标签,然后点击*添加打印机*:
|
2、 转到**管理**标签,然后点击*添加打印机*:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
3. 选择你的打印机;在本例中,**EPSON Stylus CX3900 @ debian (Inkjet Inkjet Printer)**,然后点击**继续**:
|
3、 选择你的打印机;在本例中,**EPSON Stylus CX3900 @ debian (Inkjet Inkjet Printer)**,然后点击**继续**:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
4. 是时候为打印机取个名字,并指定我们是否想要从当前工作站共享它:
|
4、 是时候为打印机取个名字,并指定我们是否想要从当前工作站共享它:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
5. 安装驱动——选择品牌并点击**继续**。
|
5、 安装驱动——选择品牌并点击**继续**。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
6. 如果打印机如果不被CUPS支持(没有在下一页中列出来),我们必须从生产厂家的网站上下载驱动(如[http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX][2]),安装完后回到该页。
|
6、 如果打印机如果不被CUPS支持(没有在下一页中列出来),我们必须从生产厂家的网站上下载驱动(如[http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX][2]),安装完后回到该页。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@ -94,11 +96,11 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
7. 注意,预编译的.deb文件必须从我们使用的机器上发送(例如,通过sftp或scp)到打印服务器(当然,如果我们有一个直接的下载链接就更加简单了,而不用下载按钮了):
|
7、 注意,预编译的.deb文件必须从我们使用的机器上发送(例如,通过sftp或scp)到打印服务器(当然,如果我们有一个直接的下载链接就更加简单了,而不用下载按钮了):
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
8. 在将.deb文件放到服务器上后,我们就可以安装了:
|
8、 在将.deb文件放到服务器上后,我们就可以安装了:
|
||||||
|
|
||||||
# dpkg -i epson-inkjet-printer-escpr_1.4.1-1lsb3.2_i386.deb
|
# dpkg -i epson-inkjet-printer-escpr_1.4.1-1lsb3.2_i386.deb
|
||||||
|
|
||||||
@ -111,7 +113,7 @@
|
|||||||
# aptitude install lsb
|
# aptitude install lsb
|
||||||
# dpkg -i epson-inkjet-printer-escpr_1.4.1-1lsb3.2_i386.deb
|
# dpkg -i epson-inkjet-printer-escpr_1.4.1-1lsb3.2_i386.deb
|
||||||
|
|
||||||
9. 现在,我们可以返回到第五步并安装打印机:
|
9、 现在,我们可以返回到第五步并安装打印机:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@ -161,7 +163,7 @@ via: http://xmodulo.com/2014/08/usb-network-printer-and-scanner-server-debian.ht
|
|||||||
|
|
||||||
作者:[Gabriel Cánepa][a]
|
作者:[Gabriel Cánepa][a]
|
||||||
译者:[GOLinux](https://github.com/GOLinux)
|
译者:[GOLinux](https://github.com/GOLinux)
|
||||||
校对:[校对者ID](https://github.com/校对者ID)
|
校对:[wxy](https://github.com/wxy)
|
||||||
|
|
||||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||||
|
|
Loading…
Reference in New Issue
Block a user