Difference between revisions of "My Avorion Info"
Line 49: | Line 49: | ||
Result: | Result: | ||
<pre>steamy@ | <pre>steamy@ox:~$ /usr/games/steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit | ||
Redirecting stderr to '/home/steamy/ | ln: failed to create symbolic link '/home/steamy/.steam/root': No such file or directory | ||
ln: failed to create symbolic link '/home/steamy/.steam/steam': No such file or directory | |||
Redirecting stderr to '/home/steamy/Steam/logs/stderr.txt' | |||
Logging directory: '/home/steamy/Steam/logs' | |||
/tmp/dumps is not owned by us - delete and recreate | |||
Unable to delete /tmp/dumps. Continuing anyway. | |||
[ 0%] Checking for available updates... | [ 0%] Checking for available updates... | ||
[----] Verifying installation... | [----] Verifying installation... | ||
Steam Console Client (c) Valve Corporation - version | Steam Console Client (c) Valve Corporation - version 1701290101 | ||
-- type 'quit' to exit -- | -- type 'quit' to exit -- | ||
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory | Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory | ||
Line 64: | Line 69: | ||
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0) | Update state (0x3) reconfiguring, progress: 0.00 (0 / 0) | ||
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0) | Update state (0x3) reconfiguring, progress: 0.00 (0 / 0) | ||
Update state (0x61) downloading, progress: | Update state (0x61) downloading, progress: 18.44 (33554432 / 181982809) | ||
Update state (0x61) downloading, progress: | Update state (0x61) downloading, progress: 44.64 (81240693 / 181982809) | ||
Update state (0x61) downloading, progress: | Update state (0x61) downloading, progress: 60.77 (110590739 / 181982809) | ||
Update state (0x61) downloading, progress: | Update state (0x61) downloading, progress: 86.17 (156816985 / 181982809) | ||
Update state ( | Update state (0x81) verifying update, progress: 13.83 (25165824 / 181982809) | ||
Success! App '565060' fully installed. | Success! App '565060' fully installed. | ||
steamy@ox:~$</pre> | |||
steamy@ | |||
=== Start, Save, and Stop Avorion headless server application === | === Start, Save, and Stop Avorion headless server application === |
Latest revision as of 11:28, 9 December 2023
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@ox:~$ /usr/games/steamcmd +login anonymous +force_install_dir /home/steamy/Avorion +app_update 565060 validate +exit ln: failed to create symbolic link '/home/steamy/.steam/root': No such file or directory ln: failed to create symbolic link '/home/steamy/.steam/steam': No such file or directory Redirecting stderr to '/home/steamy/Steam/logs/stderr.txt' Logging directory: '/home/steamy/Steam/logs' /tmp/dumps is not owned by us - delete and recreate Unable to delete /tmp/dumps. Continuing anyway. [ 0%] Checking for available updates... [----] Verifying installation... Steam Console Client (c) Valve Corporation - version 1701290101 -- 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: 18.44 (33554432 / 181982809) Update state (0x61) downloading, progress: 44.64 (81240693 / 181982809) Update state (0x61) downloading, progress: 60.77 (110590739 / 181982809) Update state (0x61) downloading, progress: 86.17 (156816985 / 181982809) Update state (0x81) verifying update, progress: 13.83 (25165824 / 181982809) Success! App '565060' fully installed. steamy@ox:~$
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