Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO CUPS+Samba: printing from Windows & Linux
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4 ... 9, 10, 11  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1283
Location: 50N 3E

PostPosted: Wed Jan 28, 2004 11:00 am    Post subject: Reply with quote

just a question:

how can I align my cardriges on an HP 916c? Under windows there is a tool for it, but under Linux ??????
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. (shamelessly stolen from slartibartfasz)
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Wed Jan 28, 2004 10:11 pm    Post subject: Reply with quote

TriGuN wrote:
Okay, well, I sold that computer, and I'm trying to setup this again on my new server. Unfortunately, it doesn't work. Linux to linux printing does work, just not windows to linux (from my laptop).

the laptop just complains about the server not having the correct drivers installed blah blah.

My SMB.conf: http://steve.neoturbine.net:8000/smb.conf

eh? :(

*edit*
The cupsaddsmb command did not report anything particularly bad, and it did copy the 3 cups drivers to /usr/share/cups/drivers, and yes, I am using cups 1.1.20 :)

Here's the cupsaddsmb output:
Code:

--------8<-------SNIP-------8<---------

:(


Well it seems, that cupsaddsmb didn't like some things there:
Code:

Domain=[MSHOME] OS=[Unix] Server=[Samba 2.2.8a]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory

and

"hp_psc_1210:cupsdrv5.dll:hp_psc_1210.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL"
result was NT_STATUS_UNSUCCESSFUL

This could mean some things, but I am not sure what the problem is. Most probably it's a misconfiguration in the smb.conf, but so far I didn't find anything wrong or missing in your config.

Maybe try that again with the /etc/samba/printer directory completely emtpy (it exists, doesn't it?)? Also, are Samba and CUPS running while you're doing this? And while we're at it: are the permissions on /etc/samba/printer set correctly?

That's all I can think of at the moment...
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Wed Jan 28, 2004 10:15 pm    Post subject: Reply with quote

nielchiano wrote:
just a question:

how can I align my cardriges on an HP 916c? Under windows there is a tool for it, but under Linux ??????

I'm sorry, but I have no idea for that problem.
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
TriGuN
n00b
n00b


Joined: 18 Aug 2003
Posts: 71
Location: Boca Raton, FL

PostPosted: Thu Jan 29, 2004 5:57 am    Post subject: Reply with quote

Yes, the directory exists, Yes I am doing it while samba and CUPS are running, and I am not sure about the permissions, but it's owned by root:root :)

hope this helps [you to help me] :D
_________________
-Steve Bularca-
-NeoturbineNET IRC-
http://neoturbine.net:8000/irc
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Thu Jan 29, 2004 1:12 pm    Post subject: Reply with quote

TriGuN wrote:
Yes, the directory exists, Yes I am doing it while samba and CUPS are running, and I am not sure about the permissions, but it's owned by root:root :)

hope this helps [you to help me] :D


Is it empty? The permissions should not matter though if you run cupsaddsmb as root.

I am running out of ideas here. In any case, your smb.conf is ok. I read somewhere that sometimes the .ppd file can cause problems, but I don't know if that applies here. If there is another .pdd you could use with your printer you may want to give it a try. BTW: which Samba version are you using? If it's 2.2.x maybe you could upgrade to 3.0 and try again.

Other than that I don't know at the moment. Error messages like NT_STATUS_OBJECT_NAME_COLLISION are a little too cryptic to get useful information out of...

I wonder: it worked the last time, why not now? Did you take the configuration over from the last setup?
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
TriGuN
n00b
n00b


Joined: 18 Aug 2003
Posts: 71
Location: Boca Raton, FL

PostPosted: Thu Jan 29, 2004 9:32 pm    Post subject: Reply with quote

Yeah I'm using 2.2.x...and no I didn't take anything over from the last setup :(

I'll try 3.x and see how it goes..
_________________
-Steve Bularca-
-NeoturbineNET IRC-
http://neoturbine.net:8000/irc
Back to top
View user's profile Send private message
L8Knight
n00b
n00b


Joined: 27 Mar 2003
Posts: 3

PostPosted: Sun Feb 01, 2004 8:48 pm    Post subject: Reply with quote

I wanted to post this in case there are others out there that have a similar problem. I followed all the instructions to a 'T'. I used the correct versions of cups, samba, etc. I went with the cups driver options (instead of Adobe's). The two problems I had where:

#1 I had to change the security=share to security=user and add a root user to samba to get the cupsaddsmb utility to work correctly. Once that was done, I changed the security setting back to share.

#2 The other problem I had was that my Windows XP machine would not download the drivers no matter what I did. I went through and double checked everything and ended up resetting up my cups/samba config with one apparent change. For all of my original settings I used [PhotoSmart] as the samba share for the printer and for the cups name of the printer (as instructed). When I set the configs up for the last time I chagned the name to [HPPhotoSmart1115] and matched that with the cups name. I also made sure the samba comment and the cups description matched. This seemed to solve my problem although I'm not completely convinced that it was the cause - maybe I changed something when I redid the config files. Who knows.

For completeness, here are my working configs. First my smb.conf file:

Code:

[global]
   workgroup = WORKGROUP
   server string = Samba Server %v
   printcap name = cups
   load printers = yes
   printing = cups
   browseable = yes
   log file = /var/log/samba/log.%m
   max log size = 50
   hosts allow = 192.168.0. 127.
   security = share
   encrypt passwords = yes
   smb passwd file = /etc/samba/private/smbpasswd
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = no
   log level = 4

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   guest ok = no
   read only = yes
   write list = @adm root

[HPPhotoSmart1115]
   comment = HP PhotoSmart 1115
   printable = yes
   path = /var/spool/samba
   guest ok = yes
   public = yes
   printable = yes
   printer admin = @adm root

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   public = yes
   writable = no
   printable = yes
   printer admin = @adm root


And my cups printers.conf file:

Code:

<DefaultPrinter HPPhotoSmart1115>
Info HP PhotoSmart 1115
Location Home
DeviceURI usb://hp/photosmart%201115
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
Back to top
View user's profile Send private message
olias2
Apprentice
Apprentice


Joined: 23 Aug 2003
Posts: 234
Location: CANADA

PostPosted: Sun Feb 22, 2004 7:53 pm    Post subject: Re: HOWTO CUPS+Samba: printing from Windows & Linux Reply with quote

daff wrote:
This can be done via the CUPS web interface or via command line. The web interface is found at http://PrintServer:631 once CUPS is running.

The following
Code:

# lpadmin -p HPDeskJet930C -E -v usb:/dev/ultp0 -m HP-DeskJet_930C-hpijs.ppd

is for my setup on my FreeBSD machine. Adjust to what you have. Be sure to have the name (-p) right (the name you set above during the Samba configuration!) and to put in the correct usb:/dev/usb/blah, parallel:/dev/blah or whatever device you have the printer on.

If all worked you can access the printer now from the web interface. You should now be able to print a test page. If you aren't, you did something wrong or I forgot something :) Please correct me.

Thank you daff for writting this HOWTO. I'm just having a wee problem. Here's what I get when I type
Code:
# lpadmin -p HP-Laser -E -v parallel:/dev/lp0 -m HP-LaserJet_2_w_PS-Postscript.ppd
lpadmin: Unable to connect to server: Connection refused
Both samba and cupsd are running and here are my conf files...
Code:
#
# smb.conf
#
[global]
   workgroup = HOME-LAN
   netbios name = genlin
   server string = File and Print Server
   hosts allow = 192.168.1. 127.
   printcap name = cups
   load printers = yes
   browseable = yes
   printing = cups
   log file = /var/log/samba/log.%m
   max log size = 50
   security = user
   encrypt passwords = yes
   lock directory = /usr/local/samba/var/lock
   interfaces = eth0
   smb passwd file = /etc/samba/private/smbpasswd
   unix password sync = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
              *passwd:*all*authentication*tokens*updated*successfully*
   pam password change = yes
   obey pam restrictions = yes
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = no

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775

[print$]
  comment = Printer Drivers
  path = /etc/samba/printer
  guest ok = no
  browseable = yes
  read only = yes
  write list = olias,root

[HP-Laser]
  comment = HP LaserJet Series II
  printable = yes
  path = /var/spool/samba
  public = yes
  guest ok = yes
  printer admin = olias,root

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   public = yes
   guest ok = yes
   writable = no
   printable = yes
   printer admin = olias,root

[scratch]
   comment = Temporary file space
   path = /home/scratch
   only guest = yes
   writable = yes
   printable = no

[media]
   comment = MP3 Share
   path = /home/mp3
   valid users = olias
   public = no
   writable = yes
   printable = no
   create mask = 0765

Code:
#
# cupsd.conf
#
ServerName genlin.linbox.loc
ServerAdmin root@linbox.loc
AccessLog /var/log/cups/access_log
ErrorLog  /var/log/cups/error_log
LogLevel  debug
MaxClients 100
BrowseAddress @IF(eth0)
DataDir /usr/share/cups
DocumentRoot /usr/share/cups/docs

#
# Security Options
#
<Location />
Order Deny,Allow
Deny From All
Allow From 192.168.1.*
</Location>

<Location /admin>
AuthType Basic
AuthClass System
Allow From 192.168.1.*
Order Deny,Allow
Deny From All
</Location>

mime.convs:
application/octet-stream        application/vnd.cups-raw        0       -

mime.types:
application/octet-stream
Where did I mess up?

Olias
_________________
A wise man realizes that he too is a fool and then humbles himself to learn that which is greater than he.
Back to top
View user's profile Send private message
olias2
Apprentice
Apprentice


Joined: 23 Aug 2003
Posts: 234
Location: CANADA

PostPosted: Mon Feb 23, 2004 11:05 pm    Post subject: Reply with quote

Oh, I just looked at the previous post's date. I'm guessing this thread has gone stale. :(<mercy bump>:(
_________________
A wise man realizes that he too is a fool and then humbles himself to learn that which is greater than he.
Back to top
View user's profile Send private message
olias2
Apprentice
Apprentice


Joined: 23 Aug 2003
Posts: 234
Location: CANADA

PostPosted: Mon Mar 08, 2004 12:28 am    Post subject: Reply with quote

PLEASE help me! :oops: lpadmin says ' Unable to connect to server: Connection refused but when I try to start cupsd, it says it's already running. What Gives?

Thanks, Olias

Code:
# lpadmin -p HP-Laser -E -v parallel:/dev/lp0 -m HP-LaserJet_2_w_PS-Postscript.ppd
lpadmin: Unable to connect to server: Connection refused

# /etc/init.d/cupsd start
 * WARNING:  "cupsd" has already been started.

_________________
A wise man realizes that he too is a fool and then humbles himself to learn that which is greater than he.
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Tue Mar 09, 2004 12:44 am    Post subject: Reply with quote

Sorry it took me so long to get back to this topic, but I've been quite busy lately...

I'll try an help anyway, although I honestly have no real idea why you get that 'Connection refused' messages. The only thing that I can think of at the moment is that your network isn't configured in such a way that the localhost machine on 127.0.0.1 and the host with the IP address 192.168.1.n (also localhost, but with a 'real' IP address) are the same to CUPS (only allowing from 192.168.1.*, not from 127.0.0.1)...just a guess. Do you have a DNS running? If so then it is probably configured correctly, or else it wouldn't really run well, would it? (DNS always seemed a bit black-artish to me, before I figured it out.) If not, maybe check your /etc/hosts file so that entries like

127.0.0.1 localhost
192.168.1.n hostname.domainname hostname localhost

or so exist.

Apart from that, try changing the Allow From rules in cupsd.conf to 127.0.0.* and see if it still doesn't want you to connect. If it lets you, then it really might be a network config problem. If it still wont let you then I don't know.

These are just guesses! From what you've posted I really can't make out what would cause the problems you're describing, sorry. The configurations seem just fine.

Good luck!
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Wed Mar 10, 2004 3:19 pm    Post subject: bit annoying: Reply with quote

(sorry to be posting here with a windows error!)

when trying to connect to the printers shared via samba I receive

    The server on which the '<printername>' printer resides does not have the correct printer driver installed. If you want to install the driver on your local computer, click OK


printing from the linux machines works fine


I believe I have all the necessary files as installed by cups-samba.install and I have run
Code:
cupsaddsmb -H server.ctu.local -U root -h server.ctu.local -a



what could I have missed?

thanks in advance
Back to top
View user's profile Send private message
olias2
Apprentice
Apprentice


Joined: 23 Aug 2003
Posts: 234
Location: CANADA

PostPosted: Wed Mar 10, 2004 10:29 pm    Post subject: Reply with quote

Thanks daff for your reply. My /etc/hosts file is as in your example. I'm thinking of reloading my server from scratch and I'll report back if this does the trick.

Olias
_________________
A wise man realizes that he too is a fool and then humbles himself to learn that which is greater than he.
Back to top
View user's profile Send private message
snorre
n00b
n00b


Joined: 14 Mar 2004
Posts: 3

PostPosted: Sun Mar 14, 2004 5:26 pm    Post subject: Why can't I perform cupsaddsmb ...? :(( Reply with quote

Daff - your HOW TO is great! my HP PSC 950 works just fine ... but I'm not able to install the cups driver to use them with my Win2k clients :(. whenever I try to run cupsaddsmb I get the following error ...

Code:

root # cupsaddsmb -v -a
Warning: No PPD file for printer "HPPSC950" - skipping!


I added root to smb
Code:

smbpasswd -a root


my smb.conf is most similar to your's:

[print$]
comment = Printer Drivers
path = /etc/samba/printer
write list = root

[HPPSC950]
comment = HP PCS 950
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = root


the printer works fine - I can see it and print using the win drivers - but I can't get my Win2k clients to use the cups printers as I don't get them installed - any idea or feedback would be highly appreciated!

many thanks!
snorre
Back to top
View user's profile Send private message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Mon Mar 15, 2004 4:59 pm    Post subject: *bump* *bump dag nam it bump!* Reply with quote

snorre wrote:
Code:

root # cupsaddsmb -v -a
Warning: No PPD file for printer "HPPSC950" - skipping!




don't meant to seem pedantic but, just to clarify, are you doing what the error message suggests and then looking to see if you have renamed the ppd file and put it in the appropriate place?

snorre wrote:

the printer works fine - I can see it and print using the win drivers - but I can't get my Win2k clients to use the cups printers as I don't get them installed - any idea or feedback would be highly appreciated!


when you say you don't get them installed are you referring to the previous message of "no PPD file found..." or is it a client-side error like my
pubecon wrote:
    The server on which the '<printername>' printer resides does not have the correct printer driver installed. If you want to install the driver on your local computer, click OK
Back to top
View user's profile Send private message
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 181

PostPosted: Fri Mar 19, 2004 7:45 pm    Post subject: Reply with quote

Hi,

I'm having the same problem as snorre. If I do:
Code:
root # cupsaddsmb -v QMS
Warning: No PPD file for printer "QMS" - skipping!


/etc/cups/ppd/QMS.ppd exists

contents of /etc/cups/printers.conf
Code:
# Printer configuration file for CUPS v1.1.20
# Written by cupsd on Thu Mar 18 22:48:50 2004
<DefaultPrinter QMS>
Info QMS Magicolor 2
Location
DeviceURI socket://192.168.0.22:35
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>


contents of /etc/samba/smb.conf
Code:
#======================= Global Settings =====================================
[global]

   workgroup = SCHNABEL
   netbios name = PRINT_SERVER
   server string = File Server
   hosts allow = 192.168.0.0/24 192.168.1.0/24 127.0.0.1
   hosts deny = ALL
   browsable = yes
   load printers = yes
   printing = cups
   printcap name = cups
   interfaces = eth0
   guest account = nobody
   log level = 0
   log file = /var/log/samba/%m.log
   max log size = 50
   security = user
   encrypt passwords = yes
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   local master = yes
   os level = 64
   wins proxy = yes
   dns proxy = yes
   oplocks = false
   level2oplocks = false
   hide unreadable = yes
   username map = /etc/samba/smbusers
   map to guest = bad user

   domain master = no
   preferred master = no
   wins support = no
   

#============================ Share Definitions ==============================


[print$]
    comment = Printer Drivers

    path = /etc/samba/drivers
    guest ok = no
    browseable = yes
    read only = yes
    write list = root
               

[printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    public = yes
    guest ok = yes
    writable = no
    printable = yes
    printer admin = root

[QMS]
    comment = QMS MagiColor 2
    printable = yes
    path = /var/spool/samba
    public = yes
    guest ok = yes


Since cupsaddsmb didn't work, I tried to install the files manually.
Code:
smbclient //PRINT_SERVER/print\$ -U root -c 'cd W32X86; put cups5.hlp; put cupsdrv5.dll; put cupsui5.dll; put QMS.ppd'


This puts the files in /etc/samba/drivers/W32X86/

After this the files need to be added to the driver database, and they must be placed in /etc/samba/drivers/W32X86/2/
The following command *should* do that.
Code:
rpcclient localhost -N -U'root%xxxxxx' -c 'adddriver "Windows NT x86" "QMS:cupsdrv5.dll:QMS.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL"'


This didn't work for me..... the first xxx times. Now, i'm duplicating the steps to write this post, and suddenly... it works... VERY strange, I didn't change anything :?

Now the files are in the /etc/samba/drivers/W32X86/2/ folder.

*Maybe* it has something to do with the 'security = user' setting in the samba config. I Had that set to share yesterday, and late yesterday evening i read somewhere that that could be a problem. I changed it to user, but I can't remember if I reloaded samba after that :oops: (well, it was very late, and I had to get up early in the morning....)

Maybe this will help someone else.

I am still not able to automatically download the driver from a windows XP workstation :(
I get the following error :
Quote:
The server for the printer does not have the correct driver installed. Blah blah blah....


gr,
Nossie


Last edited by Nossie on Sat Mar 20, 2004 2:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
snorre
n00b
n00b


Joined: 14 Mar 2004
Posts: 3

PostPosted: Sat Mar 20, 2004 12:34 pm    Post subject: Reply with quote

pubecon,

aahem, well I had copied the .ppd File (HP_PSC_950-hpijs.ppd) to the folder "/usr/share/cups/model" but I did not rename it ...
I thought that this is not needed :oops:

thanks for the "TIP" - but I still get the error on the Win2k clients ...

The Server on which the printer xxx resides does not have the correct printer driver installed. If bla, bla, bla ...

any ideas?
Back to top
View user's profile Send private message
pubecon
Guru
Guru


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Sat Mar 20, 2004 9:19 pm    Post subject: cop-out Reply with quote

I'm afraid, I too am experiencing much strangeness with this whole procedure (i.e I followed it all to the letter and it worked, then I went to add another printer and it's all come crashing down - none of the drivers upload to the windows clients now [fortunately I'd already added the essential ones)

since all my clients are win2k, my solution was to abandon this madness, duplicate all the printers as RAW in cups (see where this is going..)

then I, using win2ks built-in ipp support, added a 'network printer' with the address http://serveraddress.whatever.local:631/printers/printername and when the win2k clients noted that there was no driver associated with it I just pointed it to the .inf file I got off the manufacturers website (hp).

I'll come back to this samba magic if ever it is explained as less magic and more science (I managed to get a glimpse of a samba book and it appeared to explain this process in more detail. I'm half-tempted to buy one just to fix this problem and gain some more insight into it all)...
Back to top
View user's profile Send private message
xcable
Guru
Guru


Joined: 15 Aug 2002
Posts: 424
Location: College Station, Texas

PostPosted: Sun Apr 11, 2004 6:09 pm    Post subject: error Reply with quote

I'm getting a error, in the samba log file gives:

Code:

Unable to print file to hpdeskjet970c - client-error-document-format-not-supported


Anyone know what this means?

heath
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Tue Apr 13, 2004 12:56 pm    Post subject: Reply with quote

Everyone: I am very sorry but I really haven't had the time lately to support this thread, and I am quite sure I am not going to have much time in the future either. Hopefully some of you who have got it running could help out.

Just a quick hint for xcable: did you uncomment the following lines in /etc/cups/mime.types and /etc/cups/mime.convs?
Code:

mime.convs:
application/octet-stream       application/vnd.cups-raw        0       -

mime.types:
application/octet-stream


As for the others, I may have some time the next two to three days to look into the reported problems as far as I can (I am no Samba or CUPS or IPP or whatever expert either :)), if there's still need for this.
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
xcable
Guru
Guru


Joined: 15 Aug 2002
Posts: 424
Location: College Station, Texas

PostPosted: Tue Apr 13, 2004 1:18 pm    Post subject: fixed Reply with quote

Thanks for the responce. I had already modified mime.convs and mime.types.

The major problem was that cups was not started up correctly, I fixed it be reverting to the example cupsd.conf, modifiing it and restarting cupsd. I also had to point my printer spool in smb.conf to "/var/spool/cups/tmp" not "/var/spool/cups".

thanks,

heath
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Tue Apr 13, 2004 1:18 pm    Post subject: Re: cop-out Reply with quote

pubecon wrote:
I'm afraid, I too am experiencing much strangeness with this whole procedure (i.e I followed it all to the letter and it worked, then I went to add another printer and it's all come crashing down - none of the drivers upload to the windows clients now [fortunately I'd already added the essential ones)

since all my clients are win2k, my solution was to abandon this madness, duplicate all the printers as RAW in cups (see where this is going..)

It really can become a madness. Printing and print serving seem to be even more complicated and error- or misconfiguration-prone than mail servers and DNS.
pubecon wrote:

I'll come back to this samba magic if ever it is explained as less magic and more science (I managed to get a glimpse of a samba book and it appeared to explain this process in more detail. I'm half-tempted to buy one just to fix this problem and gain some more insight into it all.

True, true, the whole Samba stuff is WAY underdocumented if I may say so. The Samba website is quite worthless, and until recently it didn't even point to a main documentation project or manual or whatever.

It seems that this has changed, however: Here you'll find just about everything about Samba. See also Chapter 19, which explains everything I've written in my How-To, but had to gather from experience and trial & error: http://at.samba.org/samba/docs/man/

It still isn't as readable and good a manual as I'd like it to be.

One general word of advice: It seems like some of you are trying to install a a printer for the Windows clients without giving it the same name as the printer has in CUPS. Naming consistency seems to be really important when it comes to sharing printers across CUPS installations, Samba servers and Windows clients.

Also, the printer must be working within CUPS and Linux clients, before it can be shared with or exported to Windows clients!!! If you haven't got a working test page out of the CUPS administration Web interface, don't even bother with Samba and Windows.

I also can say that the How-To worked when I tested it recently when I set up a new server from scratch, so I don't think there are any major faults or mishaps inherent. But I sure might be wrong.
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Tue Apr 13, 2004 1:25 pm    Post subject: Re: fixed Reply with quote

xcable wrote:
Thanks for the responce. I had already modified mime.convs and mime.types.

Ok. Whenever I ran across the error messages you posted it was very certain that someone forgot to edit these two lines, so that's the first thing that comes to mind :)
xcable wrote:

The major problem was that cups was not started up correctly, I fixed it be reverting to the example cupsd.conf, modifiing it and restarting cupsd. I also had to point my printer spool in smb.conf to "/var/spool/cups/tmp" not "/var/spool/cups".

I don't know about the spool directories you use (never heard about /var/spool/cups/tmp), but they shouldn't really matter I think, as long as the permissions are correct.

Very good that you seem to have it working now!
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Tue Apr 13, 2004 2:21 pm    Post subject: Reply with quote

I added a section about Troubleshooting to the How-To. It is from Kurt Pfeifle's "Printing Support in Samba 3.0", the manual which covers everything about CUPS and Samba in way more detail and great length. Be sure to have a look at it and check the Troubleshooting section there! It contains many answers to many common problems.

Looky here: CLICK THIS!!!

I should have known about that from the beginning. Damn.
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
phantomlord
n00b
n00b


Joined: 17 Apr 2004
Posts: 2

PostPosted: Sat Apr 17, 2004 4:00 pm    Post subject: Reply with quote

When I run cupsaddsmb I get this error message: NT_STATUS_BAD_NETWORK_NAME

Anyone who has any idea what is wrong?

Code:

root@phantom samba # cupsaddsmb -H phantom -U root -h phantom -v HPLaserJet4L
Password for root required to access phantom via SAMBA:
Running command: smbclient //phantom/print\$ -N -U'root%zaQrMfo9375' -c 'mkdir W32X86;put /var/spool/cups/tmp/4081545acbd7a W32X86/HPLaserJet4L.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp'
added interface ip=192.168.0.133 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[PROMETHEUS] OS=[Unix] Server=[Samba 2.2.8a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
 
Password for root required to access phantom via SAMBA:
Running command: smbclient //phantom/print\$ -N -U'root%' -c 'mkdir W32X86;put /var/spool/cups/tmp/4081545acbd7a W32X86/HPLaserJet4L.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp'
added interface ip=192.168.0.133 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[PROMETHEUS] OS=[Unix] Server=[Samba 2.2.8a]
tree connect failed: NT_STATUS_WRONG_PASSWORD
 
ERROR: Unable to copy Windows printer driver files (256)!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4 ... 9, 10, 11  Next
Page 3 of 11

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum