Difference between revisions of "OpenWRT: Printer Server"

From OnnoWiki
Jump to navigation Jump to search
(Created page with " opkg update opkg install kmod-usb-printer opkg install p910nd luci-app-p910nd")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
ssh -o HostKeyAlgorithms=+ssh-rsa \
 +
    -o PubkeyAcceptedAlgorithms=+ssh-rsa \
 +
    root@192.168.1.1
 +
  
 
  opkg update
 
  opkg update
 
  opkg install kmod-usb-printer
 
  opkg install kmod-usb-printer
 
  opkg install p910nd luci-app-p910nd
 
  opkg install p910nd luci-app-p910nd
 +
 +
 +
Cek
 +
 +
ls /dev/usb/lp*
 +
 +
 +
==rc.local==
 +
 +
Edit /etc/rc.local tambah sebelum exit 0
 +
 +
/etc/init.d/p910nd restart
 +
 +
==Allow Firewall==
 +
 +
uci add firewall rule
 +
uci set firewall.@rule[-1].name='Allow-Printer-9100'
 +
uci set firewall.@rule[-1].src='wan'
 +
uci set firewall.@rule[-1].src_ip='192.168.68.0/22'
 +
uci set firewall.@rule[-1].dest='lan'
 +
uci set firewall.@rule[-1].dest_ip='192.168.1.1'
 +
uci set firewall.@rule[-1].proto='tcp'
 +
uci set firewall.@rule[-1].dest_port='9100'
 +
uci set firewall.@rule[-1].target='ACCEPT'
 +
 +
uci commit firewall
 +
/etc/init.d/firewall restart
 +
 +
 +
 +
==Linux & Windows==
 +
 +
Pastikan Settingan di arahkan ke
 +
 +
ip-address-openwrt:9100
 +
 +
 +
==Android==
 +
 +
* Install Let's Print Droid
 +
* Manual Printer Config
 +
** Printer Name > Nama Printer
 +
** Protocol > Raw - Jet Direct
 +
** IP Address/Computer Name > IP address openwrt
 +
** Save Changes
 +
 +
Untuk print file
 +
* Select File
 +
* Kirim ke Printer

Latest revision as of 21:00, 1 March 2026

ssh -o HostKeyAlgorithms=+ssh-rsa \
    -o PubkeyAcceptedAlgorithms=+ssh-rsa \
    root@192.168.1.1


opkg update
opkg install kmod-usb-printer
opkg install p910nd luci-app-p910nd


Cek

ls /dev/usb/lp*


rc.local

Edit /etc/rc.local tambah sebelum exit 0

/etc/init.d/p910nd restart

Allow Firewall

uci add firewall rule
uci set firewall.@rule[-1].name='Allow-Printer-9100'
uci set firewall.@rule[-1].src='wan'
uci set firewall.@rule[-1].src_ip='192.168.68.0/22'
uci set firewall.@rule[-1].dest='lan'
uci set firewall.@rule[-1].dest_ip='192.168.1.1'
uci set firewall.@rule[-1].proto='tcp'
uci set firewall.@rule[-1].dest_port='9100'
uci set firewall.@rule[-1].target='ACCEPT'

uci commit firewall
/etc/init.d/firewall restart


Linux & Windows

Pastikan Settingan di arahkan ke

ip-address-openwrt:9100


Android

  • Install Let's Print Droid
  • Manual Printer Config
    • Printer Name > Nama Printer
    • Protocol > Raw - Jet Direct
    • IP Address/Computer Name > IP address openwrt
    • Save Changes

Untuk print file

  • Select File
  • Kirim ke Printer