Skip to main content

[OpenWRT] p910nd Printer Server + Canon iP2770

Sepanjang liburan kemarin punya rencana ingin mencoba menggunakan router yang sudah saya flash dengan OpenWRT yang saya beri nama WhiteBox untuk membuat sebuah printer server, dimana dapat memudahkan saya untuk melakukan printing dari jarak jauh tanpa saya harus bawa - bawa laptop atau harus disalin ke removable media terlebih dahulu.

Sore hari tadi baru ada waktu untuk mencoba hal tersebut, walaupun sedikit malas namun karena "selo" tetep saya coba saja, entah apa hasilnya. Langkah umumnya dapat anda lihat disini p910nd Printer. Karena saya memang lagi malas, saya hanya melakukan langkah - langkah garis besarnya saja.

Install USB driver

opkg update
opkg install kmod-usb-printer

Lakukan pengecekan dengan mengetikan "dmesg" atau "logread" cek apakah usb sudah terdeteksi. "lsusb -v" untuk lebih lengkapnya.

Lakukan pemasangan p910nd
opkg update
opkg install p910nd
Saya lebih suka konfigurasi lewat LuCI sih, lebih mudah saja konfigurasi lewat GUI. Jika anda menginginkanya juga, silahkan pasang "luci-app-p910nd" pada LuCI anda. Setelah terpasang, menu printer akan muncul pada tab Services. Jika belum keluar silahkan restart router.

Coba anda cek pada folder /dev apakah ada port lp0 terbuka? Jika tidak, cek apakah ada folder usb dan didalamnya terdapat lp0? Jika ya, maka pada menu LuCI silahkan targetkan interface ke /dev/usb/lp0. Bidirectional Mode pada Printer Canon iP2770 akan membuat printer macet, silahkan hilangkan centangnya.

Konfigurasi pada Server sudah selesai. Sekarang waktunya konfigurasi pada Client.

Perhatikan langkah berikut yang saya ambil dari situs resmi OpenWRT :


Windows 7
  1. Click on the Start button and select Devices and Printers.
  2. Click on "Add a printer."
  3. In the Add Printer dialog select "Add a local printer."
  4. Select "Create a new port:" and set the type of port to "Standard TCP/IP Port". Then click Next.
  5. In the "Hostname or IP address:" field enter the IP address of your router.
  6. The "Port name:" field may be set to something you like.
  7. De-select "Query the printer and automatically select the driver to use," then click next.
  8. The computer will then attempt to detect the TCP/IP port. This will take some time and will most likely fail. Failing this step is not a problem.
  9. On the "Additional port information required" page set the device type to Custom and click "Settings…"
  10. Verify the Printer Name or IP Address. The Protocol should be set to "Raw" and the Raw Settings Port Number should be 9100. Leave LPR Settings and SNMP Status Enabled empty or de-selected. Then click OK.
  11. Select the correct printer driver and click next. You may need to install drivers if they are not already available.
  12. Finish the remaining printer installation wizard steps as needed. The printer should now be installed and working!

Silahkan dicek dengan mencoba print halaman test page default printer. Kemudian ketik "logread" pada routernya untuk melihat responya. Gambar dibawah ini adalah hasil yang saya dapat ketika berhasil melakukan print. 


Jika anda sudah berhasil ngeprint, silahkan coba beberapa kali print terlebih dahulu untuk mengetahui apakah masih ada error atau bug - bug yang muncul. Finally, inilah curhatan dan hasil karya tadi sore :)

WhiteBox (top-left corner) + Canon iP2770

Comments

  1. gan printer ane kok gak ngerespon ??

    ReplyDelete
    Replies
    1. Udah install driver belum di pc?
      Isi logread sama dmesg apa?

      Delete
  2. maaf mas mau tanya, mas install openwrtnya di router tl-mr3020 kah? terus openwrtnya yang seri attitude adjustment atau barrier breaker ya?

    ReplyDelete
    Replies
    1. Iya di MR3020. Saya pakai yang attitude adjustment gan

      Delete
    2. attitude adjusment yang versi mana mas? mas punya saya kok gak bisa opkg update dan install yg lain-lain ya?

      Delete
    3. Download yang latest di https://wiki.openwrt.org/toh/tp-link/tl-mr3020

      Delete
  3. Routernya pake jaringan wifi atau tidak gan kalau ngeprint

    ReplyDelete
    Replies
    1. Yang jelas harus se jaringan gan, bisa kabel bisa wifi

      Delete

Post a Comment

Popular posts from this blog

HackRF Mayhem Failed to Update - M0 Guru Meditation Hard

I was on Mayhem Portapack v2.0.1 and want to upgrade to the latest stable release v2.1.0. The update went okay using the web upgrade https://hackrf.app/. But then I saw the latest nightly update and want to try it, since it has many new tools that are not yet included in the stable release. But then the update failed :( Disclaimer: I didn't take any photos of the errors, since I was focused on googling the solution. So the error was " Bad Firmware or Failed W/R error" during the upgrade process, and it was stuck. So I had to restart the device, and it was booting to the Mayhem menu, but on the bottom left, which should show the current firmware version, it was showing a  "FLASH ERR"  message. I think I should go back to the stable release, but I can't. Every time I want to flash the stable release version, the portapack will shows an error M0 Guru Meditation - Hard Fault.  There's an issue that was closed on the Mayhem GIT repo that has the same issue a...

Macintosh Classic II Brightness Issue

The Problem My Macintosh Classic II suffers from an issue where the display CRT goes dim after a few minutes on a cold boot. Every time it happens, I need to crank up the cut-off and brightness  pot behind the machine to show the image. The Analyze At first, I thought it must be the brightness issue, so I searched for the Macintosh Classic analog board schematic to check the brightness line. I found the schematic from Bomarc, and the schematic is suitable with my board, since there are two analog board versions.  I started to suspect the resistors and potentiometer on the brightness line. This Macintosh version has software-controlled brightness, so the analog board will get a 22.25 kHz square wave PBM signal from the logic board to control the brightness. I checked and replaced some resistors and cleaned the potentiometer, but nothing seems to work. The signal is there, and no sign of degradation that makes the screen dim after a few minutes.  Brightness Line So I suspec...

Fiberhome HG6145D2 Superadmin Login

Maybe some of you are using In**ehome ISP as your home internet and found out that using the provided login has minimal options to configure the router: user  user1234 I know it’s not the admin login, and that must be a full-control user account that can be used to control this router fully. So I searched and found some posts on the net and most of them are telling me to use: admin %0|F?H@f!berhO3e I tested it and it doesn’t work! But there’s more to it, you need to reset the router first by pressing the reset button on the side of the router. Then after resetting, you can log in using the admin superaccount! But keep in mind, never use the user log in again, because it will lock the super admin login until you reset the router again. Cheers 🍺