Sabtu, 28 November 2015

Konfigurasi Printer Server di Debian 7 (Wheezy)

Printer

Untuk Meilhat Nama Printer yang dishare
smbclient –L muna

Cara untuk menshare printer
lpadmin –p PrinterH –v smb://192.168.1.20/terserah –P /home/muna/share/canon.ppd
cupsenable PrinterH
accept PrinterH
lpadmin –d PrinterH

Kita  menggunakan aplikasi tambahan SAMBA (Printer sharing) dan CupSYS (Printer configuration).  CUPSYS sendiri singkatan dari Common UNIX Printing System, yang dibundle dengan driver-driver umum segala jenis Printer. Berjalan pada protokol HTTPS, melalui port 631.

apt-get install cupsys

nano /etc/cups/cupsd.conf
#. . .
# Only listen for connections from the local machine.
Listen localhost:631
Listen 192.168.1.26                                                                                                      #Tambakan script ini
Listen /var/run/cups/cups.sock




# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
Allow 192.168.*.*                                                                                                         #Agar cupsys dapat diakases dari lokal
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow localhost
Allow 192.168.*.*                                                                                                         #Agar cupsys dapat diakases dari lokal
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow localhost
Allow 192.168.*.*                                                                                                         #Agar cupsys dapat diakases dari lokal
</Location>
#. . .


/etc/init.d/cups restart


v  Konfigurasi SAMBA
nano  /etc/samba/smb.conf
####### Authentication #######
security = share                                                                                                          
#. . .
########## Printing ##########
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes                                                                                     #Hilangkan tanda pagar
# lpr(ng) printing. You may wish to override the location of the
# printcap file
; printing = bsd
; printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups                                                                                                            
printcap name = cups                                                                                             
#. . .
======================= Share Definitions =======================
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
printable = yes
guest ok = yes
writable = yes
create mode = 0700
# Windows clients look for this share name as a source of downloadable printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes
#. . .

/etc/init.d/samba restart


v  Konfigurasi Printer CUPSYS

0 komentar:

Posting Komentar

 

CopyRight (c) Hafizatul Muna 2015 - Ilmu Komputer