LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2014, 06:54 PM   #1
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
Samba and Windows Print Drivers


Hi!
I'm in the process of moving our home printer from my mom's XP desktop to my Debian server. I setup samba and cups, and I can get to the printer from the XP desktop. But it asks for a driver and gives a list, but our printer isn't on the driver list. I know that there is a way to use the "print$" share on the samba server to supply the driver. But I can't find anything on where the driver goes, or even where you get the driver from. Does anyone know how to do this?

BTW, the printer is a HP Photosmart c4200 series. And we've never had driver issues when connected via USB.

Thanks!
 
Old 09-03-2014, 07:00 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
A few questions, which may help start the ball rolling.

You have hplip on your Debian machine I assume, and the printer works perfectly from the desktop?

You can see the printer in cups from the cups interface from the Windows machine?
 
Old 09-03-2014, 07:12 PM   #3
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
The Debian machine has hplip, and I can print stuff from the Debian machine just fine. The Windows desktop can't print because it needs a driver. (Which I find unusual, because it worked fine when the printer was connected directly to the WinXP desktop via USB)

The cups web interface (192.168.0.101:631) is not accessible from the WinXP computer. When I open the cups web interface (localhost:631) from the Debian machine, the printer is listed normally.

Thanks!
 
Old 09-03-2014, 07:18 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
For a home situation, my advice would be to install the Windows printer driver locally on the XP desktop and create a raw printer queue on the Samba server so that the formatted print data from the XP desktop is passed as is to the printer.
Setting up Point'n'Print printing in Samba can be a challenge.
https://wiki.samba.org/index.php/Sam...a_print_server
http://www.samba.org/samba/docs/man/...html#id2626650
 
Old 09-03-2014, 07:42 PM   #5
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
OK, it turns out the driver was on the Windows machine, but hidden. (It was under "Hewlett-Packard," not "HP" with all the other ones)

But now the WinXP machine says "Access denied, unable to connect." I can't find what's wrong with my samba config...here it is:

Code:
[global]
        server string = %h server
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        printcap name = cups
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0755
        guest ok = Yes
        printable = Yes
        print ok = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
        guest ok = Yes

[srv]
        comment = Server Files
        path = /srv
        read only = No
        create mask = 0755
Any ideas?

Thanks!

EDIT: And it seems that I can't access the /srv share either, even when I give it the root password...

Last edited by maples; 09-03-2014 at 08:23 PM.
 
Old 09-03-2014, 08:53 PM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Has the user of the XP desktop been added to the Samba user database? Check with pdbedit.http://www.samba.org/samba/docs/man/...pdbedit.8.html
Did you supply the username and password when creating the Samba print queue as shown in the "Adding a new printer section" of the wiki.samba.org link?

Last edited by allend; 09-03-2014 at 08:55 PM. Reason: Added link
 
Old 09-04-2014, 06:37 AM   #7
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
No...I've never even heard of pbedit ... When I get home today I'll look into that.

Windows never prompted for a username or password when I installed the printer...

I had messed with samba a while ago, but I removed it since I never used it...apparently I forgot a lot!
 
Old 09-11-2014, 07:20 PM   #8
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
Sorry about the delayed reply...

I made a Samba user using pbedit. When I went to the Windows computer, it asked for a password for the /srv share just like it should. However, it still gives the "Access denied, unable to print" message when I look at the printer.

EDIT:

I tried to just print something regardless of the Windows message. Apparently the warning doesn't mean a thing. I can print just fine with no problems at all.

Stupid Windows...

So it seems that there was never a problem at all...

Thanks for your help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cups/samba print server & manufacturers print drivers bourne Linux - Server 0 03-15-2011 04:44 PM
Samba / Windows Print Drivers digitolx Linux - Server 0 04-21-2010 08:08 AM
Using Windows Print Drivers in Linux TongueTied Linux - Hardware 10 02-16-2007 11:26 PM
add windows drivers to linux print server jhayes Linux - Networking 5 02-01-2007 09:42 AM
Automatically download print drivers with Samba to Windows clients shelby Linux - Software 2 07-11-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration