Peacock is primarily built to work on Windows, but fear not, using it on Linux is possible!
- Go to this GitHub repo for updated instructions on how to get Peacock running on Linux with Steam.
- Original Instructions below may also work.
To get the server working on Linux, you will need to first prepare Node.js.
In order to do so, run the following command the first time:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
This will download and install nvm, which allows quickly swapping between multiple Node.js versions. This will allow Peacock to always use the version of Node.js it needs to.
cd to the directory you have Peacock unzipped to, and run the following command:
This will install the version of Node.js required by Peacock. You will need to re-run this when Peacock updates.
Create a launcher script
Finally, create a script that lets you easily start the server, with the suggested contents being as follows:
node --enable-source-maps --harmony chunk0.js --hmr
Note: If you are using a port other than port 80, you should specify the port in your launcher script. Substitute
PORTNUMBERin the script below with your port number of choice.
PORT=PORTNUMBER node --enable-source-maps --harmony chunk0.js --hmr
And then make the script executable:
chmod +x ./theScriptsName.sh
You can now launch the server by running the script you just created.
This part is a lot more tricky. You need to run the patcher in the same Wine prefix as the game.
Some users have gotten it to work, but others haven't.
Feel free to document your experience in the Discord's
#help channel for anybody that has problems in the future to reference.
Some people have gotten it to work using the following command:
"$HOME/.steam/root/steamapps/common/Proton\ -\ Experimental/proton" run /path/to/PeacockPatcher.exe
Obviously, you will need to change the paths to match your install of Steam, Proton, and the patcher.