I have a question about Samba. I have a LAN at home with two Win2ks and one linux connecting to internet through a route and Cable modem. Original I played with Redhat 7.1. The samba worked fine. I decided to give Suse a
Thanks for the reply. First, I made a mistake. My suse version is 7.2 pro. Not 7.1. My red hat is 7.1 My printer is HP LaserJet IIP, a very old printer. I think it was for Win 3.1. But I know that all windows OS have a driver with them. I don't have a separate driver with it for Win2k or NT. If I want to set it up on Windows, I only need to choose HP as manifature, IIP as model, then the windows will install the driver for me. When I tried to set it up on Samba on Red hat, I did the same thing, then the printer worked fine. But the problem on Suse 7.2 is that the windows didn't show up the menu of choosing manufature, instead, it pops up a menu of no suitable driver found and asks me to find the unknow INF file. I don't know which INF file on Windows CD is the right INF file of the driver. I don't understand why it works this way on Suse. But I did hear that the printer program of redhat is much better than Suse. Well, now it proves that. Anyway, I tried to make it work on Suse and I don't want to give up Suse only because of that. But I really want to share my printer on Suse like I did on Redhat. I downloaded the driver from Adobe, but it didn't work. I hope any one can give me more hints. I don't want to buy a new printer :-) Thanks -----Original Message----- From: Karol Pietrzak [mailto:noodlez84@earthlink.net] Sent: Thursday, September 20, 2001 7:46 PM To: java8964 Cc: suse-linux-e@suse.com Subject: Re: [SLE] Question about sharing my printer using Samba I have had similar problems doing this (using SuSE 7.2 though). The W2K machines reported that "no drivers was found". Although I don't remember the _exact_ way I did this, here's what I _do_ remember: 1. remove any printer drivers you may have 2. download Adobe's PostScript drive [ http://www.adobe.com/support/downloads/8a0e.htm ] and install it. During install, you are asked for the server name, at which point you can specify \\linux\lp or whatever. I have browseable = yes and public = yes and guest ok =yes. Try putting that in. Some links which might help: http://samba.cadcamlab.org/lists/samba- technical/Aug2000/00209.html http://www.rpi.edu/dept/acs/consult/setups/2000_PlainPassword.htm l#AddPrinter Post back if that doesn't work... I have something brewing in my mind at this moment... On 20 Sep 2001, java8964 wrote: try.
I purchased Suse 7.1 Pro a few days ago. The installation was straightforward. I set up my HP Laserjet IIp on the Suse. I can print the test page. Then I tried to configure the samba as I did on Redhat 7.1, below is the smb.conf file:
; ; /etc/smb.conf ; ; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. ; [global] workgroup = workgroup guest account = nobody keep alive = 30 os level = 2 kernel oplocks = false security = user
; 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
encrypt passwords = yes
printing = bsd printcap name = /etc/printcap load printers = yes print command = /usr/bin/lpr -r -P%p %s lpq command = /usr/bin/lpq -P%p lprm command = /usr/bin/lprm -P%p %j
socket options = TCP_NODELAY
map to guest = Bad User
; 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 correct numbers for ; your ethernet interface. ; interfaces = 192.168.1.1/255.255.255.0
; If you want Samba to act as a wins server, please set ; 'wins support = 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.1.1
; Do you wan't samba to act as a logon-server for ; your windows 95/98 clients, so uncomment the ; following: ; logon script =%U.bat ; domain logons = yes ; domain master = yes ; [netlogon] ; path = /netlogon
[homes] comment = home-directory browseable = yes read only = no create mode = 644 guest ok = no writable = yes
; The following share gives all users access to the Server's CD drive, ; assuming it is mounted under /cd. To enable this share, please remove ; the semicolons before the lines ; ; [cdrom] ; comment = Linux CD-ROM ; path = /cdrom ; read only = yes ; locking = no
[printers] comment = All Printers browseable = no printable = yes public = no read only = yes create mode = 0700 directory = /tmp writable = no path = /var/spool/lpd/samba
[download] comment = Back Up path = /home/download writable = yes guest ok = yes
The directory sharing works fine. In fact, I can view both directory and printers sharing on my win2k side. The difference with on Redhat is that I find three printer sharing info: hp2p, hp2p-ascii, hp2p-raw (hp2p is my printer's name). Then I tried to 'Add printer' on win2k. I tried to map //linux/hp2p-raw. then the window told me something like 'no suitable driver found' instead of asking to choose printer's brand name and model which happened in Redhat 7.1. Then the windows pops up a window and ask me to find out the *.INF file. I don't know what that means, then I put into my win2k CD and browser to /Printers/NT/I386/, I tried several files which I think they are maybe HP printer driver, but none of them works. I am confused now and don't know what I should do. I tried to map on hp2p and hp2p-ascii, but neither works. I thought I am kind of familiar with Samba, because it is so easy on Redhat. But on Suse, it looks like that it isn't.
Any hints? Your help will be great appreciated. -- noodlez: Karol Pietrzak PGP KeyID: 0x3A1446A0