My Avorion Info
Avorion headless server
These steps were created using Ubuntu 20.04.6 LTS and Avorion server 2.3.1.
Steps
- Ensure that SteamCMD is installed. The steps to install are here.
- Create a directory for Avorion headless server application.
- Create a directory for Avorion galaxy files.
- Install Avorion headless server application.
- Start, Save, and Stop Avorion headless server application.
- Update Avorion headless server application.
For all the steps use your Steam user created for steamcmd. My user is called 'steamy' and the command used to switch to user steamy is:
$ sudo -u steamy -s
Installing Avorion via steamcmd
Ensure steamcmd is installed.
Create directory for Avorion headless server application
I created a directory called Avorion in the user steamy home directory. Command used:
mkdir /home/steamy/Avorion
Create a directory for Avorion galaxy files
I created a directory called Avorion_Galaxies in the user steamy home directory for Avorion headless server app galaxies. Command used:
mkdir /home/steamy/Avorion_Galaxies
Install Avorion headless server application
Command format:
steamcmd +login anonymous +force_install_dir <SERVER_PATH> +app_update 565060 validate +exit
The SERVER_PATH is the absolute path to Avorion headless server application files. The SERVER_PATH for my steps is /home/steamy/Avorion. Command used:
steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit
OR
If /usr/games not listed in your $PATH variable:
/usr/games/steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit
Result:
steamy@steamnuc00:~$ steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit Redirecting stderr to '/home/steamy/.steam/logs/stderr.txt' [ 0%] Checking for available updates... [----] Verifying installation... Steam Console Client (c) Valve Corporation - version 1691628584 -- type 'quit' to exit -- Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory OK Connecting anonymously to Steam Public...OK Waiting for client config...OK Waiting for user info...OK Please use force_install_dir before logon! Update state (0x3) reconfiguring, progress: 0.00 (0 / 0) Update state (0x3) reconfiguring, progress: 0.00 (0 / 0) Update state (0x61) downloading, progress: 4.61 (6291456 / 136420041) Update state (0x61) downloading, progress: 27.83 (37970732 / 136420041) Update state (0x61) downloading, progress: 50.12 (68379436 / 136420041) Update state (0x61) downloading, progress: 70.63 (96351157 / 136420041) Update state (0x61) downloading, progress: 93.85 (128031433 / 136420041) Success! App '565060' fully installed. CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded. steamy@steamnuc00:~$
Start, Save, and Stop Avorion headless server application
Command:
./server.sh --galaxy-name <GALAXY_NAME> --admin <64-bit SteamID> --datapath <GALAXY_PATH>
GALAXY_NAME is the name of your galaxy. For this setup, I used Andromedia
. NOTE: If the GALAXY_NAME doesn't exist, this command will create a galaxy with the GALAXY_NAME value.
64-bit SteamID is your 64-bit SteamID. For this setup, use your own 64-bit SteamID.
GALAXY_PATH is the directory where you will store your galaxies. I used /home/steamy/Avorion_Galaxies/
.
Command used without my SteamID:
./server.sh --galaxy-name Andromeda --admin <64-bit SteamID> --datapath /home/steamy/Avorion_Galaxies/
Once your Avorion headless server application is running, type /save
to save galaxy or /stop
to exit application. It is good practice to always use /save and then /stop.
NOTE: Always stop the server by using /stop
command. Closing the console window may cause issues with your galaxy or Avorion headless server application files.
Configure Avorion headless server galaxy
Avorion server.ini README contents
Make any changes to your server.ini you need by editing the server.ini of your galaxy. It is stored at <GALAXY_PATH>/<GALAXY_NAME>. Save the file after making any changes.
Default Avorion server.ini contents for Andromedia galaxy created in previous steps.
Suggest making a backup of server.ini before making changes!
Update Avorion headless server application
To update your Avorion headless server application, run the same command used to install the application.
steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit