LinuxQuestions.org
Help answer threads with 0 replies.
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 10-11-2010, 11:27 AM   #1
jlavik
LQ Newbie
 
Registered: Aug 2010
Location: St. Paul, Minnesota
Posts: 15

Rep: Reputation: 0
Problems printing to Win7 attached printer - Worked one day then stopped.


I'm running Ubuntu 10.04 on my laptop and want to access my printer attached to a desktop running Windows 7. I was able to set up Samba so I could print successfully. Tested, rebooted, tested...it worked. Then several days later when trying to print again, it would not work.

Since then, I've looked at my /etc/samba/smb.conf and the changes I made before are still there. I've looked at various log files, but don't really know enough about what is logged where to know what they mean.

Can anyone help me figure this out?

John
 
Old 10-11-2010, 09:08 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,346
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Try the smbclient command from your laptop.

It might tell you whether something has changed in how Linux is seeing your printer.
 
Old 10-12-2010, 09:47 AM   #3
jlavik
LQ Newbie
 
Registered: Aug 2010
Location: St. Paul, Minnesota
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
Try the smbclient command from your laptop.

It might tell you whether something has changed in how Linux is seeing your printer.
I tried that and got this result:

Domain=[HOMEGROUP] OS=[Unix] Server=[Samba 3.4.7]
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: NT_STATUS_ACCESS_DENIED

I googled "'client lanman auth' is disabled" and found the advice to put 'lanman auth = yes' in the globals section of my smb.conf. I did that, rebooted, and tried smbclient again with the same result.

Any other ideas?
 
Old 10-13-2010, 10:33 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,346
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
In the laptop, open your browser and start CUPS (http://localhost:631).

Go to add printer.

Follow the prompts. At the second step, when it asks for "Device," select "Windows printer via Samba."

Click next. When it asks for the connection string, enter information as augmented by the output of smbclient.

smb://[ipaddress]/[sharename].

If the windows computer is password protected, user and pword information must be in the smb connection string.

This might help.

I no longer have any Windows computers hosting printers, so I no longer have an example I can post for you. But it can be done. It took me two years, but I did it.
 
Old 10-14-2010, 09:28 AM   #5
jlavik
LQ Newbie
 
Registered: Aug 2010
Location: St. Paul, Minnesota
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
In the laptop, open your browser and start CUPS (http://localhost:631).

Go to add printer.

Follow the prompts. At the second step, when it asks for "Device," select "Windows printer via Samba."

Click next. When it asks for the connection string, enter information as augmented by the output of smbclient.

smb://[ipaddress]/[sharename].

If the windows computer is password protected, user and pword information must be in the smb connection string.

This might help.

I no longer have any Windows computers hosting printers, so I no longer have an example I can post for you. But it can be done. It took me two years, but I did it.
Well, I finally solved this. The problem was my misunderstanding what to put in the smb.conf. I assumed the "netbios name = server name" was the Windows box name when it should have been my Ubuntu laptop name. When I fixed that, the printing started working!

However, I still can't share files. But that will be another post.
 
  


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
CUPS Printing to a Windows attached printer vivanguarda Linux - General 7 09-21-2008 03:47 PM
Printing on my Router attached printer John-in-France Linux - Networking 9 12-04-2007 03:57 AM
My printer stopped printing RetiredInMaine Linux - Desktop 1 10-31-2006 12:16 PM
Printing from WindowsXP to a Linux attached Printer? wmcase Linux - Networking 2 09-06-2006 05:18 PM
Printing on PC (Windows ) attached printer from a linux application on same Network shankar_hn Linux - Newbie 0 10-24-2003 05:32 AM


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