![]() |
Re: Printing with N900
Quote:
|
Re: Printing with N900
Quote:
Understand, what I did was a hack. Literally all I did was un-ar the debian, un-tar the control files, delete "ba" out of the first line of the postinst script and re-tar/ar the whole thing back into the original debian. I didn't change the content files at all, nor did a re-build anything source code wise. This was purely a config script issue (which is why the MD5 signature for the content tar hasn't changed, so dpkg isn't complaining about it). Were there a web interface where I could check out/in the script to fix it and trigger a build I would happily do that. If that exists and I just missed it, please do let me know where it is and I'll be happy make the change. But the system I found (requiring a build environment, dependency source packages installed, a key setup for talking to the SCM system, etc) is a little much for me to pick up right now to make a 2 character change... (Especially when the maintainer is active and chatty... ;) ) |
Re: Printing with N900
Just check the sources folder in extras-devel.
My used sources are there. |
Re: Printing with N900
Quote:
|
Re: Printing with N900
I have been trying to compile cups in armel target but getting this error
libtool: compile: cannot determine name of library object from `libcups.la' can u please let me know how we can solve it Thanks |
Re: Printing with N900
Thank you Mase for the great work ! ! !
I have been trying to get this working on my N900. I followed the steps given here to install the packages. But when I try to add printers using http://localhost:631/ It doesn't list any printers. And I couldn't find lpadmin binary, for configuring from command line. Is there package I missed out while installing ? After getting this working, I want to add Printing support for FreOffice. |
Re: Printing with N900
install cups-client package
|
Re: Printing with N900
Quote:
|
Re: Printing with N900
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
|
Re: Printing with N900
Quote:
Now trying to use lpadmin to configure my printer. Quote:
http://maemo.org/packages/package_in...-utils/1.1.21/ |
Re: Printing with N900
3 Attachment(s)
Quote:
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 |
Re: Printing with N900
1 Attachment(s)
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 http://talk.maemo.org/attachment.php...3&d=1285973625 Code:
dpkg --install libpam0g_1.0.1-maemo1_armel.deb http://repository.maemo.org/pool/mae...1.21_armel.deb Code:
dpkg --install libpaper/libpaper-utils_1.1.21_armel.deb Code:
<Location /admin> Code:
ln -s /usr/lib/cups/backend-available/* /usr/lib/cups/backend/ Code:
/etc/init.d/cups restart Code:
lppasswd -g lpadmin -a root Anything you do there will require user root and password you entered Code:
lppasswd -a user 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 Code:
lp some.ps or Code:
lp -P printer_as_named_in_cups some.ps 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 |
Re: Printing with N900
Quote:
|
Re: Printing with N900
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.
|
Re: Printing with N900
Quote:
which may indicate a place we could fix it device-wide maybe?:o |
Re: Printing with N900
Quote:
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....:confused: |
Re: Printing with N900
Quote:
|
Re: Printing with N900
Quote:
|
Re: Printing with N900
FYI: Fenec/Firefox for N900 has printing support. :) I think Opera does as well.
|
Re: Printing with N900
Quote:
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!) |
Re: Printing with N900
Maybe take a look at gtklp. With the version I packaged there is no
fileopen dialog. You have to use gtklp <filename>. The newer version offers such a dialog, but I did not get it packaged for Maemo. But all this makes no sense, if no application offers a printing function. |
Re: Printing with N900
Quote:
will have a run at gtklp. I am printing pdfs which I need quite often as they end up in emails which I often get when in differing places. I am beginning to see there are only a handful of us who have any interest in printing from the n900, but it is an awesome thing to be able to do if you travel. |
Re: Printing with N900
Even with few applications that support printing, being able to print files from the command line (or from a dedicated file-printing application) will be very useful.
|
Re: Printing with N900
Quote:
apt-get install gtklp I ran it and it works but the permissions I have set up are everywhere bogged wrongly, not sure how I got there but I reckon I will reflash and do it all again. <yes, i did run openssl and install certs> <yes, i did edit cupsd.conf down to a wide open permissions level, no joy> repeat: After apt-get install gtklp I am able in xterm, as user or as root select a file and successfully send it to the cups server , where it sits quietly 'pending' because I somehow screwed up permissions somehow. I think this goes back to the Bash-libpam issue - I will check further when I finish some other work I am currently busy with. Note - GtkLp also has some sort of permissions issues, because when you run it as user you get coal-black background, but when run as root it has the proper colors. Just a cosmetic observation, but it may indicate other underlying permissions issues. So far I see printing dialogues in leafpad and evince, but by far the sexiest print dialogue is in claws-mail :D which i find particularly exciting. |
Re: Printing with N900
Triumph of a sorts
Ok after getting caught up on some other things back to gtklp I had forgotten to give admin permissions to root and localhost when I got this right I could then run gtklp with no more problems, First - gtklp has a desktop shortcut. Using this shortcut eliminates the ability to choose a file > This is the thing I would like to fix next < second - if you launch gtklp in xterm as user (remembering I have installed bash and use it instead of sh or ash, - not yet sure if these are necessary but suspect they are atm) the select file dialogue works just fine, and prints as expected (so far successfully printed .pdf, txt, jpg from cli using just -> gtklp and then browsing the file selector to choose file) if you ever launch gtklp as root (why?) you will need to go back and change the permissions back to 666 on all files in the /.gtklp folder in your home folder. Still a hairy mess to install but right now I can print to any printer I can get into the cups server. And without exhausting all my printer ink I expect gtklp can print many filetypes you might want to print, but there needs a lot more testing to be sure. Like I said, I have successfully printed the following so far: .txt :D (simple text files) .jpg :D (just picked a jpg and printed it - did not even check what it was formatted to be, may not work for just any jpg ?) .png :D (just hacked a quick sketch in mypaint oand saved as pic.png) .pdf :D .ps :D Trying to print spreadsheets through gtklp = no joy, these need to be run through the native app but they are not ready yet although with something like gnumeric you can save as pdf and maybe that is good enough for the moment .gnumeric does not work .xlsx does not work .ods does not work =================================== If you use claws-mail you can print by setting: in menu find configuration -> actions and add something like this: Menu name: Code:
printout Code:
| gtklp '%f' & '%f' sends the compliant file and the '&' <important> closes the claws dialogue and allows gtklp to open its dialogue for your command This makes my day, as I have no fixed office and no desk I can count on in all the offices I visit, but it will permit me to print whatever I can set up whenever I want as the ultimate roadwarrior hack - printing emails from the handphone |
Re: Printing with N900
Quote:
edit in: /usr/share/applications/hildon/gtklp.desktop Change the line that says Code:
Exec=/usr/bin/gtklp Code:
Exec=/usr/bin/gtklp "" sort of reticulated convolutions and backflip-handstands required for Hildon/osso-mime-type/ or whatever it is so deeply hidden in the documentation I have not yet found it setting) voila - the gtklp desktop icon will now launch with the file selection menu intact, ready for your printing pleasure. Other news, downloaded the latest bleeding edge Fennec (firefox) and see the print dialogue is available only on websites which have a print button, but it has the Firefox "save to pdf" feature which means printing webpages is just a couple of clicks of detour. (MicroB does not) Ditto for gnumeric - just save to pdf I guess, but not sure yet how you can ensure the page format is correctly arrived at... My next task is to get the default print dialogue working that already exists in evince, leafpad, etc. printcap checked gtk-print-backend checked what next? gtklp works and those others do not - what is the difference in the way gtklp calls up the printcap info as compared to these others? I think it must be something simple, but who knows... |
Re: Printing with N900
Quote:
|
Re: Printing with N900
Quote:
how did you install it? I think I did apt-get install gtklp ? or another way ? Let me look I will post it my mistake, too blur: it is in /usr/share/applications/hildon/ |
Re: Printing with N900
Thank you, but I am now getting a connection refused when I try to reach http://localhost:631/
I removed then re-installed cups & edited the cupsd.conf file, but still can't bring it up. Any ideas? |
Re: Printing with N900
Thanks for figuring this out guys.
After installing cups/cups-client/cups-pdf/gtklp how much rootfs space are you left with? Regards |
Re: Printing with N900
Quote:
so I went into cupsd.conf and set everything wide open (which violates everything you would ever want to do security-wise, but my goal was just to 'make this work' :( and go back and sort out why libpam and the permissions game :rolleyes: are not working later) allow root allow localhost order allow, deny I had to chmod virtually everything in /etc/cups to 755 here is my cupsd.conf file: Code:
# but my focus was on getting this to work so if you have problems just ask, I will soon reflash and do the whole thing again from scratch to make sure I have it right. I am using power-kernel 46 but I do not think that has any effect on things. I have a few other apps installed but nothing which should have made a difference to cups cheers |
Re: Printing with N900
Quote:
but this is my test unit and I have been shovelling so that may due to a lot of other thing (fennec was big) I have (in addition to the cups/gtklp/libpam) on my test unit the following: fennec opera gps recorder mc claws-mail conky mypaint freoffice gnumeric xtide leafpad sketch advanced clock plugin filebox fapman PyGTKeditor Canola (don't even remember loading this one or why !) PDF reader gps data logger notes evince panorama vumeter copernicium rootsh but you don't need any of this to for cups (i think?) |
Re: Printing with N900
no. finally able to do command line printing after soft linking the backend folder.
nice work you guys. this brick/phone keeps improving |
Re: Printing with N900
There is still the problem, that the cups install script cannot execute
getcwd. That's the reason, that the symlinks are not made. I recompiled leafpad and removed the --disable-print. However after ctrl-p no printers are listed. |
Re: Printing with N900
You don't need to install the whole cups server to print with a network printer.
I described in the first post. |
Re: Printing with N900
I have rebuilt leafpad and removed the printer disable in the rules file.
However there is not print entry in the menu and ctrl+p opens a printer dialog without any printer listed. I don't know, how to enable printer support here. Maybe the gtk libs have been build with printing disabled. |
Re: Printing with N900
Got it!
I repackaged gtk+2.0 with printing support. I've incremented the package version to avoid the update to the original version. You don't have to install the dev and doc packages on the device. http://rapidshare.com/files/448095611/gtk_2.0.tar.gz Here is leafpad with printing support. You have to press ctrl+p to open the printing dialog. There is no menu option to enter it. http://rapidshare.com/files/44809682...emo2_armel.deb |
Re: Printing with N900
Here is abiword:
http://rapidshare.com/files/44809749...emo5_armel.deb |
Re: Printing with N900
As pictureviewer I wanted to rebuild evince, but I failed with gnome-doc-utils,
which is not installable and I could not rebuild it. Any other suggestions (must be gtk2.0)? Also gnumeric did not provide printing after a rebuild. |
Re: Printing with N900
Keep on mase !
And thanks. :) |
All times are GMT. The time now is 04:57. |
vBulletin® Version 3.8.8