Page 1 of 1

Print sharing

Posted: Sun Sep 13, 2009 5:54 am
by rgmhtt
I want to put a printer on an AMAHI server and share it as usual for a Workgroup, as LTP1:

How do I set up a printer share?

Re: Print sharing

Posted: Mon Sep 14, 2009 1:08 am
by moredruid
in linux (& samba) or on windows?

Re: Print sharing

Posted: Mon Sep 14, 2009 3:01 am
by rgmhtt
Well I did not know that you could share a printer to a linux system as LTP1:

But I admit that is a little indirect to say for Windows so that a:

Net use ltp1: \\hda\print1

would work to gain access to the printer on the server.

Re: Print sharing

Posted: Mon Sep 14, 2009 4:41 am
by bigfoot65
See the guidance in the wiki http://wiki.amahi.org/index.php/Adding_ ... ed_printer. This will work for Windows machines.

If you have any problems, please let us know and someone will be glad to assist.

Re: Print sharing

Posted: Mon Sep 14, 2009 4:57 am
by rgmhtt
I will forward this URL to my son to try out.

Meanwhile I do have one question. It says:
Optional: The printer status message problem can be corrected by adding the following line to the /etc/samba/smb.conf file under the printers section:

[printers]
use client driver = yes
But the smb.conf file gets overwritten everytime you make a Shares change in the dashboard.

Where is the script that creates the smb.conf file so the change can be made there?

(I have a similar question in the developers forum about PDC logon scripts).

Re: Print sharing

Posted: Mon Sep 14, 2009 2:08 pm
by bigfoot65
It should make a backup so you shouldn't lose anything. I have made shares since adding the line to my smb.conf file and it's still there.

Re: Print sharing

Posted: Mon Sep 14, 2009 3:42 pm
by rgmhtt
I found the source file for smb.conf at:

/usr/share/hdactl/samba/smb.conf

Make the change there and it will persist (until some hda update replaces that file!).

Re: Print sharing

Posted: Mon Sep 14, 2009 4:45 pm
by cpg
er ... nope. that file is a very generic initial setup.

smb.conf is dynamically generated.

by default it exports printers that are configured (with cups, which is the default).