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

File explorer PC files samba acces

Scheduled Pinned Locked Moved Support
24 Posts 7 Posters 5.3k Views 2 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.
    • K Offline
      Keneda
      last edited by Keneda 14 Apr 2020, 13:45

      Hi!

      How can i access files on my PC (windows 7) with file explorer app using SMB?
      Is it working?

      I activated network share on PC, i use wifi via internet box, and when i select network in UT file browser i see workgroup and if i access it i see my box and PC.

      But if i try access my pc i get the error in UT file browser :
      Handling file error
      path or url may not exist or cannot be read: smb://pc_name

      I know it worked some time ago with old canonical ut and old file browser, then it stopped working because of a crash bug with last canonical ut file browser when trying network access in it.

      But now network in file browser is working again i'd like to use it.

      What am i doing wrong?

      PS : It also worked on androïd with ES File Explorer.

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

      N 1 Reply Last reply 14 Apr 2020, 18:00 Reply Quote 1
      • N Offline
        nogoogle @Keneda
        last edited by 14 Apr 2020, 18:00

        @Keneda I have no problem accessing smb shares via wifi on my FP2 (OTA11). What does not work is adding them through clicking on "network" and "workgroup" in the file manager. Try adding the URL manually as item, the share will appear with a symbol for a file not folder. At least worked in my case. You can then add it to "places". Loading large folders is quite slow and can take a while (e.g. large music library).

        K 1 Reply Last reply 14 Apr 2020, 18:48 Reply Quote 0
        • K Offline
          Keneda @nogoogle
          last edited by Keneda 14 Apr 2020, 18:48

          @nogoogle said in File explorer PC files smb acces:

          Try adding the URL manually as item

          How and where? URL is smb:// ?

          EDIT : i tried add smb://pc_name as new file and new folder in file manager, didn't work, same with trying access this in browser.

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

          1 Reply Last reply Reply Quote 0
          • N Offline
            nogoogle
            last edited by nogoogle 14 Apr 2020, 19:30

            Go to your home directory and open the file manager places configuration file:
            .config/com.ubuntu.filemanager/places.conf
            in a text editor. You will find a line starting with

            userSavedLocations=/otherplace/otherdirectory

            add your URL for the smb-server at the end after a comma. The line should now look something like

            userSavedLocations=/otherplace/otherdirectory, smb://pc_name/smb_target_share

            Save it and restart file manager. "smb_target_share" should now appear under "places" in your file manager. Tap on it and it should connect (at least did it in my case).

            K P 2 Replies Last reply 14 Apr 2020, 21:58 Reply Quote 0
            • K Offline
              Keneda @nogoogle
              last edited by Keneda 14 Apr 2020, 21:58

              @nogoogle
              Thanks. Sadly i have exactly same error as with using Network "folder".
              Maybe something on windows side.

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

              1 Reply Last reply Reply Quote 0
              • K Offline
                Keneda
                last edited by Keneda 20 Apr 2020, 12:06

                I tested with flyme 4.2.8.4A MX4 file explorer i have, and it worked.
                It asked me for Nick and Password from my computer account, and then i was able to explore files.

                So it's not windows side problem.

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

                1 Reply Last reply Reply Quote 0
                • H Offline
                  herr-b
                  last edited by 20 Jun 2020, 14:59

                  Do you can transfer files from phone to your smb share? I get an error message "Could not create the directory: OK". The other direction is working, I can copy files from my smb share to UT/my phone.
                  screenshot20200620_165406480.png

                  K 2 Replies Last reply 20 Jun 2020, 15:52 Reply Quote 0
                  • K Offline
                    Keneda @herr-b
                    last edited by 20 Jun 2020, 15:52

                    @herr-b said in File explorer PC files smb acces:

                    Can you transfer files from phone to your smb share?

                    No i can't anymore between my uTouch phone and my windows 7 PC, that's why i created this topic in the first place.

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

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      Keneda @herr-b
                      last edited by Keneda 30 Mar 2021, 21:19

                      @herr-b
                      So i tried tonight to save my share directory, and as my usb data plug seems to be dead, i tried again with samba file manager using @nogoogle workaround, and that time i was able to connect to my PC shared folders (i think last time i made a mistake with path name... :grinning_face_with_sweat: ).

                      But like you i can just read files/folders on PC, not write, and i get exactly the same error as your screenshot...

                      So i used wifitransfert.

                      That would be so conviniant to have samba working both ways again :grinning_face_with_big_eyes:

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

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        PierPaolo @nogoogle
                        last edited by 12 Apr 2021, 08:53

                        @nogoogle hi to all, I tried your solution but in .config/com.ubuntu.filemanager/ i found only the file .config/com.ubuntu.filemanager/com.ubuntu.filemanager.conf, i created a new file with name places.conf but nothing happened, do you have any idea???

                        N K 2 Replies Last reply 12 Apr 2021, 22:44 Reply Quote 0
                        • N Offline
                          nogoogle @PierPaolo
                          last edited by 12 Apr 2021, 22:44

                          @pierpaolo the content of the file places.conf is like this (ignore the line numbers they are from the editor):

                          1 [General]
                          2 userRemovedLocations=/home/phablet/.local/share/evolution/calendar/system, /home/phablet/.local/share/evolution/addressbook/system
                          3 userSavedLocations=/home/phablet/.local/share/evolution, smb://sambaservername/sharedirectory

                          This works on my FP2.

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            Keneda @PierPaolo
                            last edited by 13 Apr 2021, 00:15

                            @pierpaolo
                            Remember, this way you can only download files from computer, you can't upload anything on it.
                            The only way right now to do it in an easy way is to use wifitransfert.

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

                            M 1 Reply Last reply 13 Apr 2021, 16:19 Reply Quote 0
                            • M Offline
                              Markatrafik @Keneda
                              last edited by 13 Apr 2021, 16:19

                              @keneda this is a Linux, and can be used directly...

                              mkdir ~/archive && mount //10.20.30.40/archive ~/archive -t cifs -o username=nobody,password=xxxxxx,rw,noexec,nosuid,noacl,iocharset=cp437,uid=32011,gid=32011,noperm,file_mode=0660,dir_mode=0770
                              

                              and use any application... 🙂

                              K M 2 Replies Last reply 13 Apr 2021, 16:35 Reply Quote 0
                              • K Offline
                                Keneda @Markatrafik
                                last edited by Keneda 13 Apr 2021, 16:35

                                @markatrafik said in File explorer PC files samba acces:

                                and can be used directly...

                                What are you talking about? What can be used directly?

                                An what "is a linux"? My PC is not.

                                Remember, uTouch is not only for GNU/Linux power command line users... And will not spread like you are talking about on another thread, if it is not a minimum graphical user friendly.

                                For dumb user like me, wifitransfert is the best actual way to tranfer any file FROM uTouch device TO computer, wireless.

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

                                M 1 Reply Last reply 13 Apr 2021, 16:50 Reply Quote 1
                                • M Offline
                                  Markatrafik @Keneda
                                  last edited by 13 Apr 2021, 16:50

                                  @keneda You don't give the impression of a dumb user. On the contrary, an cool hacker, who is correcting runtime code in the RAM directly with hexeditor... at least, that is my impression. 😉

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    marc123454321 @Markatrafik
                                    last edited by 22 Apr 2021, 19:46

                                    @markatrafik said in File explorer PC files samba acces:

                                    mount //10.20.30.40/archive ~/archive -t cifs -o username=nobody,password=xxxxxx,rw,noexec,nosuid,noacl,iocharset=cp437,uid=32011,gid=32011,noperm,file_mode=0660,dir_mode=0770

                                    Hey markatrafik,

                                    maybe you can help me I'm allways gettin a mount error(95): Operation not supported when trying to mount an samba file share.
                                    And I cant find my samba via file explorer.

                                    Marc

                                    M 1 Reply Last reply 29 Apr 2021, 18:29 Reply Quote 0
                                    • M Offline
                                      Markatrafik @marc123454321
                                      last edited by Markatrafik 29 Apr 2021, 18:29

                                      @marc123454321 If you want to mount in this way, it is better, of course, to make a script so that you do not have to type such command every time. Make sure that the username and password are correct. The command may need the root privileges, you can try to use sudo before it, also try adding yet another parameter: vers=2.0

                                      M 1 Reply Last reply 20 May 2021, 21:56 Reply Quote 0
                                      • M Offline
                                        marc123454321 @Markatrafik
                                        last edited by 20 May 2021, 21:56

                                        @markatrafik
                                        Hey,
                                        Sorry for the late answer. I still font get smb working on my phone (Oneplus 3).
                                        For mount with -o vers=2.0 im gettin a error 22 --> unknown option.
                                        Do you have any idea how to fix that? Smb access is quiet important for me.

                                        Marc

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          marc123454321
                                          last edited by 18 Jun 2021, 10:23

                                          Could anyone help with this problem or am I the only one having troubles using a samba share?
                                          Marc

                                          AppLeeA 1 Reply Last reply 18 Jun 2021, 11:51 Reply Quote 0
                                          • AppLeeA Offline
                                            AppLee @marc123454321
                                            last edited by 18 Jun 2021, 11:51

                                            @marc123454321
                                            Honestly I never tried.

                                            SSH could be enabled given that you upload your public key to the phone.
                                            So I'm only using SCP or MTP via USB to access my files.

                                            SAMBA is slow and unreliable from my past experience so I never tried it with Ubuntu Touch.
                                            IIRC there is an app but it's old and maybe broken since then...

                                            M 1 Reply Last reply 18 Jun 2021, 16:06 Reply Quote 0
                                            • First post
                                              Last post