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 Thu 21 Aug 2014, 14:06
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOWTO : Share files and folders between Computers
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 6 [87 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Author Message
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 08 Sep 2005, 22:42    Post subject:  HOWTO : Share files and folders between Computers  

This HOWTO should allow you to share files between puppy and other computers (Pupy, windows, linux, etc).

They are focussed on Puppy to Windows but they can easily be extrapolated for Puppy to other OS's

This HOWTO has two parts:
- The firsts part is sharing a windows folder and letting Puppy see it
- The second part is sharing a puppy folder and letting windows see it.

I will separate then into two individual posts as to simplify references.

Although there seem to be many steps, it's actually quite simple, I just wanted to go step by step good enough for a new user.

I will copy the contents to these HOWTOs to the wikki once I'm done for easy reference.

Last edited by rarsa on Fri 09 Sep 2005, 10:00; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 08 Sep 2005, 23:08    Post subject: How to let puppy see a windows share  

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:
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
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 08 Sep 2005, 23:33    Post subject: How to let Windows see a puppy folder  

How to let Windows see a puppy folder

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.

Puppy includes a simple FTP server called BeteFTP: " start | Network | BetaFTPD FTP server".

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)

3. Now start the FTP server. From the start menu select "Network | BetaFTPD FTP server"
5. Click on the "start FTP server"

From Windows:

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
Back to top
View user's profile Send private message Visit poster's website 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 09 Sep 2005, 15:21    Post subject:  

if i wanted to copy files from Puppy, i would click /root/ghttpd/httpd

files and folders (and symlinks) in /root/ghttpd/htdocs will now be available on your network and on the internet

pic: http://tinypic.com/dlm9n7.jpg

i find this easier than setting up file sharing

you may have to open a port in your firewall, or shut it down

there's a roxapp that starts/stops the httpd server with the click of a button on my dotpups page
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 09 Sep 2005, 15:30    Post subject:  

if i wanted to copy files from a Windows box to Puppy, i would probably run something like HFS
http://www.rejetto.com/sw/

1 file, about 400k, doesn't need installing or uninstalling ... works about the same as httpd
Back to top
View user's profile Send private message 
RobbieG


Joined: 21 Oct 2005
Posts: 16
Location: WI

PostPosted: Fri 21 Oct 2005, 17:59    Post subject: Re: How to let Windows see a puppy folder  

rarsa wrote:
How to let Windows see a puppy folder
2. Add a new user with the "adduser" command.

Here are some examples:

Code:
adduser -h /root -r /usr/bin/deny_sh localuser



Am I supposed to do this in the console window? When I do this, this is what I get back:
Code:
# adduser -h /root -r /usr/bin/deny_sh localuser
adduser: invalid option -- r
Tinylogin v1.4 (2005.08.02-19:41+0000) multi-call binary

Usage: adduser [OPTIONS] <user_name>
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
ICQ Number 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Fri 21 Oct 2005, 20:33    Post subject:  

Oh, sorry, I wasn't using tinylogin but the full bash when I wrote that example. That command is only an example.

To add the user just type in the console
Code:
adduser   -h   /root   localuser
Back to top
View user's profile Send private message Visit poster's website 
RobbieG


Joined: 21 Oct 2005
Posts: 16
Location: WI

PostPosted: Sat 22 Oct 2005, 04:22    Post subject: Thank you  

Thanks!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
ICQ Number 
sildan
Guest


PostPosted: Sat 12 Nov 2005, 17:18    Post subject:  

Thanks!

I have on more question: How to remove a user? I've tried the obvious commands like deluser, but that doesn't work. I get the message "deluser: sildan: User could not be removed from /etc/passwd"

And the user is definately not deleted. When I try to add the same user again, I get the message "adduser: sildan: login already in use"

Where are the users stored? And howto finally remove them?
Back to top
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sat 12 Nov 2005, 23:41    Post subject:  

That's strange, in my computer the user gets deleted with deluser.

I also get the error of not being able to delete it from gshadow but that's not a real error if it was never added there.

To make sure that it's completelly removed, after deluser, also check the following files

/etc/passwd
/etc/group
/etc/gshadow
/etc/shadow
/etc/shadow-

Please note that in some files you will see the user number instead of the user name.
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Wed 23 Nov 2005, 07:28    Post subject:  

Ooops I hit the Esc key & it double posted... sorry!
Last edited by sunburnt on Wed 23 Nov 2005, 07:31; edited 1 time in total
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Wed 23 Nov 2005, 07:29    Post subject:  

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.
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Wed 23 Nov 2005, 10:36    Post subject:  

What version of Puppy are you using?

I am at the office right now and cannot test. I will test this evening after you post the version you are using.
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Wed 23 Nov 2005, 16:51    Post subject:  

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).
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Wed 23 Nov 2005, 21:29    Post subject:  

When I wrote this howto I was using 1.0.5 but I've just tried using 1.0.6 and it works ok.

I haven't used murga's version. You may want to ask him if he included that command in his version.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 6 [87 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0964s ][ Queries: 13 (0.0049s) ][ GZIP on ]