Introduction:
In Puppy there are two ways. The LinNeighborhood and the command line.
- The LinNeighborhood is a graphic tool so some people will find it more attractive.
- The command line may be intimidating but it's easier to use once you know the command and allows you to connect to the shared folder when you start puppy.

LinNeighborhood:
1. From the start menu select "Network | LinNeighborhood Samba client"
2. Click the "Add" button.
3. Leave Machine and Group empty
4. on IP address type the IP address of your Windows computer.
5. Click the "query" button.
6. You should receive the message "query host... done". If not, check that the IP address is correct and that your network is working OK and repeat step 5.
7. Click OK. The Windows computer should appear on the main window list.
8. Right click on the computer name/address and select "scan as user"
9. Leave domain empty, username as root and password empty. You should see the list of shares on the main window list
10. Right click in the share you want to use and click "mount"
12. Set the parameters for the mount or accept the defaults. The "mount point" is the puppy folder under which you will see the contents of the shared folder. (write down that path so you remember where it's mounted)
13. Click "Mount". Rox should open on that folder
Done!

Command Line
While it's quite easy to do it in LinNeighborhood, there is no way to save your connections so you can connect automatically the next time you start Puppy. For that, the command line comes to the rescue.

1. Open the rxvt console terminal. "start | run | rxvt"
2. Use the following command to mount the shared folder:

where
<username> and <password> are your username and password in the windows computer. If you don't have a password then don't put this parameters and when prompted for a password just press enter.
<serveraddress> is the IP address of your server
<sharedfolder> is the name of the shared folder
<mountpoint> is the folder where you will see the contents of <sharedfolder>. The <mountpoint> folder must exist and be empty.

For example in my home network
my windows computer address is 192.168.1.99.
I share a folder with a very creative name of "shared"
I want to see the contents of that folder under /mnt/windows2

The command I use is the following:

Code:

smbmount //192.168.1.99/shared /mnt/windows2

Please bear in mind that this only works consistently if your windows XP computer is using static IP. If you use dynamic IP you are not guaranteed to always get the same IP address.

3. If you want to connect to the same share everytime you startup puppy, do the following:

Set the Windows computer to use static IP, if you don't, this step may not work consistently.

Open /etc/rc.d/rc.local in a text editor. This file get's executed everytime you start puppy.
Add the smbmount command you did on the previous step to the end of the file.
Save the file.

Done!Last edited by rarsa on Fri 09 Sep 2005, 10:01; edited 5 times in total

In most linux distributions you would do that using a NFS (Network file system) share or a SAMBA share. Puppy does not provide those services but that does not mean that everything is lost, you can use FTP and you will barelly notice the diference from windows.

The default allows users to see the contens of a folder under /root/ftp and no more. What do you do to allow sharing a different folder, even sharing the full puppy filesystem? Here are the steps:

In Puppy:
1. Create the folder you want to share. If it is an existing folder such as / or /root , skip this step. You can create a new folder in rox or with the mkdir command.
2. Add a new user with the "adduser" command. This will be the user that you will use to see your shared folder. The adduser command will ask you for a password, you MUST enter a valid password.

NOTE:

paulh177 wrote:

BusyBox adduser is broken in Puppy 3.
Download TinyLogin using PetGet and try adding tinylogin at the begining of each command e.g.

Code:

tinylogin adduser -h /root localuser

Here are some examples:

To add a user called "localuser" that will share /root and that you cannot use to login to puppy, write the following command:

Code:

adduser -h /root localuser

To add a user called "mp3shares" that will share /root/my-music:

Code:

adduser -h /root/my-music mp3shares

To add a user called "top" that will share the top folder / :

Code:

adduser -h / top

You can add as many users as you want each one sharing different folders. (e.g. One for your wife, one for you and one for each of your children)

1. Open windows explorer
2. Make sure that it shows the address bar. If it is not showing, you can right click in any tool bar and select the address bar from the pop-up menu.
3. In the address bar enter the following address ( replace <puppyIPaddress> with the actual Ip address of your puppy computer):
ftp://<PuppyIPaddress>/
and press ENTER.
4. Enter the user name and password for one of the users that you created in puppy. and click OK.

DONE! as easy as that.

If you want to learn more, click the "Help" button of the BetaFTPD window.

If you want to start the FTP server every time you start puppy, add the "betaftpd" command to the /etc/rc.d/rc.local file using a text editor such as leafpad:

Code:

leafpad /etc/rc.d/rc.local

Last edited by rarsa on Sat 26 Jan 2008, 10:57; edited 4 times in total

rarsa: I tried to mount a Win. share name S, no luck, you say to use smbmount, I get a usage report saying to use: mount - t smbfs //192.168.0.102/S /mnt/data
And it returns: invalid argument, I have an IP display on the Win box so that's right, & the share panel-share name is: S
I'm not sure what the invalid argument is, & why doesn't smbmount command work?
I did all of this awhile back & it was never resolved, hope I have better luck this time.

John Murga's 128 Special 1.0.5, but I've had the trouble with others.
128spec. is only Puppy that LANboots, need to mount HOME, & eventually /usr on a Win share.
LinNeighborhood does it, but it probably uses it's own mount command.
The PuppyWiki says: if you add SHELL=/bin/bash to /etc/profile, rxvt and aterm will run bash automatically.
Wiki says Puppy uses ash, could it be it's mount command is abridged & neutered?

ADDENDUM: I tried it & same error, the SHELL= command didn't have errors so I assume it worked, no change though.
I found smbmount in /usr/sbin & used the full path to it & still got: use mount -t smbfs instead.
So I cd /usr/sbin & the smbmount worked, error: session request to //192.168.0.102 failed ( Called name not present).

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum