element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Printing using Raspberry Pi  ???
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 26 replies
  • Subscribers 680 subscribers
  • Views 3932 views
  • Users 0 members are here
  • raspberry_pi;
  • print
  • raspberry_pi
Related

Printing using Raspberry Pi  ???

wallarug
wallarug over 13 years ago

Has anyone successfully printed.  I am looking to send a print job from the RPi to a Windows 7 machine that has the printer plug-in to a USB port.  I can set-up this printer on windows but I can't do it on the RPi.  I read this post: http://linuxmafia.com/faq/Debian/printing-setup.html that says to use smbclient or CUPS but they are not installing when using the apt-get.  Can someone help or shead some light on alternatives for printing over a network?

  • Sign in to reply
  • Cancel
Parents
  • rew
    rew over 13 years ago

    To verify your claims I logged into my raspberry pi, I typed "apt-get install cups-bsd" (because I like the bsd-interface for printing), and it pulled in a shitload of packages.

    Next I typed "lpr spiro2.ps" and I got a pleasing pattern out of my printer.

     

    spiro2.ps contains the following data:

    %!PS-Adobe-1.0

    %%BoundingBox: 0 0 596 842

     

    /cshow { dup stringwidth pop 2 div 0 exch sub 0 rmoveto show } def

    (Times-Roman) findfont 7 scalefont setfont

     

     

    72 25.4 div dup scale

     

    0.1 setlinewidth

     

    /cx 105 def

    /cy 150 def

     

    /r1x 65 def

    /r1y 110 def

     

    /r2x 35 def

    /r2y 35 def

     

    /fac 9.95 def

     

     

    0

    dup

        dup sin r1x mul exch fac mul sin r2x mul add cx add exch

        dup cos r1y mul exch fac mul cos r2y mul add cy add moveto

     

    0 0.1 7200 {

    dup

        dup sin r1x mul exch fac mul sin r2x mul add cx add exch

        dup cos r1y mul exch fac mul cos r2y mul add cy add lineto

    } for

     

    stroke

     

    showpage

     

    So to answer your question: Cups just works, I have no reason to believe it doesn't work on "ARM".

     

    (there might be binary drivers for specialized printers that don't work. But in general it just works. Especially for network-printing there is no reason it should not work.)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • rew
    rew over 13 years ago

    To verify your claims I logged into my raspberry pi, I typed "apt-get install cups-bsd" (because I like the bsd-interface for printing), and it pulled in a shitload of packages.

    Next I typed "lpr spiro2.ps" and I got a pleasing pattern out of my printer.

     

    spiro2.ps contains the following data:

    %!PS-Adobe-1.0

    %%BoundingBox: 0 0 596 842

     

    /cshow { dup stringwidth pop 2 div 0 exch sub 0 rmoveto show } def

    (Times-Roman) findfont 7 scalefont setfont

     

     

    72 25.4 div dup scale

     

    0.1 setlinewidth

     

    /cx 105 def

    /cy 150 def

     

    /r1x 65 def

    /r1y 110 def

     

    /r2x 35 def

    /r2y 35 def

     

    /fac 9.95 def

     

     

    0

    dup

        dup sin r1x mul exch fac mul sin r2x mul add cx add exch

        dup cos r1y mul exch fac mul cos r2y mul add cy add moveto

     

    0 0.1 7200 {

    dup

        dup sin r1x mul exch fac mul sin r2x mul add cx add exch

        dup cos r1y mul exch fac mul cos r2y mul add cy add lineto

    } for

     

    stroke

     

    showpage

     

    So to answer your question: Cups just works, I have no reason to believe it doesn't work on "ARM".

     

    (there might be binary drivers for specialized printers that don't work. But in general it just works. Especially for network-printing there is no reason it should not work.)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 13 years ago in reply to rew

    I believe cups is supplied with the Fedora14 Arm remix,

    and presumably with Fedora17 whenever that arrives.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 13 years ago in reply to rew

    What image are you using??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to wallarug

    Im using the Debian 19-4-12 image. Fully updated.

     

    BTW all Chromium works from the repo's but its a real memory hog as you would guess,:)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 13 years ago in reply to rew

    how do you print after you install cups?

     

    Your step where you typed:"lpr spiro.sp" did not make any sense. Don't you have to set-up a printer/ tell the print job where to go? If so, How do I do that (after cups is installed)?

     

    Printer is called: " HP Photosmart C4500 series on 192.168.12.2 "  Location is: 192.168.12.2 on USB2 (shared printer)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rew
    rew over 13 years ago in reply to wallarug

    Haha!

     

    Yes, somehow,printers have to be configured. Somehow however, cups seems to find printers. I did NOT configure cups on my raspberry pi. It figured out what printers there are  in my office and allows printing to them automatically.

     

    What I know is that file  (ehh. cups-) servers "shout" on the network what printers they have. Other cups installations will pick up on that and allow you to print on those printers automatically.

     

    To configure cups go to http://localhost:631 (i.e. with a webbrowser of your choice). Follow the instructions.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 13 years ago in reply to rew

    When I type: http://localhost:631 into midori it does not load (Error - This page can not be found)

     

    How do I check that cups installed correctly?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rew
    rew over 13 years ago in reply to wallarug

    Check that you have /etc/cups and a file called cupsd.conf inside. That's where it should be configured to listen on port 631.

     

    I just checked, and you're right. My raspberry pi is not listening on 631. My workstations are though. I ran the cupsd.conf files through "diff" and it told me:

     

    +# Web interface setting...

    +WebInterface Yes

     

    And a few more settings.

     

    There are a bunch of other things that you might need to set to allow configuring cups through that interface. I'm not a cups expert, googling for "cups confguration" gives you a couple of "how to allow cups configuration through the web-interface" links in the top three. Check out those. Good luck!

     

    (I'm working on a different printer-problem today. A 3-D printer. :-) )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 13 years ago in reply to rew

    It seems that cups has NOT installed correctly.  Once I get it installed correctly then I will get back to you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube