Welcome! Log In Create A New Profile

Advanced

Do any of you actually drive a LAN printer w Pogoplug?

Posted by JoeyPogoPlugE02 
Do any of you actually drive a LAN printer w Pogoplug?
February 27, 2017 10:51PM
I'm starting to be convinced it's worth seeing if a small device can interface with my old printer and print more. So it would have to run on Debian, whatever we're using.
But, say the Pogo Pro runs USB 3.0 successfully, plug one of the faster USB 3.0 flash drives and use it as a swap for speed, and I think that ought to handle simple print jobs.

*The E02 too, the idea is whatever Pogoplug is on all the time, that can interface with the printer.

=========
-=Cloud 9=-
* I'm (as doctors say) experiencing slight discomfort LOL
I'll be back within a few days and better prepared anyway, so it's win/win..
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 12:01AM
If it is an old printer with USB only (no ethernet) then here what I did long ago: install cups. cups is as old as Unix.

apt-get install cups foomatic-filters cups-driver-gutenprint ghostscript-cups

The combination of Samba, avahi, cups will make the printer available to virtually all types of computers in the LAN, including your phones or tablets.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 05:27AM
bodhi Wrote:
-------------------------------------------------------
> If it is an old printer with USB only (no ethernet) then here what I did long ago: install cups. cups is as old as Unix.
>
I thought it's lpr.

>
> apt-get install cups foomatic-filters cups-driver-gutenprint ghostscript-cups
>
>
> The combination of Samba, avahi, cups will make the printer available to virtually all types of computers in the LAN, including your phones or tablet s.
>
I have never done this, but thought only cups itself will do.
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 03:04PM
habibie,

> I have never done this, but thought only cups itse
> lf will do.

It will. But it is nicer to make sure the printer will advertise itself through out the LAN.

This is from my old notes years ago, so things might have been obsolete. I don't have a USB-only printer anymore so I don't run cups now.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 02/28/2017 03:07PM by bodhi.
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 03:11PM
OK and thank you Bodhi.
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 05:49PM
I've been thinking about this very subject for some time now. Just never got around to it.

Keeping a USB printer working has proven the most challenging aspect of running Arch for me. I wouldn't know printing wasn't working until I actually needed it! The problem was I'd rarely need to print documents. When I did, it seemed more often than not, I'd end up spending hours messing around with cups, etc just to get it working again. Gave up on it long ago and started using a local printing shop.

A dedicated, static OS install to run cups and whatever else for network printing would be great. Have a second, unused Pogo v3. Could rsync the Debian install on the one in use, to a USB. Have a perfectly good unused USB printer collecting dust.

I'll definitely be keeping my eye on this to see if things progress. Being back to work has seriously cut into my free time -aka computer play time, but I'll try to set aside enough for this and also contribute if I can.

--------------------------------------------------------------
Blog: www.jeffstory.org
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 06:10PM
Hi JeffS,

Congrats on your successul recovery :)

> A dedicated, static OS install to run cups and wha
> tever else for network printing would be great. Ha
> ve a second, unused Pogo v3. Could rsync the Debia
> n install on the one in use, to a USB. Have a perf
> ectly good unused USB printer collecting dust.
>

I used my USB printer (an old HP Laserjet) for a while with this set up. If there are interests to do this, then I'll dig up my old notes further to see what else I did.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 06:54PM
Thanks bodhi,

I'll give it a shot and work with you with testing, feedback, etc. if you have time. Do you currently have a printer and if so, whats your setup?


I hate to admit it, but printers on Windows were much easier to setup and more reliable than on Linux, for me anyway. With that said, it's all about Linux driver quality (or lack of) and I believe API stability (remaining the same) enters into it.

--------------------------------------------------------------
Blog: www.jeffstory.org
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 08:44PM
fingers crossed...

=========
-=Cloud 9=-
* I'm (as doctors say) experiencing slight discomfort LOL
I'll be back within a few days and better prepared anyway, so it's win/win..



Edited 1 time(s). Last edit at 02/28/2017 08:50PM by JoeyPogoPlugE02.
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 09:51PM
Got the apt-get to install and reboot, but I don't know if it's running on the Pogoplug or what. The printer (some HP thing) is plugged-into the E02.

I'm not sure how many watts the printer takes up idle, but I'd be okay turning the printer on & off manually when there's a print job.

Attached is a screenshot of Windows asking where to add a printer. I was just seeing if there's an easy way. Seems that most of the devices modified (such as a Pogoplug running Debian) used to print when it was whatever CloudEngines gave it to do so in the earlier inclination.

=========
-=Cloud 9=-
* I'm (as doctors say) experiencing slight discomfort LOL
I'll be back within a few days and better prepared anyway, so it's win/win..



Edited 1 time(s). Last edit at 02/28/2017 11:57PM by JoeyPogoPlugE02.
Attachments:
open | download - printername.JPG (39.7 KB)
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 10:06PM
JeffS Wrote:
-------------------------------------------------------
> Thanks bodhi,
>
> I'll give it a shot and work with you with testing
> , feedback, etc. if you have time. Do you currentl
> y have a printer and if so, whats your setup?
>

I've posted a response but somehow it got lost! so here it is again.

I'm using a Brother laser printer which has ethernet built-in. It is connected to a switch, and the only setup needed was assignign it a static IP.

Ironically, the older the printer/PC/gadget is, the better chance you will find available Linux driver for it!

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 10:07PM
Re: Do any of you actually drive a LAN printer w Pogoplug?
February 28, 2017 11:59PM
bodhi Wrote:
-------------------------------------------------------
> Joey,
>
> Post the output of dmesg, the printer should show
> up in there.


Last login: Tue Feb 28 19:41:56 2017 from 192.168.178.103
root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.17.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #4 PREEMPT Wed Oct 22 00:55:17 PDT 2014
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: CloudEngines Pogoplug E02
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c07e3078, node_mem_map cfdfa000
[    0.000000]   DMA zone: 512 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext3 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 245436K/262144K available (5553K kernel code, 358K rwdata, 1892K rodata, 262K init, 302K bss, 16708K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc074d83c   (7447 kB)
[    0.000000]       .init : 0xc074e000 - 0xc078f90c   ( 263 kB)
[    0.000000]       .data : 0xc0790000 - 0xc07e998c   ( 359 kB)
[    0.000000]        .bss : 0xc07e998c - 0xc08352dc   ( 303 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000355] Console: colour dummy device 80x30
[    0.000385] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090114] pid_max: default: 32768 minimum: 301
[    0.090234] Security Framework initialized
[    0.090304] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090326] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091045] Initializing cgroup subsys devices
[    0.091079] Initializing cgroup subsys freezer
[    0.091102] Initializing cgroup subsys net_cls
[    0.091123] Initializing cgroup subsys blkio
[    0.091216] CPU: Testing write buffer coherency: ok
[    0.091679] Setting up static identity map for 0x542138 - 0x542190
[    0.091964] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.094320] devtmpfs: initialized
[    0.096708] prandom: seed boundary self test passed
[    0.100820] prandom: 100 self tests passed
[    0.100852] pinctrl core: initialized pinctrl subsystem
[    0.101370] regulator-dummy: no parameters
[    0.105378] NET: Registered protocol family 16
[    0.105844] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.106989] cpuidle: using governor ladder
[    0.107014] cpuidle: using governor menu
[    0.107420] Feroceon L2: Enabling L2
[    0.107466] Feroceon L2: Cache support initialised.
[    0.107850] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.112114] No ATAGs?
[    0.141741] vgaarb: loaded
[    0.142131] usbcore: registered new interface driver usbfs
[    0.142213] usbcore: registered new interface driver hub
[    0.142342] usbcore: registered new device driver usb
[    0.143468] Switched to clocksource orion_clocksource
[    0.182591] NET: Registered protocol family 2
[    0.183625] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.183664] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.183696] TCP: Hash tables configured (established 2048 bind 2048)
[    0.183767] TCP: reno registered
[    0.183782] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.183804] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.184009] NET: Registered protocol family 1
[    0.184356] RPC: Registered named UNIX socket transport module.
[    0.184369] RPC: Registered udp transport module.
[    0.184376] RPC: Registered tcp transport module.
[    0.184384] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.184407] PCI: CLS 0 bytes, default 32
[    0.184692] Unpacking initramfs...
[    0.695921] Freeing initrd memory: 5964K (c1101000 - c16d4000)
[    0.696062] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.697402] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.697436] Initialise system trusted keyring
[    0.697541] audit: initializing netlink subsys (disabled)
[    0.697601] audit: type=2000 audit(0.690:1): initialized
[    0.698424] zpool: loaded
[    0.698441] zbud: loaded
[    0.698732] VFS: Disk quotas dquot_6.5.2
[    0.698784] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.699331] NFS: Registering the id_resolver key type
[    0.699373] Key type id_resolver registered
[    0.699383] Key type id_legacy registered
[    0.699411] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.699427] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.699610] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.699937] msgmni has been set to 491
[    0.700102] Key type big_key registered
[    0.702479] alg: No test for stdrng (krng)
[    0.702591] bounce: pool size: 64 pages
[    0.702654] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.702671] io scheduler noop registered
[    0.702684] io scheduler deadline registered
[    0.702721] io scheduler cfq registered (default)
[    0.704141] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.704776] irq: Cannot allocate irq_descs @ IRQ32, assuming pre-allocated
[    0.705190] irq: Cannot allocate irq_descs @ IRQ64, assuming pre-allocated
[    0.705735] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.743548] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.783540] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.783732] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.823537] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.863535] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.863987] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.865346] console [ttyS0] disabled
[    0.865410] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.458797] console [ttyS0] enabled
[    1.464024] nand: Could not find valid ONFI parameter page; aborting
[    1.470438] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.476845] nand: Hynix NAND 128MiB 3,3V 8-bit
[    1.481310] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    1.487020] Scanning device for bad blocks
[    1.569112] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.575425] Creating 4 MTD partitions on "orion_nand":
[    1.580592] 0x000000000000-0x000000100000 : "u-boot"
[    1.586041] 0x000000100000-0x000000500000 : "uImage"
[    1.591455] 0x000000500000-0x000002500000 : "rootfs"
[    1.596906] 0x000002500000-0x000008000000 : "data"
[    1.603098] libphy: Fixed MDIO Bus: probed
[    1.607547] libphy: orion_mdio_bus: probed
[    1.619062] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.704126] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:b6:a0
[    2.713099] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.719696] ehci-pci: EHCI PCI platform driver
[    2.724262] ehci-orion: EHCI orion driver
[    2.728454] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.734017] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.741866] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.763507] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.769747] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.776600] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.783872] usb usb1: Product: EHCI Host Controller
[    2.788770] usb usb1: Manufacturer: Linux 3.17.0-kirkwood-tld-1 ehci_hcd
[    2.795521] usb usb1: SerialNumber: f1050000.ehci
[    2.800979] hub 1-0:1.0: USB hub found
[    2.804838] hub 1-0:1.0: 1 port detected
[    2.809691] mousedev: PS/2 mouse device common for all mice
[    3.123530] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    3.275120] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    3.281866] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.289071] usb 1-1: Product: USB2.0 Hub
[    3.293965] hub 1-1:1.0: USB hub found
[    3.298120] hub 1-1:1.0: 4 ports detected
[    3.583872] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    3.698989] usb 1-1.1: New USB device found, idVendor=154b, idProduct=00ad
[    3.705945] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.713314] usb 1-1.1: Product: USB 3.0 FD
[    3.717453] usb 1-1.1: Manufacturer: PNY Technologies
[    3.722525] usb 1-1.1: SerialNumber: AA5C062160013704
[    3.803873] usb 1-1.4: new full-speed USB device number 4 using orion-ehci
[    3.823498] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.829156] i2c /dev entries driver
[    3.833975] hidraw: raw HID events driver (C) Jiri Kosina
[    3.839754] drop_monitor: Initializing network drop monitor service
[    3.846331] TCP: cubic registered
[    3.849670] NET: Registered protocol family 17
[    3.854292] Key type dns_resolver registered
[    3.859315] Loading compiled-in X.509 certificates
[    3.864191] registered taskstats version 1
[    3.869274] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    3.876683] PM: Hibernation image not present or could not be loaded.
[    3.877712] Freeing unused kernel memory: 260K (c074e000 - c078f000)
[    3.926894] usb 1-1.4: New USB device found, idVendor=03f0, idProduct=6204
[    3.937245] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.950535] usb 1-1.4: Product: deskjet 5100
[    3.959459] usb 1-1.4: Manufacturer: hp
[    3.963349] usb 1-1.4: SerialNumber: MY3B54P1T87A
[    3.994431] udevd[55]: starting version 175
[    4.411307] SCSI subsystem initialized
[    4.449333] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    4.500865] scsi host0: usb-storage 1-1.1:1.0
[    4.512159] usbcore: registered new interface driver usb-storage
[    4.542375] usbcore: registered new interface driver uas
[    5.690981] scsi 0:0:0:0: Direct-Access     PNY      USB 3.0 FD       1100 PQ: 0 ANSI: 6
[    5.731935] sd 0:0:0:0: [sda] 66945024 512-byte logical blocks: (34.2 GB/31.9 GiB)
[    5.741036] sd 0:0:0:0: [sda] Write Protect is off
[    5.745919] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    5.746774] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.763273]  sda: sda1
[    5.769918] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    5.787997] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   14.635481] EXT3-fs (sda1): mounted filesystem with ordered data mode
[   14.644194] kjournald starting.  Commit interval 5 seconds
[   16.013867] udevd[276]: starting version 175
[   16.693228] orion_wdt: Initial timeout 21 sec
[   16.787927] usblp 1-1.4:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x6204
[   16.894665] usbcore: registered new interface driver usblp
[   16.901387] USB Power: 5000 mV
[   17.077515] random: nonblocking pool is initialized
[   18.143089] EXT3-fs (sda1): using internal journal
[   20.511448] NET: Registered protocol family 10
[   22.751238] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.441233] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   25.451186] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   27.981456] Adding 1048572k swap on /extraswap.  Priority:-1 extents:1054 across:3871124k FS
root@debian:~#

=========
-=Cloud 9=-
* I'm (as doctors say) experiencing slight discomfort LOL
I'll be back within a few days and better prepared anyway, so it's win/win..
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 01, 2017 12:04AM
bodhi Wrote:
-------------------------------------------------------

> Ironically, the older the printer/PC/gadget is, th
> e better chance you will find available Linux driv
> er for it!

Also old printers use $2.50 ink from the thrift stores; perfect quality still and worth hoarding.

=========
-=Cloud 9=-
* I'm (as doctors say) experiencing slight discomfort LOL
I'll be back within a few days and better prepared anyway, so it's win/win..
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 01, 2017 03:10AM
[ 3.926894] usb 1-1.4: New USB device found, idVendor=03f0, idProduct=6204
[ 3.937245] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.950535] usb 1-1.4: Product: deskjet 5100
[ 3.959459] usb 1-1.4: Manufacturer: hp
[ 3.963349] usb 1-1.4: SerialNumber: MY3B54P1T87A


[ 16.787927] usblp 1-1.4:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x6204
[ 16.894665] usbcore: registered new interface driver usblp
[ 16.901387] USB Power: 5000 mV

So do you see any new device in the network?

And I forgot, please also post the syslog. avahi should show some activities when it advertised the printer to the network.

logread


Quote

Also old printers use $2.50 ink from the thrift stores; perfect quality still and worth hoarding.

Amazing, I remember scrouging the thrift stores in college :) fun time when you are poor but have a purpose ("to dance beneath the diamond sky, with one hand waving free" :)).

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 03/01/2017 03:17AM by bodhi.
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 01, 2017 03:34AM
Joey,

>
> Attached is a screenshot of Windows asking where t
> o add a printer. I was just seeing if there's an e
> asy way.

If avahi advertised your printer correctly, then it should have a name and showup on the list. So you should choose "browse" to see if it appears in the network.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 01, 2017 09:32AM
JoeyPogoPlugE02 Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
>
> > Ironically, the older the printer/PC/gadget is, the better chance you will find available Linux driver for it!
>
> Also old printers use $2.50 ink from the thrift stores; perfect quality still and worth hoarding.
>
My 1st experience with a Brother bubble jet printer went disastrous where the head was clogged with the ink after a few days pause of 1st usage. Since then, I never look back to any inkjet printer.
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 01, 2017 02:23PM
bodhi Wrote:
-------------------------------------------------------

> If avahi advertised your printer correctly, then i
> t should have a name and showup on the list. So yo
> u should choose "browse" to see if it appears in
> the network.

I'll check that next time I've got a minute. For kicks, last night I tried to print from the E02 using RDP and it said error with "no pipes" or something like that.

@ Habibie: Lexmark and HP evolved inkjet pretty well. Refilling them has eluded me. I tried many times, more than two kits now and only made a mess.
But... it wasn't long ago I went to get both ink cartridges replaced, and it was $80 for both, whether at OfficeMax or Wal Mart, you name it. But at Wal Mart there were always printers for $36 including both ink cartridges. And for a time I'd just replace the printer instead of paying so much for ink.

These days I've got many cartridges hoarded and ready to print :-)

=========
-=Cloud 9=-
* I'm (as doctors say) experiencing slight discomfort LOL
I'll be back within a few days and better prepared anyway, so it's win/win..



Edited 1 time(s). Last edit at 03/01/2017 02:59PM by JoeyPogoPlugE02.
[WIP] CUPS How-To
March 01, 2017 05:14PM
This is the instruction based on my very old notes. So please consider it a work-in-progress (WIP) instruction that needs to be verified by trying it out.


=================================

1. Install CUPS

apt-get install cups foomatic-filters cups-driver-gutenprint ghostscript-cups
apt-get install cups-pdf

Also install avahi and samba if it is not already installed.

2. CUPS list of supported printers (this list is old).

BubbleJet 
DeskJet
HP LaserJet Series PCL 6
HP Color LaserJet Series PCL 6
Generic text-only printer
Generic PostScript Printer

3. Change CUPS conf to allow remote admin from other computers

cat /etc/cups/cupsd.conf
Output:
#
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0

# Administrator user group...
SystemGroup sys root

# # Allow remote access
Port 631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Allow remote administration...
<Location />
  Order allow,deny
  Allow @LOCAL
</Location>

# Allow remote administration...
<Location /admin>
  Order allow,deny
  Allow @LOCAL
</Location>

# Allow remote access to the configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow @LOCAL
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
#

4. Use Web interface to create printer

In this example we use the Hp LaserJet 1200. And the Linux host has the IP 192.168.0.11.

- Browse to location https://192.168.0.11:631/admin/
- Confirm Hp LaserJet 1200 is avaialable on CUPS
- Set printer to shared.

5. Check conf file afterward

cat /etc/cups/printers.conf
Output:
# Printer configuration file for CUPS v1.4.4
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HPLaserJet1200>
Info HP LaserJet 1200
Location
MakeModel HP LaserJet 1200 - CUPS+Gutenprint v5.2.6
DeviceURI usb://HP/LaserJet%201200
State Idle
StateTime 1299996412
Type 4116
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-raster 100 rastertogutenprint.5.2
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

6. Check CUPS ppd

ls /etc/cups/ppd/
Output:
HPLaserJet1200.ppd


7. Install client driver

- On Windows PC find printer on Network Places, and install driver for HP Laser Jet 1200
- Printer can be plugged/unplugged since udev manages the hotplug.

DONE.

=================================

There might be more info to add to the above instructions.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 3 time(s). Last edit at 03/01/2017 05:29PM by bodhi.
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 02, 2017 01:39PM
Wow we're close, which one of these should I check at the bottom?

=========
-=Cloud 9=-
* I'm (as doctors say) experiencing slight discomfort LOL
I'll be back within a few days and better prepared anyway, so it's win/win..
Attachments:
open | download - 2017-03-02_153445.jpg (101.9 KB)
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 02, 2017 02:00PM
Joey,

Good progress :)

The first 2 are local printer on the pogoplug. Those should be selected. I don't recognize the bottom ones (I forgot most of what I did for this).

Now try to find this printer on your Windows Network Places, or whatever you use nowadays on Win7 or 10.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 02, 2017 03:00PM
5. Check conf file afterward

root@debian:~# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.5.3
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter hp_deskjet_5100>
UUID urn:uuid:3223e7a2-e7bc-344f-4193-027e64a80383
Info hp deskjet 5100
Location E02
MakeModel HP OfficeJet R60 - CUPS+Gutenprint v5.2.9
DeviceURI usb://hp/deskjet%205100?serial=MY3B54P1T87A
State Idle
StateTime 1488487777
Type 36876
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer PDF>
UUID urn:uuid:809aaff9-5306-312d-7d3a-6320065231e0
Info PDF
MakeModel Generic CUPS-PDF Printer
DeviceURI cups-pdf:/
State Idle
StateTime 1488478865
Type 8450124
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

6. Check CUPS ppd
root@debian:~# ls /etc/cups/ppd/
.  ..  PDF.ppd  hp_deskjet_5100.ppd

I got so far it'll print a test page, but beyond that it won't just print anything I send to it. Glad I jumped straight in and I'll have another look with fresh eyes and brain soon. Great progress! It printed something. And I can access CUPS with my web browser.

Late day update: no I never got further than that, but that's great for now.

@ daviddyer thanks for the RPi advice below - yes there's other devices I'll try, but it makes the most sense to have the Pogoplug I use most often, and I think the trouble I'm having now is fixable if I do more research and try again. This isn't a front burner project so I'll afford the luxury of slacking a bit when I'm out of ideas.

=========
-=Cloud 9=-
* I'm (as doctors say) experiencing slight discomfort LOL
I'll be back within a few days and better prepared anyway, so it's win/win..



Edited 1 time(s). Last edit at 03/02/2017 10:31PM by JoeyPogoPlugE02.
Re: Do any of you actually drive a LAN printer w Pogoplug?
March 02, 2017 10:00PM
I think you can use pi zero +USB hub + USB wireless adaptor. It is much faster than pogo-e02 in making my old HP-1022 airprint capable.
Re: Do any of you actually drive a LAN printer w Pogoplug?
September 03, 2017 02:25AM
Below is what I did (as an edited dump of my terminal transcript) to get my network printer (Brother HL-2170w) added and configured. I used "HP LaserJet Series PCL 4/5" as the "make and model". I am posting this just in case it would help anyone else in the future.

admin@pogoplug:~$ sudo lpinfo -v
network beh
network ipps
network http
network https
network ipp14
network ipp
network socket
network lpd
serial serial:/dev/ttyS0?baud=115200
network lpd://Brother/BINARY_P1
network dnssd://Brother%20HL-2170W%20series._pdl-datastream._tcp.local/

admin@pogoplug:~$ sudo lpinfo --make-and-model "HP LaserJet" -m
drv:///sample.drv/laserjet.ppd HP LaserJet Series PCL 4/5
lsb/usr/cupsfilters/pxlmono.ppd HP LaserJet Series PCL 6 CUPS

admin@pogoplug:~$ sudo lpadmin -p Brother_HL-2170W_series -E -v lpd://Brother/BINARY_P1 -m drv:///sample.drv/laserjet.ppd -L Network
admin@pogoplug:~$ sudo cupsctl WebInterface=yes
admin@pogoplug:~$ lpstat -a
Brother_HL-2170W_series accepting requests since Sat Sep  2 23:54:24 20
admin@pogoplug:~$ lpstat -l -p
printer Brother_HL-2170W_series is idle.  enabled since Sun Sep  3 00:38:03 2017
	Form mounted:
	Content types: any
	Printer types: unknown
	Description: Brother_HL-2170W_series
	Alerts: none
	Location: Network
	Connection: direct
	Interface: /etc/cups/ppd/Brother_HL-2170W_series.ppd
	On fault: no alert
	After fault: continue
	Users allowed:
		(all)
	Forms allowed:
		(none)
	Banner required
	Charset sets:
		(none)
	Default pitch:
	Default page size:
	Default port settings:

admin@pogoplug:~$ lpoptions -d Brother_HL-2170W_series
copies=1 device-uri=lpd://Brother/BINARY_P1 finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 printer-commands=none printer-info=Brother_HL-2170W_series printer-is-accepting-jobs=true printer-is-shared=true printer-location=Network printer-make-and-model='HP LaserJet Series PCL 4/5' printer-state=3 printer-state-change-time=1504424283 printer-state-reasons=none printer-type=12356 printer-uri-supported=ipp://localhost/printers/Brother_HL-2170W_series

admin@pogoplug:~$ sudo lpadmin -p Brother_HL-2170W_series -o PageSize=Letter -o Resolution=300dpi -o Duplex=None -o Option1=False
admin@pogoplug:~$ sudo lpoptions -d Brother_HL-2170W_series -o PageSize=Letter -o Resolution=300dpi -o Duplex=None -o Option1=False
admin@pogoplug:~$ sudo lpoptions -d Brother_HL-2170W_series -l
PageSize/Media Size: *Letter Legal Executive Tabloid A3 A4 A5 B5 EnvISOB5 Env10 EnvC5 EnvDL EnvMonarch
Resolution/Resolution: 150dpi *300dpi 600dpi
InputSlot/Media Source: *Default Tray1 Tray2 Tray3 Tray4 Manual Envelope
Duplex/2-Sided Printing: *None DuplexNoTumble DuplexTumble
Option1/Duplexer: *False True

admin@pogoplug:~$ /sbin/ifconfig | lpr -P Brother_HL-2170W_series

The last command is just to send a test page from CLI. I installed these package in advance, but I think some of these are automatically installed with cups itself:
- cups
- cups-client
- foomatic-filters
- ghostscript-cups
- util-linux
- cups-bsd

These packages that were listed by bhodhi are no longer valid, but I didn't have to do anything about them:
- cups-driver-gutenprint

Also, I didn't install cups-pdf, which seems to be now called printer-driver-cups-pdf.

Now I need to figure out how to get Google Cloud Print to work with this setup.



Edited 1 time(s). Last edit at 09/03/2017 06:12AM by haridsv.
Re: Do any of you actually drive a LAN printer w Pogoplug?
September 03, 2017 03:02AM
@haridsv,

Cool :) it is very useful to have a working example like this. I think there are tons of old USB printers out there still working fine for a lot of people.

Did you change any of the config files that I've posted? If you did, or use different versions, it would be extra helpful to post them. I forgot to add this CUPS subject to the Wiki, so I will do that and include your post as working example.

@Joey,

How is your setup? is it up and running?

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Do any of you actually drive a LAN printer w Pogoplug?
September 03, 2017 04:37AM
bodhi Wrote:
-------------------------------------------------------
> @haridsv,
> Did you change any of the config files that I've p
> osted? If you did, or use different versions, it w
> ould be extra helpful to post them. I forgot to ad
> d this CUPS subject to the Wiki, so I will do tha
> t and include your post as working example.

I didn't change any cups config manually. The first time I setup the printer via cups web interface (for reference) and to access it I just used ssh port forwarding. Also, I don't need to share the printer as it is a network printer already.

I am trying to follow a blog that has steps for configuring google cloud print for raspberry pi and having trouble using systemctl to start up cloudprintd. Your debian installation guide has instructions to setup systemd, so I am wondering if I need to follow them first.
Re: Do any of you actually drive a LAN printer w Pogoplug?
September 03, 2017 04:58AM
haridsv,

You dont need to run systemd to set up nginx as described in that page. Is that what you meant? i.e. start stop nginx?

After you installed nginx, sysvinit should have the init script to start it in /etc/init.d/.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Do any of you actually drive a LAN printer w Pogoplug?
September 03, 2017 05:32AM
bodhi Wrote:
-------------------------------------------------------
> haridsv,
>
> You dont need to run systemd to set up nginx as de
> scribed in that page. Is that what you meant? i.e.
> start stop nginx?
>
> After you installed nginx, sysvinit should have th
> e init script to start it in /etc/init.d/.

I meant running cloudprintd (Google Cloudprint daemon) as systemd service as it comes with only systemd service script, not an init.d script. However, I am reading many negative things about systemd and so decided not to go this route, instead I will just create a simple init.d script.
Re: Do any of you actually drive a LAN printer w Pogoplug?
September 03, 2017 09:56AM
I got Google Cloudprint to work well and I was able to share it with others in my family. My son was able to print from his Android phone, so I am glad I don't have to buy a new cloud enabled printer after switching to all Android and Chromebook devices at home. I can now print from my work macbook too without having to first disconnect from VPN.

Here is what I did, in case it helps anyone:

- Install cloudprint-service and psmisc packages:
# apt-get install cloudprint-service psmisc

- Connect to google a/c and generate auth file:
# cloudprint -c -a /var/lib/cloudprintd/authfile.json
Go to https://goo.gl/printer/xxx to claim this printer
...

- Copy paste the URL into a browser and follow any instructions. In my case, I was already logged into google, so I had to do nothing else other than visiting that page.

- Wait for cloudprint to exit with "Printer claimed by ..." message.

- Start and test it out:

# cloudprintd -p /var/run/cloudprintd.pid -a /var/lib/cloudprintd/authfile.json 
Polling for jobs on Brother_HL-2170W_series
Establishing connection to xmpp server talk.google.com:5223
xmpp connection established


Polling for jobs on Brother_HL-2170W_series
SUCCESS PrintATestPage.com

- The last line above showed up when I gave a test print from http://printatestpage.com on the desktop chrome browser.

- If the above is successful, kill it and setup init.d script to start cloudprintd. The package doesn't come with one, so I just started with something I found and customized. Create /etc/init.d/cloudprint with the below content:

#!/bin/bash
# See: https://stackoverflow.com/questions/22101524/cant-run-google-cloudprint-as-daemon
# Adapted to work similar to systemd script at /lib/systemd/system/cloudprintd.service
# Use "sudo cloudprint -c -a /var/lib/cloudprintd/authfile.json" to establish credentials.
# TODO: Need to understand where stdout goes to.

PIDFILE=/var/run/cloudprintd.pid
AUTHFILE=/var/lib/cloudprintd/authfile.json

case $1 in
    start)
        echo -n "Starting Google Cloud Print: "
        cloudprintd -p $PIDFILE -a $AUTHFILE &
        ;;
    stop)
        echo -n "Stopping Google Cloud Print: "
        killall cloudprintd
        ;;
    restart)
        echo -n "Restarting Google Cloud Print: "
        killall cloudprintd
        cloudprintd -p $PIDFILE -a $AUTHFILE &
        ;;
    *)
        echo "Usage: cloudprint {start|stop|restart}"
        ;;
esac

- Link the script to run levels:

for i in 2 3 4 5; do
  ln -s -f /etc/init.d/cloudprint /etc/rc$i.d/S99cloudprint
done

for i in 0 1 6; do
  ln -s -f /etc/init.d/cloudprint /etc/rc$i.d/K99cloudprint
done

- Start the service

# service cloudprint start

One issue I noticed is that the stdout/stderr of the daemon is still connected to the original console (though it is supposed to use python-daemon to daemonize itself). Perhaps I should use some daemonization script while starting it.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: