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 2010-06-23 15:12

Printing with N900
 
Hi!
I got cups-client compiled for the N900. I was able to print via a network
printer. That are just the original Debian package sources compiled
for Maemo.
I have uploaded the required packages to rapidshare. The rest of the
dependencies is available by the extras-devel repository. However there is
no application for the N900, which supports printing, so you have to use
the lp command. You also need lpadmin to add a network printer. A ppd
is required. I used Generic-PostScript_Level_1_Printer-Postscript1.ppd.
It is still highly experimental. Maybe someone can host these packages.
It was a hard way to these packages, because there were many
dependencies. But at the end, there are only 6 packages outside the
repos to install.
Here' s the link:
http://rapidshare.com/files/40201754...o.tar.bz2.html
Create a file /etc/cups/client.conf with the following entry:
Code:

ServerName <your-server-name>
Then /etc/cups/lpotions with:
Code:

Default <queue-name>
Then use the following command to add a printer:
Code:

lpadmin -p ps -v socket://192.168.1.0:9100/ -P /usr/share/cups/model/Generic-PostScript_Level_1_Printer-Postscript1.ppd -E
Replace socket... by the URI shown in the cups webinterface.
Be sure to copy the ppd file to the right path. Maybe you can use
some other ppd file.
Now you are able to print with
Code:

lp <filename>
Give it a try!

ToJa92 2010-06-23 15:15

Re: Printing with N900
 
Fennec supports printing, IIRC. Just go to a site which has a print option and you can print it, I think. Nice work!

mase 2010-06-23 18:06

Re: Printing with N900
 
I have compiled the gtklp package for Maemo.
Now you have easier access to the printing system and the driver.
http://rapidshare.com/files/40207138...armel.deb.html
The gui doesn't fix exactly to the device. I don't know much about gtk.
Maybe someone could fix the gui.
I could not reach "File" in the gui, so I could not add any files within. But if
I start gtklp <filename> the file is already added when the gui opens.
It is going forward!

I was able to use the turboprint ppd for my printer instead of the generic
postscript. So it seems I have full access to the driver functions.

mase 2010-06-25 04:59

Re: Printing with N900
 
No more feedback? Did nobody try it?

F2thaK 2010-06-25 05:02

Re: Printing with N900
 
hmmmmmmm sounds cool, and a bit to advanced for me

will wait for GUI

thanks, nice work MASE

mase 2010-06-25 05:11

Re: Printing with N900
 
There's a GUI called gtklp. I just uploaded to RS, because I still have no
permission to maemo-garage. I am waiting for a reply from the webmasters
to upload it to the repos.
But you still have to create the client.conf with the Servername.

ToJa92 2010-06-25 13:20

Re: Printing with N900
 
Unfortunately I'm not at home, otherwise I could have tried it(we have a Wifi printer at home).

mase 2010-06-28 12:25

Re: Printing with N900
 
I have uploaded the packages to extras-devel.
But be careful, if you wanna use the whole cups-system.
There could be missing dependencies with the package cups.
I have only tested cups-client. That is enough to print with
a network printer. I also uploaded gtklp-1.2.3. This version has
no file open dialog, so you have to open it in the console with
gtklp <filename>. Version 1.2.7 has such a dialog and would be
better to use on the phone, but I was not able to compile it in
scratchbox. I think, that is because libtool2 is missing in scratchbox.
Maybe someone could try to package it.

mase 2010-06-28 16:18

Re: Printing with N900
 
The howto is here:
https://garage.maemo.org/my/diary.php?diary_id=292

BruceL 2010-06-29 04:18

Re: Printing with N900
 
There should also be a native gui; use the web browser to go to http://localhost:631

The command line utilities like lp and lpadmin actually call the http server, not the other way around so the web interface is actually lower-level than the CLI utilities.


All times are GMT. The time now is 01:24.

vBulletin® Version 3.8.8