How to let puppy use a windows share
Prerequisite:
In Windows share a folder/drive following
these Microsoft instructions
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:
smbmount //<serveraddress>/<sharedfolder> <mountpoint> username=<username> password=<password>
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: Select all
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!