Page 25 of 28

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Sun Feb 02, 2025 8:19 pm
by helmax
for install 1.15 mt-6000 only need use sysupgrade.bin in default GL-inet portal

right?

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Sun Feb 02, 2025 9:00 pm
by ektus
Lantis wrote:
Sun Feb 02, 2025 5:29 pm
Not as it currently stands no sorry.
samba36 is still included in the repository and all of the code still supports it. You can compile Gargoyle and swap it out with ksmbd if you’d like to.
Do I have to compile myself, or just install it with gpkg? Both samba36 and samba40 are available in gpkg list.

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Sun Feb 02, 2025 9:01 pm
by ektus
helmax wrote:
Sun Feb 02, 2025 8:19 pm
for install 1.15 mt-6000 only need use sysupgrade.bin in default GL-inet portal

right?
Yes, as it comes with openwrt from the factory.

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Mon Feb 03, 2025 1:31 am
by Lantis
ektus wrote:
Sun Feb 02, 2025 9:00 pm
Lantis wrote:
Sun Feb 02, 2025 5:29 pm
Not as it currently stands no sorry.
samba36 is still included in the repository and all of the code still supports it. You can compile Gargoyle and swap it out with ksmbd if you’d like to.
Do I have to compile myself, or just install it with gpkg? Both samba36 and samba40 are available in gpkg list.
I haven’t tried. Not in a position to at the moment sorry in the middle of developing a few things and need a stable environment.

It might work, but the two packages conflict each other. So you need to remove ksmbd first. But the gargoyle usb storage package requires one of them, so it will be orphaned.
I think the right sequence of force commands will make it work.

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Mon Feb 03, 2025 1:05 pm
by ektus
The package manager doesn't complain:

Code: Select all

root@Flint2-Gargoyle:~# gpkg install samba36-server
Preparing to install the following packages, which will require 974418 bytes:
	samba36-server

Preparing to install package samba36-server...
	Downloading...
	Downloaded samba36-server successfully.
	Installing samba36-server...
	Successfully installed samba36-server.
Installation of packages successful.
So now to find out how the system decides which server is used...

Using the services plugin, it's possible to disable ksmbd and enable samba. But samba takes it's configuration from /etc/samba, while Gargoyle uses /etc/config/samba.

Correction: Gargoyle uses /etc/config/ksmbd to store information on the ksmbd-driven samba:

Code: Select all

config samba 'global'
        option workgroup 'AHORNBERG'

config sambashare 'public'
        option name 'public'
        option path '/tmp/usb_mount/some_UID'
        option create_mask '0777'
        option dir_mask '0777'
        option browseable 'yes'
        option read_only 'no'
        option guest_ok 'yes'
        list users_rw 'testuser'
/etc/config/share_users contains the users:

Code: Select all

config user 'testuser'
        option password_salt 'xxxxxx'
        option password_sha1 'xxxxxx'

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Mon Feb 03, 2025 5:13 pm
by Lantis
https://github.com/ericpaulbishop/gargo ... age.sh#L51

If the ksmbd utilities exist, Gargoyle will use them as first preference.
Otherwise it uses samba.
You could modify that check to always fail or reverse its decision etc.

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Mon Feb 03, 2025 8:13 pm
by ektus
So to reverse the decision (use samba if available, else ksmbd), it should read like:

Code: Select all

        # whichksmbd="$(which ksmbd.mountd)"
        # [ -n "$whichksmbd" ] && echo "var sambapkg=\"ksmbd\";" || echo "var sambapkg=\"samba\";"

                whichsmbd="$(which smbd)"
        [ -n "$whichsmbd" ] && echo "var sambapkg=\"samba\";" || echo "var sambapkg=\"ksmbd\";"

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Mon Feb 03, 2025 9:26 pm
by Lantis
That looks right to me :)

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Wed Feb 05, 2025 11:42 am
by ektus
It does reverse the priority, so it's now configuring the samba files from the GUI, but I haven't been able to get it working yet. Will have to look further as time permits, perhaps activate some logging to see what's (not) going on...

Re: Gargoyle 1.15.x BETA - 2024-11-13 - Based on OpenWrt 23.05

Posted: Sun Mar 23, 2025 11:54 am
by ViBE
just realised that GL.iNet MT-3000 became supported. can Gargoyle read temperature and able to control the built in fan?