Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all :) I have a big Problem. I want add a Printer in CUPS but without browser(interface). I do the following steps: 1. edit /etc/hosts Code: ... 192.168.0.172 kyocera ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2013
    Posts
    2

    lp or lpr and tray2 without ppd file problem


    Hello all :)

    I have a big Problem. I want add a Printer in CUPS but without browser(interface). I do the following steps:
    1. edit /etc/hosts
    Code:
    ...
    192.168.0.172   kyocera
    ...
    2. edit /etc/cups/printers.conf
    Code:
    ...
    <Printer kyocera_tray1>
    Info Kyocera TASKalfa 250ci
    Location EDV
    DeviceURI lpd://kyocera
    State Idle
    StateTime 1372200576
    Type 4
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    Option media lower
    Attribute marker-colors none,none
    Attribute marker-levels 87,-1
    Attribute marker-names Toner Container,Waste Toner Box
    Attribute marker-types toner,wasteToner
    Attribute marker-change-time 1372200576
    </Printer>
    ...
    3. i restart cups with:
    Code:
    /etc.init.d/cups restart
    4. i enable printer kyocera_tray1 with:
    Code:
    lpadmin -p kyocera_tray1 -E
    I dont use a PPD !!!
    than i give a print job with:
    Code:
    lp -d kyocera_tray1 to_print_file.txt
    My to_print_file.txt:
    Code:
    ^[(s1p14v0s0b4101T^[(0G^[(9U^[&l4E^[&a15L^[(s1p12v0s0b4101T^L^M^M
    ^M
    ^M
    ^M
    ^M
    ^M
    ^M
    ^M
    ^M
    ^M
    ^M
    ^[*p240XHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH^[*p1170X^[(s3BI n v o i c e^[(s0B^M
    ^[*p240XHHHHHHHHHHHHHHHH^M
    ^[*p240XHHHHHHHHHHHHHHHHHHHHHHHHHHHHH^[*p1170X^[(s1p10v0s0b4101TOrder No.^[(s1p12v0s0b4101T^[*p1470X^[(s1p10v0s0b4101TCustomer No.^[(s1p12v0s0b4101T^[*p1830X^[(s1p10v0s0b4101TAgent^[(s1p12v0s0b4101T^M
    ^[*p240XHHHHHHHHHHHHHHHHHH^[*p1170X^[(s1p10v0s0b4101T^[(s3B014063^[(s0B^[(s1p12v0s0b4101T^[*p1470X^[(s1p10v0s0b4101T^[(s3B00940500^[(s0B^[(s1p12v0s0b4101T^[*p1830X^[(s1p10v0s0b4101T^[(s3B000^[(s0B^[(s1p12v0s0b4101T^M
    ^[*p240X  HHH^[*p1830X^[(s1p10v0s0b4101Tkein Vertreter^[(s1p12v0s0b4101T^M
    ^[*p1170X^[(s1p10v0s0b4101TInvoice No.^[(s1p12v0s0b4101T^[*p1470X^[(s1p10v0s0b4101TDelivery Advice No.^[(s1p12v0s0b4101T^[*p1830X^[(s1p10v0s0b4101TDelivery Date^[(s1p12v0s0b4101T^M
    ^[*p1170X^[(s1p10v0s0b4101T^[(s3B283900^[(s0B^[(s1p12v0s0b4101T^[*p1470X^[(s1p10v0s0b4101T^[(s3B257440^[(s0B^[(s1p12v0s0b4101T^[*p1830X^[(s1p10v0s0b4101T^[(s3B21.06.2013^[(s0B^[(s1p12v0s0b4101T^M
    ^M
    ^[*p960X^[(s1p10v0s0b4101THHHHHHHHHHHHHH^[(s1p12v0s0b4101T^[*p1440X^[(s1p10v0s0b4101T+49 (0)2377 917 764^[(s1p12v0s0b4101T^M
    ^[*p1440X^[(s1p10v0s0b4101THHHHHHHHHHHHHHHHHHH@wickeder.de^[(s1p12v0s0b4101T^[*p2100X^[(s3B21.06.13^[(s0B^M
    ^M
    ^[*p240XDelivery will be made subject to our general terms and conditions:^M
    ...
    to this POINT its work all perfekt !!!
    i get a nice formating Paper :)
    My Question 1.
    With driver this printjob use ? I never have declare in all the steps a ppd file. I think the "system" use a default driver but with and how can i edit this driver to tell them use tray2
    My Question 2.
    Why i cant print with this configuration on tray 2?
    I have test:
    Code:
    lp -d kyocera_tray1 -o InputSlot=Tray2 to_print_file.txt
    lp -d kyocera_tray1 -o media=Tray2 to_print_file.txt
    lp -d kyocera_tray1 -o tray2 to_print_file.txt
    lpr -P kyocera_tray1 -o media=A4 -o media=Lower to_print_file.txt
    lpr -P kyocera_tray1 -o media=A4 -o media=Upper to_print_file.txt
    I have ready and test so many howtos but nothink work :(
    If i use the GUI "localhost:631" and a PPD file i can use tray2 but the to_print_file.txt are print in ASCII formation (no tabs, tables or other formating)

    I User/have a "Sharp AR-M256" and "Kyocera FS-3900DN"

    Sorry for my very bad english and pls help me some Linux expert

  2. #2
    Linux User
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    345
    It's something known as money. There is big money in small print jobs. Printer manufacturers are paid to keep this secret.

    Now ask me why your winmodem don't work.

    Good luck, and Peace and Cheer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •