1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice

SSHFS help

Discussion in 'Support Area' started by Swordfish II, Feb 19, 2017.

  1. Swordfish II

    Swordfish II Very Active Member

    Joined:
    May 20, 2015
    Messages:
    587
    Hey all,

    I have setup an ssh file server on a pi and it has come in pretty handy serving videos to a kodi box on my network and transferring files to and from the Pandora inside and outside my network via filezilla and gigolo.

    These are all good, but I am having some issues with using sshfs to mount so I can stream videos on the Pandora instead of simply download them.

    Basically I can mount with:
    sshfs pi@192.168.1.13:/media/pi/Elements /media/mmcblk1p1/Pi

    It mounts and I can browse all files with thunar, no problem.

    However, once I browse to the mount point in Panplayer2 I can only see videos in the root of /media/pi/Elements. Panplayer2 does not see the folders or sub folders at all. Ideas?
     
    Last edited: Feb 19, 2017
    Tags:
  2. FBnil

    FBnil ¡sɥʇuoɯ oʍʇ uı ɐɹʎԀ

    Joined:
    Dec 14, 2012
    Messages:
    1,993
    Location:
    Yurp
    do you mount it as root? Maybe it is a permission problem, as root on the PI try chmod -R a+r * from the mountpoint onwards. This will give read permissions to all files, do the same for all directories, they need rx.
     
  3. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    8,127
    Location:
    Somewhere off the coast of the EU
    It's odd that Thunar seems to be able to browse inside folders and see the files. A thunar instance should have the same user as a panplayer instance, provided you launched them both without entering a password.
     
  4. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,944
    Try this option when mounting :
    -o allow_other
     
  5. Swordfish II

    Swordfish II Very Active Member

    Joined:
    May 20, 2015
    Messages:
    587
    Yep strange to me too. The only password entered is the pi login. I also tried sudo sshfs... It mounts but I cannot see the local mount point at all in thunar or Panplayer2.
    --- Double Post Merged, Feb 19, 2017, Original Post Date: Feb 19, 2017 ---
    I get an error saying it has to be set in /etc/fuse.Conf but that file is blank.

    I may try addgroup <username> fuse
    --- Double Post Merged, Feb 19, 2017 ---
    No results with addgroup
    --- Double Post Merged, Feb 19, 2017 ---
    Added to fuse.conf still doesn't work.

    Really strange that thunar sees all files but panplayer2 doesn't
     
  6. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,944
    Strace would help here, I don't know if it's included in Zaxxon.
    Mount the pnd, strace the executable, and browse.
     
  7. Swordfish II

    Swordfish II Very Active Member

    Joined:
    May 20, 2015
    Messages:
    587
    I'll give it a shot later. At this point I believe the issue lies with panplayer2

    (Maybe permissions are different for zaxxon/stuff on the nand as gigolo, sshfs, and thunar are all on nand... But eliminating that argument filezilla is a pnd and sees all files and transfers work fine. I also don't think it is server side since there is only an issue with panplayer2)
     
    Last edited: Feb 19, 2017
  8. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,944
    Anyway, you can probably mount the pnd and launch the file with a command line.
     
  9. FBnil

    FBnil ¡sɥʇuoɯ oʍʇ uı ɐɹʎԀ

    Joined:
    Dec 14, 2012
    Messages:
    1,993
    Location:
    Yurp
    can you make an empty local directory, and symlink a few files from the sshmount... THEN try to access those symlinks in panplayer...
     
  10. Swordfish II

    Swordfish II Very Active Member

    Joined:
    May 20, 2015
    Messages:
    587
    That would be a lot of symlinks with 1TB of videos, mostly in seperate folders. I may try file association since thunar can access them.
     
  11. Swordfish II

    Swordfish II Very Active Member

    Joined:
    May 20, 2015
    Messages:
    587
    Wahoo!

    Did not figure out what the deal with panplayer2 was, but I did figure out how to associate video files... So I took up some nand space and did it.

    Gigolo mounts can now be opened directly and stream pretty nicely all be it in windowed form, best with an external WiFi dongle. Still need to test the video out with it though.
     
    Last edited: Feb 20, 2017
    FBnil likes this.
  12. kuru

    kuru Irate Pyrate

    Joined:
    Jan 13, 2009
    Messages:
    1,576
    Location:
    the mockracy
    Maybe @Pickle could help with the original gmenu/picklelauncher issue.
     
    Swordfish II likes this.
  13. Swordfish II

    Swordfish II Very Active Member

    Joined:
    May 20, 2015
    Messages:
    587
    Probably. When I mounted the pnd to extract the bin and libs I saw a line regarding permissions which is likely all that needs tweaking.

    I am happy with this solution if/until the launcher is tweaked
     
  14. Pickle

    Pickle Mega GP Mania

    Joined:
    May 30, 2006
    Messages:
    5,373
    Location:
    Detroit, Michigan
    Yeah im not handling symlinks, right now they just get detected as files and are ignored.
    I will try and see if theres a way i can handle them.
     
    levi and Swordfish II like this.

Share This Page

Loading...