LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-07-2005, 10:12 PM   #1
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Rep: Reputation: 32
solved:printing to a debian printer from windows xp home


i find this quite embarrassing but i must set up a windows xp home computer to tie into my debian network.....

here is the current setup..

router =192.168.1.1 (linksys wired)
debian6 = 192.168.1.6
xp3 = 192.168.1.3
other debians as well
all static ip with nfs working fine...
name resolve via /etc/host in linux and hosts in xp
workgroup in linuxhome
i can ping between all machines fine

linux box debian6 has samba and smbclient
also it has a colour printer configured locally with cups writing fo parallel port.

please help with proper smb.conf so that the xp box can see linux files and print to the
debian printer....

i have tired everything i could find thru google and nthing seems to work...


Last edited by utanja; 11-14-2005 at 01:19 AM.
 
Old 11-08-2005, 04:42 PM   #2
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
Let the fun begin!

1)Make sure smb.conf file looks like this:

[global]
load printers = yes
printing = cups
printcap name = cups

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

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

2) Get the following files from Windows machine, send to CUPS:

ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll

3) Create a drivers directory for above files:

mkdir /usr/share/cups

Copy 2)'s files to this directory

4) Make sure you have this directory, if you don't create it:

mkdir /etc/samba/drivers

5) Create a Samba password to transfer CUPS printer


smbpasswd -a root

You will be prompted to enter your password twice.

6) Run the cupsaddsmb command to export the printer drivers:

cupsaddsmb -U root yourprintersname

7) FROM WINDOWS MACHINE add the printer on the Network

You should be all set up.
 
Old 11-08-2005, 05:34 PM   #3
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Original Poster
Rep: Reputation: 32
thanks for the reply....i will try it later tonite when i get back from a flight...
 
Old 11-09-2005, 09:53 AM   #4
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Original Poster
Rep: Reputation: 32
still does not work......but i have to be away for a few days on a flight.so i try to get back to this thread with my laptop while away....
 
Old 11-09-2005, 10:02 AM   #5
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
What exactly is happening?
 
Old 11-12-2005, 09:59 AM   #6
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by steve1972
What exactly is happening?
when i run
# cupsaddsmb -U root lp

i get this
cupsaddsmb -U root lp
Password for root required to access localhost via SAMBA:
cupsaddsmb: Unable to set Windows printer driver (256)!

i did net a password with
# smbpasswd -a root

thanks....just get in from a long flight...but i wanted to give you the answer..
 
Old 11-12-2005, 01:29 PM   #7
gizmobay
LQ Newbie
 
Registered: Nov 2005
Posts: 17

Rep: Reputation: 0
Save your old smb.confg and use the default smb.confg. Make sure you setup an smbpasswd and user that has the same login user and pass as the XP login. Go to Win XP and select add a new printer. Go to install a network printer and type in \\LINUXIP\ and you should see the Linux printer in the pull down. Select it and it'll prompt you to select the correct Windows drivers. Select the one and continue. Then your Linux printer will be listed in Windows.
 
Old 11-12-2005, 01:54 PM   #8
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
use webmin with a samba module to configure samba - all from a browser and much simpler than editing the smb.conf directly.

Your configured printer will appear in the list of sharable printers and then you just set it as accessible for all users.

Easiest if webmin server running on machine with printer locally attached & accessed via browser on client machine.
 
Old 11-13-2005, 12:30 AM   #9
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by otchie1
use webmin with a samba module to configure samba - all from a browser and much simpler than editing the smb.conf directly.

Your configured printer will appear in the list of sharable printers and then you just set it as accessible for all users.

Easiest if webmin server running on machine with printer locally attached & accessed via browser on client machine.
i will try webmin......and report back to this thread...
 
Old 11-14-2005, 01:17 AM   #10
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 625

Original Poster
Rep: Reputation: 32
finally got it working.....seems like i probably make a typo......
thanks for all the help
 
  


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
network printing, from suse9.3 to windows xp home ambelos Suse/Novell 5 06-04-2005 10:09 PM
Printing to a Windows printer chud67 Suse/Novell 2 11-19-2004 05:33 PM
printing to a windows printer Mr.Bone Linux - Networking 6 08-29-2004 11:38 PM
Networking with Windows XP and printing to Windows XP shared printer AlanButler Red Hat 1 10-27-2003 07:07 AM
Printing on Windows XP Home rjilb Linux - Networking 0 08-11-2003 08:26 AM


All times are GMT -5. The time now is 09:03 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