~
How to let puppy use a windows share (or connect to another Linux machine)
Prerequisite:
In Windows share a folder/drive following these Microsoft instructions
In Linux set up the SAMBA server to share your folder/drive/file on the server machine.
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:
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!
2006 January. Posted by
DreamsToGo
I had trouble with typing the smbmount command in manually. I found a way to get at the
LinNeighborhood generated command.
LinNeighborhood is just a front end for the smbmount command. You can then copy the command using alt+c and paste it into /etc/rc.d/rc.local as explained above. So, try the following,
1) set up the
LinNeighborhood connection and test that it works.
2) then go into
LinNeighborhood and press the Options menu
3) here you will see 'Export Mountscript'. Take this option.
4) select somewhere to save the mount script and give it a file name (or accept the default).
5) find the file you just created and open it in a text editor.
6) open /etc/rc.d/rc.local in a text editor.
7) find the smbmount command in the mountscript file and copy it using alt+c
8) paste it (alt+v) into the rc.local file, close that and save.
You're done. I also found that this stops the PC from waiting for a password when booting.
rarsa
CategoryHowto
There is one comment on this page. [Display comment]