Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 16:58
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Should we fork Samba?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Author Message
Moose On The Loose


Joined: 24 Feb 2011
Posts: 489

PostPosted: Mon 28 Oct 2013, 10:54    Post subject:  Should we fork Samba?
Subject description: The latest Samba is huge
 

I downloaded the source for Samba hoping to compile it. As is often the case, the ./configure was not happy until I installed a bunch of other stuff and then even getting past the ./configure, it would not compile. This set me looking at what is all in there. It could do all we need on puppy, I think, if the following was done:

1) All of the security and user name and password stuff could be handled by an external script (bash or sh). For the common home user, the script can be one that just ignores its arguments and says "yes that is fine". More advanced ones can check the user name and password with a method of choice. This could include calling another optional program.

1A) The "security = " line in smb.conf can select the script

1B) The script could also deal with mounting a share if required

2) All explicit or implicit demands for Python can be taken out of the build process by just having those functions done by execing the right external interpreter for the script files supplied. This way, the "devel headers" for python would not be needed even if the user wanted to do scripts in python.

3) I think some libraries can be combined. It looks like there are way more than is likely needed.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Sun 10 Nov 2013, 18:26    Post subject: SAMBA 4+ for PUPs  

I am no expert of compilation or packaging. But, I think 01Micko has solved this...at least in Slacko. No forking needed. And, it's fully functional.

In fact, his latest test for SAMBA 4.1 PET for Slacko yields a 15MB which is certainly well within the means of most of today's internet downloads while providing several orders of magnitude in SMB/CIFS functionality.

Might be worth a look for PUPPY distro developers. Puppy/Linux users do not have to be a lower order citizen on the ability to access/share on the LAN anymore.

Hope this helps

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Mon 11 Nov 2013, 17:40    Post subject:  

gcmartin - 15MB still seems like a monstrosity to me. Is that using all the sorts of tricks that the guys used with earlier versions?
http://bkhome.org/blog/?viewDetailed=01705
http://bkhome.org/blog/?viewDetailed=01700

MOTL - if you aren't already aware of it, you should check out samba-tng - e.g. see that second link and http://bkhome.org/blog/?viewDetailed=01724.
And when you just need a samba client I think there are other options, like tinysmb.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Mon 11 Nov 2013, 18:14    Post subject:  

disciple wrote:
gcmartin - 15MB still seems like a monstrosity to me. I....
TNG is a good packaging. TNG was started when the author was upset that he couldn't get old SAMBA to change to his modular model.

New SAMBA, version 4, now about year old, has been rewritten by the world's contributors from the ground-up. It is modular and it brings ALL SMB protocols to the table as well. The world spent 6 years from its architecture to its delivery addressing all of the issues of a modern Linux subsystem taking advantage of the many new Linux features as well as other LAN needs that was/is missing in old SAMBA and TNG. The most important things is what was done for security and stability.

New devices which use these protocols with Microsoft and MACs also, now, participate not knowing its SAMBA. And, there are many other things which can make SAMBA useful.

BTW, since when did 15MB become a monstrosity. I have never heard such.

Its stable, its worldwide with knowledgeable people to help, it is fast, its ... well, you get the picture.

There is nothing wrong with SAMBA, as the original Australian author, Andrew Tridgell, worked in concert with Linus Tovalds in its outset and stays in concert with Linux development, today. As far as I know, that exchange continues.

Bashing one product in favor or another may not be what this thread started as. (notice that I have not done so). So drawing attention to the old SAMBA doesn't match what I shared earlier about the new, now current, SAMBA. There are articles both in and out of this forum on SAMBA use. And, it is included OOTB by 3 Puppy distro owners with no one reported issues of stability or security thus far.

I think, though, the OP of this thread may have been looking at the version 3 "SAMBA" product when considering a fork. With Version 4, that may not be necessary.

Peace be with you.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Mon 11 Nov 2013, 20:10    Post subject:  

Thanks for another lecture/rant Rolling Eyes
Quote:
I think, though, the OP of this thread may have been looking at the version 3 "SAMBA" product when considering a fork.

Probably.
Quote:
With Version 4, that may not be necessary.

??
But they're talking about a fork to avoid (or shrink) Version 4...
Moose On The Loose wrote:
Should we fork Samba

I forgot that I meant to say: what exactly are you envisioning? I very much doubt you have the resources or the desire to maintain a proper fork (I guess this is something gcmartin and I would actually agree on Smile ).

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 489

PostPosted: Mon 11 Nov 2013, 21:51    Post subject:  

gcmartin wrote:
disciple wrote:
gcmartin - 15MB still seems like a monstrosity to me. I....
TNG is a good packaging. TNG was started when the author was upset that he couldn't get old SAMBA to change to his modular model.


I have version 528.
I went to the PPM and tried both of the 3.X versions there and neither would work. In both cases, an XP machine could not see the shared files on the Puppy.

Quote:

New SAMBA, version 4, now about year old, has been rewritten by the world's contributors from the ground-up. It is modular and it brings ALL SMB protocols to the table as well.


I down loaded and tried a pet file that I believe was the samba-4 TNG version. It also did not work but did not work in a different manner than the version 3.X that I had tried.

Unfortunately the exact errors have now run off the log files.

I remembered that I had a different samba-3.X that I had made some years back and tried it and it worked fine.

I went so far as to download the source for samba-4 to see if I could find a configure option that would get me past the issue. When I tried to get that to compile, I had no luck at all. Even after trying to make it happy for several days, I had no luck so I just abandoned the effort and went back to the old 3.X version.

If someone has a samba-4 pet that works on puppy-528, please post a path to it and I'll give it a go.

Quote:

The world spent 6 years from its architecture to its delivery addressing all of the issues of a modern Linux subsystem taking advantage of the many new Linux features as well as other LAN needs that was/is missing in old SAMBA and TNG. The most important things is what was done for security and stability.


If the wife can't get at my files, it sure is secure but passing memory sticks back and forth gets a little tiresome.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Mon 11 Nov 2013, 22:16    Post subject:  

Quote:
the samba-4 TNG version

AFAIK this doesn't make sense. Samba-tng forked from Samba in 1999 or 2000, and there is no correlation between the version numbers, and samba-tng has been pretty dead for a while anyway.

Quote:
an XP machine could not see the shared files on the Puppy

Well, that's very unlikely to be an inherent problem with the software... if you have them configured right, XP has been able to connect to Samba ever since XP was released.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Tue 12 Nov 2013, 02:43    Post subject:  

If it will help, I "think" I may have a SAMBA 3.55 or 3.56 that was built for your PUP few years ago. If its what you want, let me know, and I'll try to locate it. The one I have was designed by @Mobeus and there's a description and write-up somewhere in the forum.

@Shinobar also did a similar version as well but, my success was with @Mobeus's back then.

Here to help

BTW, I dont have any 5.28s CD around anymore, BUT, what exactly is the message you're getting. One idea that was a tell-tale sign of confusion in the past is when you run "testparm" from a terminal. Run that and let us know. It may be something simple in path-ing. The problem in the past was when different members built it, they do NOT use any consistent filesystem stores and this has been a source of confusion since the beginning. Over the last couple of years, it appears that both 01Micko and TaZoC (and Pemasu) has used consistent filesystem approaches and paths, while some others have not.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 489

PostPosted: Tue 12 Nov 2013, 03:20    Post subject:  

disciple wrote:
Quote:
the samba-4 TNG version

AFAIK this doesn't make sense. Samba-tng forked from Samba in 1999 or 2000, and there is no correlation between the version numbers, and samba-tng has been pretty dead for a while anyway.

Quote:
an XP machine could not see the shared files on the Puppy

Well, that's very unlikely to be an inherent problem with the software... if you have them configured right, XP has been able to connect to Samba ever since XP was released.


I am not saying that XP can't connect to samba. I am saying that the copy of samba I have that is a variation of samba.3.0.26 works just fine. I install it and the XP machine sees it just fine. Neither of the copies of samba in the PPM worked. The one I down loaded the source for was samba-4.1.0 which would not compile and the one I found as a pet package with the "tng" in the name did not work when installed.

My test for working is to do a clean boot of the Live-CD and then install the software onto the un-modified system and do a reboot. If a program does not work at that point, I look for instructions to make it work. If I find any instructions, I follow them carefully.
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 489

PostPosted: Tue 12 Nov 2013, 03:30    Post subject:  

[quote="gcmartin"]If it will help, I "think" I may have a SAMBA 3.55 or 3.56 that was built for your PUP few years ago. If its what you want, let me know, and I'll try to locate it. The one I have was designed by @Mobeus and there's a description and write-up somewhere in the forum.

@Shinobar also did a similar version as well but, my success was with @Mobeus's back then.

I have a solution that works on my machine. My request for a link was a request for a link to the version mentioned in the earlier comment that was the newly created and modular version.

I've tried the samba-full-3.6.1 from the PPM and samba-3.5.6-lucid also from the PPM. Neither of these worked with the XP machine. It seems that neither of these have some "msg" file that I assume is used to give useful error messages and complained that that file was missing and then reported an error message that seemed to have no meaning other than "its broken".
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Tue 12 Nov 2013, 13:52    Post subject: Setup and testing SAMBA on your 528 distro  

OK, I think we "may" be able to help identify the problem. Iff I understand correctly "you have a PUP528 with a version 3 SAMBA installed from its PPM without error messages".

Assuming that is the case, please open a terminal. I am curious to see what message you get from this command in the terminal:
Code:
# testparm
Please post the output.
It will start to shed some light on whether SAMBA, its tools, and the smb.conf syntax is OK.

Assuming you dont get any "alarming" errors after you post back here, then do the following steps
  1. Exit X to the console
  2. type "passwd" and set the root password (remember what you set)
  3. next type "smbpasswd" -a and set the SAME password AGAIN!
  4. type "logout" to restart X Puppy desktop
Now, you can test that your PC will allow use of your SAMBA resources. This is done in a terminal by:
Code:
# smbclient -L localhost
Assuming this works and you do NOT have your firewall turned ON!!!, you can go to any LAN machine and access this PC with a level of comfort that it will work..OOTB.

At a Windows PC
you "may" have to enter your PUP's IP address and you also will need to use root as the username.

ONCE all of your testing is complete, you can then, at Puppy, address any firewall issues should you re-activate.

Does this help? Please post back and let us in the forum know.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 489

PostPosted: Wed 13 Nov 2013, 12:29    Post subject: Re: Setup and testing SAMBA on your 528 distro  

gcmartin wrote:
OK, I think we "may" be able to help identify the problem. Iff I understand correctly "you have a PUP528 with a version 3 SAMBA installed from its PPM without error messages".

Assuming that is the case, please open a terminal. I am curious to see what message you get from this command in the terminal:
Code:
# testparm
Please post the output.
It will start to shed some light on whether SAMBA, its tools, and the smb.conf syntax is OK.



I am running on the working version of samba right now.
On this first test I get:

Code:

sh-4.1# testparm
Load smb config files from /etc/opt/samba/smb.conf
Processing section "[video]"
Processing section "[sounds]"
Processing section "[printers]"
map_file: Failed to load /opt/samba/lib/valid.dat - No such file or directory
creating default valid table
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions


after enter:
Code:

[global]
   workgroup = RANKEN
   server string = Samba Server
   map to guest = Bad User
   log file = /var/log.%m
   max log size = 50
   preferred master = Yes
   domain master = Yes
   dns proxy = No
   message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
   guest ok = Yes

[video]
   comment = video when mounted
   path = /mnt/sdc1
   read only = No
   inherit acls = Yes

[sounds]
   comment = sounds when mounted
   path = /mnt/sda3/sounds
   inherit acls = Yes

[printers]
   comment = All Printers
   path = /usr/spool/samba
   guest ok = No
   printable = Yes
   browseable = No




Quote:


Assuming you dont get any "alarming" errors after you post back here, then do the following steps
  1. Exit X to the console
  2. type "passwd" and set the root password (remember what you set)
  3. next type "smbpasswd" -a and set the SAME password AGAIN!
  4. type "logout" to restart X Puppy desktop
Now, you can test that your PC will allow use of your SAMBA resources. This is done in a terminal by:
Code:
# smbclient -L localhost
Assuming this works and you do NOT have your firewall turned ON!!!, you can go to any LAN machine and access this PC with a level of comfort that it will work..OOTB.

At a Windows PC
you "may" have to enter your PUP's IP address and you also will need to use root as the username.

ONCE all of your testing is complete, you can then, at Puppy, address any firewall issues should you re-activate.

Does this help? Please post back and let us in the forum know.


I have to get to work now. I'll do the reboot on LiveCD later to try the copies on PPM with these tonight.

BTW: The version I am running needed no additional steps to make it work. I just installed it and it went.
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 489

PostPosted: Thu 14 Nov 2013, 02:22    Post subject: Re: Setup and testing SAMBA on your 528 distro  

gcmartin wrote:
OK, I think we "may" be able to help identify the problem. Iff I understand correctly "you have a PUP528 with a version 3 SAMBA installed from its PPM without error messages".


Further results:

Step 0:
Boot live CD
Installing samba_full-3.6.1-s

Step 1:
--- testparm

h-4.1# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[puppyserver]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = Puppy Samba Server
map to guest = Bad Password
printcap name = cups
idmap config * : backend = tdb

[puppyserver]
path = /mnt/home
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No
sh-4.1#

Step 2:
--- Exit X to the console
At console

Step 3:
--- type "passwd" and set the root password (remember what you set)
made password bogus

Step 4:
--- next type "smbpasswd" -a and set the SAME password AGAIN!
*** I assume that should be "smbpasswd -a"
smbpassword bogus

Step 5:
--- type "logout" to restart X Puppy desktop
logout has no effect. I get the "#" prompt again.
I did "xwin" and it worked


Step 6:
--- smbclient -L localhost
Enter root's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.1]

Sharename Type Comment
--------- ---- -------
puppyserver Disk
IPC$ IPC IPC Service (Puppy Samba Server)
CUPS-PDF Printer CUPS-PDF
pdf_writer Printer PDF
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.1]

Server Comment
--------- -------
PUPPYPC Puppy Samba Server

Workgroup Master
--------- -------
RANKEN RANDYNEW
WORKGROUP PUPPYPC
sh-4.1#


Step 7:
Look at XP machine
Look in folder for the puppy in the "My network places"
***********************************************************************
\\PUPPYPC\puppyserver is not accessable. You might not have permission to
use this network resource. Contact the system adminastrator of this server
to find out if you have access permissions.

The network name cannot be found
*********************************************************************

Just to check that all is well otherwise
Step 8:
Reboot from LiveCD
install may pet for samba

Step 9:sh-4.1# smbclient -L localhost
Password:
Domain=[PUPPYPC] OS=[Unix] Server=[Samba 3.0.26]

Sharename Type Comment
--------- ---- -------
kendocs Disk kendocs
video Disk video when mounted
sounds Disk sounds when mounted
IPC$ IPC IPC Service (Samba Server)
Domain=[PUPPYPC] OS=[Unix] Server=[Samba 3.0.26]

Server Comment
--------- -------

Workgroup Master
--------- -------
RANKEN

Step 10:
Go to XP machine

Troll around on my machine without any problem
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3645
Location: Earth

PostPosted: Thu 14 Nov 2013, 13:10    Post subject:  

hI @Moose On The Loose

The following work is to be done on the PUP528 with your SAMBA 3.61 installed.
I'm going to assume you have a folder that is /mnt/home. Right? if so,
open a terminal and
  1. type
    Code:
    # ls /mnt/home
    to insure you have some files present.
  2. next type
    Code:
    # smbclient \\\\localhost\\puppyserver
    enter your bogas password. Assuming your password is correct, you will land at a "SMB>" prompt. Type
    Code:
    ls
    at the prompt to insure you see the same files you saw in step 1, above.
  3. At the SMB prompt, type
    Code:
    exit
    to quit.
This insures that your server is working properly and "serving" your folder as you expect.

Your PUP528 is ready for any action your LAN PCs can throw at it. It is functioning and active.

Find out your IP address
Code:
# ip address
and use it from Windows instead of the PUP528's hostname.

Let us know.

[/code]

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8565
Location: Stratford, Ontario

PostPosted: Thu 14 Nov 2013, 14:03    Post subject: Re: Setup and testing SAMBA on your 528 distro  

Moose: The smb.conf for your working setup has this:
Code:
preferred master = Yes
domain master = Yes

Many Puppy Samba packages have these set to No and there have been other reports of it not working that way.

So that would be the first change I would try with the non-working Sambas.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1089s ][ Queries: 11 (0.0038s) ][ GZIP on ]