maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Printing with N900 (https://talk.maemo.org/showthread.php?t=56932)

mase 2011-04-26 07:54

Re: Printing with N900
 
When the packages are working for you, please vote to
get it into stable. One more vote is needed.

rotoflex 2011-04-27 16:25

Re: Printing with N900
 
Quote:


CUPS Installation Instructions
  1. Enable Extras-testing and Extras-devel in Application Manager.
  2. Open XTerminal
  3. Enter "sudo gainroot"
  4. Enter "apt-get install debconf". This will install debconf, & remove fakedebconf.
  5. The following errors will be displayed:
    unable to initialize frontend: Dialog
    (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
    falling back to frontend: Readline
    unable to initialize frontend: Readline
    (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readlin.pm line 7.)
  6. close XTerminal
  7. In Application Manager, download "cups", "cups-client", & "cups-bsd"
  8. Close Application Manager, then switch off phone
  9. Turn phone on
  10. Connect to network
  11. Open internet browser, go to http://localhost:631
  12. The "Common UNIX Printing System 1.3.8" control page should load

Quote:


Adding a network printer
  1. Open internet browser, go to http://localhost:631
  2. Go to Administration -> Find New Printers
  3. See if your network printers are listed

I get stuck here. When I try to add a listed printer, it asks "Make: or Provide a PPD File:", I choose "Raw" make. Then N900 asks for authentication: user name and password.
The following all return "Invalid user name or password":
Username: (blank) Password: (blank)
Username: user Password: (blank)
Username: root Password: (root password)

demolition 2011-04-27 18:22

Re: Printing with N900
 
@rotoflex - I'm at the same stage and just need to jump through the final few hoops. Have a trawl through the posts above, where some people suggested what to do abot the password problem. Also, have a look at post 31; though I haven't yet so not sure whether to incluide the leading asterisks on each line. Where did you get those instructions? I find using FAM makes life a lot easier than faffing with apt-get. I will report back when I get output from my printer (I can get CUPS to see my USB printer). In the meanwhile, good luck with getting access!

woody14619 2011-04-27 18:40

Re: Printing with N900
 
Quote:

Originally Posted by rotoflex (Post 996308)
Then N900 asks for authentication: user name and password.

I would augment the above instructions as follows (where is this from?):

Quote:

6. enter "apt-get install cups cups-client cups-bsd"
7. enter "lppasswd -g lpadmin -a printer" supply a password
8. edit /etc/cups/cupsd.conf, change the DefaultAuthType to BasicDigest
9. enter "/etc/init.d/cups start"
10. Open internet browser, go to http://localhost:631
11. The "Common UNIX Printing System 1.3.8" control page should load
Then when asked for authentication, use printer, and the new password you made up in step 7.

Since you already did the above steps, you need to just do steps 7 through 9, and in step 9, replace "start" with "restart".

rotoflex 2011-04-27 19:45

Re: Printing with N900
 
I didn't get it from anywhere, I'm just noting the steps as I go along. Here is the revision:

Quote:


CUPS Installation Instructions
  1. Enable Extras-testing and Extras-devel in Application Manager.
  2. Open XTerminal
  3. Enter "sudo gainroot"
  4. Enter "apt-get install debconf". This will install debconf, & remove fakedebconf.
  5. The following errors will be displayed:
    unable to initialize frontend: Dialog
    (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
    falling back to frontend: Readline
    unable to initialize frontend: Readline
    (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readlin.pm line 7.)
  6. enter "apt-get install cups cups-client cups-bsd"
  7. xterminal will show the cups packages being installed. Wait until installation is finished.
  8. enter "lppasswd -g lpadmin -a printer"
  9. you will be asked to enter the password you want for printer administation.
  10. enter "leafpad /etc/cups/cupsd.conf"
  11. the leafpad editor will open /etc/cups/cupsd.conf for editing
  12. change the line "DefaultAuthType Basic" to "DefaultAuthType BasicDigest"
  13. click the menu bar at top, & click "Save"
  14. close the leafpad editor
  15. close XTerminal, switch off phone, then turn the phone on again
  16. Connect to network
  17. Open internet browser, go to http://localhost:631
  18. The "Common UNIX Printing System 1.3.8" control page should load

Quote:


Adding a network printer
  1. Open internet browser, go to http://localhost:631
  2. Go to Administration -> Find New Printers
  3. See if your network printers are listed


woody14619 2011-04-27 20:23

Re: Printing with N900
 
Ok... But really, there's no need to reboot the phone. My step 9 from above start the cups daemon, which is all you're accomplishing with the reboot (step 15) in yours. Both work, but one takes a lot longer and unnecessarily causes down time.

The bigger question is, did it work for you? :)

rotoflex 2011-04-27 20:33

Re: Printing with N900
 
I am still getting 403 Forbidden when I try to modify a printer.
(I had added two Samba printers on an earlier install, they are still listed in the N900, but not working from the N900 now.)

Also, printer administration via localhost:631 does not ask me for a password, & I seem to recall that it did in an earlier cups install that I had working well enough to add network printers at work.

I will work with it some more.

mase 2011-04-27 20:35

Re: Printing with N900
 
My network printer (cups server broadcast) was listed. There was
no need to add a printer manually or to login.

mase 2011-04-27 20:39

Re: Printing with N900
 
I think, for samba printers you need a ppd file.

rotoflex 2011-04-27 21:29

Re: Printing with N900
 
Quote:

Originally Posted by mase (Post 996421)
I think, for samba printers you need a ppd file.

Since it's a postscript printer, do I just download & extract the generic postscript ppd you posted at
http://talk.maemo.org/showpost.php?p...&postcount=206

If so, in what subdirectory should I put it?


All times are GMT. The time now is 11:59.

vBulletin® Version 3.8.8