How to set up a local network and share printer?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
AlexS
Posts: 47
Joined: Fri 24 Nov 2006, 10:22
Location: Munich

How to set up a local network and share printer?

#1 Post 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

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2 Post 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.

pg99
Posts: 64
Joined: Tue 13 Jun 2006, 13:24

#3 Post 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

User avatar
AlexS
Posts: 47
Joined: Fri 24 Nov 2006, 10:22
Location: Munich

#4 Post 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?

User avatar
Artie
Posts: 448
Joined: Tue 04 Oct 2005, 17:45
Location: Norway
Contact:

#5 Post 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.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

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

#6 Post 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.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
AlexS
Posts: 47
Joined: Fri 24 Nov 2006, 10:22
Location: Munich

#7 Post 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...

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post 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

Post Reply