Date: Thu, 17 Jan 2008 20:50:33 -0600 From: "Jeremy Messenger" <mezz7@cox.net> To: "Yousif Hassan" <yousif@alumni.jmu.edu> Cc: freebsd-gnome@freebsd.org Subject: Re: gnome-cups-manager / gnome-cups-add problems Message-ID: <op.t43t6jls9aq2h7@mezz.mezzweb.com> In-Reply-To: <op.t43kjc0u9aq2h7@mezz.mezzweb.com> References: <1200586408.17763.29.camel@localhost> <op.t424ktft9aq2h7@mezz.mezzweb.com> <1200592946.1355.14.camel@localhost> <op.t43kjc0u9aq2h7@mezz.mezzweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 17 Jan 2008 17:22:14 -0600, Jeremy Messenger <mezz7@cox.net> wrote: > On Thu, 17 Jan 2008 12:02:26 -0600, Yousif Hassan > <yousif@alumni.jmu.edu> wrote: > >> Thanks Jeremy for trying to help: >> >>> It works for me with gnome-cups-(manager|add) by setup to connect via >>> samba on other computer that has WindowsXP with printer. I can't get >>> printer works on FreeBSD even via web-based CUPS interface, so only >>> way to >>> get work is by via samba+cups. So... I never knew how >>> gnome-cups-(manager|add) are doing on FreeBSD with printer. >> >> Funny you should mention that. Samba is actually the source of my >> problem, and I tracked it down in the CUPS log >> in /var/log/cups/error_log: >> >> CUPS-Add-Modify-Printer client-error-not-possible: Bad device-uri >> "smb://MYDOMAIN\yhassan:mypasswd@PKFILE1/ENG_HP4000"! >> >> The reason it fails is because of the invalid characters, it seems. >> Still haven't figured out which but it's probably the '\'. Problem is, >> I know of no other way to pass domain information in the SMB uri. > > It took me a while to search in google and I have found it. See here: > > http://quantumg.blogspot.com/2006/11/windows-printer-on-linux.html > > It said that this fix is in CVS, so I will dig in CVS/SVN. I should have > a patch available for you to test tonight or tomorrow. Very very > surpised to see that Ubuntu doesn't has this patch. Put this file in gnome-cups-manager/files/. http://people.freebsd.org/~mezz/diff/patch-add_workgroup Let me know how it goes. This patch is from blog, not SVN. If it doesn't work, then we can try to use SVN version. Cheers, Mezz > BTW: I have added five new patches ready that came from Ubuntu, but > these patches have nothing to do with your problem thought. > > Cheers, > Mezz > >> *This* URI does work in terms of not crapping out in gnome-cups-manager: >> >> "smb://PKFILE1/ENG_HP4000" >> >> However, I have to pass the domain information to get authenticated at >> work. I wonder if this URI-handling error is an upstream issue - it >> wouldn't make sense if it were just FreeBSD. >> >> So I mean to ask: how did you get your SMB printers installed into CUPS >> with GNOME's CUPS manager? With a simple URI as above, or do you know >> to send domain info in a more friendly way? ;) >> >>> > GnomeUI-WARNING **: While connecting to session manager: >>> > Authentication Rejected, reason : None of the authentication >>> protocols >>> > specified are supported and host-based authentication failed. >>> >>> This error is harmless, you get that because your GTK app is running >>> as in >>> root. You will see a lot of that if you search in google. I get that >>> too >>> and I don't have problem with use gnome-cups-(manager|add). >> >> You're right, I finally figured this out. Thanks for confirming! >> >>> Sorry, my respone isn't really helpful since I am pretty clueless >>> either. >>> If I have printer that works with FreeBSD, then it would be a different >>> story as I might be able to get it works. >> >> Actually, I'm curious about how you passed a Samba URI - see above. And >> thanks 'gain. >> >> --Yousif -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.t43t6jls9aq2h7>