UBports Robot Logo UBports Forum
    • 版面
    • 最新
    • 標籤
    • 熱門
    • 使用者
    • 群組
    • 搜尋
    • 註冊
    • 登入

    Mount Samba

    已排程 已置頂 已鎖定 已移動 Solved Support
    6 貼文 3 Posters 548 瀏覽 1 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
      回覆
      • 在新貼文中回覆
      登入後回覆
      此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
      • Y 離線
        ygrex
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 0
        • Y 離線
          ygrex @MrT10001
          最後由 編輯

          @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 條回覆 最後回覆 回覆 引用 0
          • MrT10001M 離線
            MrT10001
            最後由 編輯

            @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 條回覆 最後回覆 回覆 引用 0
            • Y 離線
              ygrex @MrT10001
              最後由 編輯

              @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 條回覆 最後回覆 回覆 引用 0
              • Y ygrex has marked this topic as solved on
              • KenedaK 離線
                Keneda @ygrex
                最後由 編輯

                @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 條回覆 最後回覆 回覆 引用 0
                • Y 離線
                  ygrex @Keneda
                  最後由 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 條回覆 最後回覆 回覆 引用 3
                  • KenedaK 離線
                    Keneda @ygrex
                    最後由 編輯

                    @ygrex 👍

                    2015-2023 : Meizu MX4 ☠️⚰️✝️
                    2023-2024 : Nexus 5 ☠️⚰️✝️
                    2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                    🇲🇫🇬🇧

                    1 條回覆 最後回覆 回覆 引用 0
                    • 第一個貼文
                      最後的貼文