printer sharing berbasis linux debian v5 (#3)

12

Click here to load reader

Upload: lamed

Post on 14-May-2015

761 views

Category:

Technology


1 download

DESCRIPTION

Printer sharing berbasis linux debian v5 (#3)

TRANSCRIPT

Page 1: Printer sharing berbasis linux debian v5 (#3)

[email protected]

PRINTER SHARING BERBASIS LINUX DEBIAN V5.0 (#3)

Page 2: Printer sharing berbasis linux debian v5 (#3)

[email protected]

Printer Sharing

• Printer Sharing adalah berbagi printer atau satu printer digunakan oleh beberapa komputer sekaligus. Syaratnya, komputer-komputer tersebut harus dalam satu jaringan yang sama.

• Agar kita bisa melakukan Printer Sharing setidaknya dibutuhkan dua komputer yang terhubung dengan sebuah jaringan LAN yang sama, satu komputer terhubung langsung dengan printer (Komputer Server) dan satu komputer lagi yang tidak ada printernya (Komputer Client). Secara umum Ada 2 Tahap proses yang harus dilakukan untuk bisa Printer Sharing :1. Pengaturan pada Komputer Server2. Pengaturan pada Komputer Client

Page 3: Printer sharing berbasis linux debian v5 (#3)

[email protected]

• # apt-get install cupsys cupsys-driver-gutenprint foomatic-db-gutenprint foomatic-filters fontconfig libtiff4 libfreetype6

• # /etc/init.d/networking restart• Backup dulu file /etc/cups/cupsd.conf kemudian edit

filenya, anda bisa mengcopy scriptnya dibawah ini :• # nano /etc/cups/cups.conf

Konfigurasi Printer Sharing

Page 4: Printer sharing berbasis linux debian v5 (#3)

[email protected]

• # EncryptionEncryption IfRequested# Show general information in error_log.LogLevel infoSystemGroup lpadmin# Allow remote accessPort 631Listen 192.168.0.1Listen /var/run/cups/cups.sock# Show shared printers on the local network.Browsing OnBrowseOrder allow,denyBrowseAllow @LOCAL

• # Restrict access to the server…<location />Order allow,denyAllow localhostAllow 192.168.0.*</location>

• # Restrict access to the admin pages…<Location /admin>Encryption IfRequestedOrder allow,denyAllow localhostAllow 192.168.0.*</Location>

Page 5: Printer sharing berbasis linux debian v5 (#3)

[email protected]

• <Location /admin/conf>AuthType BasicRequire user @SYSTEMOrder allow,denyAllow localhostAllow 192.168.0.*</Location># Set the default printer/job policies…<Policy default># Job-related operations must be done by the owner or an administrator…<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>Require user @OWNER @SYSTEMOrder deny,allow</Limit>

Page 6: Printer sharing berbasis linux debian v5 (#3)

[email protected]

• # All administration operations require an administrator to authenticate…<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>AuthType BasicRequire user @SYSTEMOrder deny,allow</Limit>

• # Only the owner or an administrator can cancel or authenticate a job…<Limit Cancel-Job CUPS-Authenticate-Job>Require user @OWNER @SYSTEMOrder deny,allow</Limit>

• <Limit All>Order deny,allow</Limit></Policy>##

Page 7: Printer sharing berbasis linux debian v5 (#3)

[email protected]

• Simpan konfigurasi diatas, kemudian restart cups.

• # /etc/init.d/cups restart• Sekarang anda coba dari browser anda dengan

mengetik http://192.168.0.1:631 . Jika proses installasi berhasil maka anda tinggal install driver printer melalui menu yang ada.

Page 8: Printer sharing berbasis linux debian v5 (#3)

[email protected]

• # apt-get install cupsys cupsys-client• Setelah itu anda buat file /etc/cups/client.conf dan isi

dengan code berikut

# ServernameServerName 192.168.0.1# EncryptionEncryption IfRequested

• Restart cups• # /etc/init.d/cups restart

Install CUPS Client

Page 9: Printer sharing berbasis linux debian v5 (#3)

[email protected]

Install Samba

• # apt-get install samba samba-client• Edit file smb.conf• # nano /etc/samba/smb.conf• Cari kata Authentication, kemudian dibawahnya ada

kata security = user. Anda ganti security = user menjadi security = share.

• Cari kata cups, kemudian dibawahnya ketikan perintah berikut ini :

printing = cupsprintcap name = cups

Page 10: Printer sharing berbasis linux debian v5 (#3)

[email protected]

• Cari kata /var/spool/samba , kemudian masukan perintah seperti dibawah ini :

[printers]comment = All Printersbrowseable = yespath = /var/spool/sambause client driver = yesprintable = yesguest ok = yesread only = yescreate mask = 0700public = yes

Page 11: Printer sharing berbasis linux debian v5 (#3)

[email protected]

Installasi Printer di Client

• Untuk client windows 7 bisa anda jalankan Add a printer, kemudian pilih opsi add a network, next, secara otomatis windows akan mensearch device printer, pilih printer dan next, kemudian anda ikuti seperti install printer biasanya.