Print Server
-
@Zheng-Han Thanks I managed to get it to work! Awesome. Below will detail the steps I took.
-
Change root Password:
passwd -
Enable Default LEDE repo:
vi /etc/opkg/distfeeds.conf
src/gz reboot_core http://downloads.lede-project.org/snapshots/targets/ramips/mt7688/packages
src/gz reboot_base http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base
src/gz reboot_packages http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages -
Update USB-Essentials
opkg update
opkg install kmod-usb2 --force-depends -
Enable TCP Port 9100
vi /etc/config/firewall
#Allow attached network printer
config rule
option src 'apcli0'
option proto 'tcp'
option dest_port '9100'
option target 'ACCEPT' -
Update USB Printer Driver
opkg [code]upgrade kmod-usb-printer --force-depends -
Plug In Printer and Check if is Connected
Look for /dev/usb/lp0 -
Install p910nd daemon
opkg install p910nd -
Configure daemon
vi /etc/config/p910nd
config p910nd
option device /dev/usb/lp0
option port 0
option bidirectional 1
option enabled 1 -
Restart daemon
/etc/init.d/p910nd restart
-
-
Would be nice if this Tutorial finds the way in to the manual or wiki.
@Andy-Liu if you have github you could propose as pull request.
-
@Andy-Liu was it an O, O2 or 2+?
-
This post is deleted!
-
Can you print from an iPhone or Android using this setup?
-
@Luciano-S I don't have a github or anything. Maybe you can help set it up?
@Costas-Costas I was using a O2 but i dont see why it will not work for the rest of the series.
@James-Harding I didn't really meant it for printing from a phone. But it is a good idea. Will look into it when I have more time. Work for me this month is really pilling up.
-
@Andy-Liu said in Print Server:
@Luciano-S I don't have a github or anything. Maybe you can help set it up?
Sign up by Github:
https://help.github.com/articles/signing-up-for-a-new-github-account/if you are completely new to git .. read the presentation mentioned in the link below:
http://product.hubspot.com/blog/git-and-github-tutorial-for-beginnersHow to create the first Repository:
https://help.github.com/articles/create-a-repo/And how to format with Markdown:
https://community.onion.io/topic/707/markdown-how-to-start-with-itIf you went thru everything you are ready to contribute on github
-
@Luciano-S. okayz! will look into it when I am free. Thanks!
-
Hey there,
thanks for the good explanation on how to run p910nd on an Omega!
I have the Omega2+, and I am trying to get my printer (Samsung ml-2850d) running with p910nd. I have a USB cable soldered directly to the Omega2 as power supply with a 3.3V voltage regulator inbetween. Then I connect the printer via USB directly to the D- and D+ pins of the Omega2 board (pin out).
The problem is, that I do not see my printer under /dev/usb/. I am not sure whether the printer needs the gnd and v+ connection from the board to be recognized or if it's not supported?Cheers
Nils
-
@Nils-Flaschel I am not sure as I have not done with physical wiring to the board. I am using a dock currently. Will be looking to remove the dock when I have time to figure everything out. You could try providing a 5V to V+ and ground to V-.
-
Hi!
When I try to
opkg install p910nd
it says :
Unknown package 'p910nd'. Collected errors: * opkg_install_cmd: Cannot install package p910nd.
Why is this like that. I would like to build a print server with my Omega 2. My Router runs DD-WRT
-
@Reinhold-Lehnhardt , check this out:
https://community.onion.io/topic/1356/some-reminders-hints-about-using-opkg
-
Hello,
i tried to get the printer server online but I always get the error: usblp module was not found while installing the kmod-usb2.
Has the kernel been changed? I thought it should have the usb printer support activated...(I'm using a Omega2 for this project)
-
Any way we can get it to work with other printers too? or maybe compile cups for the omega?
-
@Andy-Liu said in Print Server:
opkg install kmod-usb2 --force-depends
Hi, I tried to follow your steps but getting stuck at the installation of kmod-usb2 and kmod-usb-printer. I am using Omega2+.
The same error message:
pkg_run_script: package "kmod-usb-printer" postinst script returned status 255.
opkg_configure: kmod-usb-printer.postinst returned 255.Any suggestions?
-
/dev/usb/lp0 won't show up for me.
kmod-usb2 and kmod-usb-printer are installed
Unplugging/plugging printer cable yields:
[ 1441.830049] usb 2-1: USB disconnect, device number 4 [ 1446.755533] usb 2-1: new full-speed USB device number 5 using ohci-platform
Was working until I rebooted the device. Any clues?
EDIT: OK, this was incredibly nasty, but this is how you fix it:
wget these two:
http://repo.onion.io/omega2/packages/core/kmod-usb2_4.4.46-1_mipsel_24kc.ipk http://repo.onion.io/omega2/packages/core/kmod-usb-printer_4.4.46-1_mipsel_24kc.ipk
Then opkg install both of them by filename, using the --force-depends option
It seems the LEDE repo feeds, while an interesting idea, might be too much of a moving target. Even the .ipks downloaded from the links above are not an exact match for the kernel, but on my system close enough to make things work.