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 Wed 22 Oct 2014, 11:31
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to share a network partition with Puppy?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Sat 18 Oct 2008, 16:46    Post subject:  How to share a network partition with Puppy?  

Can I share an entire partition on my network with Puppy? I tried using pcurlftpd and symlinking into /root/ftpd but client computers looked to themselves for the link. Any solutions, pcurl, command line or other will be welcome.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Mon 20 Oct 2008, 13:49    Post subject: Solved!  

I used pcurlftp which created the shared folder /root/ftpd on computer1. Then I created a new folder on my sda5 partition on computer1 called /mnt/sda5/All_Files and moved everything on the partition into that folder.

In Rox I dragged /mnt/sda5/All_Files to /root and created an absolute symlink there. I then deleted /root/ftpd and renamed the /root/All_Files symlink /root/ftpd.

When I used pcurlftp on computer2, I was able to access the /root/ftpd symlink on computer1 which gave access to all the files in /mnt/sda5/All_Files.

P.S. Should I post this in the HowTo section?
Back to top
View user's profile Send private message 
artifactz


Joined: 01 Oct 2008
Posts: 12

PostPosted: Mon 20 Oct 2008, 14:05    Post subject:  

please do. i need to share my ntfs partion video folder (165 avi,s Cool its on /mnt/hda3/video/

thank Very Happy
Back to top
View user's profile Send private message 
artifactz


Joined: 01 Oct 2008
Posts: 12

PostPosted: Mon 20 Oct 2008, 14:05    Post subject:  

please do. i need to share my ntfs partion video folder (165 avi,s Cool its on /mnt/hda3/video/

thank Very Happy

sorry for double posting ran into an error
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Mon 20 Oct 2008, 14:34    Post subject:  

Hi Artifactz, Pardon me if you already know some of this, but since you ask:

When you click on pcurlftp in the networking menu it will ask if you want to setup client or server. On the machine with /mnt/hda3/video setup a server. This will automatically create the /root/ftpd folder.

If you want to share just the video folder you could open up two Rox windows one for /root and one for /mnt/hda3. Drag the video folder over to /root and when Rox asks what you want to do create an absolute symlink. Now delete /root/ftpd and then rename the /root/video symlink to /root/ftpd.

When you get on another machine you can open pcurlftpd and setup a client. Click on setup sharing in the Rox window that opens.

You should be able to scan your network and find the computer with /video on it (or enter its ip address).

When you see Shared_on-xxx.xxx.x.xxx you can click on that and you should be looking at the contents of your video folder.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8344

PostPosted: Mon 20 Oct 2008, 14:57    Post subject:  

Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Mon 20 Oct 2008, 17:51    Post subject:  

Thanks for the link Mike, I've just had a quick read here at work. I'll try it out when I get home.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Mon 20 Oct 2008, 20:30    Post subject:  

Hi Mike,

Just tried logging in to pcurlftp as root (woofwoof). It gives me access to /root on my fileserver but not to /mnt or /usr, etc. Also links in /root lead to the client machine.

Do you know of a way to access /mnt/sda5 using this technique?
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Mon 20 Oct 2008, 20:58    Post subject:  

Ok, I figured out how to access /mnt/hda5. I added a user whose home directory is / and set up the server for password required. This gives me total access to the server including all mounted drives.

Now I'm stuck on how to get write priviliges to the shared folders.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Mon 20 Oct 2008, 22:25    Post subject:  

I managed to get write access for anonymous logins by changing all mentions of "chmod 755" in /root/File-Sharing/Setup-Sharing/apprun to "chmod 777."

It doesn't seem to have worked for password required logins however. Any ideas?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8344

PostPosted: Mon 20 Oct 2008, 23:09    Post subject:  

well a true root login should give read/write access......

for access to / notice the address format for curlftpfs ie

ftp://root:password@hostaddress/..

notice the /.. that means will login to one directory above root = '/'

so try root login rather than user and the modded address

mike
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Tue 21 Oct 2008, 11:47    Post subject:  

Mike, You're right about a root login giving full write access. I tried changing root's home directory to / with tragic results. (Luckily I'm running a disposable pup_save file)

Quote:
for access to / notice the address format for curlftpfs ie

ftp://root:password@hostaddress/..


This line doesn't seem to be in /root/File-Sharing/Setup-Sharing/apprun. Am I looking in the wrong place or have things changed in pcurlftp?

I have been able to add a system user:

Code:
adduser -h / -S username


which gives me read/write access to / but not to subdirectories.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8344

PostPosted: Tue 21 Oct 2008, 12:45    Post subject:  

oops...full line is

curlftpfs ftp://root:password@192.168.1.4/.. /root/Upstairs &> /tmp/curlftpfs.error

as an example

I am slack

mike
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Tue 21 Oct 2008, 14:48    Post subject:  

OK Mike, I think I've got it:

1. On computer1 go to "pcurlftp -> Setup-Sharing -> Server -> password required"

2. On computer2 create /root/computer1

3. Open a console on computer2 and type:

Code:
curlftpfs ftp://root:woofwoof@192.168.1.103/.. /root/computer1 &> /   tmp/curlftpfs.error


4. On computer2 open Rox to /root/computer1 and computer1's full system is open with full read/write access including any mounted partitions, i.e. /mnt/hda5

I've tried it and it works! Very Happy

Thanks Mike, never would have figured it out without you.

Will now see about writing script to run command above and open Rox to mount point.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Tue 21 Oct 2008, 15:20    Post subject:  

Just a note of caution for the casual reader:

Once file sharing is setup with root login, don't delete the mountpoint, either the one you setup in /root or in /root/filesharing.

Computer2 will try to delete computer1 entirely Shocked . (Thank goodness for frugal install and pfix=ram).

Kids, don't try that at home.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0719s ][ Queries: 12 (0.0034s) ][ GZIP on ]