LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-21-2005, 09:59 AM   #1
Shagrath239
Member
 
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67

Rep: Reputation: 15
Exclamation I can't use the printer of a Windows XP machine, using Slackware Linux


Ok, here's my issue, Im using a Slackware machine right here, with an Ethernet adapter..., in my house we have 2 computers... that are linked trough a switch, the network used to work sweet when both computers had Windows, now that I switched to Linux... I finally had achieved to mount the other computer... using mount -t cifs... but the printer... I havent been able to make it work.

Yesterday what I did was... installing CUPS and SAMBA, ok... did a smbclient to see if Samba was seeing the other computer... it worked great, all the shares appeared on the screen!!!, so well... i added the printer like this:

URI = smb://[NAME OF THE COMPUTER]/[NAME OF THE PRINTER]


But it didnt work... it says Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: Connection failed with error NT_STATUS_ACCESS_DENIED.


I googled a little bit... and I found that I should use this syntax:

smb://USER:@COMPUTER/PRINTER


Ok... I did this... no more that error... but all the jobs automatically get aborted... and they never arrive to the printer... the .ppd drivers are just fine, samba, cups... everything working... I tried to see if I could do anything trough localhost:631... nothing.



I need someone thas has his Linux machine printing sweet on a Windows XP one... cause im having some trouble right here, Thanks.
 
Old 02-21-2005, 10:10 AM   #2
broch
Member
 
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
The easy way would be installing on the windows machine UNIX TCP printing services
Once this work, set (under CUPS) lpd protocol. That should do. There is some glich with compatibility of pasword handling between samba and CUPS, so using LPD you will simply skip the problem (which can be resolved to by the way)
 
Old 02-21-2005, 10:15 AM   #3
Shagrath239
Member
 
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by broch
The easy way would be installing on the windows machine UNIX TCP printing services
Once this work, set (under CUPS) lpd protocol. That should do. There is some glich with compatibility of pasword handling between samba and CUPS, so using LPD you will simply skip the problem (which can be resolved to by the way)
The UNIX TCP printing services is a daemon right???

Mmm... I dont know if I can use a daemon in that computer... my brother uses it and I dont know if he is gonna like the idea.


The ideal thing would be using Samba with CUPS from here... and nothing there... that would be great.
 
Old 02-21-2005, 11:07 AM   #4
broch
Member
 
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
Quote:
I dont know if I can use a daemon in that computer... my brother uses it and I dont know if he is gonna like the idea.
?
daemon is for UNIX as service for windows. Same thing different names. So I don't understand where problem lies.


Instead tcp139 you will have tcp 500 open.. Both are daemons (ehem, services)
Assuming that you have firewall set then there is no difference.

If you insist on samba then use
security share option
 
Old 02-21-2005, 11:40 AM   #5
Shagrath239
Member
 
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67

Original Poster
Rep: Reputation: 15
Quote:
So I don't understand where problem lies.
Heheh... its just that the computer that has the printer is like... very well tweaked and if we can avoid adding another service to it... that would be nice.

If Samba doesnt work Ill try the service you mentioned.

Last edited by Shagrath239; 02-21-2005 at 11:41 AM.
 
Old 02-21-2005, 12:55 PM   #6
broch
Member
 
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
At boot time with this service Windows XP is taking 65MB. Without it takes ~64MB. So what is the problem? Whatever is your windows setup I dont think that TCP services for windows will hurt.
However you can try resolve password problem by changing smb.conf as above and setting right parameters in the windows registry (allow lm passwords only)
 
Old 02-21-2005, 01:17 PM   #7
Shagrath239
Member
 
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67

Original Poster
Rep: Reputation: 15
Ok, I installed the UNIX Printing Services... started the daemon... what should I do now??? i tried accesing to it with:

lpd://HOST/PRINTER


But nothing happens... any idea?
 
Old 02-21-2005, 04:58 PM   #8
Shagrath239
Member
 
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67

Original Poster
Rep: Reputation: 15
I finally solved everything!!!

It was a driver problem!!! all thanks to the allmighty LOG (/var/log/cups/error_log) that helped me out here. I got it working with smb protocol!!! thats right!!! no daemon in the Win XP machine!!!

And of course thanks to the only guy that gave me a hand on the issue, mr. broch.


This thing has been SOLVED baby yeah!!!, you can close this thread if you want to!!!



PS: If you wish to see the full output in the log, go to /etc/cups/cupsd.conf and look for the line that says LogLevel, edit to the value that you want. Im out of here!!!
 
Old 02-21-2005, 05:03 PM   #9
Shagrath239
Member
 
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67

Original Poster
Rep: Reputation: 15
Solution: (for the guy that used the search button and is looking at this right now):

In my case i own a HP deskjet 710C that is connected through LPT1 to a WinXP machine.


Went to linuxprinting.org, got the correct driver... then, did a script for myself in order to add the printer, here it is if you want to use it:

We are gonna call our printer "dog", you can use any name you want.

/usr/sbin lpadmin -p dog -v smb://user@pass@workgroup/IPOFTHEMACHINE/PRINTER-SHARE-NAME -P /usr/share/ppd/HP/HP-DeskJet_710C-pnm2ppa.ppd && /usr/bin/enable dog && /usr/sbin/accept dog && /usr/sbin/lpadmin -d dog


All right... everything looks sweet right??? but something is missing for our HP Deskjet 710C... the binary for pnm2ppa... so what you gotta do is go to sourceforge.net/projects/pnm2ppa, download the pnm2ppa SOURCE, do a make (just a make, nothing else), catch the file pnm2ppa that has been created, move that thing to /usr/bin (or whatever your main path is), and that's it... enjoy your printer!!! i mean remote windows printer!!!



PS: Remember creating an account in the Windows PC exclusively for remote Linux
control of the printer!!!, just create an ordinary account... it doesn't has to be administrative, just ordinary

Last edited by Shagrath239; 02-21-2005 at 05:05 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
Accessing a printer on a windows XP machine from my Linux box drebbin Linux - Newbie 2 09-20-2004 03:39 PM
deskject 3820 Printer on Windows machine not able to connect to from linux RedHat 9.0 bmfmyth Linux - Networking 10 07-04-2004 01:06 AM
Windows xp machine doesn't see linux printer bdika Linux - Networking 0 02-12-2004 12:20 PM
Connect to Printer on Windows machine timnew Linux - Networking 0 05-14-2003 09:16 AM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 06:37 PM


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