I have a Ubuntu 9.04 minimalist setup runing on a XEN vps. I only installed a few things like Wine, NX, cups (and cups-pdf), XFCE4. Works like a charm in every way except printing from Wine. I can print from native Linux apps to PDF but I get an error in Notepad and any other wine running app for that matter, StartPage failed. There are no errors in the /var/log/error_log or any mention of the incident in any logs under /var/log/cups/ I have been looking for the solution for a week. Anybody have any idea what could be the problem? I have a similar setup on a Ubuntu 8.04 although the difference there is that I installed Gnome.
ogardarsson wrote:> I have a Ubuntu 9.04 minimalist setup runing on a XEN vps. I only installed a few things like Wine, NX, cups (and cups-pdf), XFCE4. Works like a charm in every way except printing from Wine. I can print from native Linux apps to PDF but I get an error in Notepad and any other wine running app for that matter, StartPage failed. There are no errors in the /var/log/error_log or any mention of the incident in any logs under /var/log/cups/ > I have been looking for the solution for a week. Anybody have any idea what could be the problem? I have a similar setup on a Ubuntu 8.04 although the difference there is that I installed Gnome. >Open notepad under Wine. Does the PDF printer appear? James McKenzie
Yes Notepad shows the print dialog normally with the PDF option. I can click "Print" and then it dispays the forementioned error. Also please note that the version of Wine is 1.1.27
On Fri, 2009-08-14 at 11:11 -0500, ogardarsson wrote:> I have a Ubuntu 9.04 minimalist setup runing on a XEN vps. I only > installed a few things like Wine, NX, cups (and cups-pdf), XFCE4. > Works like a charm in every way except printing from Wine. I can print > from native Linux apps to PDF but I get an error in Notepad and any > other wine running app for that matter, StartPage failed. There are no > errors in the /var/log/error_log or any mention of the incident in any > logs under /var/log/cups/A previous thread pointed out that WINE expects to use a socket connection to CUPS, so have you configured CUPS to listen for attempts to connect via a socket? Its default is not to listen. In my Fedora 10 setup (Gnome) you select Server|Settings and then, in the Basic Server Settings dialog checking "Publish shared printers connected to this system" should do it. Martin
Martin Gregorie wrote:> On Sat, 2009-08-15 at 11:44 +0100, Martin Gregorie wrote: > > > In my Fedora 10 setup (Gnome) you select Server|Settings and then, in > > the Basic Server Settings dialog checking "Publish shared printers > > connected to this system" should do it. > > > > > Thats within the 'Printing' system administration tool of course! > > MartinI'm trying to avoid installing a big GUI like Gnome because this is running in a datacenter VPS where one tries to keep all that is not strictly necessary out. I do have XCFC4 in there though because it has a slight footprint in all aspects. Do you know a way to do this in the command line? Oli
[/quote]I appreciate that. I thought Ubuntu used Gnome rather than KFE or the lightweights like XFCE, but in any case the Fedora CUPS defaults are likely to be common across most distros. And distros using CUPS will have similar tools for configuring CUPS: now you know where to start looking. Martin[/quote] Actually I looked into the web config that comes with cups. It allows one to access these settings like "Share published printers connected to this system". It was already active.
These are excellent troubleshooting tips Martin. Here are the results: lsof | grep -i 'cups.*TCP' cupsd 3146 root 0u IPv4 2367942 TCP *:ipp (LISTEN) cupsd 3146 root 13u IPv6 2367943 TCP *:ipp (LISTEN)
I was also able to telnet to 631, go the same results as you
Martin Gregorie wrote:> Does mean you are using a text-only system or that you're using a different desktop, e.g KDE or XFCE?I have XFCE installed on this particular server but not Gnome. Basically I'm not using the XFCE desktop except for admin testing. It's general use will be GUI applications delivered using X11 to the users, including Win applications running under Wine emulation. Only problem is the printing from Wine. Printing from native Linux apps is fine. I have a number of other Ubuntu servers in VPS and on dedicated hardware. All running Gnome and some have XCFE4 and KDE also. None of them have any problems with pringing in Wine, just this one server that I'm trying to avoid installing Gnome on. Maybe I should just install it and remove it later. I just don't know how it will go with the removal. Will I have a ton of libraries and stuff taking up space? I guess I should test removing it on a test copy of a VPS to see how goes. Martin[/quote]
I found the solution! As me, the cupsys-bsd package was missing, because I installed lpd in trying to set up the HP LJ 1000 winprinter. I just started the 'wine notepad' in the terminal and tried to print a sheet, so it said it lacks the package. Will it work for you?