PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : samba und lpr



YoZ
04.09.03, 03:21
hallo leute, ich versuche meinen drucker am server zum laufen zu bringen... local druckt er über lpd und es funktioniert wunderbar... nun wollte ich mit samba auch von den clients drucken aber das will nicht so wirklich funktionieren... nun hier meine einstellungen...
smb.conf sieht bezüglich printer so aus..

printing = LPRNG
printcap name = /etc/printcap
load printers = Yes

comment = Drucker
path = /var/spool/samba
read only = No
create mask = 0770
max print jobs = 2
printable = Yes
force user = yoz
guest ok = Yes

so sieht die datei hosts.lpd aus:
#
# hosts.lpd This file describes the names of the hosts which are
# to be considered "equivalent", i.e. which are to be
# trusted enough for allowing remote lpr(1) commands.
#
# hostname
192.168.0.2
laptop.ath.cx

192.168.0.3
workstation.ath.cx


Nun am client wird der drucker problemlos erkannt und gibt den printjob auch an den server weiter... wenn ich nun am server 'lpq' eingebe, bekomme ich folgende fehlermeldung:

matrix:/etc # lpq
Printer: canon@matrix - ERROR: spool queue for 'canon' does not exist on server matrix.ath.cx non-existent printer or you need to run 'checkpc -f'

was habe ich falsch gemacht bzw. was muss ich noch einstellen um das ganze zum laufen zu bringen?

Hier noch ein paar infos.
File-Server: SuSE 8.0 | lpd

clients: win xp

Bitte um unterstützung, yoz

Thomas Mitzkat
04.09.03, 08:38
bring mal deine komplette smb.conf hier rein, ich glaube, da stimmt was nicht.

YoZ
04.09.03, 14:07
#
# /etc/samba/smb.conf ist the main samba configuration file. Cf. the
# manual page of smb.conf and the included documantation in
# /usr/share/doc/packages/samba in order to understand the options
# listed here and many more features.
#
# Lines in this example which starts with ; and # are ignored comment
# ones. # indicates a comment and ; a deactivated example line.
#
# We suggest to use the command 'testparm' after any changes you made.
#
# Copyright (c) 1999 - 2001 SuSE GmbH Nuernberg, Germany.
#
# Please send bugfixes or comments to feedback@suse.de.
#
[global]
workgroup = Matrix
os level = 65

security = user
encrypt passwords = Yes
guest account = Nobody
map to guest = Bad User
# This tells samba to use the file smbusers for user mapping.
; username map = /etc/samba/smbusers

# This tells samba to write log files per machine.
; log file = /var/log/samba/%m
# This sets an alternate log level. Default is 2.
; log level = 3

# Uncomment the following, if you want to use an existing NT-Server to
# authenticate users, but don't forget that you also have to create them
# locally!
; security = server
; password server = 192.168.1.10

printing = LPRNG
printcap name = /etc/printcap
load printers = Yes

# These settings are a suggestion for a local network. Cf. section
# 'socket options' in the man page of smb.conf and socket(7).
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY

# Uncomment this, if you want to integrate your server
# into an existing net e.g. with NT-WS to prevent nettraffic
; local master = No

# Please uncomment the following entry and replace the ip number and
# netmask with the values of your network interface configuration.
interfaces = 192.168.0.1/255.255.255.0

# If you want Samba to act as a wins server, please set
# 'wins support' to yes.
wins support = No

# If you want Samba to use an existing wins server, please uncomment the
# following line and replace the dummy with the wins server's ip number.
# wins server = 192.168.0.2

# Set these two parameters to your DOS code page and appropriate UNIX
# character set. These values are for west European languages (Latin-9)
# UNIX character and MS-DOS Latin 1 code page.
character set = ISO8859-15
client code page = 850

# This is a simple measure against Nimba Worm. Cf. README.Win32-Viruses
veto files = /*.eml/*.nws/riched20.dll/*.{*}/

# Do you wan't samba to act as a logon-server for your windows 95/98
# clients, so uncomment the following:
; domain logons = Yes
; domain master = Yes
# For a specific logon script per user
; logon script = %U.bat
# For a specific logon script per machine
; logon script = %m.bat

# Where to store the logon scripts.
;[netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon

# Where profiles of Windows 9x systems are stored.
# First example for a centralized place.
; logon home = \\%L\profiles\%U
# Second example for a subdirectory of the users home.
; logon home = \\%L\%U\profile
# Where profiles of Windows NT systems are stored.
; logon path = \\%L\profiles\%U

# Extra share for profiles. Default is the home of the user.
;[profiles]
comment = Network Profiles Service
path = /var/lib/samba/profiles
browseable = No

[homes]
comment = Home Directories
read only = No
create mask = 0640
directory mask = 0750
browseable = No

# The following share gives all users access to the Server's CD drive,
# assuming it is mounted under /media/cdrom. To enable this share,
# please remove the semicolons before the lines
[cdrom]
comment = Linux CD-ROM
path = /media/cdrom
locking = No

[printers]
comment = Drucker
path = /var/spool/samba
read only = No
create mask = 0770
max print jobs = 2
printable = Yes
force user = yoz
guest ok = Yes

[share]
path = /mnt/share
read only = No
inherit permissions = Yes
force user = yoz
create mask = 0777
directory mask = 0777


gruß, yoz

Thomas Mitzkat
04.09.03, 23:53
wins support = yes
netbios name = rechnername

#[profiles]
# comment = Network Profiles Service
# path = /var/lib/samba/profiles
# browseable = No

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
guest ok = yes
browseable = No

mehr wäre erstmal zu viel. immer erst ausprobieren, dass es mit wenigen restriktionen funktioniert. funktioniert es erstmal grundsätzlich, kann man immer noch die daumenschrauben ansetzen ;) aber der fehler liegt nicht nur an den restriktionen, sondern auch an grundsätzlich falschen angaben. wo sind denn diese einstellungen her?

YoZ
05.09.03, 00:04
hi erstmal,

das ganze ist aus der suse smb.conf .. naja du meinst das was du gepostet hast in smb.conf eingeben, _NUR_ das? oder hinzufügen, denn nur damit funktionieren die shared-folders ja auch nicht mehr. Habe natürlich ein backup erstellt.

gruß, yoz

Thomas Mitzkat
06.09.03, 09:54
ich hatte mir das ergänzend/verändernd an den betreffenden stellen gedacht. aber hier mal die komplette conf:


[global]
workgroup = Matrix
os level = 65

# ??????????
netbios name = ?????
# ??????????

security = user
encrypt passwords = Yes
guest account = Nobody
map to guest = Bad User

printing = LPRNG
printcap name = /etc/printcap
load printers = Yes
printer admin = @users

socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY

# ??????????
interfaces = eth?
bind interfaces only = yes
# ??????????

character set = ISO8859-15

wins support = yes

[homes]
comment = Home Directories
read only = No
create mask = 0640
directory mask = 0750
browseable = No

[cdrom]
comment = Linux CD-ROM
path = /media/cdrom
locking = No

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
guest ok = yes
browseable = No

[share]
path = /mnt/share
read only = No
inherit permissions = Yes
force user = yoz
create mask = 0777
directory mask = 0777



es sind da noch 2 dinge zu ergänzen. 1. wie heisst der rechner und 2. auf welcher netzwerkkarte soll samba arbeiten. wenn das eingegeben ist, mit "testparm" überprüfen.

YoZ
06.09.03, 18:01
hallo Thomas, ich muss mich entschuldigen, aber ich habe das vorher nicht ganz verstanden deswegen meine blöde frage mit der smb.conf
Nun habe ich die datei so bearbeitet wie von dir angegeben... samba stellt die shared folders nun für die clients bereit alles funzt doch beim drucker hänge ich wieder... es ist so dass ich ja wenn ich einen neuen drucker am client installiere in meinem fall:\\192.168.0.1\printers , muss ich auch die treiber installieren die mir automatisch für den canon bjc-250 zu verfügung gestellt werden... danach habe ich im status der netzwerkdrucker bereit stehen... wenn ich nun vom client drucke...bekomme ich am client selbst, keine fehlermeldung und auch am fileserver kann ich in den logs nichts finden, doch erdruckt dennoch nicht. d.h. der drucker reagiert auf den client nicht und 'lpq' zeigt in der warteschlange am server auch keine printjobs an....
Ich bin ratlos.

gruß, yoz

YoZ
06.09.03, 18:13
was ist nun genau der netbios-name... denn da scheinen bei mir einige fehler aufgetretten zu sein...

Sep 6 19:09:03 matrix nmbd[3352]: [2003/09/06 19:09:03, 0] nmbd/nmbd_nameregister.c:register_name_response(109)
Sep 6 19:09:03 matrix nmbd[3352]: register_name_response: server at IP 192.168.0.1 rejected our name registration of MATRIX<00> with error code 5.
Sep 6 19:09:03 matrix nmbd[3352]: [2003/09/06 19:09:03, 0] nmbd/nmbd_workgroupdb.c:fail_register(220)
Sep 6 19:09:03 matrix nmbd[3352]: fail_register: Failed to register name MATRIX<00> on subnet UNICAST_SUBNET.
Sep 6 19:09:03 matrix nmbd[3352]: [2003/09/06 19:09:03, 0] nmbd/nmbd_namelistdb.c:standard_fail_register(290)
Sep 6 19:09:03 matrix nmbd[3352]: standard_fail_register: Failed to register/refresh name MATRIX<00> on subnet UNICAST_SUBNET

vielleicht sagt dir das was.... gruß, yoz

Thomas Mitzkat
06.09.03, 20:37
matrix ist die workgroup (gruppe), wie heisst der rechner (netbios name)?

bei lprng dürfte in der netzwerkumgebung lp lp-raw und lp-ascii auftauchen. am besten insatllierst du einen apple 600 postscriptdrucker auf dem windows-klient und nimmst lp. oder du installierst den druckertreiber auf dem klienten und nimmst lp-raw. 2x teiber geht nicht, weil der treiber von linux das nicht mehr kapiert, was da ankommt. naja, was heisst treiber, ghostscript verarbeitet das ankommende zuerst und dürfte bei dem was ein windowstreiber schon passend für den drucker ausgibt, abstürzen.

YoZ
06.09.03, 22:16
Thomas, ich bedanke mich für deine hilfe, denn das war der knackpunkt... ich hatte beide mit den canon-treibern am server und am client laufen... jetzt druckt er wunderbar....

nochmals, danke.

gruß aus .at, yoz