UDOO Filesystem under OSX with SSHFS and FUSE

Discussion in 'UDOO 101' started by francescomm, Jan 9, 2014.

  1. francescomm

    francescomm Member

    Joined:
    Dec 14, 2013
    Messages:
    80
    Likes Received:
    4
    To access the UDOO filesystem from my Mac without starting SAMBA (Windows filesharing) on the UDOO, I installed "FUSE for OS X" and SSHFS in my old faithful Os X Mavericks MacBook Pro. I created an empty UDOO folder in my Mac home folder ( that is mkdir ~/UDOO) and with the following command in terminal I can now see all the UDOO filesystem inside it (copy files to/from the UDOO by just dragging):

    Code:
    sshfs <username>@<UDOO_IP_ADDRESS>:/ ~/UDOO
    as in this example:

    Code:
    sshfs ubuntu@192.168.100.118:/ ~/UDOO
    Or, to share only the home folder:

    Code:
    sshfs <username>@<UDOO_IP_ADDRESS>:~/ ~/UDOO
    (192.168.100.118 is my UDOO address, ubuntu the username)

    Works quite fine, but be careful of caching, files may not be updated as fast as you may expect, I really had no problems but the SSHFS website warned about it (and instructs on how to disable caching, in case).

    I added this command to a script to do this and start the VNC server (if installed following the UDOO tutorial) so my UDOO is completely accessible without a screen all day long, I called it connectudoo.sh

    Code:
    #!/bin/sh
    
    #connect UDDOO
    
    sshfs ubuntu@192.168.100.118:/ ~/UDOO
    ssh ubuntu@192.168.100.118 "vncserver :1 -geometry 1920x1080 -depth 24"
    
    Remember to
    Code:
    chmod a+x ./connectudoo.sh
    to make it executable and move it to some location where it is easy accessible (or paste it inside a an AppleScript/Automator app to make it clickable)

    Have fun.
     
  2. delba

    delba Administrator Staff Member

    Joined:
    May 8, 2013
    Messages:
    1,064
    Likes Received:
    9
    Thanks francescomm, that's very useful.
     

Share This Page