Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 34468  / 1 Year ago, sat, february 25, 2023, 12:47:54

I configured a remote folder in nautilus. I always need this remote folder, so I created a symbolic link to it in my home folder: ln -s ~/.gvfs/remote_folder ~/remote_folder.



Though, when I first boot the computer this folder is not mounted, and I have to access it through nautilus in order to have it available in ~/remote_folder.



What should I do to have this folder mounted on log on?


More From » nautilus

 Answers
7

Shell


You could use the mount command in a start up script and put that in the Startup Application Preferences. mount is perfectly capable of mounting remote file systems (if you provided it with the right options and all necessary packages installed).


An alternative to mount in your startup script is gvfs-mount Install gvfs-bin. You can mount nautilus-type URIs with that - just like nautilus does. It is installed by default on most Ubuntu systems.

Example usage:


gvfs-mount 'ftp://[email protected]/folder'

Adding the -u option unmounts the argument, -l lists all mounted file systems, --help gives you more options.


Finally the file /etc/fstab is usually used to mount file systems statically. If your remote server is reliable you might want to take a look at fstab. It will slow down your boot time drastically if the server is slow or offline, but it has the advantage of making the file system available quite soon (before gnome or X are even loaded, e.g. for use in scripts). For more information you can type man fstab.


GUI way


Check out Gigolo Install gigolo. It has the capability of auto-mounting a bookmark, whenever the bookmarked filesystem is present.


sudo apt-get install gigolo   # or use the install link above

Run gigolo. There is an option in the preferences that puts it into autostart and another to activate the tray icon. Check both. Then add your bookmark.


Gigolo used to automount


[#43931] Sunday, February 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ngthmated

Total Points: 12
Total Questions: 115
Total Answers: 113

Location: Saint Vincent and the Grenadines
Member since Wed, Apr 21, 2021
3 Years ago
;