Jump to content

Modding:Installing SMAPI on Linux: Difference between revisions

From Stardew Valley Wiki
imported>Shg
m Change link text
imported>AndromedaVii
→Install: Added instruction to make necessary files executable.
 
(2 intermediate revisions by 2 users not shown)
Line 11: Line 11:
<li>Download the [https://smapi.io/ latest version of SMAPI].</li>
<li>Download the [https://smapi.io/ latest version of SMAPI].</li>
<li>Extract the <samp>.zip</samp> file somewhere (but not in your game folder!).</li>
<li>Extract the <samp>.zip</samp> file somewhere (but not in your game folder!).</li>
<li>If you installed Steam through Flatpak, see these instructions:
<li>Ensure that the files "'''install on Linux.sh'''" and "'''internal/linux/SMAPI.Installer'''" are marked as executable, either with your file explorer or by opening a terminal in the extracted directory and entering the command: '''<samp>chmod +x "./install on Linux.sh" "./internal/linux/SMAPI.Installer"</samp>'''</li>
{{collapse|instructions for Flatpak|content=When using Flatpak, you need to change the default game location:
# Open Steam.
# Go to ''Steam > Settings > Downloads''.
# Click ''Steam Library Folders'' under ''Content Libraries''.
# Navigate to <samp>/home/[your username]/.local/share/Steam</samp>, and click ''Select''.
# Make sure the new location you just created is selected, then click "''...''" and select ''Make Default''.
# You may need to uninstall & reinstall the game to move it to the correct folder.
}}</li>
<li>Run the <samp>install on Linux.sh</samp> file, and follow the on-screen instructions.<br />(If the installer asks for your game install path, see [[Modding:Player Guide/Getting Started#Find your game folder|how to find your game folder]].)<br />'''WARNING:''' The <samp>install on Linux.sh</samp> '''has to be run''' in a terminal window using <samp>./install\ on\ Linux.sh</samp> (assuming your terminal window's path is inside the SMAPI installer folder) as there is a bug that can cause issues with the system's syslog by continuously writing log entries for SMAPI versions older than 4.1.0 (which is currently not released). <br />In case the .sh file was run via GUI (i.e. double-clicked) instead of via terminal it can be safely terminated through a GUI task manager or through the <samp>kill -SIGINT [PID]</samp> command where [PID] is the process ID of the running shell process. </li>
<li>Run the <samp>install on Linux.sh</samp> file, and follow the on-screen instructions.<br />(If the installer asks for your game install path, see [[Modding:Player Guide/Getting Started#Find your game folder|how to find your game folder]].)<br />'''WARNING:''' The <samp>install on Linux.sh</samp> '''has to be run''' in a terminal window using <samp>./install\ on\ Linux.sh</samp> (assuming your terminal window's path is inside the SMAPI installer folder) as there is a bug that can cause issues with the system's syslog by continuously writing log entries for SMAPI versions older than 4.1.0 (which is currently not released). <br />In case the .sh file was run via GUI (i.e. double-clicked) instead of via terminal it can be safely terminated through a GUI task manager or through the <samp>kill -SIGINT [PID]</samp> command where [PID] is the process ID of the running shell process. </li>
</ol>
</ol>
Line 26: Line 18:


===SMAPI with Proton===
===SMAPI with Proton===
To make SMAPI work with Proton, you can follow the guide available on [https://stardewvalleywiki.com/Modding:Installing_SMAPI_on_Steam_Deck#Stardew_Valley_in_Proton Stardew Valley in Proton].
To make SMAPI work with Proton, you can follow the guide available on [[Modding:Installing SMAPI on Steam Deck#Stardew Valley in Proton|Stardew Valley in Proton]].
 


==Update SMAPI==
==Update SMAPI==

Latest revision as of 09:20, 8 February 2026

This page explains how to install SMAPI (the tool which lets you use mods) on Linux.

See instructions for: Android • macOS • Steam Deck • Windows.

Install

  1. Download the latest version of SMAPI.
  2. Extract the .zip file somewhere (but not in your game folder!).
  3. Ensure that the files "install on Linux.sh" and "internal/linux/SMAPI.Installer" are marked as executable, either with your file explorer or by opening a terminal in the extracted directory and entering the command: chmod +x "./install on Linux.sh" "./internal/linux/SMAPI.Installer"
  4. Run the install on Linux.sh file, and follow the on-screen instructions.
    (If the installer asks for your game install path, see how to find your game folder.)
    WARNING: The install on Linux.sh has to be run in a terminal window using ./install\ on\ Linux.sh (assuming your terminal window's path is inside the SMAPI installer folder) as there is a bug that can cause issues with the system's syslog by continuously writing log entries for SMAPI versions older than 4.1.0 (which is currently not released).
    In case the .sh file was run via GUI (i.e. double-clicked) instead of via terminal it can be safely terminated through a GUI task manager or through the kill -SIGINT [PID] command where [PID] is the process ID of the running shell process.

To install manually instead, see instructions in the installer's readme.

SMAPI with Proton

To make SMAPI work with Proton, you can follow the guide available on Stardew Valley in Proton.

Update SMAPI

Just install the new version; the installer will automatically clean up previous versions.

Uninstall

  1. Launch the installer again (see install steps).
  2. When prompted, choose the uninstall option.

Troubleshooting

  • If the SMAPI window no longer appears after a game update, reinstall SMAPI to fix the launcher.
  • SMAPI tries to find a compatible terminal or use your default terminal, but some terminals aren't compatible. If the installer or launcher don't launch a terminal, try installing xterm (doesn't need to be your default terminal).
  • See the troubleshooting page for general troubleshooting.
  • If you're trying to install SMAPI for Stardew 1.5.6, be forewarned you need to install libssl1.x. See below for instructions:
distros prerequisites
Debian-based
(Debian, Ubuntu, Linux Mint)
Install LibSSL 1.1 by running sudo apt install libssl1.1 in a terminal.
Arch-based
(Arch, Manjaro, EndeavourOS)
Install OpenSSL 1.1 by running sudo pacman -S openssl-1.1 in a terminal.
NixOS Use steam-run to run install on Linux.sh.
  1. In case you don't have steam installed, enter a shell with steam-run available: NIXPKGS_ALLOW_UNFREE=1 nix-shell -p steam-run.
  2. Run this command to start the installer: steam-run ./install\ on\ Linux.sh

The ./ is very important, otherwise it will NOT work!

Fedora Install OpenSSL 1.1 by running sudo dnf install openssl1.1 in a terminal.
Gentoo Install OpenSSL 1.1 compatibility by running sudo emerge --ask dev-libs/openssl-compat in a terminal.
RHEL 8-based
(RHEL 8, CentOS 8, Rocky 8, Alma 8)
Install OpenSSL 1.1 by running sudo dnf install openssl in a terminal.