Warning: include(templates/header.php) [function.include]: failed to open stream: No such file or directory in /home/cyberkios/domains/cyberkios.com/public_html/wp-content/themes/inove/header.php on line 62

Warning: include() [function.include]: Failed opening 'templates/header.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/cyberkios/domains/cyberkios.com/public_html/wp-content/themes/inove/header.php on line 62
Home > Jaringan Linux > Sharing printer ubuntu / debian menggunakan cups

Sharing printer ubuntu / debian menggunakan cups

Hari rabu kebetulan saya lagi ada tugas kerja ke Malang. Eh, ternyta pas nyampe di malang printer disini semua pada gak bisa linux. Daripada disini nganggur mending utak-atik komputer aja, biar semua orang senang kalo printer-printer pada konek:D Di kantor Malang ada 2 printer, HP Laser 5 dan Epson LX-800 (printer kuno waktu jaman saya SMP), OS campur2 ada yang menggunakan Ubuntu fiesty 7, Debian 4, Xubuntu 7, Windows 98.

Dalam hal ini server yang saya gunakan menggunakan debian 4, IP komputer server adalah 10.10.10.11. Sebelum kita mulai, sebaiknya IP Addres yang digunakan untuk server adalah IP Static jangan DHCP. Kita login dulu sebagai root, ikuti langkah berikut :

Setting print server
Pertama-tama kita install cups server terlebih dahulu.

Code :
apt-get install cupsys cupsys-driver-gutenprint foomatic-db-gutenprint foomatic-filters fontconfig libtiff4 libfreetype6

Setelah proses instalasi complete, kita restart network kita.

Code :
/etc/init.d/networking restart

Configurasi cups
Backup dulu file /etc/cups/cupsd.conf kemudian edit dengan editor kesanyangan anda dan jangan lupa login sebagai root. Anda bisa copy paste code cupsd.conf yang ada pada komputer saya.
Code :

# Encryption
Encryption IfRequested# Show general information in error_log.
LogLevel info
SystemGroup lpadmin
# Allow remote access
Port 631
Listen 10.10.10.11
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 10.10.10.*
</location>

# Restrict access to the admin pages…
<Location /admin>
Encryption IfRequested
Order allow,deny
Allow localhost
Allow 10.10.10.*
</Location>

<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
Allow 10.10.10.*
</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 @SYSTEM
Order deny,allow
</Limit>

# 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 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>
#
#

Simpan semua configurasi diats, kemudian restart CUPS.
Code:
/etc/init.d/cupsys restart

Kunjungi website baru saya http://cyberkios.com visit my new website

Sekarang anda coba dari browser anda dengan mengetik http://10.10.10.11:631 . Jika proses instalasi berhasil maka anda tinggal install driver printer melalui menu yang ada.

Install cups client

Proses instalasi disisi client sangat gampang anda cukup install cupsclient.

Code :
# apt-get install cupsys cupsys-client

Setelah itu anda buat file /etc/cups/client.conf dan isi dengan code berikut.

Code:
# Servername
ServerName 10.10.10.11
# Encryption
Encryption IfRequested

Simpan file kemudian restart cups.

Code :
/etc/init.d/cupsys restart

Sekarang server cups anda sudah berjalan.

Instalasi printer di client
Untuk client Windows XP, jalankan Add Printer Wizard, pilih opsi Network Printer, Next, pilih opsi “Connect to a printer on the internet bla..bla..”, isi kolom URL dengan (sesuai dengan server cups):

http://10.10.10.11:631/printers/HP_LaserJet_5MP_LPT_parport0_HPLIP

Kemudian anda ikuti seperti install printer biasanya. Untuk windows 98 anda harus menginstall software ipp client for Windows 98 yang bisa di download di http://www.its.caltech.edu/~fong/math/pc/down/WPNPINS.EXE

Sedangkan untuk client Linux, caranya hampir sama dengan Windows. Pada New Printer wizard pilih opsi Network Printer >> CUPS, kemudian isi kolom “URI” dengan (sesuai server anda):

http://10.10.10.11:631/printers/HP_LaserJet_5MP_LPT_parport0_HPLIP

Cut sampai disini, nagntuk…….
Mau istirahat, sama ke belakang dulu….

Kritik dan saran kirim ke lkmn27@yahoo.com

Bookmark and Share

Categories: Jaringan Linux Tags:

Warning: include(templates/comments.php) [function.include]: failed to open stream: No such file or directory in /home/cyberkios/domains/cyberkios.com/public_html/wp-content/themes/inove/single.php on line 58

Warning: include() [function.include]: Failed opening 'templates/comments.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/cyberkios/domains/cyberkios.com/public_html/wp-content/themes/inove/single.php on line 58