I have the gnome-python package installed from the SuSE 9.1 DVD but python acts like it isn't there. The problem has come up while trying to get gramps to work. The gramps folks all point to a broken SuSE package, the comment I see frequently is "SuSE is known for shipping incomplete gnome-python packages." But no-one seems to be able to point me to a solution. The error shows up like this.... helphand@helphand:~> python Python 2.3.3 (#1, Apr 6 2004, 09:45:08) [GCC 3.3.3 (SuSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import pygtk pygtk.require('2.0') import gnome.ui Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: could not import bonobo.ui
Now, both gnome.ui and bonobo.ui *are* installed and *are* on my hard drive in the locations seen here ... http://www.suse.com/us/private/products/suse_linux/prof/packages_amd64/pytho... Both Python and the gnome-python package came straight from SuSE media and were installed via Yast. Can anyone point me in the right direction for solving this? Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
On Saturday 31 July 2004 1:10 pm, Scott Leighton wrote:
I have the gnome-python package installed from the SuSE 9.1 DVD but python acts like it isn't there.
Nothing like solving your own problem <g>. The python-orbit package is required for bonobo to work correctly with python. ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.1-x86_64/RPMS.base/python-orbit-2.0.0-159.x86_64.rpm Additionally, if anyone else out there has been trying to get gramps to work, it needs the python-xml package ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.1-x86_64/RPMS.base/python-xml-2.3.3-65.x86_64.rpm Note, adjust above links for your architecture. Once those two are installed, gramps starts up fine and runs on my AMD64. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
This is driving me crazy. I have samba server set up and apparently working fine, I can browse to the SuSE box from Win98 and install the printer with no issues. When I print, however, nothing seems to make it to the printer. I can see the print job as 'active' in CUPS, but nothing prints. I've googled, read the CUPS and Samba sections of the SuSE admin manual, read more than I ever wanted to know about both CUPS and Samba, but I cannot see where the problem is. I tried to simplify things by trying to use the PDF Creator to see what is going on, but it too fails to print, it dumps a strange message in var/log/messages Aug 1 15:31:25 helphand smbd[19043]: [2004/08/01 15:31:25, 0] lib/substitute.c:alloc_sub_basic(505) Aug 1 15:31:25 helphand smbd[19043]: alloc_sub_basic: NULL source string! This should not happen helphand:/etc/samba # No too encouraging when the software tells you 'this should not happen' <g> My /etc/samba/smb.conf file looks like this.... # smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE # Date: 2004-07-21 [global] load printers = yes printer = hp_deskjet720c logon drive = P: domain master = false username map = /etc/samba/smbusers map to guest = Bad User encrypt passwords = yes logon home = \\%L\%U\.9xprofile printer admin = @ntadmin, root, administrator passdb backend = smbpasswd printcap cache time = 750 netbios name = helphand cups options = raw printing = cups use client driver = yes server string = Samba Server path = /var/tmp ldap suffix = dc=example,dc=com local master = no workgroup = LEIGHTON logon path = \\%L\profiles\.msprofile debug level = 2 printcap name = cups security = user preferred master = auto add machine script = domain logons = no [homes] comment = Home Directories valid users = %S browseable = no read only = No inherit permissions = Yes guest ok = no printable = no [profiles] comment = Network Profiles Service path = %H read only = No store dos attributes = Yes create mask = 0600 directory mask = 0700 browseable = yes guest ok = no printable = no [users] browseable = no printable = no inherit permissions = Yes writable = yes path = /home guest ok = no comment = All users veto files = /aquota.user/groups/shares/ [groups] comment = All groups path = /home/groups read only = No inherit permissions = Yes browseable = yes guest ok = no printable = no [pdf] create mask = 0600 comment = PDF creator print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z printable = yes public = yes [printers] comment = All Printers path = /var/tmp printable = yes create mask = 0600 browseable = no guest ok = no [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 browseable = yes guest ok = no printable = no [Deskjet722] printer = hp_deskjet720c comment = Deskjet 722 printable = yes public = yes path = /var/tmp Again, all of my attempts do result in the print job ending up as completed CUPS jobs so clearly the Win98 box talks to the SuSE box and gets that far. They just never make it to the printer. If anyone has any ideas on where I can look I would sure appreciate pointers. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
On Sunday 01 August 2004 05:47 pm, Scott Leighton wrote:
This is driving me crazy. I have samba server set up and apparently working fine, I can browse to the SuSE box from Win98 and install the printer with no issues.
When I print, however, nothing seems to make it to the printer.
I can see the print job as 'active' in CUPS, but nothing prints.
Is the printer you are trying to connect to set up as a raw print queue? If you don't know, it probably isn't. If it isn't a raw queue, look at /etc/cups/mime.convs and make sure application/octet-stream application/vnd.cups-raw is uncommented (bottom of the file) as well as application/octet-stream in /etc/cups/mime.types (again toward the bottom of the file). If that solves the problem, great! If not check in /var/log/cups/error_log and see if you can find a clue. If editing the two cups files does the trick, be sure to check them again if cups gets updated. I've had these modified files overwritten with an update. You can avoid that problem by setting up a raw print queue for your printer and pointing the windows machine to that queue. I've seen both ways described as 'the best way', so... have fun! Doug
On Sunday 01 August 2004 6:25 pm, Doug B wrote:
On Sunday 01 August 2004 05:47 pm, Scott Leighton wrote:
This is driving me crazy. I have samba server set up and apparently working fine, I can browse to the SuSE box from Win98 and install the printer with no issues.
When I print, however, nothing seems to make it to the printer.
I can see the print job as 'active' in CUPS, but nothing prints.
Is the printer you are trying to connect to set up as a raw print queue? If you don't know, it probably isn't.
No.
If it isn't a raw queue, look at /etc/cups/mime.convs and make sure application/octet-stream application/vnd.cups-raw is uncommented (bottom of the file) as well as application/octet-stream in /etc/cups/mime.types (again toward the bottom of the file).
Done.
If that solves the problem, great! If not check in /var/log/cups/error_log and see if you can find a clue.
Didn't solve it, error_log shows this..... I [01/Aug/2004:18:39:33 -0700] Adding start banner page "none" to job 28. I [01/Aug/2004:18:39:33 -0700] Adding end banner page "none" to job 28. I [01/Aug/2004:18:39:33 -0700] Job 28 queued on 'hp_deskjet720c' by 'LEGGS51'. I [01/Aug/2004:18:39:33 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 22766) for job 28. I [01/Aug/2004:18:39:50 -0700] Adding start banner page "none" to job 29. I [01/Aug/2004:18:39:50 -0700] Adding end banner page "none" to job 29. I [01/Aug/2004:18:39:50 -0700] Job 29 queued on 'hp_deskjet720c' by 'LEGGS51'. I [01/Aug/2004:18:39:50 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 22779) for job 29. I [01/Aug/2004:18:40:06 -0700] Adding start banner page "none" to job 30. I [01/Aug/2004:18:40:06 -0700] Adding end banner page "none" to job 30. I [01/Aug/2004:18:40:06 -0700] Job 30 queued on 'hp_deskjet720c' by 'LEGGS51'. I [01/Aug/2004:18:40:06 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 22780) for job 30. Nothing comes out of the printer, no obvious activity or anything. helphand:/var/log/cups # lpq hp_deskjet720c is ready no entries Any other log files that might have a clue in them? Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
On Sunday 01 August 2004 05:50 pm, Scott Leighton wrote:
If that solves the problem, great! If not check in /var/log/cups/error_log and see if you can find a clue.
Didn't solve it, error_log shows this.....
I [01/Aug/2004:18:39:33 -0700] Adding start banner page "none" to job 28. I [01/Aug/2004:18:39:33 -0700] Adding end banner page "none" to job 28. I [01/Aug/2004:18:39:33 -0700] Job 28 queued on 'hp_deskjet720c' by 'LEGGS51'. I [01/Aug/2004:18:39:33 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 22766) for job 28. I [01/Aug/2004:18:39:50 -0700] Adding start banner page "none" to job 29. I [01/Aug/2004:18:39:50 -0700] Adding end banner page "none" to job 29. I [01/Aug/2004:18:39:50 -0700] Job 29 queued on 'hp_deskjet720c' by 'LEGGS51'. I [01/Aug/2004:18:39:50 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 22779) for job 29. I [01/Aug/2004:18:40:06 -0700] Adding start banner page "none" to job 30. I [01/Aug/2004:18:40:06 -0700] Adding end banner page "none" to job 30. I [01/Aug/2004:18:40:06 -0700] Job 30 queued on 'hp_deskjet720c' by 'LEGGS51'. I [01/Aug/2004:18:40:06 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 22780) for job 30.
Nothing comes out of the printer, no obvious activity or anything.
helphand:/var/log/cups # lpq hp_deskjet720c is ready no entries
Any other log files that might have a clue in them?
You DID restart cups after that change, correct? "rccups restart" Generally the way to do this is to make two entries in cups one for the linux side (defining the printer exactly as what it is) and one for the windows side defining the printer only as RAW (because windows already have the drivers). (I prefer to use the built in cups software rather than yast, by pointing my web browser at http://localhost:631/ ) -- _____________________________________ John Andersen
On Sunday 01 August 2004 6:56 pm, John Andersen wrote:
You DID restart cups after that change, correct? "rccups restart"
Yes, and rcsmb just for good measure too.
Generally the way to do this is to make two entries in cups one for the linux side (defining the printer exactly as what it is) and one for the windows side defining the printer only as RAW (because windows already have the drivers).
OK, let me give that a try. I'm going to set up a second printer in cups and blow away all the configured stuff on Win98 and re-set those up.
(I prefer to use the built in cups software rather than yast, by pointing my web browser at http://localhost:631/ )
Right, I'm using webmin plus the cups software, though I'm actually editing smb.conf with vi so I can see what the heck I'm doing.... and I *am* restarting after any change. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
On Sunday 01 August 2004 05:47 pm, Scott Leighton wrote:
This is driving me crazy.
For me, that is a very short drive! My knowledge is pretty limited. If not for tools like webmin and yast I'd be lost I think. Man, info, google and an editor sometimes help me tweak around a problem, but webmin and yast pull the biggest load. Since the you can see the printer I didn't suspect samba... but just for fun, here are the differences in your smb.conf and mine (as far as printers go).
[global] load printers = yes printer = hp_deskjet720c
printcap cache time = 750
cups options = raw
use client driver = yes
I don't have any of these.
[printers]
browseable = no
I don't have this. I do have: public = yes
[Deskjet722] printer = hp_deskjet720c comment = Deskjet 722 printable = yes public = yes path = /var/tmp
I don't have any specific printer defined. Hope you get it solved soon. Doug
On Sunday 01 August 2004 7:53 pm, Doug B wrote:
On Sunday 01 August 2004 05:47 pm, Scott Leighton wrote:
This is driving me crazy.
For me, that is a very short drive!
My knowledge is pretty limited. If not for tools like webmin and yast I'd be lost I think. Man, info, google and an editor sometimes help me tweak around a problem, but webmin and yast pull the biggest load.
Since the you can see the printer I didn't suspect samba... but just for fun, here are the differences in your smb.conf and mine (as far as printers go).
OK, I changed mine to match yours, restarted both cups and samba and tried again. No go.
Hope you get it solved soon.
I'm giving up for tonite, I've banged my head against this for hours and hours today, I'm totally exasperated at this point. I'm sure it is something simple that I'm not seeing, man is this frustrating..... Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
On Sunday 01 August 2004 10:39 pm, Scott Leighton wrote:
OK, I changed mine to match yours, restarted both cups and samba and tried again. No go.
I'm giving up for tonite, I've banged my head against this for hours and hours today, I'm totally exasperated at this point. I'm sure it is something simple that I'm not seeing, man is this frustrating.....
One last shot in the dark... Have you tried printing with your linux box lately, just to make sure all is still ok there. I don't reboot often, but when I do, I have to use yast to redetect my printer. Usually I have to unplug the usb cable, plug it back in, then redetect the printer. I still haven't figured that out, and since I seldom reboot, I won't spend much time on it. Point is, make sure it still prints locally... just rule that out. Doug
On Sunday 01 August 2004 9:07 pm, Doug B wrote:
On Sunday 01 August 2004 10:39 pm, Scott Leighton wrote:
OK, I changed mine to match yours, restarted both cups and samba and tried again. No go.
I'm giving up for tonite, I've banged my head against this for hours and hours today, I'm totally exasperated at this point. I'm sure it is something simple that I'm not seeing, man is this frustrating.....
One last shot in the dark... Have you tried printing with your linux box lately, just to make sure all is still ok there. I don't reboot often, but when I do, I have to use yast to redetect my printer. Usually I have to unplug the usb cable, plug it back in, then redetect the printer. I still haven't figured that out, and since I seldom reboot, I won't spend much time on it. Point is, make sure it still prints locally... just rule that out.
Yeah, I thought of that one. Prints fine locally. I'm still scratching my head over *where* cups thinks it is sending this stuff that it supposedly printed.... I've watched the activity light on the printer, it's not going there so it's not like the printer chokes on it and discards it or something. And the cups log shows it sent it on to the backend, so where the heck did it go? [01/Aug/2004:20:01:59 -0700] Adding end banner page "none" to job 37. I [01/Aug/2004:20:01:59 -0700] Job 37 queued on 'RawDeskjet' by 'LEGGS51'. I [01/Aug/2004:20:01:59 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 24337) for job 37. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
On Mon, 2 Aug 2004 14:23, Scott Leighton wrote:
Yeah, I thought of that one. Prints fine locally. I'm still scratching my head over *where* cups thinks it is sending this stuff that it supposedly printed.... I've watched the activity light on the printer, it's not going there so it's not like the printer chokes on it and discards it or something.
And the cups log shows it sent it on to the backend, so where the heck did it go?
[01/Aug/2004:20:01:59 -0700] Adding end banner page "none" to job 37. I [01/Aug/2004:20:01:59 -0700] Job 37 queued on 'RawDeskjet' by 'LEGGS51'. I [01/Aug/2004:20:01:59 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 24337) for job 37.
Sorry I have just noticed this thread. If you run lpstat -a is the printer 'RawDeskjet' mentioned? If the printer does not appear, I would suggest that you have samba incorrectly configured. Please let me know and I will send you my config file. If you do have this printer name it may help to increase the debug level for cups to see what is actually happening. As root edit the file /etc/cups/cupsd.conf On line about 166 you should see LogLevel info change it to LogLevel debug and restart cups Try and print something from Windows and then have a look at the log files for cups. The other area where you can have trouble is trying to print raw data to the printer. There are two files involved. /etc/cups/mime.convs and /etc/cups/types. Edit both these files as root. In /etc/cups/mine.convs remove the comment (#) from the line #application/octet-stream application/vnd.cups-raw 0 - at the end of the file. In /etc/cups/mime.types remove the comment (#) from the line #application/octet-stream located at towards the end of the file. Now restart cups and try printing again from windows. If this does not work, please post the output from lpstat -a and the relevant lines from the error.log with the increased debug level. -- Regards, Graham Smith ---------------------------------------------------------
On Sunday 01 August 2004 10:37 pm, Graham Smith wrote:
On Mon, 2 Aug 2004 14:23, Scott Leighton wrote:
Yeah, I thought of that one. Prints fine locally. I'm still scratching my head over *where* cups thinks it is sending this stuff that it supposedly printed.... I've watched the activity light on the printer, it's not going there so it's not like the printer chokes on it and discards it or something.
And the cups log shows it sent it on to the backend, so where the heck did it go?
[01/Aug/2004:20:01:59 -0700] Adding end banner page "none" to job 37. I [01/Aug/2004:20:01:59 -0700] Job 37 queued on 'RawDeskjet' by 'LEGGS51'. I [01/Aug/2004:20:01:59 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 24337) for job 37.
Sorry I have just noticed this thread.
If you run lpstat -a is the printer 'RawDeskjet' mentioned?
Yes. helphand:/etc/cups # lpstat -a hp_deskjet720c accepting requests since Jan 01 00:00 RawDeskjet accepting requests since Jan 01 00:00 helphand:/etc/cups #
If you do have this printer name it may help to increase the debug level for cups to see what is actually happening.
Done.
Try and print something from Windows and then have a look at the log files for cups.
Done, no change. Still doesn't print.
The other area where you can have trouble is trying to print raw data to the printer. There are two files involved. /etc/cups/mime.convs and /etc/cups/types.
Edit both these files as root.
Done.
Now restart cups and try printing again from windows.
Done, again no change.
If this does not work, please post the output from lpstat -a and the relevant lines from the error.log with the increased debug level.
Here's the log.... D [01/Aug/2004:22:49:50 -0700] AcceptClient: 5 from localhost:631. D [01/Aug/2004:22:49:50 -0700] ReadClient() 5 POST / HTTP/1.1 D [01/Aug/2004:22:49:50 -0700] ProcessIPPRequest: 5 status_code=0 D [01/Aug/2004:22:49:50 -0700] ReadClient() 5 POST / HTTP/1.1 D [01/Aug/2004:22:49:50 -0700] ProcessIPPRequest: 5 status_code=0 D [01/Aug/2004:22:49:50 -0700] CloseClient() 5 D [01/Aug/2004:22:49:50 -0700] AcceptClient: 5 from localhost:631. D [01/Aug/2004:22:49:50 -0700] ReadClient() 5 POST / HTTP/1.1 D [01/Aug/2004:22:49:50 -0700] ProcessIPPRequest: 5 status_code=0 D [01/Aug/2004:22:49:50 -0700] CloseClient() 5 D [01/Aug/2004:22:49:50 -0700] AcceptClient: 5 from localhost:631. D [01/Aug/2004:22:49:50 -0700] ReadClient() 5 POST /printers/RawDeskjet HTTP/1.1 D [01/Aug/2004:22:49:50 -0700] print_job: auto-typing file... D [01/Aug/2004:22:49:50 -0700] print_job: request file type is application/vnd.cups-raw. D [01/Aug/2004:22:49:50 -0700] check_quotas: requesting-user-name = 'LEGGS51' D [01/Aug/2004:22:49:50 -0700] print_job: requesting-user-name = 'LEGGS51' D [01/Aug/2004:22:49:50 -0700] Adding default job-sheets values "none,none"... I [01/Aug/2004:22:49:50 -0700] Adding start banner page "none" to job 38. I [01/Aug/2004:22:49:50 -0700] Adding end banner page "none" to job 38. I [01/Aug/2004:22:49:50 -0700] Job 38 queued on 'RawDeskjet' by 'LEGGS51'. D [01/Aug/2004:22:49:50 -0700] Job 38 hold_until = 0 D [01/Aug/2004:22:49:50 -0700] StartJob(38, 0x570c50) D [01/Aug/2004:22:49:50 -0700] StartJob() id = 38, file = 0/1 D [01/Aug/2004:22:49:50 -0700] StartJob: Sending job to queue tagged as raw... D [01/Aug/2004:22:49:50 -0700] job-sheets=none,none D [01/Aug/2004:22:49:50 -0700] banner_page = 0 D [01/Aug/2004:22:49:50 -0700] StartJob: argv = "RawDeskjet","38","LEGGS51","smbprn.00000003 http://my.myway.com/my.jsp","1","","/var/spool/cups/d00038-001" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[0]="PATH=/usr/lib64/cups/filter:/bin:/usr/bin" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[1]="SOFTWARE=CUPS/1.1" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[2]="USER=root" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[3]="CHARSET=utf-8" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[4]="LANG=en_US" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[5]="PPD=/etc/cups/ppd/RawDeskjet.ppd" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[7]="RIP_MAX_CACHE=8m" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[9]="CONTENT_TYPE=application/vnd.cups-raw" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[10]="DEVICE_URI=parallel:/dev/lp0" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[11]="PRINTER=RawDeskjet" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[14]="CUPS_SERVER=localhost" D [01/Aug/2004:22:49:50 -0700] StartJob: envp[15]="IPP_PORT=631" D [01/Aug/2004:22:49:50 -0700] StartJob: statusfds = [ 7 8 ] D [01/Aug/2004:22:49:50 -0700] StartJob: filterfds[1] = [ 9 -1 ] D [01/Aug/2004:22:49:50 -0700] StartJob: backend = "/usr/lib64/cups/backend/parallel" D [01/Aug/2004:22:49:50 -0700] StartJob: filterfds[0] = [ -1 10 ] D [01/Aug/2004:22:49:50 -0700] start_process("/usr/lib64/cups/backend/parallel", 0x7fbffedd00, 0x7fbffecee0, 9, 10, 8) I [01/Aug/2004:22:49:50 -0700] Started backend /usr/lib64/cups/backend/parallel (PID 26429) for job 38. D [01/Aug/2004:22:49:50 -0700] ProcessIPPRequest: 5 status_code=0 D [01/Aug/2004:22:49:50 -0700] CloseClient() 5 D [01/Aug/2004:22:49:52 -0700] UpdateJob: job 38, file 0 is complete. D [01/Aug/2004:22:49:52 -0700] CancelJob: id = 38 D [01/Aug/2004:22:49:52 -0700] StopJob: id = 38, force = 0 D [01/Aug/2004:22:49:52 -0700] StopJob: printer state is 3 D [01/Aug/2004:22:50:05 -0700] AcceptClient: 5 from localhost:631. D [01/Aug/2004:22:50:05 -0700] ReadClient() 5 POST / HTTP/1.1 D [01/Aug/2004:22:50:05 -0700] ProcessIPPRequest: 5 status_code=0 D [01/Aug/2004:22:50:05 -0700] ReadClient() 5 POST / HTTP/1.1 D [01/Aug/2004:22:50:05 -0700] ProcessIPPRequest: 5 status_code=0 D [01/Aug/2004:22:50:05 -0700] CloseClient() 5 Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
On Mon, 2 Aug 2004 15:58, Scott Leighton wrote:
helphand:/etc/cups # lpstat -a hp_deskjet720c accepting requests since Jan 01 00:00 RawDeskjet accepting requests since Jan 01 00:00 helphand:/etc/cups #
If you do have this printer name it may help to increase the debug level for cups to see what is actually happening.
Done.
Try and print something from Windows and then have a look at the log files for cups.
Done, no change. Still doesn't print.
The other area where you can have trouble is trying to print raw data to the printer. There are two files involved. /etc/cups/mime.convs and /etc/cups/types.
Edit both these files as root.
Done.
Now restart cups and try printing again from windows.
Done, again no change.
If this does not work, please post the output from lpstat -a and the relevant lines from the error.log with the increased debug level.
Here's the log....
Well I could not see anything wrong in the log. Is there anything in the samba logs indicating a problem? The only other thing that I can think of is that the file being printed is zero length and the problem lies in the Windows box. -- Regards, Graham Smith ---------------------------------------------------------
On Sunday 01 August 2004 11:40 pm, Graham Smith wrote:
On Mon, 2 Aug 2004 15:58, Scott Leighton wrote:
Here's the log....
Well I could not see anything wrong in the log. Is there anything in the samba logs indicating a problem?
Nothing.
The only other thing that I can think of is that the file being printed is zero length and the problem lies in the Windows box.
I don't think so, the http://localhost:631/ cups interface shows the 'completed' job as being 270k in size, e.g, LEGGS51 270k completed at Mon Aug 2 18:12:39 2004 I've tried to capture it by literally turning the printer off in hopes that the job will just sit in the queue, but having the printer turned off makes absolutely no difference, same log entries and same appearance of having printed. Clearly something's screwed up but I have no clue where to look anymore. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
On Tue, 3 Aug 2004 11:59, Scott Leighton wrote:
On Sunday 01 August 2004 11:40 pm, Graham Smith wrote:
On Mon, 2 Aug 2004 15:58, Scott Leighton wrote:
Here's the log....
Well I could not see anything wrong in the log. Is there anything in the samba logs indicating a problem?
Nothing.
The only other thing that I can think of is that the file being printed is zero length and the problem lies in the Windows box.
I don't think so, the http://localhost:631/ cups interface shows the 'completed' job as being 270k in size, e.g,
LEGGS51 270k completed at Mon Aug 2 18:12:39 2004
I've tried to capture it by literally turning the printer off in hopes that the job will just sit in the queue, but having the printer turned off makes absolutely no difference, same log entries and same appearance of having printed.
Clearly something's screwed up but I have no clue where to look anymore.
If you have the printer turned off the file to be printed should appear in /var/spool/cups. There should be two files, c0???? and a d0???? of the same number. If the file is printed only the c0???? file should remain. The d0???? holds the data to be printed. My only other suggestion is to reinstall Cups and see if that resolves the problem. -- Regards, Graham Smith ---------------------------------------------------------
Hi,
I am not an expert but I manage this problem as I explain you.
I only manage in Suse 9.0 not in 9.1
1-go to Yast/hardware/printers.
2- in advance mode change CUPS by LPRng.
3- when chose new printer. smb mode.
4-before make any test. finish all process and start again Yast to make test
and works fine
Regards
Alejo
----- Original Message -----
From: "Scott Leighton"
This is driving me crazy. I have samba server set up and apparently working fine, I can browse to the SuSE box from Win98 and install the printer with no issues.
When I print, however, nothing seems to make it to the printer.
I can see the print job as 'active' in CUPS, but nothing prints.
I've googled, read the CUPS and Samba sections of the SuSE admin manual, read more than I ever wanted to know about both CUPS and Samba, but I cannot see where the problem is.
I tried to simplify things by trying to use the PDF Creator to see what is going on, but it too fails to print, it dumps a strange message in var/log/messages
Aug 1 15:31:25 helphand smbd[19043]: [2004/08/01 15:31:25, 0] lib/substitute.c:alloc_sub_basic(505) Aug 1 15:31:25 helphand smbd[19043]: alloc_sub_basic: NULL source
string!
This should not happen helphand:/etc/samba #
No too encouraging when the software tells you 'this should not happen' <g>
My /etc/samba/smb.conf file looks like this....
# smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE # Date: 2004-07-21 [global] load printers = yes printer = hp_deskjet720c logon drive = P: domain master = false username map = /etc/samba/smbusers map to guest = Bad User encrypt passwords = yes logon home = \\%L\%U\.9xprofile printer admin = @ntadmin, root, administrator passdb backend = smbpasswd printcap cache time = 750 netbios name = helphand cups options = raw printing = cups use client driver = yes server string = Samba Server path = /var/tmp ldap suffix = dc=example,dc=com local master = no workgroup = LEIGHTON logon path = \\%L\profiles\.msprofile debug level = 2 printcap name = cups security = user preferred master = auto add machine script = domain logons = no
[homes] comment = Home Directories valid users = %S browseable = no read only = No inherit permissions = Yes guest ok = no printable = no [profiles] comment = Network Profiles Service path = %H read only = No store dos attributes = Yes create mask = 0600 directory mask = 0700 browseable = yes guest ok = no printable = no [users] browseable = no printable = no inherit permissions = Yes writable = yes path = /home guest ok = no comment = All users veto files = /aquota.user/groups/shares/
[groups] comment = All groups path = /home/groups read only = No inherit permissions = Yes browseable = yes guest ok = no printable = no [pdf] create mask = 0600 comment = PDF creator print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z printable = yes public = yes
[printers] comment = All Printers path = /var/tmp printable = yes create mask = 0600 browseable = no guest ok = no [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 browseable = yes guest ok = no printable = no
[Deskjet722] printer = hp_deskjet720c comment = Deskjet 722 printable = yes public = yes path = /var/tmp
Again, all of my attempts do result in the print job ending up as completed CUPS jobs so clearly the Win98 box talks to the SuSE box and gets that far. They just never make it to the printer.
If anyone has any ideas on where I can look I would sure appreciate pointers.
Scott
-- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.5-7.95-default x86_64
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (5)
-
alejo
-
Doug B
-
Graham Smith
-
John Andersen
-
Scott Leighton