Print2Win(1).pdf
(
13 KB
)
Pobierz
The Linux Print2Win mini-HOWTO
The Linux Print2Win mini−HOWTO
Marcelo Pereira da Silva
marcelo@pereira.com
v1.1
Jan 2002
Revision History
Revision 1.1
2002−07−19
Revised by: ms
Revision 1.0
2002−01−01
Revised by: ms
This howto contains the general configuration to get Linux printing to a Windows print share.
The Linux Print2Win mini−HOWTO
Table of Contents
1. Introduction.
....................................................................................................................................................1
2. Server (Windows.
...........................................................................................................................................2
3. Client (Linux).
.................................................................................................................................................3
3.1. Standard lpr.
......................................................................................................................................3
4. /etc/printcap Tips.
...........................................................................................................................................4
5. License.
.............................................................................................................................................................5
6. Credits.
.............................................................................................................................................................6
i
1. Introduction
As we want the print service running, we'll set up all the environment step by step, to avoid mistakes or bad
configurations.
First, set up the server; when you have the server running, configure the clients.
1. Introduction
1
2. Server (Windows)
There is no special rules when configuring the server. Just install the printer driver in the Windows server,
test it to verify that the printer is running properly, and share the printer.
2. Server (Windows)
2
3. Client (Linux)
The client configuration is similar to Linux to Linux printing.
3.1. Standard lpr
The simplest way to do it is to add an entry to
/etc/printcap
. As a quick example, the entry for a
generic matrix printer would be:
# EPSON LX300
epson:\
:sd=/var/spool/lpd/epson:\
:mx#0:\
:sh:\
:if=/var/spool/lpd/epson/filter:\
:lp=/dev/null:
Make sure you are using the correct filter, or the right
generic one.
Be sure you have created the directory
/var/spool/lpd/epson
, and the users you wish to use the
printer have the right access to this.
For example, assume the Windows print server is named meriadoc, with an IP address of
192.168.1.49
,
and the printer is shared from Windows as epsonLX.
So, you have to configure
/var/spool/lpd/epson/.config
like this:
share='\\meriadoc\epsonLX'
hostip=192.168.1.49
Where:
·
share
='\\
windows−print−server−name
\
print−share−name
'
·
hostip
=
windows−print−server−IP
Once your
/etc/printcap
is configured, you have to enable the print share:
[localhost]$
lpc up epson
[localhost]$
lpc enable epson
If everything is ok, you can send jobs to the queue:
[localhost]$
lpr −Pepson
file
3. Client (Linux)
3
Plik z chomika:
megaskrypty
Inne pliki z tego folderu:
3-Button-Mouse(1).pdf
(58 KB)
XWindow-Overview-HOWTO(1).pdf
(30 KB)
Xterm-Title(1).pdf
(39 KB)
Xterminals(1).pdf
(30 KB)
Xinerama-HOWTO(1).pdf
(33 KB)
Inne foldery tego chomika:
Programowanie
Zgłoś jeśli
naruszono regulamin