Page 1 of 1

How to set up a local network and share printer?

Posted: Fri 24 Nov 2006, 11:32
by AlexS
Hello,

I installed Puppy 2.12 on my old Pentium III 800 Mhz 126MB RAM, 60 GB HD.

I formatted the HD and have now 2 partitions, a 500 MB swap, and the rest is an ext3 partition, in which I installed PuppyLinux with the universal installer script.

I managed to get the printer to work.

Other than that, I have 2 additional laptops (running Mandrivas) with wireless connections.

I would like to be able to share the printer with the other computers. Can someone give me some indications on how to do this?

I would also like to be able access the puppy linux computer from the other computers (to store files, etc: 60 GB is a lot of space).

Finally, how to make sure that this is more or less secure (I set up the puppy firewall, is it enough?).

Of course, I don't expect detailed directions for everything, but some pointers to the relevant resources would be very helpful.

Cheers,
Alex

Posted: Fri 24 Nov 2006, 12:25
by sunburnt
To share the HD install the file: samba-3.0.21c.pup at MU's: http://dotpups.de/dotpups/Network/

It was made for Puppy1, but I just learned that it works fine in Puppy2.
You'll have to read about the Samba smb.conf file to setup the shares.
If you get stuck, post back here & we'll try to help.

Posted: Fri 24 Nov 2006, 13:44
by pg99
is the printer working through CUPS? if yes then you just need to add Browse Allow @LOCAL and Allow From @LOCAL to cupsd.conf and other PCs on the network which are also runing CUPS (which I guess Mandriva does, but I don't know for sure) should be able to see and use the puppy printer.

BrowseAllow @LOCAL
...
<Location>
...
Allow From @LOCAL
</Location>

A simple way to move files around without setting up shares is to use scp.

hth
Phil

Posted: Fri 24 Nov 2006, 15:02
by AlexS
Thanks for your tips!

So I downloaded and installed samba-3.0.21c.pup at MU's: http://dotpups.de/dotpups/Network/

I edited the /etc/samba.conf file, to specify the name of the network (that's basically all I changed, except declaring a share folder in the puppy computer).

I restarted the computer, but unfortunately I could not detect any samba network from my Mandriva laptop using smb4k

How do I check that samba is indeed running?

Also about the printer:

I installed the printer with the printer wizard, i.e. not with CUPS. The printer is currently accessible as lp0

Should I just install the cups-install-v0.2r1.pup file from http://dotpups.de/dotpups/Printing/ ?

Won't this mess up with the previous printer configuration with Xpdq?

Posted: Fri 24 Nov 2006, 15:13
by Artie
I have a machine running PCLinuxOS and another running Puppy 2.12 sharing a router. I could never get my Canon BJC-240 printer to work in the Printer Wizard in Puppy so I deleted it in Xpdq and installed Cups. When I opened the PCLinuxOS control center -> printers the Canon just showed up under configured on other machines.

Re: How to set up a local network and share printer?

Posted: Fri 24 Nov 2006, 16:30
by rarsa
AlexS wrote:I managed to get the printer to work.

Other than that, I have 2 additional laptops (running Mandrivas) with wireless connections.

I would like to be able to share the printer with the other computers. Can someone give me some indications on how to do this?

I would also like to be able access the puppy linux computer from the other computers
You can use puppy to share the printer but setting it up in mandriva may be a better option as it already has CUPS installed and configured.

To share the drive in Puppy, you already got the answer: Use Samba.

To have a local network where you want all the computers connecting to the internet you will need a router (either a hardware or software router) if you just want the computers to talk.

I'm thinking that the easiest way is to have a wireless router instead of having to deal with bridging and routing in Linux.

If you just want the computers to talk to each other, maybe a switch is enough as long that you configure a DHCP server or assign static addresses to the computers.

Posted: Fri 24 Nov 2006, 17:09
by AlexS
You can use puppy to share the printer but setting it up in mandriva may be a better option as it already has CUPS installed and configured.
Actually the computer with Mandriva is a laptop, which will not always be at home. The Puppy linux computer is the only "normal" PC, that's why I'm putting the printer on it.

I installed the printer with the CUPS putdot package, and it worked fine.
To share the drive in Puppy, you already got the answer: Use Samba.
I would like to, but Samba is not working for me, and since I have no experience with it, I don't know how to troubleshoot it. I installed the Samba DotPup, and tried to configure the samba.conf file, to no avail...
I'm thinking that the easiest way is to have a wireless router instead of having to deal with bridging and routing in Linux.
That's exactly my setup. I have a wireless router, connected via ethernet cable to the Puppy Linux tower PC. The laptops connect via wifi to the internet.

Actually it's ironic that I'm having an easier time to connect to the internet than with the other computers...

Posted: Fri 24 Nov 2006, 19:25
by MU
To connect to other computers, I followed this great HowTo:

http://www.murga-linux.com/puppy/viewtopic.php?t=2163

Based on that I try to write a automatic detection of Windows-shares, what seems to work already for simple purposes:
http://www.murga-linux.com/puppy/viewtopic.php?t=12945

Mark