Go Back   maemo.org - Talk > Software > Applications
 
Register FAQ Community Calendar Today's Posts Search

Notices

Reply
 
Thread Tools
  #1  
Old 2010-06-23, 15:12
mase's Avatar
mase mase is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 355
Thanks!: 29
Thanked 205 Times in 93 Posts
Default 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!
__________________
May the force be with us!

Last edited by mase; 2010-06-23 at 15:20.
Reply With Quote
  #2  
Old 2010-06-23, 15:15
ToJa92's Avatar
ToJa92 ToJa92 is offline
 
Join Date: Feb 2010
Location: ~
Posts: 1,091
Thanks!: 220
Thanked 323 Times in 201 Posts
Talking 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!
Reply With Quote
The Following User Says Thank You to ToJa92 For This Useful Post:
  #3  
Old 2010-06-23, 18:06
mase's Avatar
mase mase is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 355
Thanks!: 29
Thanked 205 Times in 93 Posts
Default 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.
__________________
May the force be with us!
Reply With Quote
The Following 3 Users Say Thank You to mase For This Useful Post:
  #4  
Old 2010-06-25, 04:59
mase's Avatar
mase mase is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 355
Thanks!: 29
Thanked 205 Times in 93 Posts
Default Re: Printing with N900

No more feedback? Did nobody try it?
__________________
May the force be with us!
Reply With Quote
  #5  
Old 2010-06-25, 05:02
F2thaK's Avatar
F2thaK F2thaK is offline
 
Join Date: Jan 2010
Location: Australia Mate
Posts: 4,365
Thanks!: 2,643
Thanked 2,467 Times in 1,106 Posts
Default Re: Printing with N900

hmmmmmmm sounds cool, and a bit to advanced for me

will wait for GUI

thanks, nice work MASE
Reply With Quote
  #6  
Old 2010-06-25, 05:11
mase's Avatar
mase mase is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 355
Thanks!: 29
Thanked 205 Times in 93 Posts
Default 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.
__________________
May the force be with us!
Reply With Quote
  #7  
Old 2010-06-25, 13:20
ToJa92's Avatar
ToJa92 ToJa92 is offline
 
Join Date: Feb 2010
Location: ~
Posts: 1,091
Thanks!: 220
Thanked 323 Times in 201 Posts
Default Re: Printing with N900

Unfortunately I'm not at home, otherwise I could have tried it(we have a Wifi printer at home).
Reply With Quote
  #8  
Old 2010-06-28, 12:25
mase's Avatar
mase mase is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 355
Thanks!: 29
Thanked 205 Times in 93 Posts
Default 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.
__________________
May the force be with us!
Reply With Quote
The Following 2 Users Say Thank You to mase For This Useful Post:
  #9  
Old 2010-06-28, 16:18
mase's Avatar
mase mase is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 355
Thanks!: 29
Thanked 205 Times in 93 Posts
Default Re: Printing with N900

The howto is here:
https://garage.maemo.org/my/diary.php?diary_id=292
__________________
May the force be with us!
Reply With Quote
The Following 4 Users Say Thank You to mase For This Useful Post:
  #10  
Old 2010-06-29, 04:18
BruceL's Avatar
BruceL BruceL is offline
 
Join Date: Aug 2006
Location: Colorado
Posts: 305
Thanks!: 113
Thanked 154 Times in 63 Posts
Default 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.
__________________
Give me immortality or give me death!
Reply With Quote
The Following 2 Users Say Thank You to BruceL For This Useful Post:
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:31.