LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-09-2005, 04:04 PM   #1
MrSpandex
LQ Newbie
 
Registered: Sep 2005
Location: Detroit, MI
Distribution: Slackware 11
Posts: 9

Rep: Reputation: 0
FUN! Printing...


Anyway, here we go. I know you guys get LOTS of posts on this, but I just cannot find a straight answer. I want to get a printer on a windows box on my network (Local IP 192.168.0.101) to allow my linux box to print remotely. Now, I have tried simply using CUPS to go to IP:631/printers/printernamehere, but my printer is not listed.

So, heres a list:

Printer: HP Deskjet 722c on Windows pc
Connecting from: Slackware 10.2 box

Do I need to set up a CUPS or SAMBA server on my windows box? If so, can you please point me to a Howto. If there is anohter way I don't know of yet, please tell me.

Thanks in advance,
Brian H.
 
Old 11-09-2005, 04:16 PM   #2
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
With cups you can do something like this...

With your browser go to:

http://localhost:631

Login as root, go to printers --> add printer
Name: whatever name you like
location: //IP
Descrtiption: something
Continue

Device: Windows Printer Via SAMBA (you do have your smb.conf, and smbd running right?)
THIS IS THE FUN PART
Device URI: smb://userasswd@ip/printer (the user y passwod are from the winmachine)
The rest is actually trivial

I hope it helps....
 
Old 11-09-2005, 04:27 PM   #3
MrSpandex
LQ Newbie
 
Registered: Sep 2005
Location: Detroit, MI
Distribution: Slackware 11
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by mago
(you do have your smb.conf, and smbd running right?) [/B]
Uhhh, no....

Which PC should have it, where is it, and what do I do with it?

Also, there is no print driver for ANY of the 700 series. I ahve a Deskjet 768c. I used 810c, and it found it. When I tried printing, I got this error:
Code:
"Can't load /etc/samba/smb.conf - run testparm to debug it"
I assume thats from not having the samba.conf file.

Im close, thanks for the help, and hopefully I can get this over with :P
 
Old 11-09-2005, 04:30 PM   #4
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
Well smbd is for *nix only so...
You need it configure and running on the slack box
 
Old 11-09-2005, 07:02 PM   #5
MrSpandex
LQ Newbie
 
Registered: Sep 2005
Location: Detroit, MI
Distribution: Slackware 11
Posts: 9

Original Poster
Rep: Reputation: 0
Well, I put this into my smb.conf, just to get something

Code:
    # This is /usr/local/samba/lib/smb.conf

    [global]
       netbios name = BIGSERVER
       workgroup = WORKGROUP
       log level = 2
       log file = /usr/local/samba/var/samba.log
       security = share

    [pub]
       path = /home/public
       browseable = yes
       guest ok = yes
       read only = no
And it didnt work but at least it THINKS it is!
 
Old 11-10-2005, 01:14 PM   #6
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
Scenerio: You have a printer connected to a Windows machine and you want your Linux machine to have access to it

Here's what you do using SAMBA:

To configure CUPS for SAMBA, run the following command:

ln -s `which smbspool` /usr/lib/cups/backend/smb ENTER

The smbspool(1) program is provided with SAMBA starting with SAMBA 2.0.6. Once you have made the link you can configure your printers with one of the following device URIs:

smb://servername/sharename
smb://usernameassword@servername/sharename
smb://ntdomain;usernameassword@servername/sharename
 
Old 11-11-2005, 04:06 PM   #7
MrSpandex
LQ Newbie
 
Registered: Sep 2005
Location: Detroit, MI
Distribution: Slackware 11
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by steve1972
Scenerio: You have a printer connected to a Windows machine and you want your Linux machine to have access to it

Here's what you do using SAMBA:

To configure CUPS for SAMBA, run the following command:

ln -s `which smbspool` /usr/lib/cups/backend/smb ENTER

The smbspool(1) program is provided with SAMBA starting with SAMBA 2.0.6. Once you have made the link you can configure your printers with one of the following device URIs:

smb://servername/sharename
smb://usernameassword@servername/sharename
smb://ntdomain;usernameassword@servername/sharename
Well, I know Im a complete and total nub, but when I try that I get this:
Code:
brian@brute:~$ ln -s `which smbspool` /usr/lib/cups/backend/smb
ln: `/usr/lib/cups/backend/smb': File exists
brian@brute:~$ ln -s `which smbspool` /usr/lib/cups/backend/smb ENTER
ln: when making multiple links, last argument must be a directory
 
Old 11-14-2005, 08:56 AM   #8
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
So you have already have CUPS configured for SAMBA.

Configure your printers with one of the following device URIs:

smb://servername/sharename
smb://usernameassword@servername/sharename
smb://ntdomain;usernameassword@servername/sharename
 
  


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
Scribus Printing How to put 4 flyers on a page when printing jazzboy Linux - Software 0 05-02-2004 06:13 AM
Fun with printing itsjustme Slackware 4 03-07-2004 04:11 PM
Just for fun hyper guy Linux - Newbie 4 03-04-2004 06:07 PM
Various Fun wdavidson Linux - General 4 09-29-2003 10:13 AM
Just for FUN! How would you... macdudelx Linux - General 18 08-11-2002 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:55 AM.

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