antiX SAMBA manager

Forum Forums General Software antiX SAMBA manager

  • This topic has 19 replies, 4 voices, and was last updated Feb 27-3:33 pm by olsztyn.
Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #132556
    Member
    Robin

      New script(s) to easily manage SAMBA shares.

      Download: https://gitlab.com/Robin-antiX/antix-samba-manager

      You need both script files from the bin folder (even when the Setup SAMBA shares script is a placeholder still; if not present, you’ll get a console error message merely, complaining about a missing command in line 16.)

      Additionally the package antix-my-network containing @PPC’s samba mount script must be installed.

      Why repeat all the details, just, make sure you have installed all the listed as dependencies in description on the download page above.

      Please check, whether everything in the manager works as expected.

      For me there are some issues still with the antix_my_network_neighborhood script (started by the manager when pressing the “Mount another one” button): This script exits already before the new mount was created, having a terminal window still open. This premature exit causes the manager window to return before the new mount can be detected, so it is missing in the listing (click the “Mount another one” button a second time and abort the creation, once the new mount is present actually in your file manager). And then, the password is not passed properly to the mount command obviously by antix_my_network_neighborhood, since there comes up another console window, asking user to enter his password a second time, showing “udevil” has tried to connect as guest first for some strange reason:

      udevil: cifs Versuch als Gast
      mount error(13): Permission denied
      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
      udevil: Versuch mit user=Robert
      Password for Robin@//192.168.178.22/Arbeitsordner:

      And finally, the antix_my_network_neighborhood script causes the new mount to be opened twice in zzzFM.

      @PPC, please fix these issues, so the integration of your script into the SAMBA manager can work.

      Windows is like a submarine. Open a window and serious problems will start.

      #133805
      Member
      Robin

        First fully working version of antiX Samba manager ready.

        Features:

        You can share arbitrary folders of your system. You are not restricted to a specific system subfolder.
        You can mount remote shares to arbitrary empty folders of your system. You are not restricted to a subfolder of /media or /mount or /home.
        You’ll be guided through all steps of sharing a folder with samba, script checks whether all preconditions are met, giving hints what is still missing.

        Current mounts window (green icon):
        This is the window where all shares mounted from remote are managed.
        -Shows all currently mounted Samba shares, with mountpoints, accounts with which they have been logged on to, servers from where shares origin.
        -double click an entry to show details about the mount, it’s modes (e.g. read/write, or samba protocol, permissions, user ID, group ID …)
        -unmount them: tick the tickboxes (multiple allowed) in front of lines before presing “unmount” button.
        -mount new shares, press “mount another one” button. This calles the adapted and fixed antix_my_network_neighborhood script.

        User share window (blue icon):
        This is the place where all SAMBA shared folders of the local PC are managed.
        -Shows all currently set up shares
        -double click on an entry for share details (accredited users for the share, path to shared folder in your file system, read/write permissions)
        -grant Samba access to local folders from remote user.
        -revoke shares (the highlighted share will be removed if pressing the remove button)

        System shares window (grey icon)
        This is the place to manage the default samba system shares (print driver folder, IPC$ service, guest user redirection (user ›nobody‹)
        -Shows all currently existing default system shares Samba comes with.
        -Edit config button allows you to edit the smb.cfg config manually.
        -Samba manual button opens the most recent user manual in default browser.

        Printer shares window (brown icon)
        -This is the place to manage all local SAMBA shared printers.
        -Enable/Disable SAMBA print services
        -Force a full restart of Samba server, e.g. after adding a CUPS printer to your system.
        -(Samba takes care automatically to share all CUPS printers, if service is enabled.)

        All install, setup and account setup windows have red icons.

        Usage: run it with “antiX-samba-mgr” from command line for now.

        On first start (or first use of specific functions) antiX samba manager will guide you through the proper install and setup, step by step. Just follow the instructions given.

        Hint: The Help available from the “Add share” window doesn’t still cover all aspects of antiX samba manager usage, will be updated soon.

        direct download links for current program files from gitlab:
        https://gitlab.com/Robin-antiX/antix-samba-manager/-/raw/main/bin/antiX-samba-mgr?ref_type=heads&inline=false
        https://gitlab.com/Robin-antiX/antix-samba-manager/-/raw/main/bin/antiX-setup-samba-shares?ref_type=heads&inline=false
        https://gitlab.com/Robin-antiX/antix-samba-manager/-/raw/main/bin/antiX-mount-samba-shares?ref_type=heads&inline=false

        Icons: https://gitlab.com/Robin-antiX/antix-samba-manager/-/tree/main/icons?ref_type=heads
        Put all of them into /usr/share/icons/papirus-antix/48×48/apps
        (Possibly you need to run the command “update-icon-caches /usr/share/icons/papirus-antix” to have them registered and recognised as named icons, but I’m not sure about this detail; for me this worked automagically, not sure why or how.)

        Please let me know any issues. Tested on antiX 23.1 runit full here, 32 and 64 bit both.

        ———-
        Some functionality to be added in future versions:

        – User manager: Add/Remove user accounts from Samba user database, list all accredited users, change user passwords, etc.

        – Expert settings: Enable/disable NetBIOS, set workgroup name, change computer host name etc. Show table of current active connections, allowing to kick a user. Start server, stop server.

        Windows is like a submarine. Open a window and serious problems will start.

        #133820
        Member
        techore

          Very nice!

          A refined UI that looks to be very usable.

          #133957
          Member
          Robin

            Update to stable version.

            antiX-samba-mgr version 0.8
            antiX-setup-samba-shares version 0.88
            antix-mount-samba-shares version 2.17

            What is new?
            – Some important bugfixing. If you have the former versions still, you are strongly encouraged to update.
            – Scripts are prepared for localisation now.

            Direct download links for current program files from gitlab:
            https://gitlab.com/Robin-antiX/antix-samba-manager/-/raw/main/bin/antiX-samba-mgr?ref_type=heads&inline=false
            https://gitlab.com/Robin-antiX/antix-samba-manager/-/raw/main/bin/antiX-setup-samba-shares?ref_type=heads&inline=false
            https://gitlab.com/Robin-antiX/antix-samba-manager/-/raw/main/bin/antiX-mount-samba-shares?ref_type=heads&inline=false

            Icons: https://gitlab.com/Robin-antiX/antix-samba-manager/-/tree/main/icons?ref_type=heads
            Put all of them into /usr/share/icons/papirus-antix/48×48/apps
            For some reason in this very folder they are registered automatically as named gtk icons without any further action.

            @anticapitalista: Please, could you package it? That would be really great, so people can upgrade what is in the 23.1 ISOs easily via apt immediately. We shouldn’t wait with this for the translations at transifex to be ready.

            Was done already, unnoticed and silently. Many thanks @anticapitalista !

            ——
            Update:

            You can install antiX Samba manager now simply by using the default package management of your system, e.g.:

            sudo apt-get update
            sudo apt-get install antix-samba-manager

            Windows is like a submarine. Open a window and serious problems will start.

            #133964
            Member
            PPC

              Just to upgrade the instructions that allow to add all the functionality present in antiX 23.1 to antiX 23… What package provides access to this samba scripts? I searched for “samba” and “antix-samba” in the repo, without sucess… 🙁

              #134508
              Member
              Robin

                @olsztyn : Please, could you post the output of the command

                $ smbclient -N -L ›ip-of-your-smb-device‹

                having replaced ›ip-of-your-smb-device‹ by the actual IP of this SMB 1.0 device which isn’t showing up in the mounter listing?

                Btw, please make sure to have latest version from above direct links installed; the packaged version is merely 0.86 of antiX-setup-samba-shares by now; just update to 0.88 by copying the three downloaded files over to your /usr/local/bin folder and make them executable again (your browser will probably remove the exec flags for ugo from the files).

                Windows is like a submarine. Open a window and serious problems will start.

                #134509
                Member
                olsztyn

                  The output of smbclient:

                  $ smbclient -N -L 192.168.0.6
                  protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
                  demo@antix1:~

                  I think the SMB Manager may be missing version=1.0

                  Thanks much for what is working already though…

                  Edit:
                  I did not yet download the patches from the links above…
                  Bitte warten einen augenblick…

                  Update:
                  – Downloaded the three scripts from links in your post above
                  – Copied to /usr/local/bin overlaying the existing ones
                  – Re-tested ‘Shared folders’ in CC

                  Still the same… Does not see SMB 1.0 devices…

                  Update 2:
                  Another issue seems that another execution of ‘Mount another share’ just blinks without display of shares to chose… This I will need to retest to confirm.
                  I need to reboot and methodically reinstall to make sure it does not happen with 0.86 version…

                  • This reply was modified 3 days, 9 hours ago by olsztyn.
                  • This reply was modified 3 days, 9 hours ago by olsztyn.
                  • This reply was modified 3 days, 9 hours ago by olsztyn.

                  Live antiX Boot Options (Previously posted by Xecure):
                  http://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                  #134519
                  Member
                  Robin

                    @olsztyn

                    please try:

                    Add the line
                    client min protocol = NT1

                    to the [global] section of the file on your antiX PC
                    /etc/samba/smb.conf

                    Then try to connect this way:

                    $ smbclient -m NT1 -N -L 192.168.0.6

                    Windows is like a submarine. Open a window and serious problems will start.

                    #134521
                    Member
                    olsztyn

                      client min protocol = NT1

                      to the [global] section of the file on your antiX PC
                      /etc/samba/smb.conf

                      Then try to connect this way:

                      $ smbclient -m NT1 -N -L 192.168.0.6

                      Now it does see the SMB 1.0 box…
                      Output:
                      demo@antix1:~
                      $ smbclient -m NT1 -N -L 192.168.0.6

                      Sharename Type Comment
                      ——— —- ——-
                      IPC$ IPC IPC Service (Iomega ix2-200B)
                      Video Disk
                      Reconnecting with SMB1 for workgroup listing.

                      Server Comment
                      ——— ——-

                      Workgroup Master
                      ——— ——-
                      WORKGROUP IX2-200B
                      demo@antix1:~

                      Regarding the problem re-displaying the list of shares for connecting another share, it does happen with the older scrips too – 0.86, before updating to 0.88… Confirmed.

                      Live antiX Boot Options (Previously posted by Xecure):
                      http://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                      #134524
                      Member
                      Robin

                        @olsztyn
                        Many thanks, this helps a lot. Maybe we can add some logic to make it work now from within GUI.
                        For this, please, could you use the code tags to post the console output? The forum mangles the lines otherwise. Only then I can see the proper structure, and build an extractor for it.

                        Windows is like a submarine. Open a window and serious problems will start.

                        #134525
                        Member
                        olsztyn

                          For this, please, could you use the code tags to post the console output? The forum mangles the lines otherwise. Only then I can see the proper structure, and build an extractor for it.

                          Sorry, I do not know what it means. I am not familiar with forum formatting features..
                          How would I use these tags?

                          • This reply was modified 3 days, 9 hours ago by olsztyn.

                          Live antiX Boot Options (Previously posted by Xecure):
                          http://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                          #134527
                          Member
                          Robin

                            How would I use these tags?

                            Just paste the console output to the forum field, and then mark it, so it is highlighted. Then click the [code] button above the text enter field.

                            Alternatively put manually one backtick before and one backtick behind the code block you have copy-pasted from console.

                            ——-

                            And then, please do the following:

                            Open /usr/local/bin/antiX-mount-samba-shares file in geany.

                            – Go to line 216
                            – Add the statement -m NT1 to the line, precisely in the position where you have seen it on command line already in your above testing, right in between smbclient and -N …

                            Save the file back to disk, and try to connect via GUI from within antiX Samba manager.

                            Windows is like a submarine. Open a window and serious problems will start.

                            #134528
                            Member
                            olsztyn
                              smbclient -m NT1 -N -L 192.168.0.6
                              	Sharename       Type      Comment
                              	---------       ----      -------
                              	IPC$            IPC       IPC Service (Iomega ix2-200B)
                              	Video           Disk      
                              Reconnecting with SMB1 for workgroup listing.
                              	Server               Comment
                              	---------            -------
                              	Workgroup            Master
                              	---------            -------
                              	WORKGROUP            IX2-200B
                              demo@antix1:~

                              $

                              Live antiX Boot Options (Previously posted by Xecure):
                              http://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                              #134529
                              Member
                              olsztyn

                                Add the line
                                client min protocol = NT1

                                to the [global] section of the file on your antiX PC
                                /etc/samba/smb.conf

                                This change makes Samba-manager show SMB 1.0 devices in the list. Big difference. Still fails to connect though.
                                I will edit your script as in your post next.

                                Live antiX Boot Options (Previously posted by Xecure):
                                http://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                                #134530
                                Member
                                Robin

                                  Many thanks again @Olsztyn

                                  The structure allows the extractor to work, so the change in the scriptline should bring it up for you.

                                  makes Samba-manager show SMB 1.0 devices in the list. …. Still fails to connect though.

                                  Did you check the SMB v1.0 Proto Tickbox before connecting?

                                  ——

                                  Single issue we have: This way it won’t connect to the default devices any longer.

                                  So, please try to connect your server from command line without the -m NT1 statement again (but keep the smb.conf addition to the [global] section)
                                  Maybe the entry in smb.conf is enough already…

                                  Windows is like a submarine. Open a window and serious problems will start.

                                Viewing 15 posts - 1 through 15 (of 20 total)
                                • You must be logged in to reply to this topic.