Network Printing with CUPS-- SOLVED!

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
davec51
Posts: 5
Joined: 10. Sep 2011, 21:49
Location: Northern Virginia USA

Network Printing with CUPS-- SOLVED!

Post by davec51 »

I just installed Salix (USB installation) on a computer with a wired network, Windows XP server. I have installed a number of Linux OS's with no printing problems before. After setting up CUPS configuration and copying /etc/samba/smb.conf-sample as /etc/samba/smb.conf, I still get no printing. CUPS is receiving the order "pending" but not executing. I suspect that the smb.conf file needs some tweaking. Any suggestions?
I played with the smb.conf file until the miracle happened. Thanks to all who helped
Last edited by davec51 on 11. May 2012, 21:43, edited 1 time in total.
User avatar
fredg
Posts: 232
Joined: 3. Oct 2009, 16:50
Location: Lyon, France
Contact:

Re: Network Printing with CUPS

Post by fredg »

davec51
Posts: 5
Joined: 10. Sep 2011, 21:49
Location: Northern Virginia USA

Re: Network Printing with CUPS

Post by davec51 »

Thanks for the quick reply, fredg, but I'm not up to that much tweaking. Also, I don't see some of the files the post says are required in my /etc/samba folder. It may be I'm not sophisticated enough for Salix.
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Network Printing with CUPS

Post by djemos »

Be sure cups is running.
as root
service restart cups
This is my smb.conf ptinting over network.

Code: Select all

#======================= Global Settings =====================================
[global]
   workgroup = WORKGROUP
   server string = Samba Server Desktop
   security = share

  usershare path = /var/lib/samba/usershares
  usershare max shares = 100
  usershare allow guests = yes
  usershare owner only = yes

 hosts allow = 192.168.1. 192.168.2. 127.

  load printers = yes
  printing = cups

   log file = /var/log/samba.%m
   max log size = 50
   os level = 33
   preferred master = yes
   dns proxy = no 

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = yes
   guest only = yes
   writable = no
   printable = yes
   public = yes
   use client driver = yes

# This one is useful for people to share files
[tmp]
  comment = Temporary file space
  path = /tmp
  read only = no
  public = yes

and this is another one with security = user

Code: Select all

[global]
   workgroup = WORKGROUP
   server string = %h Samba Server

 name resolve order = bcast host lmhosts wins

security = user
load printers = yes
   log file = /var/log/samba.%m
   max log size = 50

   dns proxy = no 

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

# NOTE: If you have a BSD-style print system there is no need to 
# specifically define each individual printer
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes

# This one is useful for people to share files
[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

After change your smb.conf restart samba.
Try to print.
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Network Printing with CUPS

Post by JRD »

I don't understand...why the need of samba for printing ? Just configure cups with your printer driver...Am I missing something and then you will all laugth at me reading my post?
Image
Post Reply