Sziasztok,
szeretném itthon a levelezési adatbázist több gépről is elérni, ezért feltettem egy pendrive-ra, amit aztán a routerhez csatlakoztattam, és ftp-vel megosztottam.
sudo curlftpfs usernév:jelszó@ftp.cim.com/part0/Levelek /media/levelek -o allow_other -o uid=500 parancsal bemountolni. Hogy lehet ezt automatizálni, hogy ne kelljen minden bejelentkezéskor ezt futtatni?
Remélem érthető.
A.
szerk:
Ezt most találtam, majd kipróbálom
FTP site in fstab
Posted by Jeroen
Mount a FTP map in the linux filesystem tree.
first in a terminal:
Code:
sudo apt-get curlftpfs
sudo md /media/provider
Add this line in /etc/fstab
Code:
curlftpfs#username:password@ftp.provider.com/PUBLIC /media/provider fuse rw,allow_other,noauto,user 0 0
where username is your login name at your providers ftp site
password is your password
@fpt.provider.com/ is the ftp server of toyr provider
PUBLIC is the map in your ftp account to use.
/media/provider is the map you created earlier. Here you'll mount your ftp site.
And reboot of type in a terminal (sudo mount -a)
than when you want to mount the ftp site type in a terminal:
Code:
sudo mount /media/provider
Note that the speed of FTP is very slow compared with normal hard disk usage. About 500 k per second on a drive on your own router.
It is possible to use for an network harddisk, but if smbfs is available, that's better to use. That's explained here.