|-----Original Message----- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]] On Behalf Of Christian Dysthe |Sent: Friday, September 14, 2001 12:05 PM |To: 'Mandrake Expert' |Subject: Re: [expert] Samba, DHCP and CUPS | | |On Friday 14 September 2001 11:10, Jose M. Sanchez wrote: || DHCP is merely the mechanism for the computer you are on, to |obtain an || IP address. || || That address must be given to it by a controlling DHCP server || elsewhere on your network, which you did not talk about. | |A Linksys router assigns IP's to the machines on my local |network. This unit |is also the Internet gateway. This setup is similar in the |office and at |home. The only difference being that at home I am connecting |my laptop to a |Windows 2000 box, while I am connecting to a Mandrake 8.0 box at work. || Your biggest problem, although easily solvable, will be host name resolution as you probably don't have a local DNS in either case. At worst you could create/edit the /etc/hosts file in your Linux boxes, and C:\Win2000\HOSTS file on your winblows machine. || There is very little information present in your question, |if you are || seeking a "how do I" response... | |What I need is to be able to plug the network cable into the |laptop in the |morning and share files with Mandrake 8.0 box and print with a printer |connected to it. The same goes for the Windows 2000 box at |home. Right now |the files sharing works fines, but I am not able to figure out |how to set up |the printing. For Linux to Linux; - Set up your /etc/hosts file. Make sure that each machine can ping the other by NAME... I.E. "ping portable" "ping server" - Edit your /etc/hosts.allow and /etc/hosts.deny to make sure that each machine can take advantage of each other's services. - Install the CUPS RPM's on each machines. - Set up & Configure CUP on the machine that has the printer attached. Make sure that you can print to it. - In the CUPS configuration GUI's Cups server configuration, click on Browsing/Connection Add in the broadcast address for your network, e.g. 10.0.0.255 and the poll addresses for any static servers if available... I.E. 10.0.0.1 For both machines... - Go to Security and ADD security settings (it tends to walk you thru this...) On the "client" machine (without the printer). - Make sure that Network broadcast address, etc. is set up as above. - Check your security (did you also remember about the /etc/hosts & hosts.deny & allow files?) - In the CUPS configuration GUI you should see on the left hand box something like... CUPS on xxxx:631 |Classes |Printers Click on Printer/Add Printer-Class Click the Next button. On the next page select "Socket (AppSocket Network Printer) & click Next. In the next page click on the "SCAN" button. Click on the printer you want to print to (the boxes on the right will fill!) and click Next. You can take it from here! Restart the CUPS server from the pull down menu & print away. For Winblows to Linux. You'll need to configure CUPS and make sure your printer can print. Again set your local permissions, hosts, etc. Set up Samba and make sure that... [printers] comment = Samba Printers printcap name = lpstat load printers = yes printings = cups print command = lpr-cups -P %p -o raw $s browseable = yes guest ok = yes writeable = no printable = yes create mode = 700 lpq command = lpstat -o %p lprm command = cancel %p-%j Are all set. I'd advise you to edit the included sample configuration file so that you get things right. Make sure that LINUX/Samba is the browse master for your network so that the Winblows machines will display the shares in the Network Neighborhood. You'll need to configure this & probably set the OS level to a higher priority for Samba than Win2k. The default is NOT ok (I believe it's 33 or 32?). Restart Samba. Make sure your printers appear on your Samba Linux box... E.G. "smbclient -L server -U user" You should get asked for a password and you'll see the printers appear in the resulting dump. (btw: set up a username and password in SAMBA for the same login you use in Winblows, etc.) If you've gotten this far, boot your winblows box and browse the network. (did you add your Linux box to /etc/hosts?) Find the Samba machine and click on it to display it's shares. (if you get bounced, windows did not log in, but you have samba running ok... E.g. samba didn't like the username and password it got from winblows... See the smbclient command to check...). You should now see the printer queue from samba... Double clicking on it causes winblows to start up it's configuration wizard. It will complain that the remote printer is not set up actually it is, but it can't figure out what drivers to use... It's actually possible to set up samba to tell Winblows how to configure itself. Windows will then automatically set users up when they click on the printer all in one step... But that's beyond the scope of this LONG message... You can take it from here. --- As you can see lack of a DNS is problematic. If assignments change you have to go and re-edit files... Ugh. Fortunately in spite of the fact that your Linksys router is doling out IP's you probably don't have to worry too much about having to edit the /etc/hosts file more than once. Machines tend to keep their assigned IP's once given, as they renew the "lease" every few days... Extending the allocation. A DNS would resolve this for you, but you would have to remove the DHCPd function from the Linksys and setup your Linux box to handle all of this... -JMS
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
