Configuring ArchiSteamFarm card for Ubuntu

Archisteamfarm (hereinafter referred to as ASF) is a multi account simulation running tool based on SteamKit2. Based on ASF, it can realize the functions of automatic card hanging, festival activities, command line activation, transaction BOT and so on. Hosting ASF in the cloud server can realize the cloud card hanging function based on ASF.

Generate profile for ASF

First in asf.ifibe.com Generate the configuration file required for ASF operation, which is divided into global configuration file ASF JSON and BOT configuration files botname JSON. Please note: ASF ifibe. Com does not store any information for you. The program can even run offline

Generate global profile

ASF. The generation structure of JSON is as follows. Here, the operation behavior of ASF and administrator account are mainly configured to execute corresponding instructions through chat window or IPC.

{
    "AutoRestart": true,
    "Blacklist": [],
    "CommandPrefix": "!",
    "ConfirmationsLimiterDelay": 10,
    "ConnectionTimeout": 90,
    "CurrentCulture": null,
    "Debug": false,
    "FarmingDelay": 15,
    "GiftsLimiterDelay": 1,
    "Headless": false,
    "IdleFarmingPeriod": 8,
    "InventoryLimiterDelay": 3,
    "IPC": false,
    "IPCPassword": null,
    "LoginLimiterDelay": 10,
    "MaxFarmingTime": 10,
    "MaxTradeHoldDuration": 15,
    "OptimizationMode": 0,
    "Statistics": true,
    "SteamMessagePrefix": "/me ",
    "SteamOwnerID": 0,
    "SteamProtocols": 7,
    "UpdateChannel": 1,
    "UpdatePeriod": 24,
    "WebLimiterDelay": 300,
    "WebProxy": null,
    "WebProxyPassword": null,
    "WebProxyUsername": null
}

Generate BOT profile

BOTNAME.JSON configuration is independent of each other in ASF operation. If you have multiple accounts, please set them separately.

{
    "AcceptGifts": false,
    "AutoSteamSaleEvent": false,
    "BotBehaviour": 0,
    "CustomGamePlayedWhileFarming": null,
    "CustomGamePlayedWhileIdle": null,
    "Enabled": false,
    "FarmingOrders": [],
    "GamesPlayedWhileIdle": [],
    "HoursUntilCardDrops": 3,
    "IdlePriorityQueueOnly": false,
    "IdleRefundableGames": true,
    "LootableTypes": [1, 3, 5],
    "MatchableTypes": [5],
    "OnlineStatus": 1,
    "PasswordFormat": 0,
    "Paused": false,
    "RedeemingPreferences": 0,
    "SendOnFarmingFinished": false,
    "SendTradePeriod": 0,
    "ShutdownOnFarmingFinished": false,
    "SteamLogin": null,
    "SteamMasterClanID": 0,
    "SteamParentalCode": null,
    "SteamPassword": null,
    "SteamTradeToken": null,
    "SteamUserPermissions": {},
    "TradingPreferences": 0,
    "TransferableTypes": [1, 3, 5],
    "UseLoginKeys": true
}

Install ASF (under Ubuntu 18.04 LTS)

Since ASF 3.0 has updated its support for Linux operation, the new version of ASF will not need to be configured separately NET Core dependency, please download the latest version of ASF and run it directly. If there are special needs, refer to content 1 NET Core dependency configuration.

to configure. NET Core dependency is not necessary

Install the following dependent packages on the command line using apt get install as required

libcurl(libcurl4,libcurl3)
libicu(The latest version on your distribution, for example libicu60)
libkrb5-3(krb5-libs)
liblttng-ust0(lttng-ust)
libssl(libssl1.1,openssl-libs,The latest 1 in your distribution.1.X Version)
zlib1g(zlib)

Download ASF installation package

Directly in ASF publishing page Find the appropriate ASF version for the current operating system and download the zip package.

unzip the downloaded ASF The directory tree obtained by zip is as follows

\ASF (Place all your contacts ASF Related things)
  ├── ASF shortcut.lnk (ASF Shortcut to, optional)
  ├── Config shortcut.lnk (Shortcut to configuration, optional)
  ├── Commands.txt (Some commands you record are optional)
  ├── MyExtraScript.bat (Some relevant scripts you use, optional)
  ├── ... (In short, here are some of your own and ASF Relevant things are optional)
  └── Core (ASF The folder used by itself, unzip it ASF Where to install the package)
       ├── ArchiSteamFarm.dll
       ├── config
       └── (...)

Empower ArchiSteamFarm program in ASF directory, and enter sudo chmod +x ArchiSteamFarm on the command line.

Configure ASF

Put the first step in asf.ifibe.com ASF generated in JSON and bot Copy JSON to the config folder in the ASF directory.

Run ASF (Mount ASF to the cloud)

Test whether the ASF configuration is correct

Use command line input in the ASF directory/ ArchiSteamFarm starts ASF and checks the console output. If the account needs to enter secondary verification during each login, you can use Screen to mount the ASF process on the cloud, but this method is inefficient, so it is not recommended.

Run ASF in Screen mode

Create a new Screen session window in the ASF directory and run the ASF program. For specific Screen commands, refer to the following

$ sudo apt-get install screen    #Install Screen
$ screen -S <name>               #Create a Screen window
$ screen -ls                     #Lists all active Screen windows
$ screen -r <id>                 #Resume the session with the specified id
$ kill -9 <id>                   #Ends the process with the specified id

After the configuration in Screen is completed, use LCTRL+A+D to separate the session. At this time, you can exit safely.

Running ASF in PM2 mode (recommended)

Use PM2 for reference Simple use of Pm2 as a process assistant manager , it is recommended to import the authentication key to open the secondary authentication account into ASF for use (PM2 operation requires that ASF has configured 2FA of the corresponding account).

Using ASF UI

ASF UI is a friendly web interaction platform for ASF. It communicates through IPC and can manage and view the operation of ASF on the web page.

Modify ASF IPC item in JSON is true

"IPC": true,

After running ASF, the browser opens LocalHost:1242 to access the ASF console. Because the console can directly execute command line instructions, placing it in the server will expose the console to the external network, it is recommended to place the ASF UI in the local environment for management, or set a high-strength password in the IPC Password entry.

Import secondary authentication key (2FA)

Export of Android phone

First, the Android device needs to be root. Use the resource manager with root permission to find com.com in the / data/data folder valvesoftware. android. steam. Community and export it to standby. Will com valvesoftware. android. steam. Change the name of files / steamguard steamid in the community folder to botname Mafile (which needs to be the same as the name of the account configuration file for opening 2FA), copy it to the config folder in the ASF directory, run the ASF console, and the output is as follows:

[*] INFO: ImportAuthenticator() <1> Will .maFile Convert to ASF Format
<1> Please enter your device ID (include"android:"):

At this point on COM valvesoftware. android. steam. Find shared in the community folder_ prefs/steam. uuid. After the XML is opened, find the DeviceID key value and copy it in the ASF console to complete the import (this value should be in the XML tag, starting with Android:)

[*] INFO: ImportAuthenticator() <1> Successfully imported mobile phone validator!

Note: if there is an error in inputting DeviceID, you will get a disabled 2FA function, that is, the verification token is normal, but the transaction confirmation cannot be accepted. At this time, you can change the BOT in config Delete the DB file and repeat the above import operation.

Import maFile file directly

See for yourself

{
  "shared_secret": "STRING",
  "identity_secret": "STRING",
  "device_id": "STRING"
}

ASF common commands

command

jurisdiction

explain

2fa

Master

Generates a temporary {two-step authentication token for the specified robot

2fano

Master

Reject {two-step verification} transaction confirmation of all waiting operations for the specified robot

2faok

Master

Accept {two-step verification} transaction confirmation of all waiting operations for the specified robot

addlicense

Operator

Activate the given Licenses for the specified robot

balance

Master

Displays the Steam wallet balance of the specified robot

level

Master

Displays the Steam account level of the specified robot

redeem

Operator

Activate the given game serial number or wallet recharge code for the specified robot

r

Same as redeem

Same as redeem

stats

Owner

Displays process statistics, such as managed memory usage

status

FamilySharing

Displays the status of the specified robot

sa

Same as status

status

Added by Welling on Wed, 19 Jan 2022 21:19:00 +0200