Computing.Net > Forums > Linux > Printer on Fedora Samba share

Printer on Fedora Samba share

Reply to Message Icon

Original Message
Name: vevense
Date: October 14, 2004 at 14:04:39 Pacific
Subject: Printer on Fedora Samba share
OS: Windows XP
CPU/Ram: AMD Athlon XP1800/512
Comment:


Hello gurus!

I have a Canon S750 printer connected to my Fedora box. I want to share the printer to my Windows- and other

machines, but I can't manage to print anything.
I can print locally in Fedora without problems and I can install the printer as network printer on my Windows PC.

But when I try to print from my Windows PC, nothing happens.

The Canon is installed on Fedora using a BJC8200-driver (S600 works as well). When installing it on the Windows PC I

have tried S750-, BJC8200- and S600-drivers. None of them working.

Could anyone please provide me with the necessary lines of code in the smb.conf file.

Regards
VES


Report Offensive Message For Removal

Response Number 1
Name: randomx
Date: October 15, 2004 at 14:47:48 Pacific
Subject: Printer on Fedora Samba share
Reply: (edit)

I made this HOWTO a while back when I ran into similar issues.

The problem is not on samba.conf.

You need to set up a CUPS. That is, if you want to connect a Windows host to a Linux host [linux is the one with the printer attached to it]. Then you tweak around smb.conf.


CUPS linux print server (redhat 9.0, kernel 2.4.22)

http://127.0.0.1:631/admin

scenario: printer attached to linux.
objective: windows xp print to it

1). Get the package. Rpm or source. www.cups.org

2.) Install the cups package by doing:
# ./configure; make; make install.

3.) Restart service. You should see cups start with output "Cups scheduler started". /sbin/service cups start | stop

3.) Go to Linuxprinting.org. On the left side navigation bar, select The Database-> Printer Listings. Select your make/model printer, then click on the Show button. The next page will give you the option to generate a ppd file for your printer. Click on download PPD and save the file to /usr/share/cups/model. The file should be in a model.ppd format, if not, then rename it to my_printer.ppd.

4.) Restart cups by doing
/sbin/service cups restart.

5.) http://www.linuxprinting.org/download/foomatic/ and download the latest foomatic-filters.tar.gz (version 3.0 as of this writing). Then do the following:

# tar -xzf foomatic-filters-3.0.0.tar.gz
# ./configure
# make
# cp foomatic-rip /usr/lib/cups/filter/

6) in Red Hat, I went to #printconf-gui, click on Action, then Sharing...Selected what I wanted. Allow all, or specific IP.
****OR***
Open your favorite browser and point it to http://localhost:631
Under Administrative Tasks, add your printer. Just follow the directions.

7.) modify /etc/cups/cupsd.conf

<Location /printers/deskjet940c>
#Order Allow,Deny //comment added
#Deny From All //comment added
Allow From 127.0.0.1
Allow From 192.210.85.* //added this line
#AuthType None //comment added
Allow from All
</Location>
<Location />
#Order Deny,Allow //comment added
#Deny From All //comment added
Allow From 127.0.0.1
Allow From 192.210.85.* //added this line
</Location>
Browsing On
BrowseProtocols cups
#BrowseOrder Deny,Allow //comment added
BrowseAllow from @LOCAL
#BrowseAddress 192.210.85.255 //comment added

9)Modify smb.conf

ensure the following is set:

printing = cups
printcap name = cups

[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
#added myself
printing = cups
public = yes
printer name = deskjet940c

10.modfiy the following cups files:

/etc/cups/mime.convs
-uncomment the line:
application/octet-stream application/vnd.cups-raw

/etc/cups/mime.types
-uncomment the line:
application/octet-stream

11. /sbin/service cups stop | start
12/ sbin/service smb stop | start

13. For windows XP.
add printer wizard, connect to:\\<ip linux server\deskjet940c, add drivers, and enjoy.
Try http://<ip>/printers/deskjet940c but that requires you have ipp on windows.



Report Offensive Follow Up For Removal

Response Number 2
Name: vevense
Date: October 16, 2004 at 04:23:33 Pacific
Subject: Printer on Fedora Samba share
Reply: (edit)

Thank You randomx for the very comprehensive reply.
I'll try it later this weekend.

Regards
V.E. Seeberg


Report Offensive Follow Up For Removal

Response Number 3
Name: vevense
Date: October 16, 2004 at 05:04:44 Pacific
Subject: Printer on Fedora Samba share
Reply: (edit)

It Works!!!!!!!!!!!!!!!


I love you, randomx!!!!!!!!!!!!!!!!!!!!


Regards
VES


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Printer on Fedora Samba share

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software