Diferencia entre revisiones de «CUPS»

De gacq wiki
Saltar a: navegación, buscar
(Server)
 
(No se muestran 4 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
= Basic cupsys configuration for Debian Etch =
+
= Basic Client/Server CUPS configuration with auto discovery for Debian Etch =
 
== Server ==
 
== Server ==
 
  apt-get install cupsys cupsys-client cupsys-driver-gimpprint defoma fontconfig foomatic-db foomatic-filters libcupsimage2 libexpat1 libfontconfig1 libfreetype6 libjpeg62 libpaper1 libpng12-0 libslp1 libtiff4 patch perl perl-modules ttf-bitstream-vera ucf
 
  apt-get install cupsys cupsys-client cupsys-driver-gimpprint defoma fontconfig foomatic-db foomatic-filters libcupsimage2 libexpat1 libfontconfig1 libfreetype6 libjpeg62 libpaper1 libpng12-0 libslp1 libtiff4 patch perl perl-modules ttf-bitstream-vera ucf
Línea 6: Línea 6:
 
To send broadcast about printer existence to local network add:
 
To send broadcast about printer existence to local network add:
 
  BrowseAddress 192.168.1.255:631
 
  BrowseAddress 192.168.1.255:631
 +
 +
and add a client side resolvable server name like:
 +
ServerName yourhost.yourdomain
  
 
Change the line:
 
Change the line:
Línea 26: Línea 29:
 
  apt-get install cupsys cupsys-client cupsys-bsd gtklp gnome-cups-manager
 
  apt-get install cupsys cupsys-client cupsys-bsd gtklp gnome-cups-manager
  
To add remote printer browse: https://localhost:631/
+
On the server subnet printers should be discovered automatically because of cups server broadcasts.
or go to gnome-cups-manager
+
If your server is in another subnet you can add the following directive to force the client to ask the server about available printers adding to client /etc/cups/cupsd.conf the following line:
 +
 
 +
BrowsePoll cups_server_hostname:631
 +
 
 +
If you want to add printer manually go to: https://localhost:631/ or to gnome-cups-manager.
  
 
= References =
 
= References =
 +
*http://www.cups.org/doc-1.1/sam.html
 
*http://www.debianhelp.co.uk/printing.htm
 
*http://www.debianhelp.co.uk/printing.htm
 
*http://www.debiantutorials.org/content/view/110/228/
 
*http://www.debiantutorials.org/content/view/110/228/

Revisión actual del 16:50 8 jun 2008

Basic Client/Server CUPS configuration with auto discovery for Debian Etch

Server

apt-get install cupsys cupsys-client cupsys-driver-gimpprint defoma fontconfig foomatic-db foomatic-filters libcupsimage2 libexpat1 libfontconfig1 libfreetype6 libjpeg62 libpaper1 libpng12-0 libslp1 libtiff4 patch perl perl-modules ttf-bitstream-vera ucf
/etc/cups/cupsd.conf

To send broadcast about printer existence to local network add:

BrowseAddress 192.168.1.255:631

and add a client side resolvable server name like:

ServerName yourhost.yourdomain 

Change the line:

Listen localhost:631

to:

Listen *:631

and below any:

Allow localhost

add:

Allow 192.168.1.*

then:

/etc/init.d/cupsys restart

and add the printer from:

http://cupsys-server:631/

Client

apt-get install cupsys cupsys-client cupsys-bsd gtklp gnome-cups-manager

On the server subnet printers should be discovered automatically because of cups server broadcasts. If your server is in another subnet you can add the following directive to force the client to ask the server about available printers adding to client /etc/cups/cupsd.conf the following line:

BrowsePoll cups_server_hostname:631

If you want to add printer manually go to: https://localhost:631/ or to gnome-cups-manager.

References