Page 1 of 1

Share files (LAN) between two Puppy computers? [SOLVED]

Posted: Tue 28 May 2013, 16:42
by PaulR
Most of what I've read on the forum deals with Windows to Puppy or vice versa or seems out of date - how do I set up a shared directory on a Puppy PC and connect to it from another Puppy?

I've tried YASSM with username 'root' and password '' and the correct host name but how do I set a directory as 'shared' ?(maybe to do with permissions/groups??).

Or do I need to install something else? This is on Slacko 5.5 btw.

Cheers

Paul

Re: How to share files on a LAN between two Puppy computers

Posted: Tue 28 May 2013, 16:45
by rcrsn51
PaulR wrote:how do I set up a shared directory on a Puppy PC and connect to it from another Puppy?

I've tried YASSM with username 'root' and password '' and the correct host name but how do I set a directory as 'shared' ?(maybe to do with permissions/groups??)
YASSM is Samba client software - you need to set up a Samba server. Read here for a simple method.

Posted: Tue 28 May 2013, 17:04
by PaulR
Thanks, that was what I was expecting but I couldn't see any other way to share files except via FTP (but that's not very convenient).

I noticed samba 3.x and 4.0 in the repositories but didn't want to install anything unnecessarily.

I'll read up on that link.

Paul

Posted: Tue 28 May 2013, 17:13
by PaulR
That looks pretty straightforward.

Would it be possible to edit smb.conf such that an automatically mounted USB drive was shared? I'm trying to set up a single point to store all our home photos, videos, documents etc. and thought I could put them on a (large capacity) portable drive plugged into an old netbook PC and have that share the contents of the drive (a sort of DIY NAS!).

Performance isn't an issue as it would be for fairly infrequent access.

Paul

Posted: Tue 28 May 2013, 17:28
by rcrsn51
PaulR wrote:Would it be possible to edit smb.conf such that an automatically mounted USB drive was shared?
Just change "/mnt/home" to "/mnt/sdbx". You need to ensure that the drive is mounted before the server is started.

Posted: Tue 28 May 2013, 17:33
by PaulR
Excellent many thanks for the help. Again! :D

Paul

Posted: Tue 28 May 2013, 18:24
by PaulR
The instructions worked with one minor alteration:

On the client I'm using YASSM's Samba share select. The 'server' value in 'samba-select.dat' needed setting to the server's hostname rather than the netbios name (pupserver). So, my client entry looks like this:

Code: Select all

EeePC Share,root,woofwoof,pupshare,eeepc
Next up, auto-start the server and auto-mount the disk!

Paul

Posted: Tue 28 May 2013, 19:34
by PaulR
The auto-start script works fine but for some reason trying to mount a USB device within that script doesn't work.

After boot I can open a terminal and do 'mount /dev/sdb /mnt/sdb' and it mounts properly (and is accessible via YASSM!).

Any suggestions?

Paul

Posted: Tue 28 May 2013, 22:08
by rcrsn51
PaulR wrote:Any suggestions?
What is the line that you added to the auto-start script? Did you remove the # symbol?

Try putting a "sleep 5" command above the mount command.

Posted: Wed 29 May 2013, 11:17
by PaulR
Yes I uncommented the line :lol: , I'll try putting in the delay and see if that does it.

Paul

Posted: Wed 29 May 2013, 11:43
by rcrsn51
rcrsn51 wrote:What is the line that you added to the auto-start script?

Posted: Wed 29 May 2013, 16:19
by PaulR
Having just read up on the mount command, not fully understanding how Puppy's file system works and taking your hint I realise I'd made a mistake. I've corrected it and the device is now being mounted within the script.

Code: Select all

mount /dev/sdb /mnt
does the trick.

Thanks once again for YASSM and the hand-holding!

Paul

Posted: Wed 29 May 2013, 16:24
by rcrsn51
PaulR wrote:

Code: Select all

mount /dev/sdb /mnt
That doesn't make any sense. It should look like

Code: Select all

mount /dev/sdb1 /mnt/sdb1
If the mount point /mnt/sdb1 does not exist yet, you should use

Code: Select all

mkdir /mnt/sdb1
mount /dev/sdb1 /mnt/sdb1

Posted: Wed 29 May 2013, 17:09
by PaulR
Well, as per my earlier post, I was using mount /dev/sdb /mnt/sdb (which worked from a terminal but not in the start up script). After reading several pages I gathered that the mount point (directory) had to exist but wasn't sure if I could create it under /mnt or if so whether it would be persistent across boots.

In any event mount /dev/sdb /mnt does work even if it's not supposed to!

If I look in /mnt it contains just the directories on the USB device. If I then mount sda1 that appears in the correct place... /mnt/sda1

That said I'd rather do it the right way so I'll create the directory and mount it 'properly'.

Paul

Posted: Wed 29 May 2013, 17:16
by rcrsn51
Your screen capture shows "sdb" instead of "sdb1". Maybe the device was formatted in some kind of "super-floppy" mode that does not have a partition table.

In that case, /dev/sdb would be correct.

Posted: Wed 29 May 2013, 17:28
by PaulR
I don't think I've ever used that option when formatting; in fact the health warning within Puppy has always made me avoid it!

I've changed the relevant lines of the script to:

Code: Select all

mkdir /mnt/sdb
mount /dev/sdb /mnt/sdb
I've also removed the sleep command and the device is now being mounted properly without destroying/hiding all the other 'standard' mount points.

Thanks once more :D

Paul