[tuto] 8.3.5, openSUSE Tumbleweed, installation

Moderators: Site Moderators, FAHC Science Team

promeneur
Posts: 211
Joined: Tue Aug 07, 2012 11:59 am
Hardware configuration: openSUSE Tumbleweed, x86_64,Asrock B760M-HDV/M.2 D4, Intel Core i3-12100, 16 GB, Intel UHD Graphics 730, NVIDIA GeForce GT 1030, Edup-Love EP-9651GS Wi-Fi Bluetooth, multicard reader USB 3.0 startech.com 35fcreadbu3, Epson XP 7100, Headset Bluetooth 3.0 Philips SHQ7300

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Post 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.
Image
Curiosity
Posts: 12
Joined: Fri May 03, 2024 10:46 pm

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Post 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.
Marcos FRM
Posts: 10
Joined: Fri Feb 23, 2024 6:26 pm

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Post by Marcos FRM »

Curiosity wrote: Tue May 07, 2024 9:09 pm
Marcos FRM wrote: Tue May 07, 2024 6:31 pm cbang packaging machinery is working fine on Fedora/RHEL and openSUSE. Give viewtopic.php?p=363756#p363756 a try (you can git checkout the release tags before building).
I'm not the least bit interested in local builds that rape rpmbuild. I'm using this https://build.opensuse.org which results in 5 repositories there https://software.opensuse.org/package/f ... stet-alpha

To all openSUSE users: Please switch to package "fah-client-bastet-alpha".
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...
Last edited by Marcos FRM on Thu May 09, 2024 11:20 am, edited 1 time in total.
Marcos FRM
Posts: 10
Joined: Fri Feb 23, 2024 6:26 pm

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Post 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
Curiosity
Posts: 12
Joined: Fri May 03, 2024 10:46 pm

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Post 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.
Curiosity
Posts: 12
Joined: Fri May 03, 2024 10:46 pm

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Post 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.
Post Reply