Page 1 of 3

[tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Mon Feb 19, 2024 11:06 am
by promeneur
0. Prerequisite

This tutorial is for openSUSE Tumbleweed. We can expect to use it with success with openSUSE Leap.

You can add the 8.3.5 to the 7.6.21. they can run simultaneously.
Beware of the temperature of your CPU and GPU.
Beware that cpulimit can limit only one occurrence of a core.
If you have for example two a8 then only one will be limited by cpulimit.

Here a script using cpulimit to limit serveral occurrences of the same app

https://aweirdimagination.net/2020/08/0 ... processes/

Here a tutorial for cooling your PC.

viewtopic.php?t=37572

1. Creating a rpm from 8.3.5 deb

Install "alien" app as root

sudo zypper addrepo https://download.opensuse.org/repositor ... nager.repo
sudo zypper refresh
sudo zypper install alien

for Leap 15.6

sudo zypper addrepo https://download.opensuse.org/repositor ... ecsos.repo
sudo zypper refresh
sudo zypper install alien

for Leap 15.5

sudo zypper addrepo https://download.opensuse.org/repositor ... nager.repo
sudo zypper refresh
sudo zypper install alien


download the 8.3.5 deb package at https://foldingathome.org/beta

in the folder containing the deb package open a text console run

sudo alien -r --script fah-client_8.3.5_amd64.deb

2 Installation of fah-client

2.1. With the Yast software manager install the 8.3.5 rpm

right click on the rpm then in "open with" select "Yast software"

2.2. Create a group "fah-client"

With Yast tool in "security and users" select "groups and users manager"

Select "group" tab

in "filter definition" select "system group"

click on "add"

fill the field "group name" with "fa-client"

then "OK"

2.3. Create a user "fah-client"

Select "user" tab

In "filter definition" select "system user"

click on "add"

In "user data" tab

fill the field "Complete name" with "user for fah-client"

fill the field "user name" with "fah-client"

fill the password. I used the root password. Perhaps there is something better.

In "details" tab

in "default group" select "fah-client" group

in "supplementary groups" check "video" group

then "OK"

2.4. Creating folders used by fah-client app

As root you must create with dolphin

/etc/fah-client/

/var/lib/fah-client/

/var/log/fah-client/

all with the following ACL

owner : can view and modify
group : can only view
others : no access

user : fah-client
group : fah-client

2.5. Creating config.xml file

In /etc/fah-client/

as root with dolphin create the file config.xml

fill the file with the statements

<config>
</config>

3. Running the systemd service file

3.1. Modify the fah-lient.service file in /usr/lib/systemd/system/

In [Unit] replace the following statements

After=network.target

by the following statements

After=syslog.target network-online.target remote-fs.target
Wants=network-online.target

In [Service] replace the following statements

User=fah-client

by the following statements

Type=simple
User=fah-client
Group=fah-client
RuntimeDirectory=fah-client
RuntimeDirectoryMode=0755
PIDFile=/run/fahclient/fah-client.pid
WorkingDirectory=/var/lib/fah-client
EnvironmentFile=-/etc/sysconfig/fah-client

restart the PC according to the OS is aware of the new user and group "fah-client"

3.2. Run the fah-client service

in a text console execute

sudo sytemctl start fah-client

wait some seconds

sudo systemctl status fah-client

check that fah-client is running (no "error", no "fail").
It must be "active (running)".

4. Finishing the settings

The fah-client service must start when the PC starts.
run

sudo systemctl enable fah-client


with Firefox go to https://beta.foldingathome.org/

click on the toothed wheel

fill your user name, team, passkey

choose the number of cpu you want to dedicate to the cpu and gpu jobs

enable your gpu by checking

click on "save" then return to the previous page.

watch the downloading of cores and the beginning of the computing

Enjoy :D

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Mon Feb 19, 2024 12:00 pm
by calxalot
Both v7 and v8 will try to use port 7396.

If one wants to use both, port 7396 should disabled on v7. I think the client option is web-enable false

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Mon Feb 19, 2024 12:11 pm
by promeneur
thanks

I don't use simultaneously the two versions. One version is sufficient.

It seems that the 8.3.5 is mature enought to switch to the 8.3.5.

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Tue Feb 20, 2024 9:46 am
by promeneur
Today, for the very first time, fah-client uploaded one cpu and one gpu works. My account was credited with success. :D

Long life to fah-client.

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Fri Feb 23, 2024 6:33 pm
by Marcos FRM
Please compile from source instead. The generated RPM should work on openSUSE.

Code: Select all

sudo zypper -n in git scons gcc-c++ libopenssl-devel zlib-devel libbz2-devel systemd-devel rpm-build systemd-rpm-macros

git clone https://github.com/cauldrondevelopmentllc/cbang
git clone https://github.com/foldingathome/fah-client-bastet

export CBANG_HOME=$PWD/cbang
scons -C cbang
scons -C fah-client-bastet
scons -C fah-client-bastet package
Install double-clicking on the RPM file. GNOME Software or similar will take care of it. Or use the terminal:

Code: Select all

sudo zypper in ./fah-client-bastet/fah_client-<version>-1.x86_64.rpm
Ignore ("i") when zypper complains the package is not signed.

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sat Feb 24, 2024 4:37 am
by promeneur
@Marcos FRM

Thanks

I will try

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Fri May 03, 2024 11:10 pm
by Curiosity
I switched to the beta SW too. "fah-client-bastet" version 8.3.8 is available for several openSUSE distributions at https://software.opensuse.org/package/fah-client-bastet

It's pretty much untested, feedback is welcome!

Have fun
Curiosity

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sat May 04, 2024 2:47 am
by Joe_H
Curiosity wrote: Fri May 03, 2024 11:10 pm I switched to the beta SW too. "fah-client-bastet" version 8.3.8 is available for several openSUSE distributions at https://software.opensuse.org/package/fah-client-bastet

It's pretty much untested, feedback is welcome!

Have fun
Curiosity
Note that v8.3.8 is not a beta version, it is still an alpha version and problems are expected. The current public beta is v8.3.5.

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sat May 04, 2024 7:44 am
by promeneur
Curiosity wrote: Fri May 03, 2024 11:10 pm I switched to the beta SW too. "fah-client-bastet" version 8.3.8 is available for several openSUSE distributions at https://software.opensuse.org/package/fah-client-bastet

It's pretty much untested, feedback is welcome!

Have fun
Curiosity
thanks

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sun May 05, 2024 8:45 am
by promeneur
Curiosity wrote: Fri May 03, 2024 11:10 pm I switched to the beta SW too. "fah-client-bastet" version 8.3.8 is available for several openSUSE distributions at https://software.opensuse.org/package/fah-client-bastet

It's pretty much untested, feedback is welcome!

Have fun
Curiosity
fah-client does not start

Details :

Code: Select all

fah-client.service - Folding@Home V7 Client
     Loaded: loaded (/usr/lib/systemd/system/fah-client.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Sun 2024-05-05 10:37:39 CEST; 28s ago
   Duration: 14ms
       Docs: https://foldingathome.org/support/faq/installation-guides/linux/
    Process: 27196 ExecStart=/usr/bin/fah-client /etc/fah-client/config.xml $FAHCLIENT_OPTIONS (code=exited, status=1/FAILURE)
    Process: 27197 ExecStartPost=/bin/sh -c echo $MAINPID >/run/fah-client/fah-client.pid (code=exited, status=0/SUCCESS)
   Main PID: 27196 (code=exited, status=1/FAILURE)
        CPU: 104ms

May 05 10:37:39 grincheux fah-client[27196]: 08:37:39:I1:       Exec: /usr/bin/fah-client
May 05 10:37:39 grincheux fah-client[27196]: 08:37:39:I1:*******************************************************************
May 05 10:37:39 grincheux fah-client[27196]: 08:37:39:I2:
May 05 10:37:39 grincheux fah-client[27196]: 08:37:39:I2:  
May 05 10:37:39 grincheux fah-client[27196]: 08:37:39:I2:  
May 05 10:37:39 grincheux fah-client[27196]: 08:37:39:I2:
May 05 10:37:39 grincheux fah-client[27196]: 08:37:39:I1:Opening Database
May 05 10:37:39 grincheux fah-client[27196]: 08:37:39:E :Exception: Info category 'Folding@home Client' does have key 'Revision'.
May 05 10:37:39 grincheux systemd[1]: fah-client.service: Main process exited, code=exited, status=1/FAILURE
May 05 10:37:39 grincheux systemd[1]: fah-client.service: Failed with result 'exit-code'.

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sun May 05, 2024 8:51 am
by promeneur
@curiosity

fah-web-client-bastet is not installed

or at least in kde menu a launcher to display https://beta.foldingathome.org

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sun May 05, 2024 1:00 pm
by promeneur
@curiosity

replacing fah-client exe by the one from
https://master.foldingathome.org/builds ... se.tar.bz2
resolves the problem. FAH runs well.

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sun May 05, 2024 7:31 pm
by Curiosity
promeneur wrote: Sun May 05, 2024 8:45 am fah-client does not start
Not good, sorry for that. Meanwhile it starts, however it doesn't recognize my GPU yet. The build scripts are really odd. I'm on it.

Kind regards
Curiosity

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sun May 05, 2024 7:36 pm
by Curiosity
promeneur wrote: Sun May 05, 2024 8:51 am fah-web-client-bastet is not installed
I don't plan to package this, because it's a "development web server" "to run your own frontend server for testing purposes."

Is there a good reason, why you would need that?

Have fun
Curiosity

Re: [tuto] 8.3.5, openSUSE Tumbleweed, installation

Posted: Sun May 05, 2024 11:30 pm
by calxalot
Nobody should be packaging alpha builds, which are frequently broken. Bleeding edge builds even more so.

v8.3.8 is broken in multiple ways on all platforms.