Sharing Printer Di Debian 7.8 Menggunakan Samba & Cups
1. Yang pertama kita lakukan ialah menginstall CUPS terlebih dahulu. File tersebut perlu kita edit, agar aplikasi CUPS dapat kita akses menggunakan komputer lain melalui browser "(Ip_server:631)".
# apt-get install cups
1. Yang pertama kita lakukan ialah menginstall CUPS terlebih dahulu. File tersebut perlu kita edit, agar aplikasi CUPS dapat kita akses menggunakan komputer lain melalui browser "(Ip_server:631)".
# apt-get install cups
2. Kemudian kita masuk ke direktory nano /etc/cups/cupsd.conf
Dan rubah beberapa script konfigurasi seperti di bawah ini.
Dan rubah beberapa script konfigurasi seperti di bawah ini.
# Only listen for connections from the local machine.
Listen localhost:631
Listen 192.168.2.8 #Tambakan script ini
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow 192.168.*.* #Agar cups dapat diakases dari lokal
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow 192.168.*.* #Agar cups dapat diakases dari lokal
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow 192.168.*.* #Agar cups dapat diakases dari lokal
</Location>
#. . .
Listen localhost:631
Listen 192.168.2.8 #Tambakan script ini
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow 192.168.*.* #Agar cups dapat diakases dari lokal
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow 192.168.*.* #Agar cups dapat diakases dari lokal
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow 192.168.*.* #Agar cups dapat diakases dari lokal
</Location>
#. . .
Setelah selesai mengkonfigurasi, jangan lupa untuk merestart CUPS.
# service cups restart atau # /etc/init.d/cups restart
# service cups restart atau # /etc/init.d/cups restart
3. Setelah CUPS, kita beralih ke Samba. Instal Samba terlebih dahulu.
# apt-get instal samba
# apt-get instal samba
4. Lalu buka file /etc/samba/smb.conf, dan edit scriptnya
==== Global Setting =====
workgroup = WORKGROUP (sesuaikan dengan workgroup anda)
wins support = yes (agar bisa digunakan windows)
===Authentication ====
security = share --- hilangkan tanda # di depannya.
====Share Definition ====
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes
==== Global Setting =====
workgroup = WORKGROUP (sesuaikan dengan workgroup anda)
wins support = yes (agar bisa digunakan windows)
===Authentication ====
security = share --- hilangkan tanda # di depannya.
====Share Definition ====
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes
5. Jangan lupa restart sambanya
# service samba restart
6. Sekarang install printernya misalkan canon iP2770, kemudian install drivernya silakan baca tutorialnya disini
SEMOGA BEMANFAAT