![]() |
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> Code:
Default <queue-name> Code:
lpadmin -p ps -v socket://192.168.1.0:9100/ -P /usr/share/cups/model/Generic-PostScript_Level_1_Printer-Postscript1.ppd -E 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> |
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!
|
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. |
Re: Printing with N900
No more feedback? Did nobody try it?
|
Re: Printing with N900
hmmmmmmm sounds cool, and a bit to advanced for me
will wait for GUI thanks, nice work MASE |
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. |
Re: Printing with N900
Unfortunately I'm not at home, otherwise I could have tried it(we have a Wifi printer at home).
|
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. |
Re: Printing with N900
The howto is here:
https://garage.maemo.org/my/diary.php?diary_id=292 |
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. |
Re: Printing with N900
Right, but the cups server is not yet
installable with my packages. So you don't have a webinterface on the phone. Only installing cups-client works with my packages. |
Re: Printing with N900
Quote:
Thanks for your work! |
Re: Printing with N900
The entry belongs to me and is public. But I repeated only, what I wrote above.
I am thinking about, removing the server-parts out of the build process. For me there's no sense to install the server on the phone, while you cannot connect a printer directly. I also think, a running server would decrease battery time. With not installable parts, it can never move to testing or stable. There are only the libraries needed of the following packages I made: cracklib2, keyutils, krb5, libselinux, libsepol, openslp and pam. But the other packages of these are installable. Do you think, they could be usable for other projects? The packages cups and cups-bsd can be removed. What do you think? |
Re: Printing with N900
The problem is that without the server side, I can't print to network printers without a cups-server elsewhere. I would like (for example) to be able to setup a printer for home, one or two at work, and one at a friends house. They are all network printers, (HP/PS printers). The problem is I can't add the work/friends printers, because they have no cups server running. They're just stand alone printers....
|
Re: Printing with N900
You mean, the server is needed to use samba
printers? I will see, what I can do to get the server to work. I will also give a try to cups-pdf and bluez-cups. But I can only package bluez-cups. I don't have a bt printer. |
Re: Printing with N900
Great!
I think leafpad can print also... ctrl + p. will have a look at other applications. |
Re: Printing with N900
@Mase, FYI, If you are going to build the server, the hardest problem I had was finding out that it will crash with some of the optimizations that are turned on. Here are my notes on that:
In Makedefs: Line 143: remove '-pie -fPIE' and remove $(OPTIM) Line 150: remove '-Os' and remove '-fPIC' |
Re: Printing with N900
Because I have no windows server, someone could try
smb://workgroup/server/printersharename as printer URI. If this works, there is no need for the cups-server. I took this from here: http://serverfault.com/questions/108...or-cups-client |
Re: Printing with N900
Not Windows/SMB, per say, but even direct printing (port 9100) doesn't work. You can't add a printer without a server being there. Using lpadmin to add a printer reports "can not connect to server"...
Is there another way to add a printer to the setup without using lpadmin? |
Re: Printing with N900
I did not find another way. But what's the problem ading a printer when a server exists?
Or do you mean, you cannot add a printer, if no cups-server is there? Isn't it possible to add a win shared printer? |
Re: Printing with N900
leafpad has printing support. But I cannot select a printer.
I also packaged libgnomecups and libgnomeprint. libgnomeprintui did not compile in scratchbox. |
Re: Printing with N900
Quote:
Just to be clear, at home I have a 192.168.* network, at work I have a 10.* network. You're saying I can configure an HP printer with a 10.* address while connected to the cups server on my 192.* home network, then later when I connect to my work network I would be able to print to the 10.* printer? If so, that's great, but if all the logic is there to print to a printer from the client, why do I need a server to configure that connection? If not, then I'm hosed without a cups server setup on every network I want to print on. My understanding is that the cups client sends all it's work to the cups server, which then does the actual printing. If that's the case, then you can't reliably print on a network unless that network has a central cups server. |
Re: Printing with N900
I did not test to configure multiple printers.
To install the cups-server I have to install the inet superserver. If this doesn't make problems on the phone, I will give it a try. My fear is, that this could take much battery. |
Re: Printing with N900
I have updated the cups packages and uploaded its dependencies.
Now all cups-packages, cups and cups-bsd included, should be installable. However I did not test it on the device yet, so feedback is welcome. |
Re: Printing with N900
Quote:
Code:
Nokia-N900-42-11:~# apt-get install cups |
Re: Printing with N900
after some hacking with dpkg, I got enough installed to get cupsd operational. ghostscript is still not operational (or installed), and libpam0 won't configure. But after fixing the broken dpkg listings (and manually linking a bit) I've gotten it up and running enough to add printers and printed a few test pages!
It's not pretty (and apt-get / dpkg still complain about busted packages) but it's working! :) |
Re: Printing with N900
THANK YOU MASE!!!!!!!!!!! I've been waiting for this for ever!!!!
|
Re: Printing with N900
I did not have any dpkg problems in
scratchbox. However I did not test it on the device. But it should be the same. Anybody else having dpkg problems? |
Re: Printing with N900
You were right! There were problems with ghostscript.
I fixed this. I also had to remove the ssl-cert dependency from the server, because it was not possible for me to let it configure correctly. But I uploaded ssl-cert. Maybe someone can find the problem. It failes with the creation of ssl-cert-snakeoil.pem. I could watch, that the internet connection is established very often. I don't know, if it was before installing cups-client. |
Re: Printing with N900
I also upoaded cups-pdf and bluez-cups.
I have no BT printer, so please test and report! |
Re: Printing with N900
I had problems, authenticating to the server.
I got it doing this: lppasswd -g lpadmin -a <username> In /etc/cups/cupsd.conf enter this: <Location /admin> * AuthType BasicDigest * AuthClass Group * AuthGroupName cupsadm * Encryption Required * Order allow,deny * Allow @LOCAL </Location> By the way: How can I print with fennec? I was told, that this is possible. |
Re: Printing with N900
Quote:
|
Re: Printing with N900
Hey guys im totally lost with this now, First of all i did this
root then apt get install cups so it installs all this stuff, now im lost ive been over the thread but ive just confused myself any ideas? |
Re: Printing with N900
Edit /etc/cups/cupsd.conf like above,
Then open http://localhost:631 in your browser. Then add your printer. |
Maemo CUP howto
Quote:
|
Re: Printing with N900
Having installed cups and cups-client packages, I get the error "can not connect to server" when adding the printer with lpadmin.
Can somebody make a single how-to? |
Re: Printing with N900
What should I write more?
I wrote everything in this thread. It's the same as it is on a normal linux system. If you want to use multiple printers, I think you have to install the server components. Maybe using the server with its webinterface will me easier to configure. @narcisgarcia Did you create a client.conf? |
Re: Printing with N900
I've done everything in the first pages of this thread.
I've also tried with the web interface (asks for an unknown password when applying changes) I ask for a "single how-to" because I see talking about different solutions in this thread. |
Re: Printing with N900
For the PW problem look at post #31 of this thread, a few posts above.
|
Re: Printing with N900
I just tried a fresh installation of cups and its dependancy.
But at the end cups couldn't be configured because of libpam0g not fine configured, too: Code:
/home/user # apt-get install cups Thanks in advance... asys3 |
All times are GMT. The time now is 01:08. |
vBulletin® Version 3.8.8