LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to connect Windows printer (cups+Samba)? (https://www.linuxquestions.org/questions/slackware-14/how-to-connect-windows-printer-cups-samba-71805/)

Waldi 07-11-2003 04:44 AM

How to connect Windows printer (cups+Samba)?
 
I have two-comp network with Windows2000 on first and Slack9 on second machine, printer HP Deskjet connected to Windows machine. I use Cups for printing and Samba for connecting to Windows shares.
What do I have to do to make my HP print from Linux machine?
It is visible as "share" in SMB Share Browser (Smb4K in KDE), but I don't know how to set it to print from Linux.
Can anybody help?
Network probably work OK as I can mount and access disk shares created in Windows on Linux machine.
Cups is now configured for local printer in Linux (and also works OK for local printing).

Waldi 07-11-2003 08:53 AM

Sorry I didn't notice that we already have similiar thread, so I don't insist on answering.
Anyway I solved my problem. I used lpd://servername/printername
as syntax, and it didn't work, but when I changed into
lpd://IPadress/printername
it is OK. Probably something is wrong with nmbd configuration (but Smb4k displays correct servernames).
So another question, maybe someone knows what to do to use servername instead of direct IP adress???

irsyamj 07-12-2003 03:15 AM

Hi. sorry if this e-mail disturbing you.
I'm new in linux, and I use slackware 8, I've read your tread, and I see that you succed to access win'98 shared folder from your linux machine.
I'll realy appreciate if you can assist me so I can access my folder at win98 machine from linux machine

Thank's

Waldi 07-14-2003 02:37 AM

As a matter of fact, I use Win2000, not 98, but probably procedure for connecting from Samba is the same.
And another "as a matter of fact", I didn't do much to establish my connection. I inserted smbd and nmbd lines in rc.local (to start Samba during booting), and then used Webmin and Swat (these tools are used via browser, Webmin must be installed separately) to configure it. Then I used Smb4k (nice GUI for KDE, you may find it in www.kde.org (then go to apps)) to see if it works and all my shares from Win2000 were visible (and I can mount it).
Now I have trouble in Windows as I don't see my Linux shares and Linux printer (but I think it is Win's problem). Anyway, I work on it.
Tell us, what particular information you need.

Waldi 07-15-2003 03:32 AM

OK, it wasn't Win's problem, I have forgotten set encrypted=yes in smb.conf. Now I see Linux shares from Windows, but Linux printer doesn't work and even causes crash in Windows. That's maybe I gave it the same name in Linux it has when works in Windows (I have dual boot machine : Win2000 + Slack9, second machine is Win2000 only, printer is connected to "dual boot"). I'll try to change printer's name in Slack and then try to establish it as new network printer in "Windows only" machine.
My problem is that I'm trying to establish Win-Win and Win-Linux network on the same machines and it seems to be a challenge, as all shared devices (like printer) should work in both configurations.
Maybe someone succeeded in similar configuration?
Is it always necessary to use these drivers from Adobe site?

irsyamj 07-18-2003 08:15 PM

Thank's Waldi

I'll try your information

Best regard
Irsyam Julfiar:)

irsyamj 07-18-2003 08:59 PM

Dear Waldi

Can send me your samba.conf file ?

Waldi 07-21-2003 02:23 AM

Hi, yes, of course.
But I think the best and easiest way to establish your own samba.conf is to use SWAT (configuration software included in SAMBA itself). It is well documented graphical tool you may use with any browser.
Treat my samba.conf just as an example, in " " marked fields you must insert your parameters.

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2003/07/10 15:59:18

# Global parameters
[global]
log file = /var/log/samba.%m
printer name ="your_printer"
null passwords = yes
guest ok = yes
dns proxy = no
netbios name = "your_domain_name"
read only = no
server string = Samba Server
printing = cups
printcap name = cups
path = /var/spool
workgroup = "you_workgroup"
ssl ca certdir = /etc/ssl/certs
max log size = 50
map to guest = Bad User
ssl require server cert = no
domain master = no
preferred master = no
max packet = 0
client code page = 852
printer admin = root
encrypt passwords = yes


[homes]
comment = Home Directories
read only = no
guest ok = Yes
browseable = No

[okipage]
printable = yes
printer name = "your_printer"
comment = sieciowa

Good luck with configuring.

vickp 08-31-2003 03:11 PM

I have printers on win2k boxes and can print to them from my slackware boxes. I did the following steps:

- installed cups from slackware package available on slackware site

- the vanilla cups package did not have a samba spooler
defined, so I added it. Without the samba spooler defined then
smb is not selectable from the cups admin tool. To add the
smb spool create a symbolic link to the smbspool application:
ln -s `which smbspool` /usr/lib/cups/backend/smb

- killed the running lpd process

- chmod 755 /etc/rc.d/rc.cups to make it executable

- started rc.cups --> 'rc.cups start'

- in a browser on the cups machine (not the print server), goto url 'localhost:631' to run the local cups administration application

- add a printer and select ''Window Printer via SAMBA" as the device

- The url will be: "smb://printserver/printer". If you need a userid and password for the printer then use the form: "smb://userid:password@printserver/printer"

Best of luck.


All times are GMT -5. The time now is 04:58 AM.