Page 1 of 2

Network Samba

Posted: Tue 18 Jan 2011, 19:53
by autumnleaves
I'm probably doing something wrong. I installed the two pets as per the instructions. When I type samba-start in console, I get
"bash: samba-start: console not found"

When I run samba-login (after dragging to desktop) with default settings I get a dialogue box saying "no connection to pupshare"

On the plus side Pnethood now shows a tab for pupserver, but does not show a drive. It still sees the Windows machine and allows me to connect to the drive there.

Where to next?

Thanks.

Posted: Tue 18 Jan 2011, 19:58
by rcrsn51
Where did you type "samba-start"? You have an icon on your desktop that opens a window for typing commands. You can check that Samba is running with the "ps" command.

Also, does your Puppy setup have a /mnt/home folder? You can tell with the command "ls /mnt/home".

Network Samba

Posted: Tue 18 Jan 2011, 20:11
by autumnleaves
Thanks again.

I used the console on the Puppy 5.2 desktop.
samba-start now does nothing.
is /mnt/home gives me "bash: is: command not found"

Network Samba

Posted: Tue 18 Jan 2011, 20:12
by autumnleaves
but I checked and there is a /mnt/home folder.

Network Samba

Posted: Tue 18 Jan 2011, 20:16
by autumnleaves
ps command shows several services in usr/local/samba/sbin loaded.

Posted: Tue 18 Jan 2011, 20:23
by rcrsn51
The "ls" command is typed with an "ell".

When you type the "ps" command, you should see ten processes running, starting with nmbd and ending with smbd.

It sounds like the server is running. Go to a client machine and see if you can connect to it.

Samba network on Puppy

Posted: Tue 18 Jan 2011, 20:46
by autumnleaves
Sorry, I used "is". Ls does show the content of the folder. The 10 programs are running on Puppy.

From the XP machine, Network Places does see the Puppy but there are no shared drives, so cannot log onto them.

check your system for smb or smbd

Posted: Tue 18 Jan 2011, 20:58
by gcmartin
Couple of question where we might be better able to zero-in on your problem.
  • Which SAMBA did you install? (How did you get SAMBA on your system)
  • Which Puppy are you using? (Several recent Puppies changed fs structure and rules and it looks like you are using Puppy 5.2)
Should be snap to help you after this.

Network Samba

Posted: Tue 18 Jan 2011, 21:14
by autumnleaves
You are very kind.

I think Samba came with the the distro though I don't know what version. The Puppy is 5.2. How can I find the version of Samba?

Why isn't there a GUI for this?

Posted: Tue 18 Jan 2011, 21:16
by rcrsn51
Go back to the Samba-TNG tutorial and follow the instructions for making a desktop shortcut.

ie. Right click on the desktop - New - Shortcut - \\pupserver

Re: Network Samba

Posted: Tue 18 Jan 2011, 21:21
by rcrsn51
autumnleaves wrote:I think Samba came with the distro though I don't know what version.
I installed the two pets as per the instructions.
Now I'm confused as to what you are running.

More of Samba

Posted: Tue 18 Jan 2011, 22:22
by autumnleaves
When I create the windows shortcut I am told that the file \\pupserver cannot be found.

I installed the two samba-tng pets as per the tutorial. However I do not know what was installed with the distro. You think you're confused...?

Posted: Tue 18 Jan 2011, 22:25
by rcrsn51
Do you have firewalls running on either your Puppy or Windows machine that might be blocking access to the server?

Network Samba

Posted: Tue 18 Jan 2011, 22:39
by autumnleaves
Ahahh! After turning off firewalls I was able to connect to \\pupserver using root/woofwoof. Thank you.

Is it now possible to add other shared drives and remove the username/password requirement?

Re: Network Samba

Posted: Tue 18 Jan 2011, 22:45
by rcrsn51
autumnleaves wrote:Ahahh! After turning off firewalls I was able to connect to \\pupserver using root/woofwoof. Thank you.
Excellent!
Is it now possible to add other shared drives and remove the username/password requirement?
That's what the tutorial is for. :wink:

Network Samba

Posted: Tue 18 Jan 2011, 23:05
by autumnleaves
I can almost guarantee that it won't work for me.
E.g., I uncommented map to guest in the conf file, stopped and restarted samba, but a username/password are still required when connecting from the Windows machine.

Posted: Tue 18 Jan 2011, 23:13
by rcrsn51
That's because your current "pupshare" share does not have "guest" access. Add the following line to its smb.conf entry.

Code: Select all

[pupshare]
....
guest ok = yes

Network Samba

Posted: Tue 18 Jan 2011, 23:29
by autumnleaves
No luck. Now Samba-login does not work on the puppy machine, and from the Windows machine I am told that pupshare on pupserver (or pupserver on pupshare) is not accessible.

Last try

Posted: Tue 18 Jan 2011, 23:32
by autumnleaves
Here is the conf file:

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

[pupshare]
path = /mnt/home
writable = yes
guest ok = yes

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

Network Samba

Posted: Tue 18 Jan 2011, 23:38
by autumnleaves
Here is the rc.local file:
#version upgrade, any prior content of rc.local moved to /tmp/rc.local
pure-ftpd -zMbBADHk 90 -e -U 022:022

if [ -x /etc/rc.d/rc.firewall ]; then
/etc/rc.d/rc.firewall start
fi
sleep 20
samba-start