14 April 2008

Seting ADSL Fedora Core 8

Seting ADSL Fedora Core 8

Teman kita telah buat artikel tentang seting ADSL pada Fedora Core 8
Silahkan dibaca disini

Thanks to Mas Gunawan

03 April 2008

Masalah CUPS Printer yang Sering Mati

Saya agak bingung memberi judul artikel kali ini, jadi mohon maaf bila judulnya kurang enak dibaca.
Sungguh sangat menjengkelkan bila printer linux kita sering mati dan harus dihidupkan lagi lewat cups web administrator atau cups text command line. Hal ini terjadi karena adanya kesalahan pada waktu komunikasi antara CUPS dan printer, efeknya CUPS akan menonaktifkan print queue sehingga untuk bisa memakai printer print queue harus diaktifkan lagi.
Masalah ini bisa diatasi dengan cara menginstall BEH (Backend Error Handler), script BEH akan mengatasi kesalahan konfigurasi CUPS backend.

Instalasi
  1. Download script beh disini
  2. Copykan di CUPS Backend direktori /usr/lib/cups/backend/ (apada mesin 32 bit) atau /usr/lib64/cups/backend (pada mesin 64 bit)
  3. Buat executable, chmod 755 beh
  4. Restart CUPS, killall -HUP cupsd atau /etc/init.d/cups restart
  5. Jika berhasil akan terlihat baris beh waktu dijalankan perintah lpinfo -v
Agar print queue memakai beh, jalankan:

lpadmin -p {queue name} -E -v beh:/{dd}/{att}/{delay}/{originaluri}
queue name :
The name of your print queue
dd :
Don't Disable, if "1", beh always exits with zero status, so the queue gets never disabled when the original backend exits with an error. "0" carries the error status of the last call of the backend (after retries) on to CUPS, so the queue usually gets disabled.
att:
Attempts, number of attempts to recall the backend in case of an error. "0" means infinite retries. In this case
gets meaningless.
delay:
Delay between two attempts to call the beckend, to be given in seconds and as an integer number. Meaningless if is one.
originaluri:
The original URI, which your queue had before (use "lpstat -v" to get your queue's URI shown).
Example URIs:

beh:/1/3/5/socket://printer:9100
On the network printer with host name "printer" it is tried to access 3 times with 5 second delays between the attempts. If the job still fails, the queue is not disabled (and the job discarded).

beh:/0/10/60/socket://printer:9100
Retry 10 times in one minute intervals, disable the queue when still not succeeding.

beh:/1/0/60/usb://Brother/HL-5040%20series


Sumber: http://www.linux-foundation.org/en/OpenPrinting/Database/BackendErrorHandler