Martin Thomas
2002-Feb-03 22:18 UTC
[Samba] progress :) still having trouble with win98 seeing shares on samba
----- Original Message ----- From: "Fuzzy" <fuzzy@pooh.asarian.org> To: "Samba mailing list" <samba@lists.samba.org> Sent: Monday, February 04, 2002 6:19 AM Subject: [Samba] progress :) still having trouble with win98 seeing shares on samba : : : we did manage an initial transfer with smbclient reading and writing : to win98 and we did get part of a file printed with: : : smb \> open x : smb \> print x : : it printed a few lines, but was stair-stepped. a couple of : questions... is there a way to get smbclient to queue to : the win98 printer queue without having to do it interactively? Yes, have a look into the file "smbprint" that comes with the samba souce. (.../examples/printing/) There is a good description how to configure what you want in this file. The file itself is a filter that can be used within a unix print spooler. : is there an easy way to deal with the stair-step problem? You have to do a cr/lf translation of you print unix text files to the print it correct. This can be done with the "smbprint" which acts as a filter and can do this for you. So - should be "easy" - ? : : ideally I'd like to be able to pipe a file into a script : or program to have it print the content of stdin, via : smbclient to win98 //eeyore/apollo (the printer's : "share" name). its an apollo p2200 (HP "brain"). If you have installed our printing system with the smbprint filter you just do a lpr and the printer daemon will pass the file to the filter smbprint which will start smbclient with the right parameters. : : I'm wondering if there is a way to create a printcap : defining the printer to provide for the <lf> to <cr,nl> : text conversion. CR/LF translation is build in in the smbprint filter. : : the win98 client cannot see the samba shares (2 fat32 : disks and some directories on the unix system). I know : there is a route to eeyore (win98) from pooh (freebsd 4.4 : with samba 2.2.2) because I was able to print to eeyore's : local printer (//eeyore/apollo) and to manipulate files : on its shares (c: //eeyore/c and d: //eeyore/d). hmm, server and client seem to be in different subnets, did you set the wins server in the Win9X box using the IP-Adress of the Samba server? - Just a thought. : : output of smbclient connecting to eeyore (win98se) and : pooh (freebsd 4.4 with samba 2.2.2), followed by /etc/smb.conf. : : a confuzzled, : Fuzzy : : /usr/bin/smbclient -W ASARIAN -n POOH -N -I 66.57.14.168 -L eeyore : added interface ip=66.57.250.124 bcast=66.57.251.255 nmask=255.255.252.0 : added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 : : Sharename Type Comment : --------- ---- ------- : PRINTER$ Disk : APOLLO Printer : D Disk : C Disk : IPC$ IPC Remote Inter Process Communication : : Server Comment : --------- ------- : EEYORE : : Workgroup Master : --------- ------- : ASARIAN EEYORE : : <-> : : /usr/bin/smbclient -W ASARIAN -n POOH -N -L pooh : added interface ip=66.57.250.124 bcast=66.57.251.255 nmask=255.255.252.0 : added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 : Domain=[ASARIAN] OS=[Unix] Server=[Samba 2.2.2] : : Sharename Type Comment : --------- ---- ------- : homes Disk Home Directories : tmp Disk Temporary file space : c Disk Pooh's C: drive : d Disk Pooh's D: drive : pighome Disk home directories on piglet : IPC$ IPC IPC Service (Samba Server) : ADMIN$ Disk IPC Service (Samba Server) : fuzzy Disk Home Directories : : Server Comment : --------- ------- : POOH Samba Server : : Workgroup Master : --------- ------- : ASARIAN : : : <-> : : file: /etc/smb.conf : : # Samba config file created using SWAT : # from localhost (127.0.0.1) : # Date: 2002/02/04 00:13:22 : : # Global parameters : [global] : workgroup = ASARIAN : netbios name = POOH : server string = Samba Server : interfaces = rl0 lo0 : bind interfaces only = Yes : security = SHARE : encrypt passwords = Yes : password level = 2 : username level = 1 : log file = /var/log/log.%m : max log size = 50 : name resolve order = lmhosts host wins : time server = Yes : domain admin group = fuzzy root : os level = 65 : preferred master = True : domain master = True : dns proxy = No : wins support = Yes : utmp = Yes : message command = csh -c : valid users = qwillpen fuzzy child sarahemm : admin users = fuzzy : printer admin = fuzzy : hosts allow = eeyore.asarian.org pooh.asarian.org 127.0.0.1 : mangle case = Yes : : [homes] : comment = Home Directories : read only = No : dont descend = /proc, /dev : : [tmp] : comment = Temporary file space : path = /tmp : read only = No : dont descend = /proc, /dev : : [c] : comment = Pooh's C: drive : path = /win_c : read only = No : : [d] : comment = Pooh's D: drive : path = /win_d : read only = No : : [pighome] : comment = home directories on piglet : path = /pig-home : read only = No : : <-> : : Good luck, Martin
Joel Hammer
2002-Feb-03 22:23 UTC
[Samba] progress :) still having trouble with win98 seeing shares on samba
Is the printer a postscript printer? If so, an easy approach is: cat file | enscript -Z -p - | smbclient //server/printershare -N -c "print -" Or, if text files are printing ok except for the staircase, this might work: cat file | sed "s/.*/&\r/" | smbclient //server/printershare -N -c "print -" You can also put this command into a print filter, without the cat file | part, and get the same result. You will have to supply the complete path name of the smbclient program, however. This has been discussed recently on this list. Check the archives, starting at samba.org. If you need more help about print filters, try the LPRng documentation or read the filter primer I wrote at the linux stepbystep site (search there for "hammer filter"). linux.nf/stepbystep.html Joel On Mon, Feb 04, 2002 at 12:19:22AM -0500, Fuzzy wrote:> > > we did manage an initial transfer with smbclient reading and writing > to win98 and we did get part of a file printed with: > > smb \> open x > smb \> print x > > it printed a few lines, but was stair-stepped. a couple of > questions... is there a way to get smbclient to queue to > the win98 printer queue without having to do it interactively? > is there an easy way to deal with the stair-step problem? > > ideally I'd like to be able to pipe a file into a script > or program to have it print the content of stdin, via > smbclient to win98 //eeyore/apollo (the printer's > "share" name). its an apollo p2200 (HP "brain"). > > I'm wondering if there is a way to create a printcap > defining the printer to provide for the <lf> to <cr,nl> > text conversion. > > the win98 client cannot see the samba shares (2 fat32 > disks and some directories on the unix system). I know > there is a route to eeyore (win98) from pooh (freebsd 4.4 > with samba 2.2.2) because I was able to print to eeyore's > local printer (//eeyore/apollo) and to manipulate files > on its shares (c: //eeyore/c and d: //eeyore/d). > > output of smbclient connecting to eeyore (win98se) and > pooh (freebsd 4.4 with samba 2.2.2), followed by /etc/smb.conf. > > a confuzzled, > Fuzzy > > /usr/bin/smbclient -W ASARIAN -n POOH -N -I 66.57.14.168 -L eeyore > added interface ip=66.57.250.124 bcast=66.57.251.255 nmask=255.255.252.0 > added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 > > Sharename Type Comment > --------- ---- ------- > PRINTER$ Disk > APOLLO Printer > D Disk > C Disk > IPC$ IPC Remote Inter Process Communication > > Server Comment > --------- ------- > EEYORE > > Workgroup Master > --------- ------- > ASARIAN EEYORE > > <-> > > /usr/bin/smbclient -W ASARIAN -n POOH -N -L pooh > added interface ip=66.57.250.124 bcast=66.57.251.255 nmask=255.255.252.0 > added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 > Domain=[ASARIAN] OS=[Unix] Server=[Samba 2.2.2] > > Sharename Type Comment > --------- ---- ------- > homes Disk Home Directories > tmp Disk Temporary file space > c Disk Pooh's C: drive > d Disk Pooh's D: drive > pighome Disk home directories on piglet > IPC$ IPC IPC Service (Samba Server) > ADMIN$ Disk IPC Service (Samba Server) > fuzzy Disk Home Directories > > Server Comment > --------- ------- > POOH Samba Server > > Workgroup Master > --------- ------- > ASARIAN > > > <-> > > file: /etc/smb.conf > > # Samba config file created using SWAT > # from localhost (127.0.0.1) > # Date: 2002/02/04 00:13:22 > > # Global parameters > [global] > workgroup = ASARIAN > netbios name = POOH > server string = Samba Server > interfaces = rl0 lo0 > bind interfaces only = Yes > security = SHARE > encrypt passwords = Yes > password level = 2 > username level = 1 > log file = /var/log/log.%m > max log size = 50 > name resolve order = lmhosts host wins > time server = Yes > domain admin group = fuzzy root > os level = 65 > preferred master = True > domain master = True > dns proxy = No > wins support = Yes > utmp = Yes > message command = csh -c > valid users = qwillpen fuzzy child sarahemm > admin users = fuzzy > printer admin = fuzzy > hosts allow = eeyore.asarian.org pooh.asarian.org 127.0.0.1 > mangle case = Yes > > [homes] > comment = Home Directories > read only = No > dont descend = /proc, /dev > > [tmp] > comment = Temporary file space > path = /tmp > read only = No > dont descend = /proc, /dev > > [c] > comment = Pooh's C: drive > path = /win_c > read only = No > > [d] > comment = Pooh's D: drive > path = /win_d > read only = No > > [pighome] > comment = home directories on piglet > path = /pig-home > read only = No > > <-> > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/listinfo/samba
Rashkae
2002-Feb-04 01:27 UTC
[Samba] progress :) still having trouble with win98 seeing shares on samba
For a print filter that will take care of the stair steping, try sed -e 's/$/'`echo -ne '\r'`'/g' ____________________________________________ Feb 4 4:18am _ ASCII ribbon campaign ( ) - against HTML email X & vcards / \ On Mon, 4 Feb 2002, Fuzzy wrote: we did manage an initial transfer with smbclient reading and writing to win98 and we did get part of a file printed with: smb \> open x smb \> print x it printed a few lines, but was stair-stepped. a couple of questions... is there a way to get smbclient to queue to the win98 printer queue without having to do it interactively? is there an easy way to deal with the stair-step problem? ideally I'd like to be able to pipe a file into a script or program to have it print the content of stdin, via smbclient to win98 //eeyore/apollo (the printer's "share" name). its an apollo p2200 (HP "brain"). I'm wondering if there is a way to create a printcap defining the printer to provide for the <lf> to <cr,nl> text conversion. the win98 client cannot see the samba shares (2 fat32 disks and some directories on the unix system). I know there is a route to eeyore (win98) from pooh (freebsd 4.4 with samba 2.2.2) because I was able to print to eeyore's local printer (//eeyore/apollo) and to manipulate files on its shares (c: //eeyore/c and d: //eeyore/d). output of smbclient connecting to eeyore (win98se) and pooh (freebsd 4.4 with samba 2.2.2), followed by /etc/smb.conf. a confuzzled, Fuzzy /usr/bin/smbclient -W ASARIAN -n POOH -N -I 66.57.14.168 -L eeyore added interface ip=66.57.250.124 bcast=66.57.251.255 nmask=255.255.252.0 added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 Sharename Type Comment --------- ---- ------- PRINTER$ Disk APOLLO Printer D Disk C Disk IPC$ IPC Remote Inter Process Communication Server Comment --------- ------- EEYORE Workgroup Master --------- ------- ASARIAN EEYORE <-> /usr/bin/smbclient -W ASARIAN -n POOH -N -L pooh added interface ip=66.57.250.124 bcast=66.57.251.255 nmask=255.255.252.0 added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 Domain=[ASARIAN] OS=[Unix] Server=[Samba 2.2.2] Sharename Type Comment --------- ---- ------- homes Disk Home Directories tmp Disk Temporary file space c Disk Pooh's C: drive d Disk Pooh's D: drive pighome Disk home directories on piglet IPC$ IPC IPC Service (Samba Server) ADMIN$ Disk IPC Service (Samba Server) fuzzy Disk Home Directories Server Comment --------- ------- POOH Samba Server Workgroup Master --------- ------- ASARIAN <-> file: /etc/smb.conf # Samba config file created using SWAT # from localhost (127.0.0.1) # Date: 2002/02/04 00:13:22 # Global parameters [global] workgroup = ASARIAN netbios name = POOH server string = Samba Server interfaces = rl0 lo0 bind interfaces only = Yes security = SHARE encrypt passwords = Yes password level = 2 username level = 1 log file = /var/log/log.%m max log size = 50 name resolve order = lmhosts host wins time server = Yes domain admin group = fuzzy root os level = 65 preferred master = True domain master = True dns proxy = No wins support = Yes utmp = Yes message command = csh -c valid users = qwillpen fuzzy child sarahemm admin users = fuzzy printer admin = fuzzy hosts allow = eeyore.asarian.org pooh.asarian.org 127.0.0.1 mangle case = Yes [homes] comment = Home Directories read only = No dont descend = /proc, /dev [tmp] comment = Temporary file space path = /tmp read only = No dont descend = /proc, /dev [c] comment = Pooh's C: drive path = /win_c read only = No [d] comment = Pooh's D: drive path = /win_d read only = No [pighome] comment = home directories on piglet path = /pig-home read only = No <-> -- To unsubscribe from this list go to the following URL and read the instructions: lists.samba.org/mailman/listinfo/samba