Jump to content
flow0815

Linux server - fully automatically installation

Recommended Posts

Hey there,

 

i wrote a little bash script so you can fully install an arma 3 epoch server on any debian based operating system (like Debian or Ubuntu)

It is all done by the script. If scripty is finished you only have to edit your game configs as you like them.

 

Tested it several times and runs without any problems. But i am not responsible for any damage you may take of using it (there is non but to be said).

 

Save this script in a file and call it whatever you like. Chmod +x the file and run it.

 

ATTENTION: As mentioned in the script a existing user called "steam" and its home directory will be deleted. You have to insert "understand" to run the script.

 

So have fun saving time ;)

 

ATTENTION: If you have a user "steam" he will be deleted. Also /home/steam (because it will install absolute fresh including non-root steam user) !! You are warned in script, also!

 

http://pastebin.com/Jy2J93ze

 

PS: The script should always work (also with newer epoch files) as long steam does not change steamcmd url and epoch guys dont change githup repo or workshop.

Share this post


Link to post
Share on other sites

linux: Ubuntu 14.04 X86 64 Minimal

downloaded script via my PC than i put it on the root via FileZilla per Drag and Drop

via SSH: chmod +x auto_linux_installer_for_arma_3_epoch_server.sh

than ./auto_linux_installer_for_arma_3_epoch_server.sh

 

I think i solved it... it´s running now... Thank you anyways

Share this post


Link to post
Share on other sites

[email protected]:/home/arma3# ./epoch.sh
################################################################################                                                                                                                                                             ################
# This scriptl will install an Arma 3 Epoch Server on a debian based linux distr                                                                                                                                                             ibution        #
# A user called steam will be created and all necessary files will be downloaded                                                                                                                                                             .              #
# This script was tested by me. However i am not responsibly for any problems th                                                                                                                                                             at may occour. #
#                                                                                                                                                                                                                                                           #
# Script by Flow, www.pixelkiller.de                                                                                                                                                                                                                        #
################################################################################                                                                                                                                                             ################



ATTENTION: If you already have a user called steam it will be deleted (home dir                                                                                                                                                              also!!!!)


If you did understand and want to continue, type 'understand' : understand

Start installing required files
===============================


Please enter your steam username: censored ^^
Please enter your steam password: censored ^^


Reading package lists... Done
Building dependency tree
Reading state information... Done
screen is already the newest version.
redis-server is already the newest version.
unzip is already the newest version.
lib32gcc1 is already the newest version.
gcc-multilib is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
User steam already exists. Removing user and homedir for fresh startLooking for                                                                                                                                                              files to backup/remove ...
Removing files ...
Removing user `steam' ...
Warning: group `steam' has no more members.
Done.

Downloading steamcmd
Redirecting stderr to '/root/Steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[  0%] Checking for available update...
[  0%] Downloading update (0 of 10131 KB)...
[  0%] Downloading update (1315 of 10131 KB)...
[ 12%] Downloading update (3447 of 10131 KB)...
[ 34%] Downloading update (4739 of 10131 KB)...
[ 46%] Downloading update (6293 of 10131 KB)...
[ 62%] Downloading update (7988 of 10131 KB)...
[ 78%] Downloading update (10131 of 10131 KB)...
[100%] Downloading update (10131 of 10131 KB)...
[100%] Download Complete.
[----] Applying update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching...
Redirecting stderr to '/root/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Downloading update (0 of 6989 KB)...
[  0%] Downloading update (1523 of 6989 KB)...
[ 21%] Downloading update (3543 of 6989 KB)...
[ 50%] Downloading update (5007 of 6989 KB)...
[ 71%] Downloading update (6534 of 6989 KB)...
[ 93%] Downloading update (6989 of 6989 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steam...
Redirecting stderr to '/root/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client © Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.
Installing Arma 3

Redirecting stderr to '/root/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client © Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.
Usage:
        login <username> [<password>] [<Steam guard code>]
ERROR! Failed to request AppInfo update, not online or not logged in to Steam.
Installing Epoch

Redirecting stderr to '/root/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client © Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.
Usage:
        login <username> [<password>] [<Steam guard code>]
ERROR! Not logged on.
mv: cannot stat '/home/steam/steamcmd/steamapps/workshop/content/107410/42183925                                                                                                                                                             1': No such file or directory
cp: cannot stat '/home/steam/epoch/@epoch/Keys/*.bikey': No such file or directo                                                                                                                                                             ry
Installing Epoch Hive files


Archive:  master.zip
c27b6f40be5f6c42a842573ddd26528787aacc23
   creating: Epoch-master/
   creating: Epoch-master/Changelogs/
  inflating: Epoch-master/Changelogs/0.1.0.1.txt
  inflating: Epoch-master/Changelogs/0.1.0.2.txt
  inflating: Epoch-master/Changelogs/0.1.0.3.txt
  inflating: Epoch-master/Changelogs/0.2.0.0.txt
  inflating: Epoch-master/Changelogs/0.2.0.1.txt
  inflating: Epoch-master/Changelogs/0.2.5.0.txt
  inflating: Epoch-master/Changelogs/0.2.5.1.txt
  inflating: Epoch-master/Changelogs/0.2.5.2.txt
  inflating: Epoch-master/Changelogs/0.3.0.0.txt
  inflating: Epoch-master/Changelogs/0.3.0.1.txt
  inflating: Epoch-master/Changelogs/0.3.0.2.txt
  inflating: Epoch-master/Changelogs/0.3.0.3.txt
  inflating: Epoch-master/Changelogs/0.3.0.4.txt
  inflating: Epoch-master/Changelogs/0.3.1.0.txt
  inflating: Epoch-master/README.md
   creating: Epoch-master/Server_Install_Pack/
   creating: Epoch-master/Server_Install_Pack/@epochhive/
  inflating: Epoch-master/Server_Install_Pack/@epochhive/EpochServer.dll
  inflating: Epoch-master/Server_Install_Pack/@epochhive/EpochServer.ini
   creating: Epoch-master/Server_Install_Pack/@epochhive/addons/
  inflating: Epoch-master/Server_Install_Pack/@epochhive/addons/a3_epoch_server.                                                                                                                                                             pbo
  inflating: Epoch-master/Server_Install_Pack/@epochhive/addons/a3_epoch_server_                                                                                                                                                             settings.pbo
  inflating: Epoch-master/Server_Install_Pack/@epochhive/epochah.hpp
  inflating: Epoch-master/Server_Install_Pack/@epochhive/epochconfig.hpp
  inflating: Epoch-master/Server_Install_Pack/@epochhive/epochserver.so
 extracting: Epoch-master/Server_Install_Pack/@epochhive/libhiredis.so
  inflating: Epoch-master/Server_Install_Pack/@epochhive/libhiredis.so.0.10
 extracting: Epoch-master/Server_Install_Pack/@epochhive/libpcre.so
  inflating: Epoch-master/Server_Install_Pack/@epochhive/libpcre.so.3
   creating: Epoch-master/Server_Install_Pack/BEC/
   creating: Epoch-master/Server_Install_Pack/BEC/Plugins/
   creating: Epoch-master/Server_Install_Pack/BEC/Plugins/WatchDog/
  inflating: Epoch-master/Server_Install_Pack/BEC/Plugins/WatchDog/__init__.py
 extracting: Epoch-master/Server_Install_Pack/BEC/^^ copy plugins folder to BEC                                                                                                                                                              ROOT.txt
   creating: Epoch-master/Server_Install_Pack/DB/
 extracting: Epoch-master/Server_Install_Pack/DB/README.md
  inflating: Epoch-master/Server_Install_Pack/DB/Redis-License.txt
  inflating: Epoch-master/Server_Install_Pack/DB/redis-server.exe
  inflating: Epoch-master/Server_Install_Pack/DB/redis.conf
  inflating: Epoch-master/Server_Install_Pack/DB/start-redis.cmd
  inflating: Epoch-master/Server_Install_Pack/INSTALL.txt
  inflating: Epoch-master/Server_Install_Pack/LICENSE.txt
  inflating: Epoch-master/Server_Install_Pack/README.txt
   creating: Epoch-master/Server_Install_Pack/Tools/
  inflating: Epoch-master/Server_Install_Pack/Tools/log-rotator.cmd
  inflating: Epoch-master/Server_Install_Pack/epoch_linux_startscript.sh
   creating: Epoch-master/Server_Install_Pack/keys/
 extracting: Epoch-master/Server_Install_Pack/keys/aia_tp_2015_01_01.bikey
 extracting: Epoch-master/Server_Install_Pack/keys/aia_tp_lite_2015_01_01.bikey                                                                                                                                                              
 extracting: Epoch-master/Server_Install_Pack/keys/epoch0304.bikey
 extracting: Epoch-master/Server_Install_Pack/keys/epoch0310.bikey
   creating: Epoch-master/Server_Install_Pack/mpmissions/
  inflating: Epoch-master/Server_Install_Pack/mpmissions/epoch.Altis.pbo
  inflating: Epoch-master/Server_Install_Pack/mpmissions/epoch.Australia.pbo
  inflating: Epoch-master/Server_Install_Pack/mpmissions/epoch.Bornholm.pbo
  inflating: Epoch-master/Server_Install_Pack/mpmissions/epoch.Chernarus.pbo
  inflating: Epoch-master/Server_Install_Pack/mpmissions/epoch.Chernarus_Summer.                                                                                                                                                             pbo
  inflating: Epoch-master/Server_Install_Pack/mpmissions/epoch.Esseker.pbo
  inflating: Epoch-master/Server_Install_Pack/mpmissions/epoch.Stratis.pbo
  inflating: Epoch-master/Server_Install_Pack/mpmissions/epoch.Takistan.pbo
  inflating: Epoch-master/Server_Install_Pack/pcre3.dll
   creating: Epoch-master/Server_Install_Pack/sc/
  inflating: Epoch-master/Server_Install_Pack/sc/basic.cfg
   creating: Epoch-master/Server_Install_Pack/sc/battleye/
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/BEServer.dll
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/ExtendedExample-beserv                                                                                                                                                             er.cfg
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/addbackpackcargo.txt
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/addmagazinecargo.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/addweaponcargo.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/attachto.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/createvehicle.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/deleteVehicle.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/example-beserver.cfg
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/mpeventhandler.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/publicvariable.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/publicvariableval.txt                                                                                                                                                              
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/remotecontrol.txt
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/remoteexec.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/scripts.txt
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/selectplayer.txt
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/setdamage.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/setpos.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/setvariable.txt
  inflating: Epoch-master/Server_Install_Pack/sc/battleye/setvariableval.txt
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/teamswitch.txt
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/waypointcondition.txt                                                                                                                                                              
 extracting: Epoch-master/Server_Install_Pack/sc/battleye/waypointstatement.txt                                                                                                                                                              
  inflating: Epoch-master/Server_Install_Pack/sc/config.cfg
   creating: Epoch-master/Server_Install_Pack/sc/users/
   creating: Epoch-master/Server_Install_Pack/sc/users/sc/
  inflating: Epoch-master/Server_Install_Pack/sc/users/sc/sc.arma3profile
  inflating: Epoch-master/Server_Install_Pack/start-A3-cmd-line-example.txt
   creating: Epoch-master/Sources/
   creating: Epoch-master/Sources/epoch_server_settings/
   creating: Epoch-master/Sources/epoch_server_settings/EpochEvents/
  inflating: Epoch-master/Sources/epoch_server_settings/EpochEvents/CarnivalSpaw                                                                                                                                                             ner.sqf
  inflating: Epoch-master/Sources/epoch_server_settings/EpochEvents/ChangeWeathe                                                                                                                                                             r.sqf
  inflating: Epoch-master/Sources/epoch_server_settings/EpochEvents/ContainerSpa                                                                                                                                                             wner.sqf
  inflating: Epoch-master/Sources/epoch_server_settings/EpochEvents/EarthQuake.s                                                                                                                                                             qf
  inflating: Epoch-master/Sources/epoch_server_settings/EpochEvents/PlantSpawner                                                                                                                                                             .sqf
  inflating: Epoch-master/Sources/epoch_server_settings/config.cpp
   creating: Epoch-master/Sources/epoch_server_settings/configs/
  inflating: Epoch-master/Sources/epoch_server_settings/configs/loots.h
   creating: Epoch-master/Sources/epoch_server_settings/configs/maps/
  inflating: Epoch-master/Sources/epoch_server_settings/configs/maps/altis.h
  inflating: Epoch-master/Sources/epoch_server_settings/configs/maps/australia.h                                                                                                                                                             
  inflating: Epoch-master/Sources/epoch_server_settings/configs/maps/bornholm.h                                                                                                                                                              
  inflating: Epoch-master/Sources/epoch_server_settings/configs/maps/chernarus.h                                                                                                                                                             
  inflating: Epoch-master/Sources/epoch_server_settings/configs/maps/esseker.h
  inflating: Epoch-master/Sources/epoch_server_settings/configs/maps/stratis.h
  inflating: Epoch-master/Sources/epoch_server_settings/configs/maps/takistan.h                                                                                                                                                              
   creating: Epoch-master/Sources/epoch_server_settings/configs/security/
   creating: Epoch-master/Sources/epoch_server_settings/configs/security/data/
  inflating: Epoch-master/Sources/epoch_server_settings/configs/security/data/cu                                                                                                                                                             stom_vars.h
  inflating: Epoch-master/Sources/epoch_server_settings/configs/security/securit                                                                                                                                                             y_checks.h
   creating: Epoch-master/Sources/mpmissions/
   creating: Epoch-master/Sources/mpmissions/epoch.Altis/
  inflating: Epoch-master/Sources/mpmissions/epoch.Altis/description.ext
  inflating: Epoch-master/Sources/mpmissions/epoch.Altis/mission.sqm
   creating: Epoch-master/Sources/mpmissions/epoch.Australia/
  inflating: Epoch-master/Sources/mpmissions/epoch.Australia/description.ext
  inflating: Epoch-master/Sources/mpmissions/epoch.Australia/mission.sqm
   creating: Epoch-master/Sources/mpmissions/epoch.Bornholm/
  inflating: Epoch-master/Sources/mpmissions/epoch.Bornholm/description.ext
  inflating: Epoch-master/Sources/mpmissions/epoch.Bornholm/mission.sqm
   creating: Epoch-master/Sources/mpmissions/epoch.Chernarus/
  inflating: Epoch-master/Sources/mpmissions/epoch.Chernarus/description.ext
  inflating: Epoch-master/Sources/mpmissions/epoch.Chernarus/mission.sqm
   creating: Epoch-master/Sources/mpmissions/epoch.Chernarus_Summer/
  inflating: Epoch-master/Sources/mpmissions/epoch.Chernarus_Summer/description.                                                                                                                                                             ext
  inflating: Epoch-master/Sources/mpmissions/epoch.Chernarus_Summer/mission.sqm                                                                                                                                                              
   creating: Epoch-master/Sources/mpmissions/epoch.Esseker/
  inflating: Epoch-master/Sources/mpmissions/epoch.Esseker/description.ext
  inflating: Epoch-master/Sources/mpmissions/epoch.Esseker/mission.sqm
   creating: Epoch-master/Sources/mpmissions/epoch.Stratis/
  inflating: Epoch-master/Sources/mpmissions/epoch.Stratis/description.ext
  inflating: Epoch-master/Sources/mpmissions/epoch.Stratis/mission.sqm
   creating: Epoch-master/Sources/mpmissions/epoch.Takistan/
  inflating: Epoch-master/Sources/mpmissions/epoch.Takistan/description.ext
  inflating: Epoch-master/Sources/mpmissions/epoch.Takistan/mission.sqm
   creating: Epoch-master/Tools/
   creating: Epoch-master/Tools/Install/
  inflating: Epoch-master/Tools/Install/InstallEpoch.cmd
   creating: Epoch-master/Tools/PHP/
  inflating: Epoch-master/Tools/PHP/FindPlayerUIDByName.php
  inflating: Epoch-master/Tools/PHP/GetOnlinePlayers.php
  inflating: Epoch-master/Tools/PHP/GetOnlinePlayersWPos.php
   creating: Epoch-master/Tools/SQF/
  inflating: Epoch-master/Tools/SQF/getBuildingsNotSetupYet.sqf
  inflating: Epoch-master/Tools/SQF/getCfgPatches.sqf
  inflating: Epoch-master/Tools/SQF/getTreesAndTrash.sqf
  inflating: Epoch-master/Tools/SQF/saveBuildingPosVector.sqf
  inflating: Epoch-master/Tools/SQF/saveVehiclesWhitelistPos.sqf
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Stopping redis-server: redis-server.
sh: 0: getcwd() failed: No such file or directory
Starting redis-server: redis-server.
mv: cannot stat '/home/steam/epoch/@epoch/Addons': No such file or directory
ALL DONE, DO NOT FORGET TO EDIT YOUR CONFIGS. I ALREADY CONFIGURED REDIS FOR YOU
 

 

look the Big marked Paragraph

Share this post


Link to post
Share on other sites

Yes you have either no internet connection or you did not copy past the script in RAW mode to a file. It is working perfectly. I can only repeat. Did you enter your steam credentials as they where asked?

Share this post


Link to post
Share on other sites

okey... i think it worked... now Error:

 

12:01:13 Missing addons detected:
12:01:13   A3_epoch_config
12:01:13 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.A3_epoch_config
12:01:13 Mission Epoch Mod read from bank.

 

[FIXED]

 

New Error:

12:08:15 "Epoch: Version mismatch! Current:  Needed: 0.3.1.0"

GG m8 i dont know what´s wrong :(

Share this post


Link to post
Share on other sites

could you explain how to download only the Epoch Client Mod from the Steamworkshop via SSH?

because the only error i get is:

ERROR!  Download item 421839251 failed (Failure).mv: cannot stat '/home/steam/steamcmd/steamapps/workshop/content/107410/421839251': No such file or directory
cp: cannot stat '/home/steam/epoch/@epoch/Keys/*.bikey': No such file or directory
 

if i could do this by myself i would all work...

Share this post


Link to post
Share on other sites

What are the recommended hardware requirements for running Epoch on a linux server?  # of CPUs and RAM is all the info I really seek.  I have a couple linux servers here at home running DNS and DCHP, both Ubuntu 14.10 server distro.  Both are running a single CPU with 2GB of RAM so I"d be hard pressed to believe I wouldn't need anything more for Arma 3 although I'm confident I'll still need a setup similar to what is required by Windows for hardware.

Share this post


Link to post
Share on other sites
On 19.8.2015, 13:44:04, flow0815 said:

Hey there,

 

i wrote a little bash script so you can fully install an arma 3 epoch server on any debian based operating system (like Debian or Ubuntu)

It is all done by the script. If scripty is finished you only have to edit your game configs as you like them.

 

Tested it several times and runs without any problems. But i am not responsible for any damage you may take of using it (there is non but to be said).

 

Save this script in a file and call it whatever you like. Chmod +x the file and run it.

 

ATTENTION: As mentioned in the script a existing user called "steam" and its home directory will be deleted. You have to insert "understand" to run the script.

 

So have fun saving time ;)

 

ATTENTION: If you have a user "steam" he will be deleted. Also /home/steam (because it will install absolute fresh including non-root steam user) !! You are warned in script, also!

 

http://pastebin.com/Jy2J93ze

 

PS: The script should always work (also with newer epoch files) as long steam does not change steamcmd url and epoch guys dont change githup repo or workshop.

Hello and thanks for this sh

But i have big problems after installation......

The new SteamMobileAuthSystem blocks a part of the installation....

so i need to manuel download epoch or arma3 server.

and after download and config the server wont work.....

here my problem - 

The Server cant read/find the epoch mod as a mission or mod.

and after full installation if steamauth dont make any problems i see this - 

mv: cannot stat '/home/steam/epoch/@epoch/Addons': No such file or directory

The sh wont download the @epoch folder.

i addet them manuely.

and after server start the log spamming this - 

Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.A3_epoch_config
 Mission Epoch Mod read from bank.
 Missing addons detected:

  A3_epoch_config
 

Do you know the error and can help me to fix this ? O.o

Share this post


Link to post
Share on other sites

This appears to be broken now days.  

If i manually try to run through some of the steam download commands i get the following trying to pull down the epoch mod over a linux ssh session running as steam.

workshop_download_item 107410 421839251
roaming config store loaded successfully - 0 bytes.
Downloading item 421839251 ...
ERROR! Download item 421839251 failed (Failure).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...