Jump to content

GSTN - Cups documentation: Difference between revisions

From TetraWiki
Praveen (talk | contribs)
No edit summary
Praveen (talk | contribs)
No edit summary
Line 1: Line 1:
[[category:GSTN]]
[[category:GSTN]]




Line 47: Line 48:




[[Image:]]
[[Image:GSTNCUPS]]




Line 57: Line 58:




[[Image:]]
[[Image:GSTNCUPS]]




Line 158: Line 159:




[[Image:]]
[[Image:GSTNCUPS]]


4. Restart cups service.
4. Restart cups service.
Line 165: Line 166:




<div style="color:#00000a;">[[Image:]]</div>
<div style="color:#00000a;">[[Image:GSTNCUPS]]</div>




Line 184: Line 185:
From here we can add and manage printers. to add a new printer click '''''“Administration”'''''.
From here we can add and manage printers. to add a new printer click '''''“Administration”'''''.


[[Image:]]
[[Image:GSTNCUPS]]


<div style="color:#00000a;">2. Click and “'''''Add Printer”''''' and type root username and password of the cups server:</div>
<div style="color:#00000a;">2. Click and “'''''Add Printer”''''' and type root username and password of the cups server:</div>




[[Image:]]
[[Image:GSTNCUPS]]




Line 197: Line 198:




[[Image:]]
[[Image:GSTNCUPS]]


<div style="color:#00000a;">4. In connection tab type the '''''ipp://172.18.5.67:631/ipp''''' (172.18.5.67 is printer IP) and click ''Continue''.</div>
<div style="color:#00000a;">4. In connection tab type the '''''ipp://172.18.5.67:631/ipp''''' (172.18.5.67 is printer IP) and click ''Continue''.</div>




[[Image:]]
[[Image:GSTNCUPS]]




Line 209: Line 210:
<div style="color:#00000a;">5. Fill the required information and click on “'''''Share This Printer''''' “ and click on “'''''Continue'''''”.</div>
<div style="color:#00000a;">5. Fill the required information and click on “'''''Share This Printer''''' “ and click on “'''''Continue'''''”.</div>


[[Image:]]
[[Image:GSTNCUPS]]


<div style="color:#00000a;">6. Select the '''“''Generic''”''' print driver and click on '''''“continue”'''''.</div>
<div style="color:#00000a;">6. Select the '''“''Generic''”''' print driver and click on '''''“continue”'''''.</div>


[[Image:]]
[[Image:GSTNCUPS]]




Line 226: Line 227:
Now printer configuration has been done.
Now printer configuration has been done.


[[Image:]]
[[Image:GSTNCUPS]]


== Testing printer (Print test page). ==
== Testing printer (Print test page). ==
Line 232: Line 233:
<div style="color:#00000a;">1. Click on ''“'''Printers'''” ''tab''. ''Here we can see the installed printers click on printer which we want to test.</div>
<div style="color:#00000a;">1. Click on ''“'''Printers'''” ''tab''. ''Here we can see the installed printers click on printer which we want to test.</div>


[[Image:]]
[[Image:GSTNCUPS]]




<div style="color:#00000a;">2. Click on''''' “Maintenance” '''''and select “'''''Print Test Page'''''”.</div>
<div style="color:#00000a;">2. Click on''''' “Maintenance” '''''and select “'''''Print Test Page'''''”.</div>


[[Image:]]
[[Image:GSTNCUPS]]




Line 243: Line 244:




[[Image:]]
[[Image:GSTNCUPS]]




Line 262: Line 263:
''<nowiki># vi /usr/local/samba/etc/smb.conf</nowiki>''
''<nowiki># vi /usr/local/samba/etc/smb.conf</nowiki>''


[[Image:]]
[[Image:GSTNCUPS]]




Line 288: Line 289:




[[Image:]]
[[Image:GSTNCUPS]]




Line 310: Line 311:




[[Image:]]
[[Image:GSTNCUPS]]




Line 342: Line 343:




[[Image:]]
[[Image:GSTNCUPS]]




Line 361: Line 362:
<div style="color:#00000a;">''<nowiki># systemctl stop samba4.service</nowiki>'' </div>
<div style="color:#00000a;">''<nowiki># systemctl stop samba4.service</nowiki>'' </div>


[[Image:]]
[[Image:GSTNCUPS]]




Line 369: Line 370:




[[Image:]]
[[Image:GSTNCUPS]]

Revision as of 04:19, 1 February 2019



CUPS (Common Unix Printing System)

Installation and configuration for CUPS

Date : 25.08.2016

Document Version : 1.0




Table of Contents:Configure CUPS Printing3

:CUPS Web interface (Adding printers).6

:Testing printer (Print test page).9

:CUPS Integration with Samba.11

== Configure CUPS Printing ==

1. Login to server, using root user and install CUPS.

# yum install cups*


File:GSTNCUPS


2. Edit cupsd.conf file.

# vi /etc/cups/cupsd.conf



File:GSTNCUPS




3. Make below entries and save file.


MaxLogSize 1m

LogLevel debug

# Allow remote access

Listen localhost:631

Listen 172.18.101.14:631

Listen 2404:a800:1000:d:7800::e:631

Listen /var/run/cups/cups.sock

Browsing On

BrowseLocalProtocols dnssd

DefaultAuthType Basic

WebInterface Yes

<Location />

# Allow remote administration...
Order allow,deny
Allow localhost
Allow 172.18.5.0/24

</Location>

<Location /admin>

# Allow remote administration...
Order allow,deny
Allow localhost
Allow 172.18.5.0/24

</Location>

<Location /admin/conf>

AuthType Default
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow localhost
Allow 172.18.5.0/24

















File:GSTNCUPS

4. Restart cups service.

# systemctl restart cups.service



== CUPS Web interface (Adding printers). ==

1. Now open the web browser and open link https://172.18.101.14:631.

From here we can add and manage printers. to add a new printer click “Administration”.

File:GSTNCUPS

2. Click and “Add Printer” and type root username and password of the cups server:


File:GSTNCUPS


3. Select AppSocket/HP JetDirect (here i have Hp Laserjet Pro m202dw printers) and click Continue.


File:GSTNCUPS

4. In connection tab type the ipp://172.18.5.67:631/ipp (172.18.5.67 is printer IP) and click Continue.


File:GSTNCUPS



5. Fill the required information and click on “Share This Printer “ and click on “Continue”.

File:GSTNCUPS

6. Select the Generic print driver and click on “continue”.

File:GSTNCUPS





7. Select the model Generic PCL Laser Printer(en)and click on “Add Printer”.

Now printer configuration has been done.

File:GSTNCUPS

== Testing printer (Print test page). ==

1. Click on Printerstab. Here we can see the installed printers click on printer which we want to test.

File:GSTNCUPS


2. Click on “Maintenance” and select “Print Test Page”.

File:GSTNCUPS


3. Page will say that “Test page sent:


File:GSTNCUPS






== CUPS Integration with Samba. ==

To integrate cups with samba we can follow below steps.
1. Open “/usr/local/samba/etc/smb.conf” file.

# vi /usr/local/samba/etc/smb.conf

File:GSTNCUPS









2. Make below entry in smb.conf file in Global section.
rpc_server:spoolss = external
rpc_daemon:spoolssd = fork
spoolss: architecture = Windows x64


File:GSTNCUPS








3. Create the Samba spool directory and set permission.

# mkdir -p /var/spool/samba4/ ; chmod 1777 /var/spool/samba4/


File:GSTNCUPS


4. Open again /usr/local/samba/etc/smb.conf file and make below entries.


[ProLaserJet]

comment = ProLaserJet
path = /var/spool/samba4/
browseable = yes
printable = yes
printer name = ProLaserJet


[ProLaserJet2]

comment = ProLaserJet2
path = /var/spool/samba4/
browseable = yes
printable = yes
printer name = ProLaserJet2


File:GSTNCUPS


5. Restart samba service.
# systemctl stop samba4.service

File:GSTNCUPS



# systemctl start samba4.service


File:GSTNCUPS