UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Mount Samba

    Scheduled Pinned Locked Moved Solved Support
    6 Posts 3 Posters 499 Views 1 Watching
    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 Offline
        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 Offline
          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

          KenedaK 1 Reply Last reply Reply Quote 0
          • MrT10001M Offline
            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 Offline
              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

              KenedaK 1 Reply Last reply Reply Quote 0
              • Y ygrex has marked this topic as solved on
              • KenedaK Offline
                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-2023 : Meizu MX4 ā˜ ļøāš°ļøāœļø
                2023-2024 : Nexus 5 ā˜ ļøāš°ļøāœļø
                2024-***** : FPOS Fairphone 5 waiting UT for freedom šŸ˜‰
                šŸ‡²šŸ‡«šŸ‡¬šŸ‡§

                Y 1 Reply Last reply Reply Quote 0
                • Y Offline
                  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)
                  KenedaK 1 Reply Last reply Reply Quote 3
                  • KenedaK Offline
                    Keneda @ygrex
                    last edited by

                    @ygrex šŸ‘

                    2015-2023 : Meizu MX4 ā˜ ļøāš°ļøāœļø
                    2023-2024 : Nexus 5 ā˜ ļøāš°ļøāœļø
                    2024-***** : FPOS Fairphone 5 waiting UT for freedom šŸ˜‰
                    šŸ‡²šŸ‡«šŸ‡¬šŸ‡§

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