MacOS configuration file

Moderators: Site Moderators, FAHC Science Team

Post Reply
thaddeusf
Posts: 9
Joined: Mon Feb 17, 2025 2:57 am
Hardware configuration: AMD Zen2 and Zen5
Intel 12th and 13th Gen
ARM Neoverse N
Intel ARC A770
Nvidia 1080 and 3080
Location: Austin and Munich
Contact:

MacOS configuration file

Post by thaddeusf »

Hello.

I'm sorry to create a new thread, but I'm finding conflicting information on configuring the MacOS with my account-token and machine-name. v7 seemed to have a utility. Linux has a straightforward configuration file. Can someone please send me a quick way to do this?

Thanks.
Joe_H
Site Admin
Posts: 8099
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Studio M1 Max 32 GB smp6
Mac Hack i7-7700K 48 GB smp4
Location: W. MA

Re: MacOS configuration file

Post by Joe_H »

Normally you would enter it through the Web Control interface. But if you are talking about a headless Mac, you could use a config.xml file just like on Linux. Location of the file would normally be in /Library/Application Support/FAHClient. That is where the client installer would check for a v7 install and read that file. It also gets read at startup of the client.
Image
thaddeusf
Posts: 9
Joined: Mon Feb 17, 2025 2:57 am
Hardware configuration: AMD Zen2 and Zen5
Intel 12th and 13th Gen
ARM Neoverse N
Intel ARC A770
Nvidia 1080 and 3080
Location: Austin and Munich
Contact:

Re: MacOS configuration file

Post by thaddeusf »

The web control doesn't give me an option for token or changing the machine name. It does let me put in a passphrase, but I need token.

Is the format of the config file the same as linux in the FAHClient folder?
calxalot
Site Moderator
Posts: 1458
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: MacOS configuration file

Post by calxalot »

You normally login to your web control account, which handles any token for you.

The config.xml file is the same as Linux, if you want to do it that way.
thaddeusf
Posts: 9
Joined: Mon Feb 17, 2025 2:57 am
Hardware configuration: AMD Zen2 and Zen5
Intel 12th and 13th Gen
ARM Neoverse N
Intel ARC A770
Nvidia 1080 and 3080
Location: Austin and Munich
Contact:

Re: MacOS configuration file

Post by thaddeusf »

Using /Library/Application Support/FAHClient/config.xml worked like a champ. Thanks all!
thaddeusf
Posts: 9
Joined: Mon Feb 17, 2025 2:57 am
Hardware configuration: AMD Zen2 and Zen5
Intel 12th and 13th Gen
ARM Neoverse N
Intel ARC A770
Nvidia 1080 and 3080
Location: Austin and Munich
Contact:

Re: MacOS configuration file

Post by thaddeusf »

Has anyone made a comprehensive config.xml variable list for v8.4.9? I started reading source on github, but I don't know where to go and it's talking a lot of time. When I'm searching for config.xml details there is a lot of v7 which seems completely different.

Thanks
calxalot
Site Moderator
Posts: 1458
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: MacOS configuration file

Post by calxalot »

There is no guide I know of.
You can see options via

Code: Select all

fah-client --help
Many options are internal things that you should not mess with.
Anything exposed in web control is at best first-run only read from config.xml.
calxalot
Site Moderator
Posts: 1458
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: MacOS configuration file

Post by calxalot »

Example bits from my config.xml

Code: Select all

<config>
  <log-domain v='true'/>
  <http-addresses v='0.0.0.0:7396'/>
  <allow v='127.0.0.1 10.0.0.0/8 192.168.0.0/16 172.16.0.0/12 169.254.0.0/16'/>

  <cause v='alzheimers'/>
  <team v='1971'/>
  <user v='calxalot'/>
</config>
Last 3 are first-run defaults.
You should probably instead use account-token to pre-configure account linking.
Note my allow list is not secure.
thaddeusf
Posts: 9
Joined: Mon Feb 17, 2025 2:57 am
Hardware configuration: AMD Zen2 and Zen5
Intel 12th and 13th Gen
ARM Neoverse N
Intel ARC A770
Nvidia 1080 and 3080
Location: Austin and Munich
Contact:

Re: MacOS configuration file

Post by thaddeusf »

For thread... The v8.4.9 format of config.xml is somewhat different that v7. Here is what works:

On Linux: /etc/fah-client/config.xml
On Mac: /Library/Application Support/FAHClient/config.xml

<config>
<account-token v="asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfas"/>
<machine-name v="XXXXXXXX"/>
<user v="Joe_Mouser"/>
<passkey v="12341234123412342134213412341234"/>
</config>

Thanks.
calxalot
Site Moderator
Posts: 1458
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: MacOS configuration file

Post by calxalot »

The format is the same.
The supported elements (options) has changed.
Post Reply