Hi! First of all, I have to admit that it is my first post on this list, so please be lenied toward me, if I don't obey some of the rules ;-) I'll try my best :-) I am just trying to get my samba-server work as a print server by using CUPS. The OS of the server is Gentoo Linux and I'm using samba-3.0.9-r1. The clients are win 2k/xp home. I can already see my shares (files and drivers) in the windows networking neighbourhood, but unfortunately the configuration of the printer (Lexmark 3200) fails, since windows is looking for some *.inf files which cannot be found. Printing on the server is possible, though (using the lpr -plexmark test.text command). When looking for some tutorials about this, I found this one: forums.gentoo.org/viewtopic.php?t=110931 , which said that cups-samba-5.0rc3.tar.gz would have to be installed and that** cupsaddsmb -a -v -U root would be the command I am looking for. So I installed it and three files were copied to the /usr/share/cups/drivers directory. The next thing to be done was to run the command above, but the output isn't as expected: -------------------------------------------------------------------------------------------------- Password for root required to access localhost via SAMBA: Running command: rpcclient localhost -N -U'root%pw' -c 'setdriver lexmark lexmark' Succesfully set lexmark to driver lexmark. -------------------------------------------------------------------------------------------------- So no directories like W32X86 were created in /var/lib/samba/printers and my clients still can't find the files which would be needed to get the printer work. Here is my /etc/samba/smb.conf: #======================= Global Settings ====================================[global] workgroup = milchstrasse server string = Samba-Server %v printcap name = cups load printers = yes printing = cups printer admin = root log file = /var/log/samba3/log.%m max log size = 100 hosts allow = 192.168.0. 192.168.1. 127. security = user encrypt passwords = yes smb passwd file = /var/lib/samba/private/smbpasswd passdb backend = tdbsam #============================ Share Definitions =============================[homes] comment = Home Directories browseable = no writable = yes public = no [printers] comment = All Printers path = /var/spool/samba # rwx-rwx-rwx browseable = no public = yes guest ok = yes writable = no printable = yes printer admin = root,user [print$] path = /var/lib/samba/printers browseable = yes read only = yes write list = @adm root guest ok = no [lexmark] comment = MeinLexmark3200Drucker printable = yes path = /var/spool/samba # rwx-rwx-rwx public = yes guest ok = yes printer admin = root,user [public] comment = oeffentliches zeug path = /home/samba/public public = yes writable = yes ; write list = @staff Does anybody of you know the reason for this problem with cupsaddsmb and the fact that directories like W32X86 are not ceated? I am really looking forward to your answers! Regards, Fabian
Hello, doesn't anybody of you have a possible solution for this? I have tried all day long and even bought a book about samba and cups but I still receive the wrong output when running cupsaddsmb -a -v. Regards, Fabian Fabian Steiner wrote:> Hi! > > First of all, I have to admit that it is my first post on this list, > so please be lenied toward me, if I don't obey some of the rules ;-) > I'll try my best :-) > > I am just trying to get my samba-server work as a print server by > using CUPS. The OS of the server is Gentoo Linux and I'm using > samba-3.0.9-r1. The clients are win 2k/xp home. I can already see my > shares (files and drivers) in the windows networking neighbourhood, > but unfortunately the configuration of the printer (Lexmark 3200) > fails, since windows is looking for some *.inf files which cannot be > found. Printing on the server is possible, though (using the lpr > -plexmark test.text command). > When looking for some tutorials about this, I found this one: > forums.gentoo.org/viewtopic.php?t=110931 , which said that > cups-samba-5.0rc3.tar.gz would have to be installed and that** > cupsaddsmb -a -v -U root would be the command I am looking for. So I > installed it and three files were copied to the > /usr/share/cups/drivers directory. The next thing to be done was to > run the command above, but the output isn't as expected: > -------------------------------------------------------------------------------------------------- > > Password for root required to access localhost via SAMBA: > Running command: rpcclient localhost -N -U'root%pw' -c 'setdriver > lexmark lexmark' > Succesfully set lexmark to driver lexmark. > -------------------------------------------------------------------------------------------------- > > > So no directories like W32X86 were created in /var/lib/samba/printers > and my clients still can't find the files which would be needed to get > the printer work. > Here is my /etc/samba/smb.conf: > > #======================= Global Settings > ====================================> [global] > > > workgroup = milchstrasse > server string = Samba-Server %v > printcap name = cups > load printers = yes > printing = cups > printer admin = root > log file = /var/log/samba3/log.%m > max log size = 100 > hosts allow = 192.168.0. 192.168.1. 127. > security = user > encrypt passwords = yes > smb passwd file = /var/lib/samba/private/smbpasswd > passdb backend = tdbsam > > > > #============================ Share Definitions > =============================> [homes] > comment = Home Directories > browseable = no > writable = yes > public = no > > [printers] > comment = All Printers > path = /var/spool/samba # rwx-rwx-rwx > browseable = no > public = yes > guest ok = yes > writable = no > printable = yes > printer admin = root,user > > [print$] > path = /var/lib/samba/printers > browseable = yes > read only = yes > write list = @adm root > guest ok = no > > [lexmark] > comment = MeinLexmark3200Drucker > printable = yes > path = /var/spool/samba # rwx-rwx-rwx > public = yes > guest ok = yes > printer admin = root,user > > [public] > comment = oeffentliches zeug > path = /home/samba/public > public = yes > writable = yes > ; write list = @staff > > > Does anybody of you know the reason for this problem with cupsaddsmb > and the fact that directories like W32X86 are not ceated? I am really > looking forward to your answers! > > Regards, > > Fabian
PROD'HOMME Nicolas DDSC SDAM BSI
2005-Jan-24 19:42 UTC
[Samba] Re: Problems when using cupsaddsmb
Hello. Sorry, i have no solution for this. Just the same bug My System : Debian SARGE (3.1) samba-3.0.10-1 cups-1.1.23-2 /Password for root required to access localhost via SAMBA: //Running command: rpcclient localhost -N -U'root%pw' -c 'setdriver //HP4050 HP4050' //Succesfully set HP4050 to driver HP4050. Somebody help, please . />Hello,> >doesn't anybody of you have a possible solution for this? I have tried >all day long and even bought a book about samba and cups but I still >receive the wrong output when running cupsaddsmb -a -v. > >Regards, > >Fabian > > > >Fabian Steiner wrote: > >>/ Hi!/>>/ />>/ First of all, I have to admit that it is my first post on this list, />>/ so please be lenied toward me, if I don't obey some of the rules ;-) />>/ I'll try my best :-) />>/ />/> I am just trying to get my samba-server work as a print server by />>/ using CUPS. The OS of the server is Gentoo Linux and I'm using>> //samba-3.0.9-r1. The clients are win 2k/xp home. I can already see my >> //shares (files and drivers) in the windows networking neighbourhood, >> //but unfortunately the configuration of the printer (Lexmark 3200) >> //fails, since windows is looking for some *.inf files which cannot be >> //found. Printing on the server is possible, though (using the lpr >> //-plexmark test.text command). >> //When looking for some tutorials about this, I found this one: >> //forums.gentoo.org/viewtopic.php?t=110931 , which said that >> //cups-samba-5.0rc3.tar.gz would have to be installed and that** >> //cupsaddsmb -a -v -U root would be the command I am looking for. So I >> //installed it and three files were copied to the >> ///usr/share/cups/drivers directory. The next thing to be done was to >> //run the command above, but the output isn't as expected: >> //--------------------------------------------------------------------------------------------------/>>/>> //Password for root required to access localhost via SAMBA: >> //Running command: rpcclient localhost -N -U'root%pw' -c 'setdriver >> //lexmark lexmark' >> //Succesfully set lexmark to driver lexmark. >> //--------------------------------------------------------------------------------------------------/>>/ />>/>> //So no directories like W32X86 were created in /var/lib/samba/printers >> //and my clients still can't find the files which would be needed to get >> //the printer work. >> //Here is my /etc/samba/smb.conf:/>>/>> //#======================= Global Settings >> //====================================>> //[global]/>>/ />>/>> //workgroup = milchstrasse >> //server string = Samba-Server %v >> //printcap name = cups >> //load printers = yes >> //printing = cups >> //printer admin = root >> //log file = /var/log/samba3/log.%m >> //max log size = 100 >> //hosts allow = 192.168.0. 192.168.1. 127. >> //security = user >> //encrypt passwords = yes >> //smb passwd file = /var/lib/samba/private/smbpasswd >> //passdb backend = tdbsam/>>/ />>/ />>/>> //#============================ Share Definitions >> //=============================>> //[homes] >> //comment = Home Directories >> //browseable = no >> //writable = yes >> //public = no/>>/>> //[printers] >> //comment = All Printers >> //path = /var/spool/samba # rwx-rwx-rwx >> //browseable = no >> //public = yes >> //guest ok = yes >> //writable = no >> //printable = yes >> //printer admin = root,user/>>/>> //[print$] >> //path = /var/lib/samba/printers >> //browseable = yes >> //read only = yes >> //write list = @adm root >> //guest ok = no/>>/>> //[lexmark] >> //comment = MeinLexmark3200Drucker >> //printable = yes >> //path = /var/spool/samba # rwx-rwx-rwx >> //public = yes >> //guest ok = yes >> //printer admin = root,user/>>/>> //[public] >> //comment = oeffentliches zeug >> //path = /home/samba/public >> //public = yes >> //writable = yes >> //; write list = @staff/>>/ />>/>> //Does anybody of you know the reason for this problem with cupsaddsmb >> //and the fact that directories like W32X86 are not ceated? I am really >> //looking forward to your answers!/>>/>> //Regards,/>>/>> //Fabian/
alexander goeres - lieblinxNET
2005-Jan-27 20:54 UTC
[Samba] Problems when using cupsaddsmb: my solution
Hi, I was fighting with the same problem for the past two days and just found a solution for me. In my configuration it was a HPLaserjet5P that should be served through a samba 3.0.10 machine on Debian Sarge/unstable with w2k client to use it. The printer was configured nicely within cups and printed test pages perfectly when it was told to. Since I couldn't find any of those famous cups-samba drivers I took the drivers to be automatically deployed on the clients from one w2k machine (as mentioned in the howtos) and copied them to the directory: /usr/share/cups/drivers cupsaddsmb didn't do anything but giving the output you mentioned when i tried to use it according to the CUPS part of the samba howto collection.. BTW, this message from cupsaddsmb looks quite like success, at least it doesn't resemble an error message but it didn't create the necessary directory (/var/lib/samba/printers/W32x86/3) and thus failed to put the drivers in there. Then after 2 days of trying to do tricks with samba and cups (e.g. copying the drivers myself to the directory - in vain) I read those seven words, that solved the problem. In cupsaddsmb's man page just before the listing of the necessary but inferior windows driver files, there was it: " .... and copy the files exactly as named below" The driver files I had copied were all capital letters, the ones listed weren't. I changed that, ran "cupsaddsmb -v -U root hplaserjet5p" again and it worked. Nearly two nightshifts for this stuff ...:-\ Hope it helps you Alexander Am Donnerstag, 6. Januar 2005 23:43 schrieb Fabian Steiner:> Hi! > > First of all, I have to admit that it is my first post on this list, so > please be lenied toward me, if I don't obey some of the rules ;-) I'll > try my best :-) > > I am just trying to get my samba-server work as a print server by using > CUPS. The OS of the server is Gentoo Linux and I'm using samba-3.0.9-r1. > The clients are win 2k/xp home. I can already see my shares (files and > drivers) in the windows networking neighbourhood, but unfortunately the > configuration of the printer (Lexmark 3200) fails, since windows is > looking for some *.inf files which cannot be found. Printing on the > server is possible, though (using the lpr -plexmark test.text command). > When looking for some tutorials about this, I found this one: > forums.gentoo.org/viewtopic.php?t=110931 , which said that > cups-samba-5.0rc3.tar.gz would have to be installed and that** > cupsaddsmb -a -v -U root would be the command I am looking for. So I > installed it and three files were copied to the /usr/share/cups/drivers > directory. The next thing to be done was to run the command above, but > the output isn't as expected: > --------------------------------------------------------------------------- >----------------------- Password for root required to access localhost via > SAMBA: > Running command: rpcclient localhost -N -U'root%pw' -c 'setdriver > lexmark lexmark' > Succesfully set lexmark to driver lexmark. > --------------------------------------------------------------------------- >----------------------- > > So no directories like W32X86 were created in /var/lib/samba/printers > and my clients still can't find the files which would be needed to get > the printer work. > Here is my /etc/samba/smb.conf: > > #======================= Global Settings > ====================================> [global] > > > workgroup = milchstrasse > server string = Samba-Server %v > printcap name = cups > load printers = yes > printing = cups > printer admin = root > log file = /var/log/samba3/log.%m > max log size = 100 > hosts allow = 192.168.0. 192.168.1. 127. > security = user > encrypt passwords = yes > smb passwd file = /var/lib/samba/private/smbpasswd > passdb backend = tdbsam > > > > #============================ Share Definitions > =============================> [homes] > comment = Home Directories > browseable = no > writable = yes > public = no > > [printers] > comment = All Printers > path = /var/spool/samba # rwx-rwx-rwx > browseable = no > public = yes > guest ok = yes > writable = no > printable = yes > printer admin = root,user > > [print$] > path = /var/lib/samba/printers > browseable = yes > read only = yes > write list = @adm root > guest ok = no > > [lexmark] > comment = MeinLexmark3200Drucker > printable = yes > path = /var/spool/samba # rwx-rwx-rwx > public = yes > guest ok = yes > printer admin = root,user > > [public] > comment = oeffentliches zeug > path = /home/samba/public > public = yes > writable = yes > ; write list = @staff > > > Does anybody of you know the reason for this problem with cupsaddsmb and > the fact that directories like W32X86 are not ceated? I am really > looking forward to your answers! > > Regards, > > Fabian-- netzwerk- & systemadministrator ------------------------------------------- agoeres at lieblinx. net tel.: +49 (0)30 / 61 20 26 87 fax: +49 (0)30 / 69 00 46 03 ------------------------------------------- lieblinxNET we do software a marwood & thiele GbR ------------------------------------------- reichenberger stra?e 125 10999 berlin lieblinx.net -------------------------------------------