LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2003, 07:49 AM   #1
polgard
LQ Newbie
 
Registered: Aug 2003
Location: London
Distribution: SuSE 10.3
Posts: 18

Rep: Reputation: 0
samba: cannot print from Win98 to Linux printer


Hello, can anyone help me with this one.....?

I have a Linux PC with SuSE 8.2 and a Samsung ML1210 printer. I can print to
this via CUPS from another Linux PC. I have installed the Windows driver
for the ML1210 on a Win98 PC but cannot print to the Samsung.

The Win98 box can see the Linux box, its shared folders and the printer.
However, when I try to print from Win98 nothing happens.

I guess it may be that the path to the printer is wrong, but I don't know
how to correct it.
lpq shows no pending jobs, so the print jobs sent from the Win98 PC go
somewhere else.

The cups error message is as follows:
=====================================
...from /var/log/cups/error_log
E [16/Oct/2003:01:00:18 +0200] print_job: Unsupported format
'application/octet-stream'!
I [16/Oct/2003:01:00:18 +0200] Hint: Do you have the raw file printing rules
enabled?

So,
I uncommented the raw filter in the mime.convs and in the mime.type config
files in /etc/cups/
This has made no difference.


My smb.conf file
================
# Created by PT
# Date: Wed 8 October 2003
[global]
________workgroup_=_base
________netbios_name_=_samba_peck
#_______os_level_=_2
#_______time_server_=_Yes
________unix_extensions_=_Yes
________encrypt_passwords_=_Yes
#_______log_level_=_1
#_______syslog_=_0
________printing_=_CUPS
________printcap_name_=_CUPS
________socket_options_=_SO_KEEPALIVE_IPTOS_LOWDELAY_TCP_NODELAY
________wins_support_=_No
________veto_files_=_/*.eml/*.nws/riched20.dll/*.{*}/
[homes]
#_______comment_=_Home_Directories
#_______valid_users_=_%S
________browseable_=_No
________read_only_=_No
#_______create_mask_=_0640
#_______directory_mask_=_0750
[downloads]
________browseable_=_yes
________path_=_/home/downloads
________write_list_=_polgard,_Elis
________public_=_yes

#[printers]
#_______comment_=_All_Printers
#_______path_=_/var/tmp
#_______printable_=_Yes
#_______create_mask_=_0600
#_______browseable_=_No
#[print$]
#_______comment_=_Printer_Drivers
#_______path_=_/var/lib/samba/drivers
#_______write_list_=_@ntadmin_root
#_______force_group_=_ntadmin
#_______create_mask_=_0664
#_______directory_mask_=_0775


My /etc/cups/printers.conf (I think it is unnecessary to have <Printer
rawprint> but its something I tried)
================================================================
# Printer configuration file for CUPS v1.1.18
# Written by cupsd on Wed Oct 15 12:20:50 2003
<Printer rawprint>
Info rawprint
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<DefaultPrinter samsung>
Info samsung
Location /dev/lp0
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>


My /etc/printcap file
=====================
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file.__All_changes_to_this_file
# will be lost.
rawprint:
samsung:
 
Old 10-15-2003, 10:52 AM   #2
polgard
LQ Newbie
 
Registered: Aug 2003
Location: London
Distribution: SuSE 10.3
Posts: 18

Original Poster
Rep: Reputation: 0
I included the wrong smb.conf file :-(
Below is the one I am actually using version.
Now I have the windos pc not able to find the network name of the printer. I have tried both \\<SERVER NAME>\samsung and \\<SERVER NAME>\rawprint

Any ideas gratefully received. I have been trying to get samba/cups working for a couple of days and I am running out of ideas.



# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2003/08/25 04:26:11

# Global parameters
[global]
workgroup = base
netbios name = <SERVER>
interfaces = eth0
security = SHARE
encrypt passwords = Yes
log level = 1
syslog = 0
time server = Yes
unix extensions = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
printcap name = /etc/printcap
os level = 2
hosts allow = 192.168.1.2, 192.168.1.3
# printing = cups
printing = cups
load printers = yes
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
wins support = yes

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0640
directory mask = 0750
browseable = No
[downloads]
browseable = yes
path = /home/downloads
path = /home/polgard
write list = polgard, <win98user>
public = yes
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
guest ok = Yes
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
guest ok = Yes

[samsung]
comment = samsung
# path = /var/tmp
path = /dev/lp0
read only = yes
create mask = 0600
guest ok = Yes
printable = Yes
printer name = samsung
oplocks = yes
[rawprint]
comment = rawprint
printable = yes
print command = /usr/bin/lpr -P%p -r %s
printer name = rawprint
# printer = netprinter
printing = BSD
path = /dev/lp0
guest ok = Yes
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
print to a network printer from win98 machine tulip4heaven Linux - Networking 3 04-07-2005 08:49 PM
win98 printer sharing using samba tulip4heaven Linux - Networking 8 03-17-2005 06:38 AM
can't print to samba printer from xp jordanthompson Linux - Networking 15 10-16-2004 03:17 PM
Win98 Computers Can't Use Samba Printer (But they can see it as "offline) DaneM Linux - Networking 6 01-21-2004 10:44 AM
Windows printer does not print using Samba ZhiYi Linux - Networking 0 02-28-2003 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration