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 Fri 23 Jun 2017, 03:23
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Samba4 Basic for Tahrpup,Precise,Slacko,Lupu,variants (6 MB)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Author Message
fr33land

Joined: 25 Jun 2015
Posts: 52

PostPosted: Mon 29 Jun 2015, 10:59    Post subject:  Samba4 Basic for Tahrpup,Precise,Slacko,Lupu,variants (6 MB)  

Samba-TNG has proven to be a robust Samba server for Puppy. But it doesn't work with some modern devices like Android tablets or smartphones. As an alternative, I have packaged a basic version of Samba4 in a PET. It contains just the essential components needed by Puppy users. There is one drawback: Samba-TNG has a no-login mode that lets you quickly access shares without needing to authenticate. Samba4 usually requires authentication, but the package has a pre-configured "guest" user to make this easier.

The discussion about Samba4 Basic starts below. The package is only 6 MB and its documentation covers many of the Samba server configurations needed by Puppy users.

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

Samba4 Basic for Puppy

In order for a Puppy machine to share its files across a network, it must run some kind of server. This could be an FTP or HTTP server, but the most versatile choice is Samba. Samba can be used to make a simple NAS file sharing box or to build a full multi-user client-server system.

Install the samba4_basic_tahrpup-4.1.9.pet from here. Click the green DOWNLOAD box.

For Precise/Slacko/Lupu, see the additional patch packages below. Starting here, there are instructions for installing Samba4 Basic on a variety of other Puppies.

Open a terminal and run: samba-start. The related commands are samba-stop and samba-restart.

The server's name is pupserver and the share's name is pupshare. The default user is root with password woofwoof. The share is currently set to the server's /mnt/home folder and is writable by clients.

There is also a pre-defined user named guest with password guest. It will be handy for connecting from clients like tablets or smartphones.

Depending on your Puppy installation method, you may not have a /mnt/home folder. If so, edit the smb.conf file (see below) so that pupshare points to an existing folder. For test purposes, just use /root.

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

From a Puppy client, you can access the server with YASSM. Note: Running the Puppy firewall on either client or server machines may cause problems.

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

On a Windows client, create a shortcut on the desktop and make the location \\pupserver. Note that this name starts with two back-slashes.

The Puppy server's default workgroup name is WORKGROUP. Depending on the version of Windows, you may need to change the workgroup name in smb.conf (see below) to match that of your Windows clients. Another common name is MSHOME.

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

The server's configuration file is /etc/samba/smb.conf. You can edit it to change the share folder, add additional shares or change the server name. Update: There is also a GUI control panel applet attached below. It is discussed here.

After editing the smb.conf, restart the server with samba-restart.

Avoid making changes to the server while clients are connected. This can cause hangups that will require rebooting to clear. If Samba starts to behave strangely, shut down any client machines and restart the Samba server.

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

A Samba system has two sets of passwords - those belonging to the Linux users and those required by Samba. They can be different. (The Linux users don't even need passwords!) You probably want to change root's Samba password to prevent remote users from logging in as root. On the server machine, run the command: smbpasswd root.

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

In the above default configuration, all the shares you create are public. But you might want to give each user their own private folder on the server. The utility program samba-adduser creates additional Samba users. A new Samba user must already exist as a Puppy user on the server machine, so samba-adduser does both jobs.

1. Create a Puppy/Samba user named fred. Update: You can do this step with the Control Panel instead. Read here.
Code:
samba-adduser

2. To verify that you have made fred's account correctly, type:
Code:
ls -lH /mnt/home

There should be an entry for fred with fred:fred ownership. If you make a mistake, type deluser fred and try again.

3. Add a share entry to smb.conf:
Code:
[fred]
path =  /mnt/home/fred
writable = yes
valid users = fred

4. Restart the Samba server, go to a client machine and login as fred.

If you plan to have multiple users, replace Step 3 with the single entry:
Code:
[homes]
writable = yes
;browseable = no

You can hide the [homes] share by un-commenting the "browseable" line (delete the semicolon). Then use YASSM's yassm-login tool to connect. Leave the Share field blank.

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

You may want a setup with a read-only public folder.
Code:
[music]
path = /mnt/home/music
read only = yes
public = yes

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

You can also assign an external drive as a share. The drive must be mounted BEFORE starting the Samba server.
Code:
[USB-Drive]
path = /mnt/sdb1
writable = yes
# To make the share writable, NTFS and FAT drives need the next line
force user = root

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

To complete your Samba server, you may want a common upload area where users can share their files.

1. Create the shared folder and give it a full set of permissions.
Code:
mkdir /mnt/home/upload
chmod 1777 /mnt/home/upload

2. Add an smb.conf entry
Code:
[upload]
path = /mnt/home/upload
writable = yes
public = yes

All users have permission to write to the share. They can read each other's files but cannot delete them.

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

A Handy Trick: If you are constantly changing the content that you share, but don't want to bother updating the share definitions, try the following:

1. Edit your smb.conf and add these lines to the [global] section.
Code:
unix extensions = no
wide links = yes

2. Create the folder /root/Sharing and aim your pupshare definition at it.

3. Drag symlinks from the stuff you want to share into this folder.

4. Restart the server.

5. In the YASSM client, click the ROX Rescan button to update your view of the share.

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

To auto-start the Samba server at bootup, use the control panel. It has a script in /root/Startup that waits until your network is active, then runs samba-start. You can also use the script to mount any drives that you want to share.

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

A Samba server can share its attached printer(s) with clients on the network. And it does so by the printer's assigned name instead of by IP address. So if your server changes its IP address, the clients can still locate the printer.

Your first step is to install the printer in the server's CUPS as a local device. Keep the name short - less than 16 characters. Otherwise, the Windows clients may not be able to detect it.

You do NOT need to declare the printer as sharable. (You would only use that feature if CUPS was going to handle the network printing.)

Whenever you make changes to your printer setup, restart Samba to ensure that the printers will be visible on the network.

There is one small catch to this setup. A Windows client MUST login to the server in order to access the printer. However, a Puppy client can use the printer without logging in.

To set up a Linux Client:

Users who have set up Windows shared printers are familiar with the CUPS smbw backend. This type of backend is also needed to access a Samba printer. Use the URI:
Code:
smbw://pupserver/printer_name

When you select the make and model of your printer, use Raw and Raw-Queue. This declares that the print job will be sent directly to the Samba server, whose CUPS will then do the formatting. You don't need to install a printer driver package on the client machine. However, in certain Puppy client/server combinations, this may still be necessary.

Update: Some Puppy clients may need the full printer URI.
Code:
smbw://guest:guest@workgroup/pupserver/printer_name

To set up a Windows Client:

Start the Add Printer Wizard
Select: Local printer (even though it's not)
UNcheck the option to automatically detect a PnP printer
Select: Create new port
Select: Local port
Enter the port name as: \\servername\printername
Install the Windows printer driver as usual

Some Windows drivers may not work across a network because they need to have direct contact with the printer before they will start a print job. In that case, install the printer under Windows as an HP Color Laserjet PS. This will format the print job using the Postscript printer language, which the server's CUPS will happily process. You can use the same technique with Macs.

-------------------------------
samba4_control-2.0.pet
Description  Updated 2016-05-01
pet

 Download 
Filename  samba4_control-2.0.pet 
Filesize  15.02 KB 
Downloaded  169 Time(s) 
samba4_client-4.1.9.pet
Description  Only needed to fix problems with YASSM connecting to a Samba server
pet

 Download 
Filename  samba4_client-4.1.9.pet 
Filesize  103.05 KB 
Downloaded  228 Time(s) 
samba4_patch_lupu-5.2.8.pet
Description 
pet

 Download 
Filename  samba4_patch_lupu-5.2.8.pet 
Filesize  33.13 KB 
Downloaded  235 Time(s) 
samba4_patch_precise-5.7.1.pet
Description 
pet

 Download 
Filename  samba4_patch_precise-5.7.1.pet 
Filesize  380 Bytes 
Downloaded  266 Time(s) 
samba4_patch_slacko-5.7.0.pet
Description 
pet

 Download 
Filename  samba4_patch_slacko-5.7.0.pet 
Filesize  33.03 KB 
Downloaded  247 Time(s) 

Last edited by fr33land on Thu 01 Jun 2017, 09:21; edited 27 times in total
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Mon 29 Jun 2015, 11:25    Post subject:  

And Read Here
_________________
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 Engines or use DogPile
Back to top
View user's profile Send private message 
fr33land

Joined: 25 Jun 2015
Posts: 52

PostPosted: Fri 03 Jul 2015, 18:14    Post subject:  

Thanks for the above link. But I notice that several Puppies with built-in Samba were omitted. Was this an oversight?

I am disappointed that you did not give your endorsement to Samba4 Basic, even though it is 30% smaller and has complete documentation.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Sat 04 Jul 2015, 02:48    Post subject:  

@MikeB's version is equivalent in size, but has modern features for todays newer LAN units (including PCs) with same or improved performance with no downside penalty. His version is the "true" full "SAMBA version 4+"; not a fork. The full SAMBA community is very active to insure security for SAMBA LAN users.

His version has been made available to the PUPPY developer and user community, here, recently.

Please don't be disappointed in my not mentioning your SAMBA-TNG you reference in your opening post. I think it is covered well in the link you reference. Works!

Hope this is helpful

_________________
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 Engines or use DogPile
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Sat 04 Jul 2015, 06:36    Post subject:  

I think that you have misread something. Samba4 Basic is NOT Samba-TNG. It is a NEW project based on Samba 4.1.9.
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Mon 06 Jul 2015, 18:01    Post subject:  

Pemasu's Dpups can run Samba4 Basic.

For Squeeze 5.X.3.6.2, install tahrpup-4.1.9.pet, samba4_control-1.1.pet and samba4_patch_lupu-5.2.8.pet.

For Wheezy 3.5.2.11, install samba4_basic_tahrpup-4.1.9.pet, samba4_control-1.1.pet and samba4_patch_precise-5.7.1.pet.

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

Last edited by rcrsn51 on Tue 07 Jul 2015, 12:33; edited 4 times in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Tue 07 Jul 2015, 06:12    Post subject:  

Forum member rg66 has built a series of Puppies with the Xfce desktop environment. They contain Samba-TNG which is managed by the Simple File Sharing applet.

These Puppies can be upgraded to Samba4 Basic. For example, X-Slacko would require samba4_basic_tahrpup-4.1.9.pet, samba4_control-1.1.pet and samba4_patch_slacko-5.7.0.pet.

Because X-Pups keep their startup scripts in a different location than standard Puppies, there is an extra step.

1. Open the file /usr/sbin/samba4-control in a text editor.
2. At lines 51, 52 and 55 change $HOME/Startup/samba-autostart to /usr/bin/samba-autostart

From the Network menu, run Samba4 Basic Control Panel instead of Simple File Sharing.

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

Last edited by rcrsn51 on Tue 07 Jul 2015, 20:49; edited 4 times in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Tue 07 Jul 2015, 15:19    Post subject:  

Peebee's family of LxPups can run Samba4 Basic. As usual, install samba4_basic_tahrpup-4.1.9.pet and samba4_control-1.1.pet. LxPupTahr will work OOTB. For older Ubuntu variants, install samba4_patch_precise-5.7.1.pet. For Slackware variants, use samba4_patch_slacko-5.7.0.pet.
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Tue 07 Jul 2015, 23:51    Post subject:  

TahrNOP is gray's version of Tahrpup with the Xfce desktop environment. It needs samba4_basic_tahrpup-4.1.9.pet, samba4_control-1.1.pet and samba4_patch_precise-5.7.1.pet.
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Wed 08 Jul 2015, 20:15    Post subject:  

Deleted.
Last edited by rcrsn51 on Sun 01 Nov 2015, 15:20; edited 2 times in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Fri 10 Jul 2015, 07:59    Post subject:  

666philb's vivid-6.5_PAE has an older version of libgnutls. So it needs samba4_basic_tahrpup-4.1.9.pet, samba4_control-1.1.pet and samba4_patch_precise-5.7.1.pet.
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Sat 11 Jul 2015, 23:06    Post subject:  

Deleted.
Last edited by rcrsn51 on Sun 01 Nov 2015, 15:20; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Sun 12 Jul 2015, 07:59    Post subject:  

There are several types of Samba server GUI control panels in different Puppies. The version in Samba4 Basic is spartan - it assumes that anyone running a Samba server is willing to get their hands a bit dirty. But to make things simpler for beginners, here is a little recipe:

1. Click the Config button. It loads the configuration file /etc/samba/smb.conf into your default text editor.
2. To change the server name as seen by clients, edit Line 7.
3. To change the share name, edit Line 13.
4. To change the path to the folder you want to share, edit Line 14.
5. To add other shares, copy and paste Lines 13-15.
6. If you mess up your configuration file, there is a backup copy in /etc/samba.
7. To add more sophisticated features to your setup, click the Help button and read the examples.
8. Also see the Handy Trick in the main notes.

Read more about the Control Panel here.

---------------------------------
screenie.png
 Description   
 Filesize   31.93 KB
 Viewed   2000 Time(s)

screenie.png


Last edited by rcrsn51 on Mon 02 May 2016, 07:29; edited 4 times in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Tue 14 Jul 2015, 07:37    Post subject:  

Deleted.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 2896
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 06 Dec 2015, 15:14    Post subject:  

Bonsoir,
Great! But how to get all this work in French or other any other language than English?

Cordialement.
151206_200940_836x155_easyshot.jpg
 Description   
 Filesize   43.75 KB
 Viewed   1297 Time(s)

151206_200940_836x155_easyshot.jpg


_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [28 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.0718s ][ Queries: 14 (0.0071s) ][ GZIP on ]