PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Samba Umlaute und Drucken bei Linux



tycoony256
13.07.03, 23:50
Hi Linuxer,

erstes Posting und deswegen schreib ich vielleicht mehr als sein müsste...

/me = linuxn00b
deswegen ich hier und dumme Fragen stellen müssen


Ich hab im moment nen fli4l als Router (P90 ... passiv Kühlung..) und möchte das gerne durch ein besseres System ersetzen.


Dafür hab ich folgende Hardware:
P200mmx, 64 MB Ram, HDD1 SCSI 3.2 GB, HDD2 IDE 40 GB, Modem Creatix 28.8...

ich möchte folgendes nutzen: Suse 8.2 (weil etwas einfacher mit Yast.. manchmal) hab noch ein Debian hier, aber das wollte nicht so funzen mit der Grafikkarte....

Router
File und Druckserver (Samba)
ftp und http
hylafax (Modem, später ISDN)


nun zu meinem Problem1:

ich habe meine HDD2 (fat32) eingebunden (fstab). Unter Linux kein Problem, aber nur in Samba hab ich Probleme mit Umlatuen.

[downloads]
path = /media/downloads
read only = No
create mask = 0770
security mask = 0770
directory mask = 0770
directory security mask = 0770

was muss ich ändern, damit ich Umlaute nutzen kann ?? Ich kanns auch mit SWAT einrichten weil einfacher... aber mit vi kann ichs auch. Ich hab schon hier im Forum gesucht, aber da haben die nur Probleme mit mouten gehabt...das funzt aber bei mir.

Problem2:
Drucken unter Linux und mit Samba

Hardware:
lp0 vom MBoard: irq7 io 378
lp1 von ISA Karte: irq5 io 278

Drucker 1 (lp0) HP5p
Drucker 2 (lp1) HP720c

HP5p auf lp0 lief sofort !!!! Druckt alles unter Linux und Samba !!! Super toll !

Am Anfang bekam ich die ISA Karte nicht zum laufen... jetzt gehts aber. Dann hab ich im Yast2 den HP720 getestet und der druckt auch die Testseiten (Graphic und txt)

Dann wollte ich mal folgendes versucht: echo -en "Hallo\f" >/dev/lp1
weil auch unter Samba nix drucken wollte
echo -en "Hallo\f" >/dev/lp0 (der HP5p geht !)

Also hab ich mal verucht zu googeln und auch bei Suse was rauszufinden.

ich verstehe die Abläufe nicht ganz... wenn mir einer da helfen könnte. Auch welche files ich vielleich abarbeiten muss...

[WinPC, Druckt]-->[Samba]-->[cups?]--->[lp1] ?????

server:/etc/cups # vi printers.conf
# Printer configuration file for CUPS v1.1.18
# Written by cupsd on Die 08 Jul 2003 22:28:43 GMT
<DefaultPrinter lp>
Info lp
Location Unbekannter Drucker
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer lp1>
Info lp1
Location Unbekannter Drucker
DeviceURI parallel:/dev/lp1
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer printer1>
Info HEWLETT-PACKARD DESKJET 720C
Location Paralleler Drucker auf /dev/lp1
DeviceURI parallel:/dev/lp1
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

Die Config iss etwas komisch, aber ka ?!?!? der HP5p taucht nicht auf (geht aber), dafür mein HP720c (geht nicht !)

Oder druckt Samba nicht auf cups ? In SWAT ist der Drucker auf bsd gestellt wenn ich auf Advanced schalte. Ich habe gesehen, dass man cups auch über http configurieren kann. Kann man dann auch auf diesem Port drucken oder ist das nur für die Config ?

wie schon gesagt... ich bin echt ein LinuxN00b; aller Anfang iss nunmal schwer, aber ich will auf Linux umsteigen... von MS hab ich so langsam genug

Danke schonmal für all die Infos von Euch

tycoony256
14.07.03, 14:50
Problem 1 hat siche erledigt, selber rausgefunden:

smb.conf
character set = ISO8859-1

tycoony256
15.07.03, 00:50
Problem 2:

Cups läuft jetzt mal. Kann per http zugreifen und auch Testseiten auf beiden Druckern rauslassen.

was jetzt immernoch nicht geht:

[Samba] -> [cups]

ich denke ich blick das mit der smb.conf nicht. Da hat sich eineiges verspuhlt, ich hab teilweise doppelte [global] Einträge. Ich hab hier im Forum gesucht und keine richtige smb.conf für cups gefunden. Vor allem interessieren mich die path = Einträge wo Samba die Files hinschicken soll

/var/spool/samba gibts bei mir nicht, muss ich das erstellen und liest das dann cups ein ?

/var/spool/cups gibt es, habe aber wo gelesen, dass man da nicht reindrucken soll.

hat jemand ne Beispiel_conf für mich mit cups bitte ?

:confused:

Thomas Mitzkat
15.07.03, 07:57
wenn der drucker unter linux lokal druckt, ist schon viel gewonnen :)

andere sollen das aber auch dürfen:

/etc/cups/cupsd.conf


<Location />
Order Deny,Allow
Deny From All
Allow From 192.168.0.*
</Location>

ist nicht ganz so restriktiv. ;)

das nächste problem ist, dass das drucken von windows mit treiber auf linux mit treiber nicht funktionieren kann. also muss einmal der treiber ausgelassen werden:

/etc/samba/smb.conf


[global]
character set = ISO8859-15

# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# (as cups is now used in linux-mandrake 7.2 by default)
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = cups
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

# Samba 2.2 supports the Windows NT-style point-and-print feature. To
# use this, you need to be able to upload print drivers to the samba
# server. The printer admins (or root) may install drivers onto samba.
# Note that this feature uses the print$ share, so you will need to
# enable it below.
# This parameter works like domain admin group:
# printer admin = @<group> <user>
printer admin = @users

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
guest ok = yes
browseable = No
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
; print command = lpr-cups -P %p %s -r # using cups own drivers (use generic PostScript on clients).
# The following two commands are the samba defaults for printing=cups
# change them only if you need different options:
; lpq command = lpq -P %p
; lprm command = cancel %p-%j

ob der hp720 problemlos druckt, kann ich so nicht sagen, weil das ein sogenannter gdi-drucker ist, der nur mit speziellen befehlen gesteuert werden kann, die hp nicht offengelegt hat.

tycoony256
15.07.03, 11:19
Danke für deinen Reply :)

die cupsd.conf hatte ich schon angepasst. Ist glaube ich nur für das http Interface.


Ich hab mit [printers] so meine Probleme. Ich habe 2 Drucker aber nur einen [printer] in der smb.conf. Woher weiss dann cups welchen Drucker es ansteuern soll ? Und browseable = no ? dann sehe ich die Drucker nicht im Netz ?!?

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


Muss ich den HP720 auf raw umstellen im cups ? Und im Winclient dann auch ? (Ich tippe mal auf ja und versuchs einfach)

print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.


Wegen Treibern laden. Ich habe das in meiner smb.conf gefunden. /var/lib/samba/drivers sind Treiber abgelegt.

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

server:/var/lib/samba/drivers # dir
total 1
drwxrwxr-x 7 root ntadmin 168 May 19 05:52 .
drwxr-xr-x 6 root root 496 Jul 15 10:40 ..
drwxrwxr-x 2 root ntadmin 48 Mar 17 16:51 W32ALPHA
drwxrwxr-x 2 root ntadmin 48 Mar 17 16:51 W32MIPS
drwxrwxr-x 2 root ntadmin 48 Mar 17 16:51 W32PPC
drwxrwxr-x 2 root ntadmin 48 Mar 17 16:51 W32X86
drwxrwxr-x 2 root ntadmin 48 Mar 17 16:51 WIN40

Sind das Wintreiber für an cups angeschlossene Drucker ?

tycoony256
15.07.03, 12:16
HP720 will immer noch nicht drucken. der HP5p geht

smb.conf

[global]
workgroup = HOME
netbios name = SERVER
security = SHARE
encrypt passwords = Yes
printcap name = cups
character set = ISO8859-1
printer admin = @users
create mask = 0770
security mask = 0770
directory mask = 0770
directory security mask = 0770
printing = cups


[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r
browseable = No

ich habe es mit RAW versucht, bei Yast2 mit RAW installiert und dann auf dem Winclient mit raw... und auch Kombinationen. :confused:

ich hab was gefunden, nur werd ich nicht schlau draus... http://www.linux-community.de/Neues/story?storyid=4942

tycoony256
17.07.03, 20:10
Problem hat sich erledigt. Danke nochmals an alle die mir geholfen haben.

Dieser Link hat mir geholfen:

http://linuxwiki.de/CUPS?action=highlight&value=drucker

ich poste hier noch eben meine configs für den Fall, dass Leute das gleiche Prob haben:


# /etc/cups/mime.convs ganz unten:
# Raw filter...
#
# Uncomment the following filter and the application/octet-stream type
# in mime.types to allow printing of arbitrary files without the -oraw
# option.
#

application/octet-stream application/vnd.cups-raw 0 -

# /etc/cups/mime.types ganz unten:
# Raw print file support...
#
# Uncomment the following type and the application/octet-stream
# filter line in mime.convs to allow raw file printing without the
# -oraw option.
#

application/octet-stream

/etc/samba/smb.conf
# Global parameters
[global]
printcap name = cups
character set = ISO8859-1
printing = cups
load printers = yes
printer admin = @users

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
guest ok = Yes
printable = Yes
browseable = yes
print command = lpr-cups -P %p -o raw %s -r