Printer sharing berbasis linux debian v5 (#3)

1,443 views
1,208 views

Published on

Printer sharing berbasis linux debian v5 (#3)

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,443
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
91
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Printer sharing berbasis linux debian v5 (#3)

  1. 1. rabbit@lamed.web.id
  2. 2. 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 Server 2. Pengaturan pada Komputer Client rabbit@lamed.web.id
  3. 3. Konfigurasi Printer Sharing • # 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 rabbit@lamed.web.id
  4. 4. • • • # Encryption Encryption IfRequested# Show general information in error_log. LogLevel info SystemGroup lpadmin # Allow remote access Port 631 Listen 192.168.0.1 Listen /var/run/cups/cups.sock# Show shared printers on the local network. Browsing On BrowseOrder allow,deny BrowseAllow @LOCAL # Restrict access to the server… <location /> Order allow,deny Allow localhost Allow 192.168.0.* </location> # Restrict access to the admin pages… <Location /admin> Encryption IfRequested Order allow,deny Allow localhost Allow 192.168.0.* </Location> rabbit@lamed.web.id
  5. 5. • <Location /admin/conf> AuthType Basic Require user @SYSTEM Order allow,deny Allow localhost Allow 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 PurgeJobs 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 @SYSTEM Order deny,allow </Limit> rabbit@lamed.web.id
  6. 6. • • • # All administration operations require an administrator to authenticate… <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer DisablePrinter 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-AddClass CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default> AuthType Basic Require user @SYSTEM Order deny,allow </Limit> # Only the owner or an administrator can cancel or authenticate a job… <Limit Cancel-Job CUPS-Authenticate-Job> Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit All> Order deny,allow </Limit> </Policy> # # rabbit@lamed.web.id
  7. 7. • 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. rabbit@lamed.web.id
  8. 8. Install CUPS Client • # apt-get install cupsys cupsys-client • Setelah itu anda buat file /etc/cups/client.conf dan isi dengan code berikut # Servername ServerName 192.168.0.1 # Encryption Encryption IfRequested • Restart cups • # /etc/init.d/cups restart rabbit@lamed.web.id
  9. 9. 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 = cups printcap name = cups rabbit@lamed.web.id
  10. 10. • Cari kata /var/spool/samba , kemudian masukan perintah seperti dibawah ini : [printers] comment = All Printers browseable = yes path = /var/spool/samba use client driver = yes printable = yes guest ok = yes read only = yes create mask = 0700 public = yes rabbit@lamed.web.id
  11. 11. 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. rabbit@lamed.web.id
  12. 12. rabbit@lamed.web.id

×