Notices


Reply
Thread Tools
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#91
Originally Posted by freemangordon View Post
strange, i have installed cups and cups-client and have lpadmin on my phone. btw there is hidden dependency to bash, you need it installed otherwise configuration script of one of cups dependencies fails. and you need to start lpadmin as root. sorry, seems caanot help any further
Bash ? I am preparing to give this all a try,
from what you observe it would be better to install bash first then the
cups packages ?

I just finished installing the power46 and am ready to give cups a go.

Updated:=====================

<I had reflashed, installed powerk46, mc and a few other tools>

I installed bash for good measure,
I eventually installed the cups
(apt-get install cups)
and then, distracted, moved on to some other things

eventually came back to the cups issue and went to
http://localhost:631/

and was astonished to find both a Cups pdf printer (home machine)
and my hp wifi printer (automagically) installed and ready.
I did not even need to install them - they just came up that way,
which in all the times I have fooled around with Cups
I have never seen that happen !

Of course I printed a test page

Now to find a way to trick some app (FileBox maybe ?)
into printing (blind ?)...

Update 2:

After apt-get install cups-client
I checked both evince and the adobe reader,
neither had the printing bits in the packages.
Checked the Gnumeric package as well...
Still looking for a way to print...

hung up on apt-get install cups-pdf due to papersize,
but this is not a showstopper
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

Last edited by theonelaw; 2011-01-18 at 17:04. Reason: update
 
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:
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#93
Originally Posted by theonelaw View Post
I checked both evince and the adobe reader,
neither had the printing bits in the packages.
I don't have CUPS so I don't know for sure, but have you tried Ctrl-P in Evince?
 

The Following User Says Thank You to jstokes For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#94
and by issuing lp <filename> you should be able to print any supported type of document. btw who is cups maintainer maybe one should ask him to fix the broken bits.
 

The Following User Says Thank You to freemangordon For This Useful Post:
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#95
Originally Posted by jstokes View Post
I don't have CUPS so I don't know for sure, but have you tried Ctrl-P in Evince?
Opens the same broken printer dialogue we see in leafpad
which may indicate a place we could fix it device-wide maybe?
__________________
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
 
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#96
Originally Posted by freemangordon View Post
and by issuing lp <filename> you should be able to print any supported type of document. btw who is cups maintainer maybe one should ask him to fix the broken bits.
Think it is Mase who gas been away almost a month

He had a diary comment is all I can find outside the thread.

If he has drifted off (as many have) then it may need someone else's care.

Other than text and pdf what do you think could be printed this way?

I was thinking it might not be too difficult to make a simple widget
to pull in pdf's and batch-file print them. maybe....
__________________
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
 
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#97
Originally Posted by theonelaw View Post
which may indicate a place we could fix it device-wide maybe?
In GTK+ itself, I think the file gtk/gtkprintunixdialog.c is the file that would be needed. Unfortunately my GTK+ skills are not that hot and I don't have a Linux install (so I can use the SDK) anymore
 

The Following User Says Thank You to jstokes For This Useful Post:
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#98
Originally Posted by jstokes View Post
In GTK+ itself, I think the file gtk/gtkprintunixdialog.c is the file that would be needed. Unfortunately my GTK+ skills are not that hot and I don't have a Linux install (so I can use the SDK) anymore
Looks sexy - I will have a run at this one. thanks!
__________________
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 2 Users Say Thank You to theonelaw For This Useful Post:
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#99
FYI: Fenec/Firefox for N900 has printing support. I think Opera does as well.
 

The Following User Says Thank You to woody14619 For This Useful Post:
Posts: 671 | Thanked: 1,630 times | Joined on Aug 2010
#100
Originally Posted by woody14619 View Post
FYI: Fenec/Firefox for N900 has printing support. I think Opera does as well.
Opera does not.
Still the same old Opera it ever was - menu made with crayons
and no dangerous functions like print or save or anything
that any reasonable person might want in a browser.

Thanks for suggesting though - it was worth checking anyway

Will check fennec next
but I think I am definitely on to implementing a widget/app
for printing with the gtk + 2 dialogue (I hope!)
__________________
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 2 Users Say Thank You to theonelaw For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:39.