You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.6 KiB

10 years ago
---
layout: post
status: publish
published: true
title: Share Printer from Linux box to Windows
author:
display_name: sipp11
login: sipp11
email: sipp11@gmail.com
url: ''
author_login: sipp11
author_email: sipp11@gmail.com
wordpress_id: 880
wordpress_url: http://blog.10ninox.com/?p=880
date: '2013-10-22 10:37:56 +0700'
date_gmt: '2013-10-22 03:37:56 +0700'
categories:
- linux
- microsoft
tags:
- printer
- cups
- samba
---
<p>Of course, I know it needed samba, but I had difficulty sharing one to Windows PC which I didn't really get into much since the day I moved away from Windows. This was what I did to get it work.</p>
<p><code>$ /etc/samba/smb.conf</code></p>
<p>Find these lines and uncomment them; if you can't find, type.<br />
<code>printcap name = cups<br />
printing = cups</code></p>
<p>[printers] section should look similar to this</p>
<p><code>[printers]<br />
comment = All Printers<br />
browseable = yes<br />
path = /var/spool/samba<br />
printable = yes<br />
public = yes<br />
guest ok = yes<br />
create mask = 0700<br />
use client driver = yes<br />
path = /tmp<br />
</code></p>
<p>Then you have to restart samba.<br />
<code>$ sudo service smbd restart</code><br />
For some, you might have to use <code>samba</code> instead of <code>smbd</code>. That's varied by distros. However, after adding printer to your Windows box, you should be able to print. I find it's easier to navigate to <code>\\linux-box-name</code> in file explorer. Find printer there, then right-click to connect and add there. Add printer via Devices and Printer and auto discovery thing isn't impressed me 99% of the time.</p>