How to Use Samba-TNG Server in Puppy

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

How to Use Samba-TNG Server in Puppy

#1 Post by rcrsn51 »

Discontinued. See the Samba4 Basic app in the Stretch Live Starter Kit project.
Last edited by rcrsn51 on Tue 28 Apr 2020, 11:12, edited 202 times in total.

User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

Re: How to Use Samba-TNG in Puppy

#2 Post by RetroTechGuy »

rcrsn51 wrote:I am not personally interested in Samba - there are simpler ways to have Puppy serve up some files.
OK, I'll bite! How would you serve up files? (I'm currently looking at FreeNAS, but haven't tried it yet).

I'd like to plug my (new, soon to be created) file server into my wireless DSL router, with the ability to deny outside users access to these files (I have not decided if I wish to allow non-local users access to any files on the machine -- that may depend on how hard it is to secure, etc.).

So I'm looking for good, secure method (either passworded, or simply denial of outside users).

What would you recommend?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#3 Post by rcrsn51 »

Samba4 Basic moved here.

-------------------------------------
Last edited by rcrsn51 on Mon 05 Oct 2015, 07:28, edited 43 times in total.

User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#4 Post by RetroTechGuy »

rcrsn51 wrote:A really simple method for setting up a Puppy fileserver is here.

If you are interested in FreeNAS, there are instructions here.
Thanks rcrsn51, I'll look into these further.

User avatar
gary101
Posts: 555
Joined: Sun 08 Oct 2006, 09:51
Location: Boston, Lincs. UK

#5 Post by gary101 »

Thanks rcrsn51

Great timing! I was just looking in to setting up a print and file server on an old laptop I was looking for a use for.

Using the posted pet and start up file I was up and running in less than 10 mins and everybody here is really pleased to have somewhere on the network to share and backup their files and printing is now so much simpler rather than transferring the files to the computer with the printer installed.

I have had this old lifebook 700mhz lappy for a couple of years and it cost me £10 on ebay, its not much use for anything else but is now doing a really useful job.

Thanks again :D

Gary
If it's not one thing it's your mother

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

printer

#6 Post by raffy »

gary101 wrote:..printing is now so much simpler rather than transferring the files to the computer with the printer installed.
Do you mean "Windows machines can now print to the server"? I thought that when configured, CUPS already enables Linux machines to print through the network.
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: printer

#7 Post by rcrsn51 »

raffy wrote: I thought that when configured, CUPS already enables Linux machines to print through the network.
In a Samba setup, the CUPS printers hosted by the server are advertised by their assigned names. This is a good thing, because a client does not need to reinstall its printer if the server's IP address changes.

However, I could not get this to work with Samba-TNG, so I removed all the printing components.

A client, either Linux or Windows, can still see the Puppy server's printers as described here.

Update The 2010-10-04 release of samba-tng-rcrsn now has full print sharing capability.
Last edited by rcrsn51 on Tue 05 Oct 2010, 02:48, edited 3 times in total.

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

#8 Post by sunburnt »

The Samba server was in the standard Puppy release many years ago.
I don`t know why it`s not included, it doesn`t take up much space really.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#9 Post by rcrsn51 »

sunburnt wrote:The Samba server was in the standard Puppy release many years ago.
I think that you are mis-remembering. Puppy has contained Samba CLIENT functionality for a long time.
I don`t know why it`s not included, it doesn`t take up much space really.
MU once hosted a Samba server PET that was 20MB. And the current Wary repo has the samba-3.4.2-w5.pet at 28MB.

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

#10 Post by sunburnt »

rcrsn51; No... In fact it was included in a release or two back in Puppy2xx.
The 2 library files "smbd" and "nmbd" which make the Samba server work,
are less than 2 mb. ( I think, it`s been awhile and they may be bigger now. )

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#11 Post by rcrsn51 »

[Update] The version of samba-tng-rcrsn dated 2010-10-04 can now handle network print sharing.

There are also instructions for setting up a headless, dedicated server.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#12 Post by rcrsn51 »

.
Last edited by rcrsn51 on Tue 28 Apr 2020, 11:13, edited 29 times in total.

User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#13 Post by RetroTechGuy »

rcrsn51 wrote:How to Use Samba-TNG in Puppy - Part B
Thanks for all the hard work, rcrsn51!...

I haven't gotten a chance to try it, but it looks like every day I dawdle, it improves! :D

I have an old "toaster" that I plan to turn into a fileserver, but based on what I'm seeing here, I think I'll also try to make it a print-server at the same time...
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#14 Post by rcrsn51 »

.
Last edited by rcrsn51 on Tue 28 Apr 2020, 11:14, edited 28 times in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#15 Post by rcrsn51 »

[Update] You can password protect your Samba printers by removing the "guest OK" entry. However, you will then need a different CUPS smb backend that allows authentication. Read here about smbw.
Last edited by rcrsn51 on Mon 28 Nov 2011, 15:12, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post by rcrsn51 »

[Update] There is a new Samba client package attached to Part A above that contains an updated samba-login tool. This version lets you more easily change the default login settings and keep them from one session to the next.

Note that the files are no longer in /root/my-applications/bin.

The samba-adduser script in samba-tng-rcrsn-admin-1.0 has moved to a new location.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#17 Post by rcrsn51 »

Here are snapshots of the two samba-tng-rcrsn client tools:

samba-login
Image

samba-shares
Image

moB
Posts: 116
Joined: Mon 19 Oct 2009, 11:25
Location: Coastal

Great job!

#18 Post by moB »

rcrsn51 wrote:Here are snapshots of the two samba-tng-rcrsn client tools:

samba-login
Image

samba-shares
Image
rcrsn51

can you advise on making Samba-TNG work for FatDog64?

I was looking at compiling the full version from source (samba-3.5.6), but the setup and config is daunting.

Looking at the posts here makes me think that this is just the ticket for home networks!

As you've done all this amazing work I'd love to use it.

moB

"Think not, is my eleventh commandment;
and sleep when you can, is my twelfth. "
{Stubb, to himself}
- Herman Melville, The Whale (Moby-Dick)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#19 Post by rcrsn51 »

I built it using the absolute defaults:

Code: Select all

./configure
make
new2dir make install
This puts everything into /usr/local/samba.

You could then take the samba-start and samba-stop scripts out of the 32 bit version and use them to run the server.

BTW, I downloaded fatdog and the devx file. But I couldn't get the devx to load at bootup. What am I missing?

moB
Posts: 116
Joined: Mon 19 Oct 2009, 11:25
Location: Coastal

devx for FD

#20 Post by moB »

rcrsn51 wrote: BTW, I downloaded fatdog and the devx file. But I couldn't get the devx to load at bootup. What am I missing?
I had a similar event. Perhaps you put the devx in the fd64 psubdir as we did here?

When a symlink to the file was placed on the root (ie "C") drive the bootmanager was able to load devx. (I like to keep the puppy stuff out of ms-Win's stuff in one easy to find place.)

Hope this helps.

Thanks for the tips on using your samba tools. I will look into it and try to get my tiny brain around it :lol:

moB

"Elves and Dragons!" I says to him.
"Cabbages and potatoes are better for
you and me."

-- J. R. R. Tolkien

Post Reply