LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-11-2003, 05:44 AM   #1
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Rep: Reputation: 15
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).

Last edited by Waldi; 07-11-2003 at 05:46 AM.
 
Old 07-11-2003, 09:53 AM   #2
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
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???

Last edited by Waldi; 07-14-2003 at 03:23 AM.
 
Old 07-12-2003, 04:15 AM   #3
irsyamj
LQ Newbie
 
Registered: Jul 2003
Location: Bandung, Jabar, Indonesia
Posts: 5

Rep: Reputation: 0
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
 
Old 07-14-2003, 03:37 AM   #4
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
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.
 
Old 07-15-2003, 04:32 AM   #5
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
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?
 
Old 07-18-2003, 09:15 PM   #6
irsyamj
LQ Newbie
 
Registered: Jul 2003
Location: Bandung, Jabar, Indonesia
Posts: 5

Rep: Reputation: 0
Thank's Waldi

I'll try your information

Best regard
Irsyam Julfiar
 
Old 07-18-2003, 09:59 PM   #7
irsyamj
LQ Newbie
 
Registered: Jul 2003
Location: Bandung, Jabar, Indonesia
Posts: 5

Rep: Reputation: 0
Dear Waldi

Can send me your samba.conf file ?
 
Old 07-21-2003, 03:23 AM   #8
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Original Poster
Rep: Reputation: 15
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.
 
Old 08-31-2003, 04:11 PM   #9
vickp
LQ Newbie
 
Registered: Aug 2003
Distribution: slackware
Posts: 8

Rep: Reputation: 0
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.

Last edited by vickp; 08-31-2003 at 05:18 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cant print using samba and cups to a windows printer araldit Linux - Networking 5 11-27-2007 10:21 PM
Help with printing to Windows printer with cups and samba. Royle Linux - Networking 3 01-23-2005 01:16 PM
setting up a printer with cups on RH7 for windows with samba TreeHugger Linux - Networking 2 11-11-2004 12:31 PM
share name not found Windows Samba printer CUPS jjge Linux - Software 1 08-04-2004 10:14 AM
CUPS/SAMBA Printer Server for Windows Problem baz2 Linux - Networking 3 11-18-2003 08:01 AM


All times are GMT -5. The time now is 09:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration