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 Tue 21 Oct 2014, 03:06
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
File sharing with Curlftpfs for Dingo
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Author Message
kirk

Joined: 11 Nov 2005
Posts: 1419
Location: florida

PostPosted: Thu 17 Jan 2008, 23:30    Post subject:  File sharing with Curlftpfs for Dingo  

This Rox Application uses Curlftpfs, Mpscan, Pure-ftpd, and Rox to setup a file sharing system, that is similar to Samba (windows) file sharing to the user. The intent is that this will be used between two computers running Puppy. Inside of the File-Sharing folder you will find a Rox application named Setup-Sharing. Clicking on Setup-Sharing will open a series of windows that will let you start the FTP server or search for another server on your network. Then it will make a Rox app that you can click on to connect to the server. Then just drag and drop.
shot1.png
 Description   
 Filesize   15.91 KB
 Viewed   5464 Time(s)

shot1.png

shot2.png
 Description   
 Filesize   14.56 KB
 Viewed   5533 Time(s)

shot2.png

shot3.png
 Description   
 Filesize   22.03 KB
 Viewed   5437 Time(s)

shot3.png

shot4.png
 Description   
 Filesize   32.06 KB
 Viewed   5681 Time(s)

shot4.png

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

Joined: 11 Nov 2005
Posts: 1419
Location: florida

PostPosted: Thu 17 Jan 2008, 23:39    Post subject:  

Here's the packages. You'll need a updated Curl package. The one the Dingo alpha 5 won't work with Curlftpfs. The older versions of Curl work and the latest version of Curl works. Bad luck Sad Maybe Barry will upgrade the package before Dingo final?

And You'll need pure-ftpd.

Some limitations:

* Permissions are not preserved, so ROX reports errors. Copied files are created with a umask of 022.
* Symlinks don't copy.
* The FTP server will not allow root logins.

The no root logins are intentional, for the others, I haven't found a work around.
File-Sharing.pet
Description 
pet

 Download 
Filename  File-Sharing.pet 
Filesize  59.83 KB 
Downloaded  1463 Time(s) 
pure-ftpd-1.0.22.pet
Description 
pet

 Download 
Filename  pure-ftpd-1.0.22.pet 
Filesize  29.47 KB 
Downloaded  1531 Time(s) 
curl-7.17.1.pet
Description 
pet

 Download 
Filename  curl-7.17.1.pet 
Filesize  412.42 KB 
Downloaded  1460 Time(s) 

Last edited by kirk on Fri 18 Jan 2008, 12:24; edited 1 time in total
Back to top
View user's profile Send private message 
kirk

Joined: 11 Nov 2005
Posts: 1419
Location: florida

PostPosted: Thu 17 Jan 2008, 23:44    Post subject:  

Here's the source packages for Curlftpfs and Mpscan. Not needed to test.
mpscan-0.1.0.tar.gz
Description 
gz

 Download 
Filename  mpscan-0.1.0.tar.gz 
Filesize  54.11 KB 
Downloaded  1352 Time(s) 
curlftpfs-0.9.1.tar.gz
Description 
gz

 Download 
Filename  curlftpfs-0.9.1.tar.gz 
Filesize  354.04 KB 
Downloaded  1337 Time(s) 
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Wed 30 Jan 2008, 10:05    Post subject:  

kirk
Have you tested this on a clean install? I can't get it to work. Though I'm trying on a severely second hand install of 3.01.
When I try and setup the server I get a messagebox telling me that "the shared folder is" but that bit is blank.

I think it is an excellent idea and a lot cheaper (and hopefully easier) than installing samba

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8342

PostPosted: Wed 30 Jan 2008, 18:51    Post subject:  

Well this works well on puppy 2 series...very very very neat....I was using gftp and pure-ftpd before but this method rocks Smile

Also works equally well from a windows machine to puppy with a simple freeware win32 ftp server ........

Quote:
The no root logins are intentional,


for my own interest how can root logins be acheived?

nice one...much appreciated...I've always avoided netbios on windows as its a common virus target and full samba is huge in puppy terms

regards

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

Joined: 11 Nov 2005
Posts: 1419
Location: florida

PostPosted: Thu 31 Jan 2008, 13:21    Post subject:  

HairyWill,

This is for Dingo. In Dingo there is a user ftp who's home directory is /root/ftpd. The pure-ftpd package was left out of dingo alpha 6, but it has a problem anyway. The folder /root/ftpd needs it's owner changed to ftp and permissions set to 755 or 777. I don't know if it will work in 3.01 (depends on the version of curl). To try you'll have to add a new user named ftp and make it's home directory /root/ftpd. Then the symlink about the shared folder should work. Seems like there was a problem in 3.01 with adding users.


Mikeb,

To enable root logins you'll need to right click on Setup-Sharing and select Look Inside. Then right click on AppRun and open as text. On lines 17 and 23 you'll see this:

pure-ftpd -zMbBADHk 90 -u 1 -U 022:022

You'll want to change it to this:

pure-ftpd -zMbBADHk 90 -U 022:022

The -u 1 option is what tells pure-ftpd not to allow root logins.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8342

PostPosted: Thu 31 Jan 2008, 14:20    Post subject:  

Thanks kirk

I was looking at the pure-ftp documentation but not getting very far..

regards

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


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Thu 31 Jan 2008, 16:16    Post subject:  

thanks kirk
I installed tinylogin using the package manager, followed your instructions.
The ftp server started successfully.
I am messing around with client and server on the same machine so I don't expect results to be conclusive.
I don't seem to be able to edit the shared stuff, I presume that is curl problem and I don't expect an answer I should be able to work that out.

A couple of points:
The subnet scan takes a while, some sort of progress indicator would be nice.
You might consider some mechanism for stopping the share. (yes I know, killall pure-ftpd)
The way you have used roxapps to look like the shares is clever though I didn't find it intuitive. That might just be how my head is organised, but a menu item and/or desktop icon might be good.
Some way of identifying share status might be helpful, is my share open, which others am I connected to.

If I'm being picky its because I think this is a really good idea, keep up the good work.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8342

PostPosted: Thu 31 Jan 2008, 17:17    Post subject:  

Quote:
The way you have used roxapps to look like the shares is clever though I didn't find it intuitive.


Once a once a shared folder is made I dragged it to the pinboard/desktop which makes for simple access.

The share(s) can be accessed though open file dialogs when hidden files are shown, I tried using curlftpfs to mount to a convenient folder and it does give transparent access....my thought is to leave the share on permanently rather than open/close with rox similar to the windows network drive approach.

Quote:
I don't seem to be able to edit the shared stuff, I presume that is curl problem

hmm seem to be stuck on this one...browsing a share on a windows machine using
http://www.pablosoftwaresolutions.com/html/quick__n_easy_ftp_server_lite.html

gives full r/w/delete/rename access (worked in wine also but slow).

Quote:
I think this is a really good idea,


same here Smile
mike
Back to top
View user's profile Send private message 
kirk

Joined: 11 Nov 2005
Posts: 1419
Location: florida

PostPosted: Thu 31 Jan 2008, 22:09    Post subject:  

Yes, the idea was to have the icons on the desktop. The connections are unmounted when you close the Rox window that opened for the shared folder. To stop the ftp server, when you go to menu - Network - Pureftpd in Dingo ( hopefully in the next release) , the pure-ftpd script will detect that pure-ftpd is running and offer you the option to kill it. But just leaving it running shouldn't be a problem.
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 01 Feb 2008, 01:28    Post subject:  

Cool Very interesting.
This will be very useful for cybercafes, education, business etc Smile

This is for a LAN?
Is there any way of using this over the Internet in a VPN (I think that is the right term) I believe we have something similar but what you are doing seems very simple to use and implement from the end user perspective.

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
kirk

Joined: 11 Nov 2005
Posts: 1419
Location: florida

PostPosted: Fri 01 Feb 2008, 22:46    Post subject:  

LAN, internet doesn't matter. Through the internet you'll probably have to set your router to forward port 21.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8342

PostPosted: Mon 04 Feb 2008, 19:58    Post subject:  

For those wanting to use root access to give full read/write ablities ... (behind a router or firewall!) the line in the appropriate apprun

curlftpfs ftp://192.168.1.2 /root/File-Sharing/...etc

would become

curlftpfs ftp://root:@192.168.1.2 /root/File-Sharing/...etc
assuming the default password of 'blank'

curlftpfs ftp://root:your_password@192.168.1.2
for more secure setups.

note that
curlftpfs ftp://root:@192.168.1.2/../mnt/hda5
would mean rox would open up in hda5...handy as simlinks are not followed.

The commandline for pureftp would need modding to allow root access as described earlier in this thread.

The same approach could be used to logon as user with suitable access rights.

mike

Embarassed ..kirk's script sets the password Embarassed
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8342

PostPosted: Tue 05 Feb 2008, 18:07    Post subject:  

Ok more useful post time

there is a very useful wndows utility called netdrive (originally from novell) which basically can mount your puppy ftp file shares via pureftp just like a mapped network drive ...download and info here
http://louisville.edu/web/docs/howto/webdav/netdrive

mike

oh the joy of file browser friendly network shares Very Happy

edit..hang on I can access my website using curlftpfs..Is there no end to this!
Back to top
View user's profile Send private message 
kirk

Joined: 11 Nov 2005
Posts: 1419
Location: florida

PostPosted: Tue 11 Mar 2008, 22:42    Post subject:  

I've updated the File-Sharing app. Here's the changes:

* When you scan for servers and connect, if the server is not anonymous you'll be prompted for a user name and password.

* When starting the server you're given the choice of allowing anonymous connections or requiring a user name and password.

* Root logins are allowed.

* Updated the help file.

* Fixed some bugs.
File-Sharing.tar.gz
Description 
gz

 Download 
Filename  File-Sharing.tar.gz 
Filesize  60.98 KB 
Downloaded  1378 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0885s ][ Queries: 12 (0.0106s) ][ GZIP on ]