Simply, Teaching Puppy to SAMBA (share folders to LAN users)

Configuration wizards, scanners, remote desktop, etc.
Message
Author
alaindu22
Posts: 177
Joined: Wed 29 Jul 2009, 16:49

#41 Post by alaindu22 »

Hello

Thanks rcrsn51 for your interest.
You have done a good resume

From XP, you CAN send a large file to pupshare? YES
From another Puppy machine, you CAN send a large file to pupshare? YES
From Vista or Win7, you CANNOT send a large file to pupshare? YES it is impossible
Can you DOWNLOAD large files from the Samba server to a Vista client? YES and I can open them on the samba server and save them on the samba server if they stay on the samba server during the job.

Have you tried one of the full Samba packages instead of Samba-TNG?
No so I 'll test it next week .

My tests are executed from xp pro (no domain) vista home and seven familial

Alain

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#42 Post by jrb »

alaindu22 wrote:From Vista or Win7, you CANNOT send a large file to pupshare? YES it is impossible
Hi Alain,
rcrsn51 PM'd me to ask if my setup would transfer large files. Here's what I told him:
Just used windows explorer (computer?) on my wife's win7 machine to copy and paste a 1Gb file onto my slacko53 with Samba-TNG. Took about 90 seconds, no problem.

I've got Samba-TNG embedded in an SFS that loads at bootup, I don't remember what version it is and I vaguely remember modding smb.conf and setting up autostart but otherwise standard.
I thought I'd include my /usr/local/samba/etc/smb.conf here. Notice that I changed the workgroup name from "pupgroup" to "Workgroup". I seem to remember that was important. Perhaps the source of your troubles? (Make sure that "Workgroup" is the proper name for your Win7 install however)

Code: Select all

[global]
dns proxy = no
max log size = 50
security = user
workgroup = Workgroup
server string = Puppy Samba-TNG Server
domain master = no
domain logons = no
netbios name = puppyserver
printcap name = cups
load printers = yes

[usr=root_passwd=woofwoof]
path = /
writable = yes

[printers]
path = /tmp
printable = yes
guest ok = yes
Good Luck, J

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#43 Post by rmcellig »

What am I doing wrong? I am using Puppy 528 in a Full install

sh-4.1# mkdir /srv/Downloads
mkdir: cannot create directory `/srv/Downloads': No such file or directory

stu90

#44 Post by stu90 »

rmcellig wrote:What am I doing wrong? I am using Puppy 528 in a Full install

sh-4.1# mkdir /srv/Downloads
mkdir: cannot create directory `/srv/Downloads': No such file or directory

if there is no /srv/ directory you need to use -p to make parent directories as needed.

try:
mkdir -p /srv/Downloads

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#45 Post by 8-bit »

I have had this happen also when trying to make a nested directory.
My solution was to first make the top level one first.
So if I want to make /downloads/music, I first create a directory called /downloads with "mkdir /downloads".
Then I type "mkdir/downloads/music".
That works for me.

gcmartin

#46 Post by gcmartin »

rmcellig wrote:What am I doing wrong? I am using Puppy 528 in a Full install

sh-4.1# mkdir /srv/Downloads
mkdir: cannot create directory `/srv/Downloads': No such file or directory
This works in all Linux'es.

Code: Select all

mkdir -p /srv/Downloads
it was mentioned in an earlier post.

Linux mkdir requires use of -p parm to create multi-level directories from current location.

Hope this helps

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#47 Post by 01micko »

Since I have had cause to be working alot with Samba lately one thing was annoying me. No simple solution to map a network drive from a pup client.

This little script does just that and plonks an icon on the desktop, unmountable too. (only if you use rox as a desktop). It also puts a link in $HOME, in case you don't use rox desktop.

I made it mainly for myself but why not share?

You can run the script from wherever you want, also has a Startup item which has a 2 minute timeout. It only supports one share, use Pnethood if you want to mount more shares.

It has a very simple setup gui. Everything you need should be in recent Pups, (mount.cifs, nmblookup). No need for samba to use this from a client only machine. It automatically overlays all your current icon themes with the SMB logo and makes a new icon called drivesmb48.png. Try switching icon themes 8) .

Have fun!

EDIT: almost forgot, the smb logo! You must place it in /usr/share/icons or the script will die.
Attachments
smb_overlay.png
put this in /usr/share/icons
(1.16 KiB) Downloaded 2057 times
map_drive.tar.gz
(1.55 KiB) Downloaded 1203 times
netdrive.png
(25.81 KiB) Downloaded 1984 times
Puppy Linux Blog - contact me for access

gcmartin

#48 Post by gcmartin »

01micko wrote:Since I have had cause to be working alot with Samba lately one thing was annoying me. No simple solution to map a network drive from a pup client.

This little script does just that and plonks an icon on the desktop, unmountable too. (only if you use rox as a desktop). It also puts a link in $HOME, in case you don't use rox desktop.

I made it mainly for myself but why not share?

You can run the script from wherever you want, also has a Startup item which has a 2 minute timeout. It only supports one share, use Pnethood if you want to mount more shares.

It has a very simple setup gui. Everything you need should be in recent Pups, (mount.cifs, nmblookup). No need for samba to use this from a client only machine. It automatically overlays all your current icon themes with the SMB logo and makes a new icon called drivesmb48.png. Try switching icon themes 8) .

Have fun!

EDIT: almost forgot, the smb logo! You must place it in /usr/share/icons or the script will die.
Great.

Another idea: TaZoC's LH64b4. If you're still has his running, look at his OOTB smb.conf. There is mention in the Global section for use of simlinks and allowing LAN use of these.

I also believe that I "may" have simlinked using your SLACKO-SAMBA as well, but, I'll have to check when I'm home again on that.

Mind you, this relates to, say, using the Public folder in my "SAMBA Simple Management" widget to "extend" what is shared via that "common" locaton.

Hope this is in the same forest as your post.
Attachments
SSM screen.png
SAMBA Simple Management Widget
(36.68 KiB) Downloaded 2030 times

evilbrent
Posts: 13
Joined: Thu 08 Nov 2012, 09:22

#49 Post by evilbrent »

Code: Select all

# smbd -restart 
# nmbd - restart
should be

Code: Select all

# smbd - restart 
# nmbd - restart
(space required before first "restart"??)

Thanks so much for this. Very easy to use. I was up and running almost straight away!

ahoppin
Posts: 172
Joined: Mon 16 May 2011, 04:13

#50 Post by ahoppin »

Thanks to the contributors here, I was able to implement Samba on Puppy with ease. In contrast to several years ago when I tried to get Samba working on a Red Hat box - and failed miserably - this time the practical examples got me up and running in a short evening. I was even able to add my Windows users so my few remaining Windows boxes (Win98 and Win2k, nothing later) can log in automagically.

Part of what makes Puppy a success is the teamwork and camaraderie of this forum. Thanks again.

The only further issue that I'd like to see discussed here would be security. My router blocks smb requests from the Internet, so when I had a lot of Windows boxes, I never worried much about my privacy. Is there anything I should be concerned about with Samba?

perky
Posts: 5
Joined: Thu 27 Dec 2012, 22:46

#51 Post by perky »

Opps, wrong thread. Sorry!

reycazador
Posts: 3
Joined: Sat 15 Mar 2014, 04:49

Re: Simply, Teaching Puppy to SAMBA (share folders to LAN users)

#52 Post by reycazador »

[quote="gcmartin"]Digressing for a moment to “level set

gcmartin

#53 Post by gcmartin »

You can add or change password(s) or any user you define. If you have never set up the user before, you would do an add.

Code: Select all

# smbpasswd -a firsttimeusername
If its an existing user that you had added before there is no need to add.

Code: Select all

# smbpasswd
If you have not already done so, one option for the very 1st time is to set your root system password to be your SAMBA root password. Assuming you are using a standard Puppy where you are the root user, I do this with ONLY this command (exactly as you see it):

Code: Select all

# smbpasswd -a
There is much information on the Internet as most everyone uses it in distro releases.

A Google such on any topic will also net you an abundance of useful ideas.

Here to help

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#54 Post by slavvo67 »

GCMartin:

This is a good post but before I try it...

Are those original presumptions still valid or can we be using a newer puppy and/or Samba? I see your original post is a bit dated, now.

Best,

Slavvo67

gcmartin

#55 Post by gcmartin »

Hello @Slavvo67

There is a newer thread. Which distro are you working?

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#56 Post by slavvo67 »

Fluxpup. In the words of OldYeller "FluxPup 1.5.1 is 185mb kernel is 3.2.48-nopae-i486-f2fs-aufs-smp-isa-precise. 1 correction, I also have the PAE on one machine.

I'm not sure if it has Samba installed, already. It should.

gcmartin

2014 Full-SAMBA and Instructions

#57 Post by gcmartin »

I don't believe so. And, SAMBA V4.x is the very latest as it includes newer LAN protocols than the older SAMBA's V3 found on the forum, in many PUP distros, do not include.There is no particular reason for this except merely oversight. 01Micko has made his SAMBA V4 PETs available to any developer upon request. His version have a builtin Menu utility to insure easy simple SAMBA use (and understanding) when installed on any PUP.

These new protocols have been built into newer manufactured devices and have been built-into MACs and Windows for sharing for years before SAMBA V4.

The other thread is here. See this thread for some more accurate information of SAMBA distros use in Puppyland.

I have been given a 2014 Full-SAMBA PET here for 32bit Slacko users

User avatar
sketchman
Posts: 294
Joined: Thu 01 Jun 2006, 17:20
Location: West Virginia, USA

#58 Post by sketchman »

Followed this guide (in principle) many times to setup SAMBA. Finally built a dedicated NAS, and I went through it again.

Thanks for this. I do this stuff just enough to never remember how to do it when I need to.

One thing though. At least in Tahrpup if you install via the package manager, the smb.conf file is in /etc/samba not /etc/opt/samba. That should save some irritation.

Also in Tahrpup auto-install for SAMBA doesn't work for me. Have to use the old style GUI to get it to actually install. Otherwise it looks as if everything is fine, but none of the commands work, because the actual SAMBA package doesn't get installed. No idea why.

Thanks again for this. Saved my butt more than once.
"In a world that exists without walls and fences, who needs Windows and Gates?"

gcmartin

#59 Post by gcmartin »

Thanks @Sketchman.

You brought to my attention a problem with that thread's opening post. That post was done in the days of SAMBA V3. And, the post does NOT make it apparent that there is a newer thread which addresses SAMBA VERSION 4 and all the up to date, redesigned system changes and security updates that are a part of SAMBA V4 (SAMBA4).

I will update that opening post. In the meantime, here's the link to the newer PUP thread. ===> look at this thread The newer thread will soon be updated with guides for later PUPs that have come out over the last 2 quarters.

I encourage anyone installing SAMBA in any of today's PUPs to install SAMBA4. It is 3X smaller and its execution is streamlined with better security. BTW, SAMBA3 is no longer going to be supported by world's community SAMBA developers (a testament to how good SAMBA4 has become), AFAIK.

Of course, SAMBA development is open and can be found at SAMBA.org.

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#60 Post by johnywhy »

hi

my wine says:

Code: Select all

err:module:load_builtin_dll failed to load .so lib for builtin L"winemp3.acm": libmpg123.so.0: cannot open shared object file: No such file or directory
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
isn't that a samba thing? ppm says samba client is already installed.

note, this was not doing anything related to shares or samba, that i know of. Just trying to run basic wine stuff.

do i also need winbind and/or libpam-winbind from ppm?

on LxPupPrecise-14.02-pae-sp1: Linux puppypc4369 3.9.11 #1 SMP Sat Jul 27 19:40:54 GMT-8 2013 i686 i686 i386 GNU/Linux

thx!
(also asked elsewhere on this forum, no solution yet)
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

Post Reply