Diferencia entre revisiones de «CUPS»

De gacq wiki
Saltar a: navegación, buscar
(Nueva página: = Basic cupsys configuration for Debian Etch = == Server == apt-get install cupsys cupsys-client cupsys-driver-gimpprint defoma fontconfig foomatic-db foomatic-filters libcupsimage2 ...)
 
 
(No se muestran 8 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
  
 
;/etc/cups/cupsd.conf
 
;/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:
 
Change the line:
 
  Listen localhost:631
 
  Listen localhost:631
Línea 9: Línea 15:
 
  Listen *:631
 
  Listen *:631
  
and and below any:
+
and below any:
 
  Allow localhost
 
  Allow localhost
to:
+
add:
 
  Allow 192.168.1.*
 
  Allow 192.168.1.*
  
Línea 19: Línea 25:
 
and add the printer from:
 
and add the printer from:
 
  http://cupsys-server:631/
 
  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 =
 +
*http://www.cups.org/doc-1.1/sam.html
 +
*http://www.debianhelp.co.uk/printing.htm
 +
*http://www.debiantutorials.org/content/view/110/228/
 +
*http://www.debiantutorials.org/content/view/20/1/
 +
*http://www.debianadmin.com/setup-cups-common-unix-printing-system-server-and-client-in-debian.html
 +
*http://www.howtoforge.com/ubuntu-gutsy-samba-domaincontroller-p2

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