Good afternoon,
This is my first post, so please be gentle ;)
Anyway, here's my question....I've recently put together a Linux Server
for
our company, replacing an old Novel server. I have the box set up with
Samba, as a PDC on our network. So far, just about everything is working
correctly.
One issue I'm coming up against, though, is printing from DOS. I
have Samba set up to print with LPRNG, using the client drivers (reason for
that is it keeps the default settings for each user on their machine. If
there's a better way, than enlightenment would be great). Anyway, the
problem we are having is, when printing from DOS, it's spitting out the
printer setup at the top of the first page and it's unformatted. If need
be, I can send the conf file for review (I'm not sure which sections to
send). Oh, and in case it hasn't shown yet, I've only been working with
Linux for about 18 months now.
Second question isn't a problem, it's more of idle curiosity.
We
have a router set up at a 10.1.*.* address internally. We used to have a
Citrix box that was the DHCP server. we've received our DNS servers from
our provider, which I've plugged into the DHCP config file pointing out to
the external world. What, if any benefits, would I receive if I were to
set up the Samba server to include DNS support? But then again, is this
even a question I should be asking here! LOL
thanks in advance!
Darin Bawden
dbawden@teamdme.com
On Mon, 2002-09-23 at 13:40, Darin Bawden wrote:> Good afternoon, > This is my first post, so please be gentle ;) > Anyway, here's my question....I've recently put together a Linux Server for > our company, replacing an old Novel server. I have the box set up with > Samba, as a PDC on our network. So far, just about everything is working > correctly. > One issue I'm coming up against, though, is printing from DOS. I > have Samba set up to print with LPRNG, using the client drivers (reason for > that is it keeps the default settings for each user on their machine. If > there's a better way, than enlightenment would be great). Anyway, the > problem we are having is, when printing from DOS, it's spitting out the > printer setup at the top of the first page and it's unformatted. If need > be, I can send the conf file for review (I'm not sure which sections to > send). Oh, and in case it hasn't shown yet, I've only been working with > Linux for about 18 months now.I don't really understand the problem - what is the printer setup? Are you sure it's not a problem with your dos application?> Second question isn't a problem, it's more of idle curiosity. We > have a router set up at a 10.1.*.* address internally. We used to have a > Citrix box that was the DHCP server. we've received our DNS servers from > our provider, which I've plugged into the DHCP config file pointing out to > the external world. What, if any benefits, would I receive if I were to > set up the Samba server to include DNS support? But then again, is this > even a question I should be asking here! LOLsamba doesn't do DNS... maybe you're thinking of WINS The advantage of WINS is that the Network Neighborhood doesn't break down as often and machines don't have to broadcast when they boot up. However, you do need to configure the clients to use the WINS server. Since you indicate that you are using DHCP that should be easy - just add option netbios-name-servers 10.X.x.x. to your dhcpd.conf file. brad
On Mon, 2002-09-23 at 15:42, Darin Bawden wrote:> Greetings Brad, > I have 2 pritners set up on a jet direct port/server/whatever. They are > setup as Paper1 and Color1. When we had our Novell server they program > pritned correctly. Since setting up the new server, it's printing out this > printer setup info at the top of the first page. Also, the print out is > not compressed. I'm using LPRNG as the print. I'm just not sure if this > would be a Samba thing or an LPRNG thing. I just don't know enough to know > where to start.I'm keeping the list included here since somebody else may have a better idea of what's up. what is "printer setup info"? show us your print command line from smb.conf it should be something like print command = lpr -P %p -J'%J' -o raw %s -r Do your windows printer print okay? if so then I don't know what's up here... brad
On Mon, 2002-09-23 at 16:30, Darin Bawden wrote:> that's the weird thing. Our Windows printers print fine, it's only DOS > that has a problem. In the Global and printers section I don't have > anything listed for the print command (As I said, I'm sorta new at all > this). It lists the line in SWAT, though. According to SWAT, we're using > BSD-style printing with a print command line of "lpr -r -P%p %s" Before I > just looked at SWAT, I never saw the print command before. I love Linux, > but it's stuff like this that drive me nuts! LOLyou're confused because swat shows you all the settings while the text file only contains those parameters that have changed from their default. try adding a -o raw to the print command line... that should tell lprng that this data is already formatted for the printer and doesn't need to be ripped. brad> Darin > > At 03:20 PM 9/23/2002, you wrote: > >On Mon, 2002-09-23 at 15:42, Darin Bawden wrote: > > > Greetings Brad, > > > I have 2 pritners set up on a jet direct port/server/whatever. They are > > > setup as Paper1 and Color1. When we had our Novell server they program > > > pritned correctly. Since setting up the new server, it's printing out > > this > > > printer setup info at the top of the first page. Also, the print out is > > > not compressed. I'm using LPRNG as the print. I'm just not sure if this > > > would be a Samba thing or an LPRNG thing. I just don't know enough to > > know > > > where to start. > >I'm keeping the list included here since somebody else may have a better > >idea of what's up. > > > > > >what is "printer setup info"? > > > >show us your print command line from smb.conf > >it should be something like > >print command = lpr -P %p -J'%J' -o raw %s -r > > > >Do your windows printer print okay? > >if so then I don't know what's up here... > > > >brad > > Darin Bawden > TeamDME! Technical Support > (615) 333-1900 ext. 19 > dbawden@teamdme.com > > > >
On Mon, 2002-09-23 at 16:59, Darin Bawden wrote:> Just tried that. For a one-page document, it printed fine. For a > multi-page report, it printed out the following: > Y%-12345X > Y%-12345Z@PJL SET PAGEPROTECT=OFF > @PJL SET DENSITY=3 > @PJL SET IMAGEADAPT=AUTO > @PJL SET RET=MEDIUM > @PJL SET ECONOMODE=OFF > @PJL SET RESOLUTION=300 > @PJL ENTRIES LANGUAGE=PCL > YEY (10UY&11SY&10OY(s16.66HY&16d09/23/02 > > Bare in mind the Y's above, are similar to a foreign language Y, as it has > what looks like colons above it. > > DarinI don't know what to tell you - i think your app is lame... it should send those commands once per job not once per page... i don't know how netware handled this okay. brad
Don't know much about Dos printing, but: What format do the dos client drivers deliver the print job to samba in? Just saying use client drivers doesn't mean your server won't try to filter it if it goes to the wrong queue, I THINK. What type of queue is accepting the print jobs on the samba server? Post: Your printcap file. The printer filter, if any. Your smb.conf file. The fact that the printer setup is being printed suggests that the job is not being formatted properly for your printer. After all, why doesn't the printer realize this is setup data and not your document? Joel On Mon, Sep 23, 2002 at 12:40:30PM -0500, Darin Bawden wrote:> Good afternoon, > This is my first post, so please be gentle ;) > Anyway, here's my question....I've recently put together a Linux Server for > our company, replacing an old Novel server. I have the box set up with > Samba, as a PDC on our network. So far, just about everything is working > correctly. > One issue I'm coming up against, though, is printing from DOS. I > have Samba set up to print with LPRNG, using the client drivers (reason for > that is it keeps the default settings for each user on their machine. If > there's a better way, than enlightenment would be great). Anyway, the > problem we are having is, when printing from DOS, it's spitting out the > printer setup at the top of the first page and it's unformatted. If need > be, I can send the conf file for review (I'm not sure which sections to > send). Oh, and in case it hasn't shown yet, I've only been working with > Linux for about 18 months now. > Second question isn't a problem, it's more of idle curiosity. We > have a router set up at a 10.1.*.* address internally. We used to have a > Citrix box that was the DHCP server. we've received our DNS servers from > our provider, which I've plugged into the DHCP config file pointing out to > the external world. What, if any benefits, would I receive if I were to > set up the Samba server to include DNS support? But then again, is this > even a question I should be asking here! LOL > > thanks in advance! > > Darin Bawden > dbawden@teamdme.com > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Joel,
Here are the conf files. I was hesitant to post them, because of their
lenghts. However, seeing other posts, I don't see that as a problems.
Printcap file:
# /etc/printcap
#
# DO NOT EDIT! MANUAL CHANGES WILL BE LOST!
# This file is autogenerated by printconf-backend during lpd init.
#
# Hand edited changes can be put in /etc/printcap.local, and will be included.
Paper1:\
:ml=0:\
:mx=0:\
:sd=/var/spool/lpd/Paper1:\
:af=/var/spool/lpd/Paper1/Paper1.acct:\
:sh:\
:lp=|/usr/share/printconf/util/jetdirectprint:\
:lpd_bounce=true:\
:if=/usr/share/printconf/util/mf_wrapper:
Color1:\
:ml=0:\
:mx=0:\
:sd=/var/spool/lpd/Color1:\
:af=/var/spool/lpd/Color1/Color1.acct:\
:sh:\
:lp=|/usr/share/printconf/util/jetdirectprint:\
:lpd_bounce=true:\
:if=/usr/share/printconf/util/mf_wrapper:
###############################################################################
## Everything below here is included verbatim from /etc/printcap.local ##
###############################################################################
# printcap.local
#
# This file is included by printconf's generated printcap,
# and can be used to specify custom hand edited printers.
Here's my smb.conf file:
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
"testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings
====================================[global]
smb passwd file = /etc/samba/smbpasswd
passwd program = /usr/bin/passwd %u
pam password change = yes
domain master = yes
add user script = /usr/bin/adduser -d /dev/null -g 100 -s
/bin/false -M %m$
dns proxy = no
encrypt passwords = yes
show add printer wizard = yes
status = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
max log size = 0
preferred master = yes
obey pam restrictions = yes
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
security = user
domain admin group = @root
domain logons = yes
printer admin = @ntadmin
unix password sync = Yes
workgroup = TEAMDME
server string = Linux Server
local master = yes
netbios name = Linux1
log file = /var/log/samba/%m.log
load printers = yes
os level = 64
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[Teamdme]
path = /usr/teamdme
comment = Teamdme Directory
browseable = yes
writable = yes
create mode = 0777
directory mode = 0777
#[test]
# path = /usr/teamdme/test
## comment = test directory
# browseable = yes
# writable = yes
# create mode = 0775
# directory mode = 0775
# [Spectrum.Liv]
# path = /usr/teamdme/spectrum.liv
# comment = Team5 Directory
# writable = yes
# create mode = 0664
# directory mode = 0775
# write list = @admins
# [Teamliv]
# path = /usr/teamdme/teamliv
# writable = yes
# comment = TeamDME Windows Production
# browseable = yes
# create mode = 0777
# directory mode = 0777
#[FAQS]
# path = /usr/teamdme/faqs
# comment = FAQ Directory
# writable = yes
# create mode = 0775
# directory mode = 0775
#[Support]
# path = /usr/teamdme/support
# comment = Support Calls
# writable = yes
# create mode = 0775
# directory mode = 0775
# write list = @support
#[CVS]
# path = /usr/teamdme/cvsroot
# comment = CVS File Share
# writable = yes
# create mode = 775
# directory mode = 775
# write list = @programming
[Root]
path = /
writable = yes
browseable = no
create mode = 0775
directory mode = 0775
valid users = @root
comment = Root share for Admin Purposes Only
write list = @root
[print$]
path = /usr/local/samba/printers
guest ok = yes
browseable = yes
read only = yes
write list = @ntadmin,root,dbawden
[netlogon]
comment = Network Logon Service
path = /usr/local/samba/netlogon
guest ok = yes
writable = no
share modes = no
; logon script = startup.bat
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
#[Profiles]
; path = /home/%U
; browseable = no
; guest ok = yes
; create mask = 0600
; directory mask = 0700
; read only = no
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
path = /var/spool/samba
comment = All Printers
browseable = no
use client driver = yes
printable = yes
write list = dbawden
As for printer filters....I'm not sure if I'm using any (remember,
I'm
still a relative newbie at this). Where would I look for that?
Darin
At 06:36 PM 9/23/2002, Joel Hammer wrote:>Don't know much about Dos printing, but:
>What format do the dos client drivers deliver the print job to samba in?
>Just saying use client drivers doesn't mean your server won't try to
filter
>it if it goes to the wrong queue, I THINK.
>What type of queue is accepting the print jobs on the samba server?
>
>Post:
>Your printcap file.
>The printer filter, if any.
>Your smb.conf file.
>The fact that the printer setup is being printed suggests that the job is
>not being formatted properly for your printer. After all, why doesn't
the
>printer realize this is setup data and not your document?
>Joel
>
>On Mon, Sep 23, 2002 at 12:40:30PM -0500, Darin Bawden wrote:
> > Good afternoon,
> > This is my first post, so please be gentle ;)
> > Anyway, here's my question....I've recently put together a
Linux Server
> for
> > our company, replacing an old Novel server. I have the box set up
with
> > Samba, as a PDC on our network. So far, just about everything is
working
> > correctly.
> > One issue I'm coming up against, though, is printing from
DOS. I
> > have Samba set up to print with LPRNG, using the client drivers
(reason
> for
> > that is it keeps the default settings for each user on their machine.
If
> > there's a better way, than enlightenment would be great). Anyway,
the
> > problem we are having is, when printing from DOS, it's spitting
out the
> > printer setup at the top of the first page and it's unformatted.
If need
> > be, I can send the conf file for review (I'm not sure which
sections to
> > send). Oh, and in case it hasn't shown yet, I've only been
working with
> > Linux for about 18 months now.
> > Second question isn't a problem, it's more of idle
curiosity. We
> > have a router set up at a 10.1.*.* address internally. We used to
have a
> > Citrix box that was the DHCP server. we've received our DNS
servers from
> > our provider, which I've plugged into the DHCP config file
pointing out to
> > the external world. What, if any benefits, would I receive if I were
to
> > set up the Samba server to include DNS support? But then again, is
this
> > even a question I should be asking here! LOL
> >
> > thanks in advance!
> >
> > Darin Bawden
> > dbawden@teamdme.com
> >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba
Darin Bawden
TeamDME! Technical Support
(615) 333-1900 ext. 19
dbawden@teamdme.com