Hi Didier,

> > 1) If there is no redhat version driver of my
> printer,
> > that would mean I cannot use that printer as my
> > Network printer by using cups and printer
> > configuration?
> 
> What's your printer name and model? Your printer is
> connected to your
> Windows machine right? You should be able to print
> from a Redhat PC
> without any problems. Hang on a bit more.

You are right. I should be more persistent. OK. I am
now doing a project which uses a Thermal Printer to
print receipts. This is a "Fujitsu" printer which
prints paper with dimension 80x297mm. The model is
FP410. A very rare printer. So Redhat 9 doesn't have
it in their list.

I am able to send print job perfectly to this printer
using smbclient. But I failed to do so using lpr
because in Print Configuration, I couldn't find a
matching driver(I suspect this is the reason).
Everytime I send a print job using lpr, the printer
prints some meaningless and long numbers. It seems to
be me some like wrong conversion or wrong driver
issues.

Wait, to say to print something meaningless is not
exactly right. The print output has some connections
with the file I wanted to print, but I can't figure
out what is going on.

- The file I want to print : /etc/hosts (by lpr -P
FITFP-41 /etc/hosts, the file only has 5 lines) 

- The print output :
%!PS-Adobe-3.0
%RBINumberCopies:1
%%Page: (atend)
%%BoundingBox: 0 0 612 792
%%Creator: texttops/CUPS v.1.1.17
%%CreationDate: Mon 25 Aug 2003 05:(Skip...)
%%Title: hosts
%%For : root
...
..(Skip, I off the printer otherwise I won't know when
will it stop.)
...

You see? The right file is sent but the wrong content
is printed out. What is happening?

I paste my smb.conf below. I hope it won't stress you
up. Please let me know if you spot any problems.

Once again, thanks a lot.

[global]

   workgroup = WORKGROUP
   server string = Champion Samba Server

   hosts allow = 10.3.1.13

# if you want to automatically load your printer list
rather
# than setting them up individually then you'll need
this
   printcap name = /etc/printcap
   load printers = yes

# It should not be necessary to spell out the print
system type unless
# yours is non-standard. Currently supported print
systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
   printing = cups

# Uncomment this if you want a guest account, you must
add this to /etc/passwd
# otherwise the user "nobody" is used
  guest account = chankh

# this tells Samba to use a separate log file for each
machine
# that connects
   log file = /var/log/samba/%m.log

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Security mode. Most people will want user level
security. See
# security_level.txt for details.
   security = user

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba
documentation.
# Do not enable this option unless you have read those
documents
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd

# The following is needed to keep smbclient from
spouting spurious errors
# when Samba is built with support for SSL.
;   ssl CA certFile =
/usr/share/ssl/certs/ca-bundle.crt

# The following are needed to allow password changing
from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb
passwd file' above.
# NOTE2: You do NOT need these to allow workstations
to change only
#        the encrypted SMB passwords. They allow the
Unix password
#        to be kept in sync with the SMB password.
   unix password sync = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*password* %n\n
*Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*

# You can use PAM's password change control flag for
Samba. If
# enabled, then PAM will be used for password changes
when requested
# by an SMB client instead of the program listed in
passwd program.
# It should be possible to enable this without
changing your passwd
# chat parameter for most setups.

   pam password change = yes

# Unix users can map to different SMB User names
;  username map = /etc/samba/smbusers

  obey pam restrictions = yes

# Most people will find that this option gives better
performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you
must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24 

# Configure remote browse list synchronisation here
#  request announcement to, or browse list sync from:
#       a specific host or from / to a whole subnet (see
below)
;   remote browse sync = 192.168.3.25 192.168.5.255
    remote browse sync = 10.3.1.13
# Cause this host to announce itself to local subnets
here
;   remote announce = 192.168.1.255 192.168.2.44
    remote announce = 10.3.1.13
# Browser Control Options:
# set local master to no if you don't want Samba to
become a master
# browser on your network. Otherwise the normal
election rules apply
;   local master = no

# OS Level determines the precedence of this server in
master browser
# elections. The default value should be reasonable
;   os level = 33


#============================ Share Definitions
==============================
[homes]
   comment = Home Directories
   browseable = yes
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
# If you want users samba doesn't recognize to be
mapped to a guest user
; map to guest = bad user



# 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 = yes
# Set public = yes to allow user 'guest account' to
print
#   public = yes
   guest ok = no
   writable = no
   printable = yes
   print command = lpr-cups -P %p -o raw %s

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

# A publicly accessible directory, but read only,
except for people in
# the "staff" group
;[public]
   comment = Public Stuff
   path = /home/samba
   browseable = yes
   public = yes
   guest ok = yes
   available = yes
   guest only = no
   user = chankh
   writable = yes
   printable = no
   write list = @staff



__________________________________________________
Do You Yahoo!?
Play now and stand a chance to win cash prizes! 
http://yahoo.com.sg/millionaire


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to