Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    SOLVED Mount Samba

    Support
    3
    6
    221
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      ygrex last edited by

      Hi,

      Filemanager greys out "+" for Network, neither did I find any pre-installed or available at Store apps to access Samba shares.

      What is the expected app for Ubports OS to mount (mount, not just like smbclient in Android) Samba shares?

      1 Reply Last reply Reply Quote 0
      • Y
        ygrex @MrT10001 last edited by

        @mrt10001 thank you for the reference, in fact it does not provide any solution I wanted, so I ended up with creating a full chroot with debootstrap, running smbnetfs there, and symlinking into necessary shares from /home/phablet/Downloads/shares, so that everything is accessible from default filemanager with no unlocking

        Keneda 1 Reply Last reply Reply Quote 0
        • MrT10001
          MrT10001 last edited by

          @ygrex Search the forums, your questioned has been asked before.

          Check here.

          Xiaomi Redmi Note 7.... And more...
          I have too many devices...

          Y 1 Reply Last reply Reply Quote 0
          • Y
            ygrex @MrT10001 last edited by

            @mrt10001 thank you for the reference, in fact it does not provide any solution I wanted, so I ended up with creating a full chroot with debootstrap, running smbnetfs there, and symlinking into necessary shares from /home/phablet/Downloads/shares, so that everything is accessible from default filemanager with no unlocking

            Keneda 1 Reply Last reply Reply Quote 0
            • Topic has been marked as solved  Y ygrex 
            • Keneda
              Keneda @ygrex last edited by

              @ygrex
              Could your provide what you did step by step embeded in code tag so that any other user can use your workaround without having your knowledge ?
              😊

              2015-Now : Meizu MX4 (Stable) for daily use
              Spare : Nexus 5 (Stable)

              Y 1 Reply Last reply Reply Quote 0
              • Y
                ygrex @Keneda last edited by ygrex

                @keneda I do not have a complete solution for everyone, just what I did:

                1. export LD_PRELOAD= (libtls-padding.so causes unexpected things)
                2. boostrap chroot filesystem as per https://wiki.debian.org/Debootstrap
                3. mount /proc and /sys, bind mount /run/dbus (optional for smbnetfs) and /dev (fuse there)
                4. chroot in with 3003 (and optionally 3004) supplementary groups
                5. add apt_ user to 3003 (and probably 3004) groups
                6. edit /etc/resolv.conf with nameserver of preference
                7. install smbnetfs with apt-get, configure as per https://wiki.gentoo.org/wiki/Smbnetfs (I only needed auth line)
                8. mount smbfs in chrooted environment with allow_others option
                9. on a host filesystem as a phablet user create a symlink under Downloads (any folder accessible by filemanager without unlocking is fine) to the required share(s)
                Keneda 1 Reply Last reply Reply Quote 3
                • Keneda
                  Keneda @ygrex last edited by

                  @ygrex 👍

                  2015-Now : Meizu MX4 (Stable) for daily use
                  Spare : Nexus 5 (Stable)

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post