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 18 Jul 2019, 14:02
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Creating a SAMBA share in BionicPup64 8.0
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
dawama

Joined: 09 Jun 2019
Posts: 7
Location: New Brunswick, Canada

PostPosted: Tue 11 Jun 2019, 15:04    Post subject:  Creating a SAMBA share in BionicPup64 8.0
Subject description: Unsuccessful attempts to create a shared folder
 

I have been trying to create a Samba share in BionicPup64 8.0 but so far have had no luck at all. Information on shared folders is mostly 7-10 years old. Among others, I tried following the guide by gcmartic on the Puppy Discussion Forum (Simply, Teaching Puppy to SAMBA) but got hung up on the "smbd restart" instruction which gives the error message "undefined symbol: FAMNoExists". A clearly-written 2015 guide by Naught McNoon (https://www.bleepingcomputer.com/forums/t/598615/a-simple-beginners-guide-to-setting-up-a-samba-share/) leads to the same problem.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5145
Location: King's Lynn, UK.

PostPosted: Tue 11 Jun 2019, 18:18    Post subject:  

Hallo, dawama.....and https://i.postimg.cc/N049cvKX/welcome.gif to the 'kennels'.

One question. Are you looking to share between Puppy and Windows, or Puppy and another Linux box? It could dictate what's most suitable, y'see.

For sharing in the traditional way, I wouldn't use 'full' SAMBA. That's a complete PITA to set-up and use correctly. The best 'version' of SAMBA you can use for Puppy, IMHO, is a lightweight fork of it, called Samba-TNG. See here for details:-

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

Everything you need to know is in that thread.

--------------------------------------

For just general file-sharing, you could do far worse than to take a look at Dukto, a cross-platform file-sharing app that uses the *nix ftp standard; File Transfer Protocol. Take a look at my thread on it, here:-

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

-------------------------------------

In all honesty, the best place to post about this will be on the Bionicpup64 thread.....which you can find here:-

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

Regular users & testers of this Puppy will be better placed to give you a more informed solution than I can; I was running it, but due to rationalisation, it was discarded in favour of Xenialpup64, which works perfectly for me the way I have it set up ATM.

Too many Pups, you see. Summat had to give, somewhere.....and not all of us always use the very newest versions of Pup, by a LONG chalk.....


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
dawama

Joined: 09 Jun 2019
Posts: 7
Location: New Brunswick, Canada

PostPosted: Tue 11 Jun 2019, 21:19    Post subject:  

Hi Mike..

Thanks for your very helpful reply. It is really appreciated.

I went to the Samba-TNG discussion you suggested and it is indeed informative. Unfortunately it was written in 2010 and leads me to another dead end. I installed the samba-tng-rcrsn-0.5-rc1.pet successfully but when I entered the samba-start command I got an error and the repeated message "/usr/local/samba/sbin/smbd: error while loading shared libraries: libcups.so.2: wrong ELF class: ELFCLASS64".

As you suggested, I should probably go to the Bionicpup64 thread to see if anyone has experience with this specific issue.

I have been a user of Linux Mint for a number of years and have only now gone over to Puppy. It runs wonderfully on my older computers and I am determined to stay with it. It would probably be easier to run from one end of my house to the other with a memory stick than do battle with samba, but it's the principle of the thing.
Dave
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 895

PostPosted: Tue 11 Jun 2019, 23:42    Post subject:  

Doesn't that version have YASS installed? That's kind of a standard on puppies.

All my puppies have a link in the home directory that you click to set up file sharing. This is in RAM mode, too, btw ..
Back to top
View user's profile Send private message 
Geek3579

Joined: 18 Aug 2017
Posts: 2

PostPosted: Wed 12 Jun 2019, 04:00    Post subject:  

Thanks jafadmin for that tip. I will try it on a fresh instance of puppy.

I had issues with samba, ssh and all sorts if connectivity projects until I edited the following two files in the. /etc. folder

hosts. deny. Remove all text
hosts.allow. Edit. To. ALL: LOCAL
SSH: ALL
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5145
Location: King's Lynn, UK.

PostPosted: Wed 12 Jun 2019, 06:28    Post subject:  

@ dawama:-

Dave:- That's quite simple to fix. It's because rcrsn51 only ever built the Samba-TNG packages for 32-bit architecture; 'Wrong ELF class' simply means the 'wrong' architecture.

I'm using that same set of packages (the Samba-TNG package, and the auto-start .pet) in Xenialpup64 7.5, and it works fine.

If you're coming from Mint, you're no doubt used to the 'multi-arch' stuff that the 'buntu-based distros employ. Pup's equivalent to this is to use a separate SFS package, called the '32-bit_compat_libs' package. This provides the necessary 32-bit compatibility libs'n'stuff, and the necessary framework to use them, for use in a 64-bit Puppy. There's an awful lot of very good Puppy packages that were only ever built for 32-bit hardware; 64-bit Puppies are still relatively new, having only been around for about 5 years or so.

So; 'workaround'. You'll need the '32-bit_compat_libs' SFS package. Get it from here:-

http://distro.ibiblio.org/puppylinux/pet_packages-bionic64/32bit_compatibilty_bionicpup64.sfs

That's a direct link to the Bionicpup64 repos.

When you've downloaded it, move it into /mnt/home, alongside all the other Puppy system files. Left-click to 'load' it; just follow the instructions. Now; this next bit is important. Once that's loaded, and before you do anything else, open a terminal, and enter

Code:
ldconfig


(That's a small 'L', BTW; not a '1'.) Wait for the prompt ('#') to return; this may take a few seconds, 'cos Pup is setting up all the necessary sym-links, etc., to make everything work correctly. Once the prompt returns, you can close the terminal.

At this stage, a re-boot wouldn't hurt, because this will write those changes into your save-file/folder, and make them permanent.

Once you've re-booted into Bionicpup, you can now install Samba-TNG, and proceed to set it up. Okay? Any problems, we're always here.

----------------------------------------

Actually, before you do any of the above, Bionicpup may already have this stuff installed; jafadmin is right.....look under Menu->Network. You should see a bunch of 'YASSM' stuff.....short for 'Yet Another Samba Share Mounter'.

However, the 32-bit compatibility SFS is always useful to have loaded; it's not hurting anything if it is.

See how you get on with it.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12325
Location: S.C. USA

PostPosted: Wed 12 Jun 2019, 09:52    Post subject:  

Loading sfs packages is a feature of a frugal install.
Do you have Bionicpup64 8.0 installed as a frugal install?

Bionicpup64 8.0 has the program Quickpet (icon on desktop to run it)
Quickpet>Useful has the 32bit compatibility sfs.
If you get it from Quickpet it will download, install, load, and do ldconfig automatically.

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
dawama

Joined: 09 Jun 2019
Posts: 7
Location: New Brunswick, Canada

PostPosted: Wed 12 Jun 2019, 20:19    Post subject:  

OK. After downloading and installing the 32bit compatability sfs from quickpet I was able to enter samba-start without errors.

According to the next step the server should be pupserver, and the share name pupshare. The share should be at /mnt/home. There was no directory at /mnt/home called pupshare, so I made one and put a text file into it.

I went to a client computer and ran YASSM share search and it found pupshare@PUPSERVER which showed a directory called pupshare@my_computer's_IP_address. That did not contain my text file.

Sorry to be so obtuse about this, but I seem to be on the cusp of the thing but not quite there. Should samba-tng have created a directory called pupshare? If so, where is it? YASSM on the client computer seems to have found something but it isn't the one I pasted a file to.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5145
Location: King's Lynn, UK.

PostPosted: Thu 13 Jun 2019, 06:00    Post subject:  

@ Dave:-

Nah, that's an easy enough mistake to make. Samba-TNG is very much more simplified than standard SAMBA.....

Slight misconception here, methinks. Where the config file tells you 'pupshare' is at /mnt/home, what that means is that the whole of /mnt/home IS the 'share'. With me?

You don't need a separate directory called 'pupshare'.

I generally set my 'share' to be at "/", because that way it gives me access to absolutely everything on the system.....even remote file-systems, and attached external storage devices.

Just put your text-file into /mnt/home (or wherever you decide to set the share's location), and you should find it. If you make any changes to the config file, don't forget that you need to re-start Samba-TNG.

Code:
samba-stop


....[Enter], followed by

Code:
samba-start


....and [Enter].

Let us know if that works for ya.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
dawama

Joined: 09 Jun 2019
Posts: 7
Location: New Brunswick, Canada

PostPosted: Thu 13 Jun 2019, 09:04    Post subject:  

Same issue. YASSM on the client computer finds pupshare@PUPSERVER and when selected gives the option to mount the share. When I mount that and click "show" it opens a directory ~/YASSM containing the directory pupshare@IPAddress. That directory is empty.

The IP address for the server is correct, so YASSM on the client does appear to have made a connection. But no directories or files are there.

Could there be a problem in /etc/samba/samba,conf? [pupshare] has the path = /mnt/home, which seems ok for now.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5145
Location: King's Lynn, UK.

PostPosted: Thu 13 Jun 2019, 11:15    Post subject:  

@ Dave:-

I'll let you take a butchers at my smb.conf. This is for Samba-TNG:-

Code:
[global]
dns proxy = no
max log size = 50
domain master = no
domain logons = no
workgroup = pupgroup
netbios name = PC-Server
server string = Puppy Samba-TNG Server
security = user
;map to guest = Bad Password
;printcap name = cups
load printers = yes

[pupshare]
path = /
guest ok = yes
writable = yes
force user = root

[printers]
path = /tmp
printable = yes
guest ok = yes


You may need the 'guest ok = yes' and 'force user = root' options to be added. 'Guest OK = yes', from what I recall, means a guest user doesn't need a password; 'force user = root', I believe, lets it work correctly with Pup's root-user model. As you know, most Linux distros don't like you doing that! Try it out, see what happens; if you still don't get any joy, we'll take it from there and do some brain-storming.....OK?

(Don't worry about the 'netbios name'; I've changed that to suit myself. 'pupserver' is fine for all practical purposes.)

----------------

Oh, one last thing; nearly forgot. Are you using YASSM to connect with? In YASSM, after you've selected the share you want to use, you need to add

Code:
sec=ntlm


.....to the options box, followed by ticking the 'Set' checkbox. Like this:-





Don't ask me what that actually means; it's something to do with a special set of options known only to Samba-TNG. All I know is that without that magic formula entered in the options box, your share will not connect at all.

(Password is the default Puppy password, which is 'woofwoof'.)


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
dawama

Joined: 09 Jun 2019
Posts: 7
Location: New Brunswick, Canada

PostPosted: Thu 13 Jun 2019, 11:59    Post subject:  

Mike..

This frustrating! YASSM on my laptop just returns an empty directory. With the path in the config file set to / as you have it, what should I expect to see, a list of directories and files?

I added that obscure little code in the options box in the YASSM form, but still no luck.

Dave
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5145
Location: King's Lynn, UK.

PostPosted: Thu 13 Jun 2019, 21:07    Post subject:  

@ Dave:-

Hmm-m. Curiouser & curiouser. That shouldn't be happening.....unless....

Let's have a gander at your smb.conf file, please. I want to have a look, see what it looks like at the moment (if I may)....

-----------------------

Just had a thought. May be something, may be nothing... What version of PeasyPort does Bionicpup64 use? (Samba-TNG employs this to check for open ports, make sure it can get through before attempting to connect.)

Go into Menu->Network, click on 'Peasyport LAN scanner', and let me know what version, please. As long as it's v2.1 (or higher), you're OK.

The other, most obvious thing that springs to mind (and I should've thought of this one to start with Embarassed ) is the firewall. If you're running with the default firewall set-up, it will, of course, be blocking the necessary ports..... (d'oh!!!)

Locate the little green shield in the notification area, right-hand side of the tray (think Windows sys-tray, if you like). Right-clk->Firewall Setup.

This'll open up the Firewall set-up window. Set things as in the image below:-


[Click to enlarge]




Make sure to 'Apply', then 'Cancel'. Try things again. If that doesn't do the trick, we'll have to apply 'em manually.

Let us know what happens, please.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
dawama

Joined: 09 Jun 2019
Posts: 7
Location: New Brunswick, Canada

PostPosted: Fri 14 Jun 2019, 09:47    Post subject:  

Mike..

Still nothing.

Peasyport LAN Scanner is v2.3. OK I guess.

I have been doing all this with the firewall turned off. As you suggested, I turned it on and enabled samba.

My samba config file was changed to conform with the one you sent.

[global]
dns proxy = no
max log size = 50
domain master = no
domain logons = no
workgroup = pupgroup
netbios name = PC-Server
server string = Puppy Samba-TNG Server
security = user
;map to guest = Bad Password
;printcap name = cups
load printers = yes

[pupshare]
path = /
guest ok = yes
writable = yes
force user = root

[printers]
path = /tmp
printable = yes
guest ok = yes

Dave
Back to top
View user's profile Send private message 
dawama

Joined: 09 Jun 2019
Posts: 7
Location: New Brunswick, Canada

PostPosted: Fri 14 Jun 2019, 13:28    Post subject:  

Mike..

Some success!

I tried mounting the share on another computer with wired connection to our network. It worked.

Then I went back to my wireless laptop and got the message "Could NOT mount pupshare on 192.168.1.130! Does the share exist? Does it need authentication?"

Back to the wired computer; it didn't work. Then on another try it did. Wireless still doesn't work.

This looks like a problem with our network, not with samba who seems to be doing her best. Is authentication an issue here?

Dave
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0725s ][ Queries: 12 (0.0162s) ][ GZIP on ]