I used to use entries in fstab to automount remote shares but then I found a remarkable little utility called gigolo:
And just in case you already don't have it installed:
sudo apt-get install gigolo
EDIT: As noted below by Kronalias you may also need to install gvfs-backends:
sudo apt-get install fuse
It's considered a network browser but it does have the ability to automount remote shares.
sudo apt-get install gvfs-backends
The procedure is relative simple:
When you first bring it up make a change in the preferences:
Edit > Preferences > Interface>
Select "Show Side Panel"
Select "Start minimized in the Notification Area"
Disable "Show auto-connect error messages"
Then you browse to the share using the Network Tab on gigolo
Then you bookmark the share by right clicking the share icon and select "Create Bookmark"
When you bookmark it select the "Auto-connect" option
Then have gigolo start at login:
System > Preferences > StartUp Applications > Add > Command = gigolo
Application Menu > Settings > Settings Manager > Session and Startup > Application Autostart > Add > Name = Gigolo , Command = gigolo
When you login it will automatically mount remote shares and you will see an icon on your desktop.
In Xubuntu an icon is not created on the Desktop so create a launcher for it:
Right Click the desktop > Create Launcher > Name = MyLan, Command:
This auto-connect function has one other feature. If the remote share isn't available or if the connection is lost gigolo will scan the network every 60 seconds ( user adjustable ) and mount it when it finds it.
It will make more sense when you use it and it will take less time to implement than it took for me to try to explain it