Saturday 11 July 2009

Mount FTP as filesystem


CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl.

[Install]

localhost ~ # emerge net-fs/curlftpfs in gentoo
localhost ~ # apt-get install curlftpfs in ubuntu/debian
localhost ~ # ./configure && make && make install by the manual way

[Mount]

localhost ~ # modprobe fuse if you dont have fuse module loaded
localhost ~ # curlftpfs ftp://user:pass@site.com /mnt/mountpoint

[Umount]]

localhost ~ # fusermount -u /mnt/mountpoint

Thats it, now you can access with any file explorer like konqueror, nautilus…..we can do almost everything like edit source code

Adding on fstab
curlftpfs#ftp.host.com /mnt/mountpoint fuse rw,uid=500,user,noauto 0 0

or Making alias
alias mHost=’curlftpfs ftp://user:pass@site.com /mnt/mountpoint’

More int at http://curlftpfs.sourceforge.net/

No comments:

Post a Comment