Samba full server-client, compile & install. (It's EASY)

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

Samba full server-client, compile & install. (It's EASY)

#1 Post by sunburnt »

How to compile and install a full Samba for Puppy 1.0.5 thru 1.0.7

This is used on a small home network with a wired router and guarded by hardware firewall.
Nothing fancy, we are just end users with three computers, and some junkers.
This even worked on the old acer 200mmx in the closet (not recommended, too slow).
This works on our XP (fat 32), Win me, Puppy to Puppy, and other linux operating systems with samba.

1. You need Puppy's compiler file, usr_devx.sfs from one of Puppy's download sites, the main site is:
"ftp://ibiblio.org/pub/linux/distributions/puppylinux/"

2. Place in the same directory as your pup001 on a live CD install, or into "/" for a harddrive and reboot.
In the "/", unhide you file manager, you should see .usr_devx (hidden).
On a live CD you may have to resize your pup001 file.

3. Make a copy of smb.conf from: /etc/samba to: /etc/samba/private for save keeping.

4. Download from Samba site, Samba 3.0.21b source code: "http://us2.samba.org/samba/news/#3.0.21b".

5. Untar samba-3.0.21b.tar.gz to your download folder. (We still use guitar, faster)
Or start Xterm, and in the dir. that has samba-3.0.21b.tar.gz in it
(in ROX, right click in the files dir. and in the menu select: Window > Xterm Here), then type in:
gunzip < samba-3.0.21b.tar.gz | tar xvf -

6. Open your new untarred samba-3.0.21b folder, then open the source folder.

7. Open Xterm there (right click and find "Xterm Here" in the menu, as you did above).
Type in:
./configure --prefix=/usr

If all goes well, then at the prompt #, type in:
make

At the next #, type in:
make install

On our machines it takes about 4-5 minutes (slow Acer PC took 1/2 hr).

8. If all goes well, change the PC's hostname in the hostname and host files in /root/.etc to what you want.

9. Modify smb.conf in: /root/.etc/samba and make a link to it in: /usr/lib
(Press: Ctrl + Shift, and then drag the file: /root/.etc/samba/smb.conf to: /usr/lib and drop it)
(Or in Xterm type in: ln -s /root/.etc/samba/smb.conf /usr/lib)
Add and change these lines in smb.conf

[global]
workgroup = MSHOME #(change to the name of your group)
server string = Samba Server %v #(add %v for version)
security = share #(changed from user)

# Add these to bottom

[Home]
path = /root/ #(you can add a directory to the end of /root/ to tighten security or make a new one)
guest ok = yes

10. Add these lines to /root/.etc/rc.local.
# Start samba
/usr/sbin/smbd | nmbd

11. Reboot and click: [Menu] > Network > LinNeighborhood, then in LinNeighborhood click the [Prefs] button
and mark: [X] Always scan as user, add your Workgroup name and click the [Save] and [Close] buttons.
To check your setup, click the [Add] button and type in: IP-address, and click [Query] to see info.
You should see your hostname, workgroup, and your hostname again followed by Samba Server 3.0.21b
Then double click on each layer to open. You should be able to mount the shares.

We have done this on five Puppy installs and one was a live cd install for test.
Info: Samba operates on port 139 and 445.
Good Luck... duke

Note: There'll be a Bash script to do from Samba source file to compile and install soon!
Also hopefully there'll be a DotPup package made out of this in the not too distant future.

kpalling
Posts: 1
Joined: Fri 21 Apr 2006, 22:49

How to compile and install a full Samba for Puppy 1.0.5 thru

#2 Post by kpalling »

Any progress with the DotPup? I am a linux beginner with no experience of compiling source-code for linux.

Keith
--
Keith Palling

Trobin
Posts: 968
Joined: Fri 19 Aug 2005, 03:16
Location: BC Canada

#3 Post by Trobin »

[url]http://speakpup.blogspot.com[/url]

Post Reply