Do any of you actually drive a LAN printer w Pogoplug? February 27, 2017 11:51PM |
Registered: 8 years ago Posts: 1,516 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 01:01AM |
Admin Registered: 12 years ago Posts: 17,933 |
apt-get install cups foomatic-filters cups-driver-gutenprint ghostscript-cups
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 06:27AM |
Registered: 10 years ago Posts: 1,303 |
> apt-get install cups foomatic-filters cups-driver-gutenprint ghostscript-cups >>
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 04:04PM |
Admin Registered: 12 years ago Posts: 17,933 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 04:11PM |
Registered: 10 years ago Posts: 1,303 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 06:49PM |
Registered: 6 years ago Posts: 49 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 07:10PM |
Admin Registered: 12 years ago Posts: 17,933 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 07:54PM |
Registered: 6 years ago Posts: 49 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 09:44PM |
Registered: 8 years ago Posts: 1,516 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 10:51PM |
Registered: 8 years ago Posts: 1,516 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 11:06PM |
Admin Registered: 12 years ago Posts: 17,933 |
Re: Do any of you actually drive a LAN printer w Pogoplug? February 28, 2017 11:07PM |
Admin Registered: 12 years ago Posts: 17,933 |
Re: Do any of you actually drive a LAN printer w Pogoplug? March 01, 2017 12:59AM |
Registered: 8 years ago Posts: 1,516 |
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:~#
Re: Do any of you actually drive a LAN printer w Pogoplug? March 01, 2017 01:04AM |
Registered: 8 years ago Posts: 1,516 |
Re: Do any of you actually drive a LAN printer w Pogoplug? March 01, 2017 04:10AM |
Admin Registered: 12 years ago Posts: 17,933 |
logread
Quote
Also old printers use $2.50 ink from the thrift stores; perfect quality still and worth hoarding.
Re: Do any of you actually drive a LAN printer w Pogoplug? March 01, 2017 04:34AM |
Admin Registered: 12 years ago Posts: 17,933 |
Re: Do any of you actually drive a LAN printer w Pogoplug? March 01, 2017 10:32AM |
Registered: 10 years ago Posts: 1,303 |
Re: Do any of you actually drive a LAN printer w Pogoplug? March 01, 2017 03:23PM |
Registered: 8 years ago Posts: 1,516 |
[WIP] CUPS How-To March 01, 2017 06:14PM |
Admin Registered: 12 years ago Posts: 17,933 |
apt-get install cups foomatic-filters cups-driver-gutenprint ghostscript-cups apt-get install cups-pdf
BubbleJet DeskJet HP LaserJet Series PCL 6 HP Color LaserJet Series PCL 6 Generic text-only printer Generic PostScript Printer
cat /etc/cups/cupsd.confOutput:
# # # 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> # #
cat /etc/cups/printers.confOutput:
# 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>
ls /etc/cups/ppd/Output:
HPLaserJet1200.ppd
Re: Do any of you actually drive a LAN printer w Pogoplug? March 02, 2017 02:39PM |
Registered: 8 years ago Posts: 1,516 |
Re: Do any of you actually drive a LAN printer w Pogoplug? March 02, 2017 03:00PM |
Admin Registered: 12 years ago Posts: 17,933 |
Re: Do any of you actually drive a LAN printer w Pogoplug? March 02, 2017 04:00PM |
Registered: 8 years ago Posts: 1,516 |
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>
root@debian:~# ls /etc/cups/ppd/ . .. PDF.ppd hp_deskjet_5100.ppd
Re: Do any of you actually drive a LAN printer w Pogoplug? March 02, 2017 11:00PM |
Registered: 6 years ago Posts: 359 |
Re: Do any of you actually drive a LAN printer w Pogoplug? September 03, 2017 03:25AM |
Registered: 6 years ago Posts: 41 |
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
Re: Do any of you actually drive a LAN printer w Pogoplug? September 03, 2017 04:02AM |
Admin Registered: 12 years ago Posts: 17,933 |
Re: Do any of you actually drive a LAN printer w Pogoplug? September 03, 2017 05:37AM |
Registered: 6 years ago Posts: 41 |
Re: Do any of you actually drive a LAN printer w Pogoplug? September 03, 2017 05:58AM |
Admin Registered: 12 years ago Posts: 17,933 |
Re: Do any of you actually drive a LAN printer w Pogoplug? September 03, 2017 06:32AM |
Registered: 6 years ago Posts: 41 |
Re: Do any of you actually drive a LAN printer w Pogoplug? September 03, 2017 10:56AM |
Registered: 6 years ago Posts: 41 |
# apt-get install cloudprint-service psmisc
# cloudprint -c -a /var/lib/cloudprintd/authfile.json Go to https://goo.gl/printer/xxx to claim this printer ...
# 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
#!/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
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
# service cloudprint start