Jump to content

Sharing my Linux printer


Slagathor
 Share

Recommended Posts

Hello again, I have installed 9.1, which is pretty darn nice, anywase I have everything set up the way I like, except my printer.

I have it installed on the linux machine, and I want to share it with the Windoze machines that the wife and kids use. I have Samba set up and can browse the network with all the pc's the only thing I am having problems with is the printer.

And I have a funny feeling it's something really simple, and I am gonna feel a little foolish.... :shock: :shock:

Link to comment
Share on other sites

Hi Slagathor

 

If you are able to browse the Windows machine and they are able to browse you then YES .. that is supposed to be simple.

 

What about posting your Samba config file here? (/etc/samba/smb.conf)

 

Are you able to print in Linux? Do you use CUPS?

 

Here is the relevant section in my /etc/samba/smb.conf file:

# NOTE: If you have a CUPS print system there is no need to

# specifically define each individual printer.

# You must configure the samba printers with the appropriate Windows

# drivers on your Windows clients. On the Samba server no filtering is

# done. If you wish that the server provides the driver and the clients

# send PostScript ("Generic PostScript Printer" under Windows), you have

# to swap the 'print command' line below with the commented one.

[printers]

  comment = All Printers

  path = /var/spool/samba

  browseable = no

# to allow user 'guest account' to print.

  guest ok = yes

  writable = no

  printable = yes

  create mode = 0700

# =====================================

# print command: see above for details.

# =====================================
;   print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
;   print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).

  lpq command = lpstat -o %p

  lprm command = cancel %p-%j



# This share is used for Windows NT-style point-and-print support.

# To be able to install drivers, you need to be either root, or listed

# in the printer admin parameter above. Note that you also need write access

# to the directory and share definition to be able to upload the drivers.

# You must disable (by commenting out) the share above if you enable this.

# For more information on this, please see the Printing Support Section of

# /usr/share/doc/samba-2.2.1a/docs/Samba-HOWTO-Collection.pdf

# Please note that this has not yet been tested as packaged here with CUPS.
;[print$]
;   path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   write list = @adm root

 

MOttS

Link to comment
Share on other sites

Yes I can print, and yes it uses CUPS, here the Samba conf........

# NOTE: If you have a CUPS print system there is no need to

# specifically define each individual printer.

# You must configure the samba printers with the appropriate Windows

# drivers on your Windows clients. On the Samba server no filtering is

# done. If you wish that the server provides the driver and the clients

# send PostScript ("Generic PostScript Printer" under Windows), you have

# to swap the 'print command' line below with the commented one.
;[printers]
;comment = All Printers
;path = /var/spool/samba
;browseable = no

# to allow user 'guest account' to print.
;guest ok = yes
;writable = no
;printable = yes
;create mode = 0700

# =====================================

# print command: see above for details.

# =====================================
;print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
;print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
;lpq command = lpstat -o %p
;lprm command = cancel %p-%j



# This share is used for Windows NT-style point-and-print support.

# To be able to install drivers, you need to be either root, or listed

# in the printer admin parameter above. Note that you also need write access

# to the directory and share definition to be able to upload the drivers.

# You must disable (by commenting out) the share above if you enable this.

# For more information on this, please see the Printing Support Section of

# /usr/share/doc/samba-2.2.1a/docs/Samba-HOWTO-Collection.pdf

# Please note that this has not yet been tested as packaged here with CUPS.
;[print$]
;   path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   write list = @adm root

Link to comment
Share on other sites

Slagathor, you have to uncomment (remove the ';' sign) some lines in the [printers] section for your printer to be shared. Look at my [printers] section to inspire yourself ( :-D ). Once it is done, restart Samba and search for the printer from a Windows machine. That should work..

 

If it doesn't work, post the whole smb.conf here.

 

MOttS

Link to comment
Share on other sites

what exactly is the problem with the printer?

 

I couldn't connect to it from the Windoz machines...... :?

 

Slagathor, you have to uncomment (remove the ';' sign) some lines in the [printers] section for your printer to be shared. Look at my [printers] section to inspire yourself (  ). Once it is done, restart Samba and search for the printer from a Windows machine. That should work..  

 

If it doesn't work, post the whole smb.conf here.  

 

MOttS

 

I uncommented like your's and works like a charm......... :D

Thanx a ton d00d....... :D :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...