LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems printing to Win7 attached printer - Worked one day then stopped. (https://www.linuxquestions.org/questions/linux-newbie-8/problems-printing-to-win7-attached-printer-worked-one-day-then-stopped-837418/)

jlavik 10-11-2010 10:27 AM

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

frankbell 10-11-2010 08:08 PM

Try the smbclient command from your laptop.

It might tell you whether something has changed in how Linux is seeing your printer.

jlavik 10-12-2010 08:47 AM

Quote:

Originally Posted by frankbell (Post 4124436)
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?

frankbell 10-13-2010 09:33 PM

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.

jlavik 10-14-2010 08:28 AM

Quote:

Originally Posted by frankbell (Post 4126640)
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.


All times are GMT -5. The time now is 09:18 AM.