--- 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 --- 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. $ /etc/samba/smb.conf Find these lines and uncomment them; if you can't find, type. printcap name = cups printing = cups `[printers]` section should look similar to this [printers] comment = All Printers browseable = yes path = /var/spool/samba printable = yes public = yes guest ok = yes create mask = 0700 use client driver = yes path = /tmp Then you have to restart samba. $ sudo service smbd restart For some, you might have to use `samba` instead of `smbd`. 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 ```\\linux-box-name``` 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.