How to Mount a SAMBA share at login on GNOME3 with Nautilus/GVFS

If you need to have a samba share mounted at login, example for backup purpose, just run this command:

echo gvfs-mount "smb://192.168.2.1/myshare" | tee -a /home/myuser/.profile

This command adds gvfs-mount to .profile on your home

Remember to change the command with your samba share and your home path.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s