Notices


Reply
Thread Tools
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#1
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!
__________________
May the force be with us!

Last edited by mase; 2010-06-23 at 15:20.
 

The Following 50 Users Say Thank You to mase For This Useful Post:
ToJa92's Avatar
Posts: 1,091 | Thanked: 323 times | Joined on Feb 2010 @ ~
#2
Fennec supports printing, IIRC. Just go to a site which has a print option and you can print it, I think. Nice work!
 

The Following User Says Thank You to ToJa92 For This Useful Post:
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#3
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.
__________________
May the force be with us!
 

The Following 3 Users Say Thank You to mase For This Useful Post:
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#4
No more feedback? Did nobody try it?
__________________
May the force be with us!
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#5
hmmmmmmm sounds cool, and a bit to advanced for me

will wait for GUI

thanks, nice work MASE
 
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#6
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.
__________________
May the force be with us!
 
ToJa92's Avatar
Posts: 1,091 | Thanked: 323 times | Joined on Feb 2010 @ ~
#7
Unfortunately I'm not at home, otherwise I could have tried it(we have a Wifi printer at home).
 
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#8
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.
__________________
May the force be with us!
 

The Following 2 Users Say Thank You to mase For This Useful Post:
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#9
The howto is here:
https://garage.maemo.org/my/diary.php?diary_id=292
__________________
May the force be with us!
 

The Following 4 Users Say Thank You to mase For This Useful Post:
BruceL's Avatar
Posts: 305 | Thanked: 154 times | Joined on Aug 2006 @ Colorado
#10
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.
__________________
Give me immortality or give me death!
 

The Following 2 Users Say Thank You to BruceL For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 00:48.