Page 3 of 3
Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation
Posted: Wed May 08, 2024 9:08 am
by promeneur
For those who want the beta version and an almost easy installation.
Install fah-client-bastet-alpha rpm.
Get the beta version (8.3.5) of fah-client executable from
https://download.foldingathome.org/rele ... se.tar.bz2
Give to "root" the right to modify /usr/bin/ folder
As "root", replace the alpha version of fah-client executable by the beta version of fah-client in /usr/bin/ .
Give to root the right to only read the /usr/bin/ folder.
Restart your PC.
Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation
Posted: Wed May 08, 2024 9:01 pm
by Curiosity
Beta 8.3.5 is available at
https://software.opensuse.org/package/f ... astet-beta
I will remove the alpha package soon, unless there's an explicit need for it.
Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation
Posted: Thu May 09, 2024 10:50 am
by Marcos FRM
OBS can build for Fedora/RHEL, right?
We could tweak your spec with
Code: Select all
%if 0%{?sle_version}
foo
%else
bar
%endif
or so for the divergent options. Please use upstream service file and merge there any useful options, dropping useless stuff like RuntimeDirectory=, PIDFile=, EnvironmentFile=, ExecStartPost=, ExecStop=, possible others.
Are you packging /var/lib/fah-client directory?
Code: Select all
%attr (0750, %_name, %_name) /var/lib/%{_name}
Missing "%dir" here?
For the sandbox I think we should add RestrictSUIDSGID=yes and RemoveIPC=yes to the upstream file. With them our settings basically map to the same ones auto applied when DynamicUser=yes is in use. But require much newer systemd (242 and 248), not supported on RHEL 8 (239), Debian 10 (241), Debian 11 (247). It should work anyway, only print a warning.
Also Wants=network-online.target is a big hammer we should avoid. Joseph made some changes to make the client more robust in case of missing network at startup. It should not require this anymore. syslog.target does not exist for more than decade. remote-fs.target is not needed...
Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation
Posted: Thu May 09, 2024 10:54 am
by Marcos FRM
CPUSchedulingPolicy=idle is probably too much (and I am not sure it is actually applied to child processes). This approach is better IMHO:
https://github.com/FoldingAtHome/fah-cl ... nt-8578995
Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation
Posted: Sun May 19, 2024 8:41 pm
by Curiosity
Marcos FRM wrote: ↑Thu May 09, 2024 10:50 am
OBS can build for Fedora/RHEL, right?
Yes, it could. It fails with RHEL-7, because 'BuildRequires: scons' can't be resolved.
Fedora-40 looks better, however a couple of adaptions are required.
Marcos FRM wrote: ↑Thu May 09, 2024 10:50 am
Please use upstream service file and merge there any useful options, dropping useless stuff like RuntimeDirectory=, PIDFile=, EnvironmentFile=, ExecStartPost=, ExecStop=, possible others.
I'm sorry to say that this is MY project on OBS, and I'm adding anything I think is useful.
Marcos FRM wrote: ↑Thu May 09, 2024 10:50 am
Are you packging /var/lib/fah-client directory?
Code: Select all
%attr (0750, %_name, %_name) /var/lib/%{_name}
Missing "%dir" here?
The line works as intended. The semantic of "%dir" isn't need here.
Marcos FRM wrote: ↑Thu May 09, 2024 10:50 am
Also Wants=network-online.target is a big hammer we should avoid. Joseph made some changes to make the client more robust in case of missing network at startup. It should not require this anymore. syslog.target does not exist for more than decade. remote-fs.target is not needed...
All services on openSUSE depending on network connectivity use "network-online.target". This is exactly how I want it. Booting my desktop has absolute priority, whereas I don't care if fah-client comes 1 or 10 seconds later.
Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation
Posted: Sun May 19, 2024 9:05 pm
by Curiosity
AMD users had to replace "libOpenCL.so.1" in the core directory to avoid a crash on openSUSE. This step can now be skipped by installing the latest rpm and adding the line
Code: Select all
FAHCLIENT_OPTIONS="--lib-path=/usr/lib64"
to "/etc/sysconfig/fah-client". This line will already be present for new installations.
Background: fah-client prepends the path of the core directory to the library search path (LD_LIBRARY_PATH). The option "--lib-path" in turn prepends the argument (e.g. /usr/lib64) to the library search path. This way the system libraries are preferred over the libraries shipped with the core.