Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Works well through Proton #9

Open
Beanow opened this issue May 1, 2024 · 0 comments
Open

Works well through Proton #9

Beanow opened this issue May 1, 2024 · 0 comments

Comments

@Beanow
Copy link

Beanow commented May 1, 2024

Not an issue so much as a report.
But here to say, great job 🎉.

Also was able to get this running on Linux with Proton, without much trouble.
I specifically used Proton 8.0-5 and a startup script along these lines:

#!/usr/bin/env bash

# Note: start the server AFTER staring the game through Steam!
# Steam tries to detect whether some process is still running and wait to launch the game.
# Meaning you'll wait forever so long as the grafana server is running.

# -- Configure these values

# Which steam dir is ACC installed in?
STEAM_DIR="~/.steam/steam"

# Where you've extracted the "grafana-bundled.windows-amd64.zip" version
# from https://github.com/alexanderzobnin/grafana-simracing-telemetry/releases
BUNDLE_DIR="~/Downloads/grafana-bundled.windows-amd64"



# -- From here probably no changes required

# WINEPREFIX for Assetto Corsa Competizione
ACC_PREFIX="$STEAM_DIR/steamapps/compatdata/805550"
# Working directory of Grafana bins.
GF_BIN_DIR="$BUNDLE_DIR/grafana-8.5.2/bin"

# Detect what Proton version was used last
PROTON=$(sed -n 4p "$ACC_PREFIX"/config_info | xargs -d '\n' dirname)

# Change the working directory to "/bin" within the Grafana installation.
# We need this, 1. for Grafana to infer what it's "homedir" is.
# 2. Because the included dashboards.yaml uses a relative path from here.
pushd "$GF_BIN_DIR"

# Runs the server.
# Ideally match WINEESYNC (E) or WINEFSYNC (F) to what the game is using.
# Rename the variable below so it's either:
#   WINEESYNC=1 ...
#   WINEFSYNC=1 ...
WINEFSYNC=1 WINEPREFIX="$ACC_PREFIX/pfx" "$PROTON/bin/wine64" "$GF_BIN_DIR/grafana-server.exe"

# Once the server is stopped, go back to our previous working directory.
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant