LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2005, 05:28 PM   #1
Ray2047
Member
 
Registered: Dec 2005
Posts: 52

Rep: Reputation: 15
Printing to Windows


[OS=Debian-Sarge]
A couple of obvious questions first that aren't so obvious to me.

I have found several tutorials and they always include "password" in the instructions but I have no password setup on the Windows machine. Do I just leave the space blank or what?

They ask for server name. Does that mean the name of the Windows computer? Can I just use the IP?

I thought using the KDE printer Wizard would be easiest but the selection for Samba to Windows is grayed out. Does this mean I may be missing a component? I have Installed Samba, , Cups, and Foo packages that seemed relevant.

In one command line how-to I read it suggests running '/user/bin/smbclient -L WinPc name -U username" to create a connection to Windows but I get "file not found". Is this a file I need to create. If so how?

Or if someone can point me to a really easy tutorial on printing from Debian to a printer on a Windows machine I would appreciate it.

Last edited by Ray2047; 12-23-2005 at 05:29 PM.
 
Old 12-23-2005, 08:39 PM   #2
DarkElf109
Member
 
Registered: Dec 2005
Location: Phoenix, AZ
Distribution: Ubuntu, Debian, Gentoo
Posts: 43

Rep: Reputation: 15
Easiest way to do it, if KDE is giving you problems, is to do it through the CUPS web interface. Head to http://localhost:631 and click on Manage printers, then Add Printer. From there, fill in the text boxes, and on the Device selection, select "Windows Printer via SAMBA". On the next page, for the printer address, use the following format:

smb://<username>[:<password>]@<computer IP>/<printer name>

AFAIK, you need to put in the user name, but if there's no password, leave out that section (including the colon). That should do it.
 
Old 12-23-2005, 10:14 PM   #3
Ray2047
Member
 
Registered: Dec 2005
Posts: 52

Original Poster
Rep: Reputation: 15
DarkElf109 Replied
Quote:
on the Device selection, select "Windows Printer via SAMBA"
That almost worked but I ran in to a problem similar to what I had with the KDE Wizard. In this case in the Device section "Windows Printer via SAMBA" was not one of the available options.

Is there perhaps a package missing I need to install? Should I try uninstalling Samba and reinstalling? (I probably will before you answer.)

Thanks for trying.

Edit: Tried removing (--purge) Samba and reinstalling but still do not have the option to connect to Windows via Samba

Last edited by Ray2047; 12-23-2005 at 10:43 PM.
 
Old 12-23-2005, 10:40 PM   #4
DarkElf109
Member
 
Registered: Dec 2005
Location: Phoenix, AZ
Distribution: Ubuntu, Debian, Gentoo
Posts: 43

Rep: Reputation: 15
Hrm...try the following:

Code:
sudo apt-get install smbclient smbfs
That should install what's needed to use other computer's samba shares, as well as any dependencies. After that, try configuring through KDE again, and see if the SAMBA option's there.
 
Old 12-27-2005, 08:06 AM   #5
Ray2047
Member
 
Registered: Dec 2005
Posts: 52

Original Poster
Rep: Reputation: 15
Installing smbclient smbfs got the Wizards working but I still can't print to Windows. Basically when I try to print nothing happens. If I use "Test" in the KDE print manager it says, "successfully sent" but nothing happens. I also tried printing from an editor but nothing.

I have tried all tests with the Windows firewall turned off. I have printer sharing turned on in Windows. (OS is Win2K) I can ping Windows. The two computers are connected through a hub.

In my search I found the command:
/usr/bin/smbclient -L [computer_name -U [user_name] to test if I can connect to the Windows computer. When I try that I get:

Session request to [computer_name]failed. (not listening on called name)
Session request to *SMBSERVER failed. (not listening on called name)

I tried using both Computer name and IP number. I used the name of the user on the computer where I use the printer. I really don't know what to try next. I have deleted the printer setup several times and redid it but no change. Also tried adding workgroup to printer address. Again no change.
 
Old 01-04-2006, 01:27 AM   #6
psychobuffalo
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian Etch
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by Ray2047
DarkElf109 Replied That almost worked but I ran in to a problem similar to what I had with the KDE Wizard. In this case in the Device section "Windows Printer via SAMBA" was not one of the available options.
DarkElf was not referring to the KDE Printer Manager - "Windows Printer via SAMBA" is an option with the http://localhost:631 printer interface.

Quote:
Edit: Tried removing (--purge) Samba and reinstalling but still do not have the option to connect to Windows via Samba
If you mean "swaret --purge", that does not uninstall the application - it only removes the setup files. To uninstall, use "swaret --remove".
 
Old 01-25-2006, 12:10 AM   #7
milad126
Member
 
Registered: Oct 2004
Distribution: Ubuntu 8.04
Posts: 62

Rep: Reputation: 15
I can not open the printer interface: http://localhost:631 . should i be able to open it in firefox??
note: I am not in a home network but in an office network.
 
  


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
Printing from Windows Geoff57 Linux - Software 1 11-01-2005 10:31 AM
Help printing to a Windows XP PC. Royle Linux - Networking 1 08-02-2005 12:02 AM
Printing from windows xp troycus Linux - Networking 2 07-10-2005 07:16 PM
Printing to Windows & access to Windows Network RThomson Linux - General 1 12-19-2004 06:45 PM
Networking with Windows XP and printing to Windows XP shared printer AlanButler Red Hat 1 10-27-2003 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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