View Single Post
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#92
Ok Done:
everything mentioned in the previous posts needs to be done

It works like This, from scratch, as root, in terminal:

I installed bash but from all the broken bits it did not seem to help. YMMV

Code:
apt-get install cups
apt-get install cups-client
get the pam stuff posted previously here:
http://talk.maemo.org/attachment.php...3&d=1285973625

Code:
dpkg --install libpam0g_1.0.1-maemo1_armel.deb
dpkg --configure -a
download this for the cups-pdf printer:
http://repository.maemo.org/pool/mae...1.21_armel.deb

Code:
dpkg --install libpaper/libpaper-utils_1.1.21_armel.deb
apt-get install cups-pdf
In /etc/cups/cupsd.conf enter this:

Code:
<Location /admin>
  AuthType BasicDigest
  AuthClass Group
  AuthGroupName cupsadm
  Encryption Required
  Order allow,deny
  Allow @LOCAL
</Location>
make the missing symlink:
Code:
ln -s /usr/lib/cups/backend-available/* /usr/lib/cups/backend/
now restart the server to digest all the kludgework:
Code:
/etc/init.d/cups restart
get yourself a password
Code:
lppasswd -g lpadmin -a root
in browser navigate to: http://localhost:631/
Anything you do there will require user root and password you entered
Code:
lppasswd -a user
will give you a user account to play with.

Certainly there will be a lot more to do beyond this,
but at this point you can do things like:

As a user in terminal - no need the root account anymore

Take a pdf already designed for the proper paper size
and convert it to postscript:

Code:
pdf2ps some.pdf some.ps
then aim the postscript file at the printer

Code:
lp some.ps
(for default printer)
or
Code:
lp -P printer_as_named_in_cups some.ps
(for a specific printer)

As of here the only printing is commandline printing postscript files,
but that can be anything you can cram into a pdf file so it is a lot.

Leafpad will not recognize the printer - it is broken inside leafpad.
forget FreOffice - its got nothing to print with, already checked
Maybe there is another application ported over from source
with legacy printing stubs that could be used, still looking for that.

what we need now is to clean all this up into a single batch install,

then we can start putting simple printing handles in all the applications.

Cheers
Attached Images
 
__________________
Three n900s: One for stable working platform,
One for development testing Chopping Onions
One for saltwater immersion power testing resurrected ! parts scavenging

My Mods for Wonko's Advanced Clock Plugin:
ISO8601 clock mod and Momental_IST clock mod

Printing your Email with the N900
 

The Following 7 Users Say Thank You to theonelaw For This Useful Post: