Netgear R7800 and USB-printer

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
dreamtale.kun
DD-WRT Novice


Joined: 31 Aug 2017
Posts: 7

PostPosted: Tue Sep 05, 2017 9:12    Post subject: Netgear R7800 and USB-printer Reply with quote
Okay, So I didn't get any help in this router's thread, so maybe here anyone can help me!

I have R7800 with Firmware: DD-WRT v3.0-r32802M kongat (07/24/17) and a printer connected via USB (HP p1102). So, I've tried almost everything to make it work (all the guides I could find online) but to no avail. Basically I try to print a document, but nothing happens, it just shows in printer queue like "printing" and after a while I got printing error like Windows couldn't print this document (pretty same thing on Linux and MacOS btw). I've managed to install some additional software to the router, and magically lsusb command says that my printer is connected! At this point I have no clue what to do next... Maybe this firmware doesn't support printing at all?

Any help would be appreciated!
Sponsor
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 619
Location: Canada

PostPosted: Tue Sep 05, 2017 23:46    Post subject: Entware 3X Reply with quote
Get Entware 3X.

Then you need several packages, all installed on a USB stick or harddrive attached to the router.

Cups
hplip
possibly other packages as well.

See my post here: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=1054370

_________________
Do Not Use the Router Database, it is old and outdated.
DD-WRT Beta ftp: ftp://ftp.dd-wrt.com/betas/
Read the build threads here on the forum and take a peek at the svn timeline: http://svn.dd-wrt.com/timeline
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one, I am trying to update them.

Atheros:
TP-Link Archer C7 v2 x2 - WDS AP, WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - WDS Station
Linksys WRT400N - WDS Station
D-Link 615 C1 x 4 - WDS Station
D-Link 615 E3 x 2 - WDS Station
D-Link 825 B1 - WDS Station
D-Link 862L A1 - WDS Station (Entware 3X)
Netgear WNDR3700v2 - WDS Station
TP-Link 1043nd v1, inactive, unstable hardware

Broadcom / ARM
Asus N66U - Gateway, DHCP, QoS
Netgear r6300 v1 - Client Bridge
Linksys E2500 - Client Bridge
Linksys EA2700 - Client Bridge
Linksys 160N v3 x2 - not used
Netgear WNDR3700v3 (Entware-3X) - Client Bridge
dreamtale.kun
DD-WRT Novice


Joined: 31 Aug 2017
Posts: 7

PostPosted: Fri Sep 08, 2017 18:22    Post subject: Reply with quote
Okay, I've done this, but now I get the following:
Code:
root@Netgear:~# cupsctl
cupsctl: Unable to connect to server: Bad file descriptor

And I'm still stuck.
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 619
Location: Canada

PostPosted: Fri Sep 08, 2017 18:30    Post subject: Cups config Reply with quote
See these links on how to configure Cups:

https://wiki.openwrt.org/doc/howto/cups.server

_________________
Do Not Use the Router Database, it is old and outdated.
DD-WRT Beta ftp: ftp://ftp.dd-wrt.com/betas/
Read the build threads here on the forum and take a peek at the svn timeline: http://svn.dd-wrt.com/timeline
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one, I am trying to update them.

Atheros:
TP-Link Archer C7 v2 x2 - WDS AP, WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - WDS Station
Linksys WRT400N - WDS Station
D-Link 615 C1 x 4 - WDS Station
D-Link 615 E3 x 2 - WDS Station
D-Link 825 B1 - WDS Station
D-Link 862L A1 - WDS Station (Entware 3X)
Netgear WNDR3700v2 - WDS Station
TP-Link 1043nd v1, inactive, unstable hardware

Broadcom / ARM
Asus N66U - Gateway, DHCP, QoS
Netgear r6300 v1 - Client Bridge
Linksys E2500 - Client Bridge
Linksys EA2700 - Client Bridge
Linksys 160N v3 x2 - not used
Netgear WNDR3700v3 (Entware-3X) - Client Bridge
dreamtale.kun
DD-WRT Novice


Joined: 31 Aug 2017
Posts: 7

PostPosted: Fri Sep 08, 2017 19:12    Post subject: Reply with quote
Well... I guess I did everything according to this link, but I get:
Code:
root@Netgear:~# . /opt/etc/init.d/S60cupsd start
 Starting cupsd...              done.
[7]   Done(2)                    ${PREARGS} ${PROC} ${ARGS} 1>/dev/null 2>&1
root@Netgear:~# . /opt/etc/init.d/S60cupsd check
 Checking cupsd...              dead.

No /opt/etc/init.d/cupsd for me though, but I have /opt/etc/init.d/S60cupsd.
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 619
Location: Canada

PostPosted: Fri Sep 08, 2017 21:10    Post subject: Just basic printing capability Reply with quote
If you just need basic printing capability and not spooling or anything fancy, then dd-wrt does have a print daemon built in.

Follow the instructions here: https://wiki.openwrt.org/doc/howto/p910nd.server

Except for the opkg stuff, in dd-wrt, just enable USB printer support and you should be good to go.

_________________
Do Not Use the Router Database, it is old and outdated.
DD-WRT Beta ftp: ftp://ftp.dd-wrt.com/betas/
Read the build threads here on the forum and take a peek at the svn timeline: http://svn.dd-wrt.com/timeline
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one, I am trying to update them.

Atheros:
TP-Link Archer C7 v2 x2 - WDS AP, WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - WDS Station
Linksys WRT400N - WDS Station
D-Link 615 C1 x 4 - WDS Station
D-Link 615 E3 x 2 - WDS Station
D-Link 825 B1 - WDS Station
D-Link 862L A1 - WDS Station (Entware 3X)
Netgear WNDR3700v2 - WDS Station
TP-Link 1043nd v1, inactive, unstable hardware

Broadcom / ARM
Asus N66U - Gateway, DHCP, QoS
Netgear r6300 v1 - Client Bridge
Linksys E2500 - Client Bridge
Linksys EA2700 - Client Bridge
Linksys 160N v3 x2 - not used
Netgear WNDR3700v3 (Entware-3X) - Client Bridge
dreamtale.kun
DD-WRT Novice


Joined: 31 Aug 2017
Posts: 7

PostPosted: Sat Sep 09, 2017 4:45    Post subject: Re: Just basic printing capability Reply with quote
ian5142 wrote:
If you just need basic printing capability and not spooling or anything fancy, then dd-wrt does have a print daemon built in.

Follow the instructions here: https://wiki.openwrt.org/doc/howto/p910nd.server

Except for the opkg stuff, in dd-wrt, just enable USB printer support and you should be good to go.

As I said in my first post, I've followed the basic guides, but it doesn't work. Though my opkg can't find these packages: kmod-usb-printer, kmod-lp. p910nd installed.

Code:
root@Netgear:~# lsusb
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 008: ID 03f0:002a Hewlett-Packard LaserJet P1102
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0951:1607 Kingston Technology DataTraveler 100
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code:
root@Netgear:~# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:3240            0.0.0.0:*               LISTEN
tcp        6      0 0.0.0.0:9100            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN
tcp        1      0 192.168.1.1:9100        192.168.1.104:50046     CLOSE_WAIT
tcp    45777      0 192.168.1.1:9100        192.168.1.104:50078     CLOSE_WAIT
tcp        0    549 192.168.1.1:23          192.168.1.101:55551     ESTABLISHED
netstat: /proc/net/tcp6: No such file or directory
udp        0      0 0.0.0.0:53              0.0.0.0:*
udp        0      0 0.0.0.0:67              0.0.0.0:*
netstat: /proc/net/udp6: No such file or directory
raw   180864      0 0.0.0.0:2               0.0.0.0:*               2
raw        0      0 0.0.0.0:2               0.0.0.0:*               2
raw        0      0 0.0.0.0:255             0.0.0.0:*               255
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ]         DGRAM                      3207 /var/run/hostapd/ath0
unix  2      [ ]         DGRAM                      3263 /var/run/hostapd/ath1
unix  2      [ ]         DGRAM                      2353
unix  2      [ ]         DGRAM                      3684
unix  2      [ ]         DGRAM                      2761
unix  2      [ ]         DGRAM                      4217
unix  2      [ ]         DGRAM                     50585
unix  2      [ ]         DGRAM                      4496
unix  2      [ ]         DGRAM                    487720
unix  2      [ ]         DGRAM                     10787
unix  2      [ ]         DGRAM                      6281
dreamtale.kun
DD-WRT Novice


Joined: 31 Aug 2017
Posts: 7

PostPosted: Tue Sep 12, 2017 18:21    Post subject: Reply with quote
Well, I can't find kmod-usb-printer for my device. Is there any workaround?
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 619
Location: Canada

PostPosted: Tue Sep 12, 2017 18:46    Post subject: kmod-usb-printer Reply with quote
You shouldn't need kmod-usb-printer because it is already bundled with dd-wrt. Just enable usb printer support in the GUI. Click apply, should be good to go on that part.

As I alluded to, it is not a straightforward process, I spent almost a month working on it off and on, and I got it working sort of. I had a cups server set up hosting a Brother 7060D printer, but I could never get the scan function to work. I could print fine but not scan.

_________________
Do Not Use the Router Database, it is old and outdated.
DD-WRT Beta ftp: ftp://ftp.dd-wrt.com/betas/
Read the build threads here on the forum and take a peek at the svn timeline: http://svn.dd-wrt.com/timeline
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one, I am trying to update them.

Atheros:
TP-Link Archer C7 v2 x2 - WDS AP, WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - WDS Station
Linksys WRT400N - WDS Station
D-Link 615 C1 x 4 - WDS Station
D-Link 615 E3 x 2 - WDS Station
D-Link 825 B1 - WDS Station
D-Link 862L A1 - WDS Station (Entware 3X)
Netgear WNDR3700v2 - WDS Station
TP-Link 1043nd v1, inactive, unstable hardware

Broadcom / ARM
Asus N66U - Gateway, DHCP, QoS
Netgear r6300 v1 - Client Bridge
Linksys E2500 - Client Bridge
Linksys EA2700 - Client Bridge
Linksys 160N v3 x2 - not used
Netgear WNDR3700v3 (Entware-3X) - Client Bridge
dreamtale.kun
DD-WRT Novice


Joined: 31 Aug 2017
Posts: 7

PostPosted: Wed Sep 13, 2017 5:35    Post subject: Re: kmod-usb-printer Reply with quote
ian5142 wrote:
You shouldn't need kmod-usb-printer because it is already bundled with dd-wrt. Just enable usb printer support in the GUI. Click apply, should be good to go on that part.

I did that. It doesn't work.

I enabled printing in GUI, I connected my printer to USB, I did set it up on Windows (IP and port 9100 etc.), but it just doesn't print...
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum