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)

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:08.

vBulletin® Version 3.8.8