I have two machines running Ubuntu 12.04 LTS with Samba installed. I have access to myshared folder as expected.However, when setting in R the path smb://mymachine1/mysharedfolder to read a file it does't find the directory. I'm new to Ubuntu so I'm sorry if my question results obvious to you.
How can I access a shared folder from R on Ubuntu to a 2nd Ubuntu machine using Samba?
ubuntu;mount;samba
The URL syntax (smb://) is only available in applications using the Gnome libraries. That's mostly GUI applications.In order to make a Samba mount accessible to all applications, you need to mount it.GVFS, the system that Gnome uses to access resources such as remote files and archives, can make its own Gnome-only mounts available to all applications in the ~/.gvfs directory. The path to your file is something like~/.gvfs/mysharedfolder on mymachine1/You can mount GVFS resources on the command line with gvfs-mount.Checking what's mountedYou can check the status of what's mounting using gvfs-mount's -l switch.$ gvfs-mount -lDrive(0): CD/DVD Drive  Type: GProxyDrive (GProxyVolumeMonitorGdu)Drive(1): 500 GB Hard Disk  Type: GProxyDrive (GProxyVolumeMonitorGdu)  Volume(0): SYSTEM_DRV    Type: GProxyVolume (GProxyVolumeMonitorGdu)  Volume(1): Windows7_OS    Type: GProxyVolume (GProxyVolumeMonitorGdu)  Volume(2): Lenovo_Recovery    Type: GProxyVolume (GProxyVolumeMonitorGdu)Mount(0): sam on bart -> smb://BUBBA;sam@bart/sam/  Type: GDaemonMountIn the above output, mounts that are of type: GDaemonMount are Samba mounts.