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 2011-03-16 18:19

Re: Printing with N900
 
Try a specific ppd file, or a postscript ppd. There is a generic postscript ppd
driver. Do you use a cups server in your network?

malandante 2011-03-17 09:44

Re: Printing with N900
 
Quote:

Originally Posted by mase (Post 969088)
Try a specific ppd file, or a postscript ppd. There is a generic postscript ppd
driver. Do you use a cups server in your network?

I've tried with several ppds, including the printer specific, both PXL and PS. And also a Generic Postscript ppd. In every case cups complains about the missing filter.

I use the AppSocket / HP JetDirect connection type and write the printer URI (socket://192.168.1.80). Then I provide the ppd (Ricoh-Aficio_MP_C2500_PXL.ppd). It says that the printer was added succesfully and prompts the printer config options. I change what I need and it says that the printer has been set up succesfully. But again in the printer tab it complains about foomatic-rip filter missing.

The same applies when I use the other ppds.

So what can it be?

Thanks mase! You're doing a great job here!

mase 2011-03-17 13:49

Re: Printing with N900
 
@malandante
What print server do you use? Windows or Linux cups?

If you are using cups, just let the server broadcast. To do this, edit
the publicity setting for the printer to use. I did so and I need no drivers
on the phone.

malandante 2011-03-17 13:59

Re: Printing with N900
 
I'm not using any printer server. The printer at work is just in the network and has its own IP. So I'm connecting directly to it.

mase 2011-03-17 14:17

Re: Printing with N900
 
1 Attachment(s)
Quote:

Originally Posted by malandante (Post 969654)
I'm not using any printer server. The printer at work is just in the network and has its own IP. So I'm connecting directly to it.

In this case a ppd for generic postscript should work.

malandante 2011-03-17 17:59

Re: Printing with N900
 
it doesnt make any difference which ppd I use, mase. i've tried the one you have kindly attached and it doesn't work either. I can only access the printer in raw mode, and then it only will print stuff about language level and bounding box.

mase 2011-03-17 18:10

Re: Printing with N900
 
did you open the ppd when adding the printer?
You can choose manufacturer and model, or use a custom ppd.
You have to use the ppd there.

malandante 2011-03-17 18:50

Re: Printing with N900
 
When I add a printer I have the following stages:

1. Name and other stuff like location
2. Connection type, where I can choose AppSocket, http, ipp, lpd and scsi printer. I choose AppSocket.
3. Connection URI. I type socket://192.168.1.80
4. Manufacturer and model or ppd. In the manufacturer list I just have generic cups pdf printer and raw.

So I use the ppds.

mase 2011-03-17 18:55

Re: Printing with N900
 
Give http or ipp a try.
In model open the ppd for generic postscript.

peterleinchen 2011-03-17 19:03

Re: Printing with N900
 
Hey.
Think Your connection URl is missing the port.
Try
socket://192.68.1.80:9100

malandante 2011-03-17 19:13

Re: Printing with N900
 
I've tried the other connection methods as well. No luck.

Maybe you could take a look at:

http://www.linuxfoundation.org/colla...tabasefoomatic

and compile the filters for maemo. I don't know how to do it.

:)

malandante 2011-03-17 19:17

Re: Printing with N900
 
Quote:

Originally Posted by peterleinchen (Post 969821)
Hey.
Think Your connection URl is missing the port.
Try
socket://192.68.1.80:9100

I tried that too. It made no difference.

mase 2011-03-17 19:42

Re: Printing with N900
 
I will try to package foomatic-filters.

malandante 2011-03-17 20:30

Re: Printing with N900
 
Quote:

Originally Posted by mase (Post 969842)
I will try to package foomatic-filters.

Many thanks in advance!

sbock 2011-03-18 13:01

Re: Printing with N900
 
Quote:

Originally Posted by woody14619 (Post 969077)
@Mase: I've always found when looking for votes, it helps to post the link to get people there faster. :)

Good idea! Here are the other two packages which wait for promotion:

Cups-client: Link 1.

Cups-bsd: Link 2.

demolition 2011-03-21 23:29

Re: Printing with N900
 
Hello

I'm keen to test this. However, I have a few questions before I do. I apologise if have missed/mis-understood something in any of the previous posts have answered these points already - done my best to go through the thread.

- Should all three CUPS packages be installed that appear in the repository?

When installing with F-ApMan, a message pops up saying "you are about to remove a critical system package," I tend to err on the side of caution so cancelled the installation. There's no info on the package page about what this does.
- What is "mp-fremantle-generic-pr" and if removed, what problems arise?

- 'fakedebconf' is being replaced (#127) - does the new item conflict with anything? Where can I find out what problems might occur with this swap?

- Not sure which posts in this thread relate to the current version but there is mention of additional drivers (ghostscript?) and library objects. Is everything like this all bundled together or linked to as a dependency by the app mgr? If not, what extra items are required?

- There seem to be a number of mentions of configuring settings through the terminal. Is this still required? Are they the same as in previous posts (e.g. #56)?

- By installing this, can one use/install local printers or, does the printer need its own IP address as part of a network to work with CUPS?
- If local printing is possible, has anyone got it to work yet? And, how was the data sent to the printer (USB, BT, WiFi, other?)?

- How much rootfs space do the packages for maemo-CUPS need.

- This is a longshot: is it possible to send print data using IR, and if so what needs to be done to set it up? I the software doesn't exist yet I'd still be interested to know if it's feasible.

Oops, that was quite long! Hope these aren't completely senseless and that I get some useful replies!

Very grateful printing is being moved forward. Thank you.

mase 2011-03-22 13:41

Re: Printing with N900
 
You should install all packages inside cups, except the -dev packages.
mp-fremantle-generic-pr is replaced by CSSU, not cups I think.
fakedebconf is replaced by debconf. No problem.
You have nothing to do in the terminal. After installing cups, all
dependencies are also installed. After the installation reboot, or just
enter /etc/init.d/cups restart in the terminal. Then you are able to set up
printers with the webbrowser. Use http://localhost:631 for that.
The rootfs space is not critical, the packages are optified.
There are no backends for IR, IU don't know any for cups, so this will be
not possible.

demolition 2011-03-22 22:47

Re: Printing with N900
 
@Mase: Thank you for answering my verbose questions.

I'm using Titan's v0.46 at the moment but not put the CSSU on yet. I'll have a look through the CSSU thread for any info on that generic package. It's just I didn't know what it was and the install said that a "critical package" was being removed, which was a bit an alarm bell! Perhaps it'll be ok? Worst case scenario, I can always flash!

Yeah - thought the IR would be mere wishful thinking. How have other testers connected to local printers? Assume v0.46 and h-e-n is required for USB printing?

I'll report back when I've got some output or errors, if I make a hash of it!

demolition 2011-03-23 10:01

Re: Printing with N900
 
Not having much luck installing. Active repos: extras, extras-testing, sdk and nokia binaries. Libpaper1 is in the sdk, which is required. I've probably forgotten to enable/disable something but here is the log.

The update mentions a conflict but not sure how to resolve. Using apt-get is fairly fruitless because it doesn't find the CUPS packages.

If anyone has any ideas, please do share them.

On updating repositories:
Code:

--- 2011-03-23 09:48:52 ---
/usr/bin/apt-get -q update -o Dir::Etc::sourcelist=/opt/fapman-cache/sources.list -o Dir::State::lists=/opt/fapman-cache/lists -o Dir::Etc::sourceparts=""
Hit http://repository.maemo.org fremantle-1.3 Release.gpg
Ign http://repository.maemo.org fremantle-1.3/free Translation-en_GB
Ign http://repository.maemo.org fremantle-1.3/non-free Translation-en_GB
Hit https://downloads.maemo.nokia.com ./ Release.gpg
Hit http://repository.maemo.org fremantle-1.3 Release.gpg
Ign http://repository.maemo.org fremantle-1.3/free Translation-en_GB
Ign http://repository.maemo.org fremantle-1.3/non-free Translation-en_GB
Ign http://repository.maemo.org fremantle/sdk Release.gpg
Ign http://repository.maemo.org fremantle/sdk/free Translation-en_GB
Ign http://repository.maemo.org fremantle/sdk/non-free Translation-en_GB
Ign http://repository.maemo.org fremantle/******************************** Release.gpg
Ign http://repository.maemo.org fremantle/********************************/nokia-binaries Translation-en_GB
Ign http://repository.maemo.org fremantle/tools Release.gpg
Ign http://repository.maemo.org fremantle/tools/free Translation-en_GB
Ign http://repository.maemo.org fremantle/tools/non-free Translation-en_GB
Hit http://repository.maemo.org fremantle-1.3 Release
Hit http://repository.maemo.org fremantle-1.3 Release
Ign http://repository.maemo.org fremantle/sdk Release
Ign http://repository.maemo.org fremantle/******************************** Release
Ign http://repository.maemo.org fremantle/tools Release
Ign http://repository.maemo.org fremantle/sdk/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/sdk/non-free Packages/DiffIndex
Ign http://repository.maemo.org fremantle-1.3/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle-1.3/non-free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/********************************/nokia-binaries Packages/DiffIndex
Ign http://repository.maemo.org fremantle/tools/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/tools/non-free Packages/DiffIndex
Ign https://downloads.maemo.nokia.com ./ Translation-en_GB
Hit http://repository.maemo.org fremantle/sdk/free Packages
Hit http://repository.maemo.org fremantle/sdk/non-free Packages
Hit http://repository.maemo.org fremantle-1.3/free Packages
Hit http://repository.maemo.org fremantle-1.3/non-free Packages
Hit https://downloads.maemo.nokia.com ./ Release.gpg
Ign http://repository.maemo.org fremantle-1.3/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle-1.3/non-free Packages/DiffIndex
Hit http://repository.maemo.org fremantle/********************************/nokia-binaries Packages
Hit http://repository.maemo.org fremantle/tools/free Packages
Hit http://repository.maemo.org fremantle/tools/non-free Packages
Hit http://repository.maemo.org fremantle-1.3/free Packages
Hit http://repository.maemo.org fremantle-1.3/non-free Packages
Ign https://downloads.maemo.nokia.com ./ Translation-en_GB
Hit https://downloads.maemo.nokia.com ./ Release
Hit https://downloads.maemo.nokia.com ./ Release
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Hit https://downloads.maemo.nokia.com ./ Packages
Hit https://downloads.maemo.nokia.com ./ Packages
Reading package lists...
W: Conflicting distribution: http://repository.maemo.org fremantle-1.3 Release (expected fremantle-1.3 but got )
W: You may want to run apt-get update to correct these problems

On installing packages
Code:

/usr/bin/apt-get -qsy --allow-unauthenticated -o Dir::Etc::sourcelist=/opt/fapman-cache/sources.list -o Dir::State::lists=/opt/fapman-cache/lists -o Dir::Etc::sourceparts="" --auto-remove install cups cups-bsd cups-client
--
Output from last process:
---
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  cups: Depends: lsb-base (>= 3) but it is not going to be installed
  cups-bsd: Depends: netbase but it is not going to be installed
  upstart: PreDepends: sysvinit-utils (>= 2.86.ds1-23) or
                      busybox (>= 3:1.6.1.legal-1osso8) but it is not going to be installed
E: Broken packages


mase 2011-03-23 13:58

Re: Printing with N900
 
Why do you have sdk and nokia binaries in the catalog?
I think, the upstart - busybox dependency problem comes from an updated
upstart package. I have the same on my device.

demolition 2011-03-24 00:23

Re: Printing with N900
 
I have the sdk installed because Midnight Commander needed a few libs etc, which were not being loaded with the standard repositories active. Indeed with CUPS, the app mgr it claims it can't find libpaper1 without the sdk repository turned on.

Upstart does appear to be the offending item but it was installed on my device as part of PR1.3, from what I can see. Also, the versions on my device look the same as on the package pages so not sure why there's a problem.

Aaaarrgghh! Missing and conflicting dependencies really are linux's dll-hell! Overlapping and intertwined yet separate from the programmes they support, hence difficult to know what they do when alone; if one breaks, many fall! Fun. Not sure which other programme might have updated it. I can hear the tune of Space Oddessy 2001 getting louder...

Did you end up removing busybox, upstart or doing something else altogether?

mase 2011-03-24 14:23

Re: Printing with N900
 
libpaper1 is a coming with the nokia-applications repo, not the sdk.
I habe also mc installed, and no sdk repos enabled.
I did not remove busybox. You should disable the sdk repos. there's no
need for them.

demolition 2011-03-24 17:24

Re: Printing with N900
 
As suggested, repositories set up as following:
extras
testing: contains CUPS server, bsd and client
devel*: contains ghostscript*
Nokia Applications: dependencies
Nokia SSU: dependencies

following repos are OFF to prevent conflicts
sdk
binaries
tools

Ovi repo is also off but not involved here.

* ghostscript is in testing. Just a problem when I was installing so Devel should not, in fact, be needed.

At first the 'apps' and 'mr0' repos weren't playing ball so re-imported them from HAM and all worked. I now have access to the setup screen. Now to get printing!
Thank you Mase. I'll report back when I get some results (and hopefully not with too many questions!)

mase 2011-03-24 18:40

Re: Printing with N900
 
ghostscript is also in testing. There is no need for the devel repos.
I hope, it works for you now.

mbrubeck 2011-03-24 18:44

Re: Printing with N900
 
If you have Google Cloud Print installed on your Windows PC, you can now print from mobile Firefox with this add-on:

https://addons.mozilla.org/mobile/addon/cloud-printer/

demolition 2011-03-24 21:38

Re: Printing with N900
 
@Mase - yeah so I see from the package page. I just got errors when trying to install without devel active. I'll edit the post above.

@mbrubeck - good plan. But, I'd like to be able be able to print directly from my N900, without going through anything other than the printer itself.

rotoflex 2011-04-13 16:39

Re: Printing with N900
 
Quote:

Originally Posted by sbock (Post 968870)
despite cups had a conflict with the package "fakedebconf". I removed that package and can't find any problems.

My experience is not as lucky.

On trying to install cups, I got the error that it conflicted with fakedebconf and busybox.

Since you mentioned that you removed fakedebconf, I did an apt-get remove fakedebconf - & watched it delete all programs from the phone. The phone is now bricked, & must be re-flashed.

I think that when I get my phone back together, I will be unwilling to try installation of these packages without very lucid, orderly & complete
1.
2.
3.
[...].
algorithmic type instructions for installation.

mase 2011-04-13 16:57

Re: Printing with N900
 
Install debconf. Do NOT uninstall fakedebconf before! debconf replaces
fakedebconf.

demolition 2011-04-15 17:52

Re: Printing with N900
 
Finally, I have managed to get CUPS to see my printer connected by USB. Quite tempestuous but done. For others using USB, be patient at each step of the connection - wait a moment between pressing each button in the h-e-n. The connection will take but do check in the kernel messages to be sure.

Firstly, is it correct to press 'raw' when goingb through the options? The alternative was to select an lpd file which I don't have, do I?

Secondly, I'm feeling a little stupid here because I'm sure the answer is supposed to be obviuos. However, I have completely missed it. What is the username - password pair to use with CUPS? I have tried what I think is the un-pw pair for root, as suggested on the CUPS page. I do not have a pw set on the device but I have reset the root and user passwords to make sure I'm definitely entering this correctly. Perhaps its the username? I have used 'root', 'user' and the name of the device (as set in the BT settings).

Assuming I can get this to connect, how do I print something? Is it possible in Maemo or do I need to do it from easy debian?

Help much appreciated...

mase 2011-04-15 20:08

Re: Printing with N900
 
Try the gtk libs I provided in this thread. Note, that not all of these
packages are needed, only libgtk... without -dev. Then you can also
install my rebuilt packages for abiword and leafpad with enabled
printing support. They work perfectly. Be careful with the gtk packages.
Any fault here can mess up your device, because nearly everything
depends on them.
If the cups packages are working, please vote.

demolition 2011-04-16 16:29

Re: Printing with N900
 
@Mase - Thanks for gkt tips. I'll post separately if I need help with them because as you say gtk is very closely linked with the OS.

- Any suggestion on how to sign into CUPS? I am being foiled by the username and password. And feeling rather dilly because of it!

- Re voting: there are lots of CUPS packages. Apart from my trouble with logging in, it seems to work as expected so I'd like to see it in the normal extras for all to use, which is why I have voted for the one called Cups (for armel). Is this one a master-package or do I need to vote for them all for CUPS to get closer to being promoted? I can see that the BT one is different but otherwise I'm not sure.

mase 2011-04-16 16:43

Re: Printing with N900
 
I think, cups and cups-client would be enough. But you can also vote for
all, but only the latest versions.
Have you set a root pw on your device? Try logging in with that.

demolition 2011-04-16 17:47

Re: Printing with N900
 
Done - voted for the Maemo5 CUPS packages that are in testing, excluding libs that can't be voted on.

Re CUPS access: I have done this:
Code:

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# passwd
Changing password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
Re-enter new password:
Password changed.
Nokia-N900:~#

I have used usernames root, user, [device BT name] and "Nokia-N900".

I have also tried lppasswd -g sys -a root without success

mase 2011-04-16 22:32

Re: Printing with N900
 
This should be the same as on a linux machine. Normally the root pw
should work.

demolition 2011-04-17 07:03

Re: Printing with N900
 
If the passowrd is correct, the username(s) I'm using is wrong.
Would openssh settings have an influence on access to CUPS? If so, I would be greatful if anyone would tell me how to reset the openssh un-pw because I cannot remember them.

mase 2011-04-17 09:16

Re: Printing with N900
 
openssh has no influence to cups.

peterleinchen 2011-04-17 13:10

Re: Printing with N900
 
Quote:

Originally Posted by demolition (Post 990025)
I have also tried lppasswd -g sys -a root without success

Please try
lppasswd -g lpadmin -a root

(or maybe: lppasswd -g admin -a root, but as I remember correctly, it should be above)
Then restart cups (or do a reboot) and enter inti localhost:631 with user root and Your normal root password.
Hopefully this works. I have also elaborated it a few days....

woody14619 2011-04-18 18:30

Re: Printing with N900
 
Quote:

Originally Posted by peterleinchen (Post 990480)
Please try
lppasswd -g lpadmin -a root


The bigger issue here is that for some reason sometimes pam fails on the N900. I had the same issue. One way to fix that is by looking for the following line in /etc/cups/cupsd.conf and making it look like this:

Code:

DefaultAuthType BasicDigest
That causes cups/cupsd to use the lpadmin generated file: passwd.md5 in /etc/cups. Once you change the config file and restart cupsd it will use the MD5 hash to log in.

demolition 2011-04-25 21:47

Re: Printing with N900
 
@peter - good tip. I will try this out.

If doing this doesn't work, I will try woody's suggestion.

@woody - found the section:
Code:

# Default authentication type, when authentication is required...
DefaultAuthType Basic

As you can see mine doesn't have the Digest bit on it. Lets try it out. I'll report back later...

woody14619 2011-04-25 21:53

Re: Printing with N900
 
Quote:

Originally Posted by demolition (Post 995244)
@peter - good tip. I will try this out.

If doing this doesn't work, I will try woody's suggestion.

One won't work without the other, you need to do both. The lpadmin command creates the passwd.md5 file, the change to the config tells cupsd to use that file.


All times are GMT. The time now is 12:09.

vBulletin® Version 3.8.8