Linux (Ubuntu 20.04+)
How to install Athena on Ubuntu 20+
Last updated
How to install Athena on Ubuntu 20+
Last updated
Linux installation should be using Ubuntu 20.04+ or greater. The author of this documentation has used Ubuntu 20.04+ without any issues.
Install or perform all actions in this section. Copy the entire code block and paste it.
Grab the latest version of GIT.
Grab the latest version of Curl.
Grab the latest version of wget.
Grab the latest verson of UFW (Uncomplicated Firewall)
Grab at least version 17+ for NodeJS through nvm.
This step only applies if you installed NVM in the past.
Install the NVM script for selecting NodeJS versions.
Keep in mind this is optional if you use MongoDB Atlas for your database. If you are using a local database please install MongoDB server here.
Grab the libatomic1 library.
Yes you are going to need a Github account. You are also going to need to setup an SSH key for your Github account. It is covered below.
Enter the following in a terminal:
When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.
It may ask you for a password. Hitting enter twice will automatically default to no password
.
Enter the following in a terminal:
It should respond with 'Agent pid XYZ'
Enter the following in a terminal:
It is highly recommended you follow the Github instructions for the rest of this tutorial. They cover / update how to add SSH keys very well.
At the very least you will need to open port 7788 for your main server.
You may need to Forward Ports in your Server Panel, Router, etc. If you are running Athena on a server it is likely you will need to add 7788 to an additional Firewall somewhere in your server providers panel.
Be very careful about doing this because you need to ensure port 22
is setup for UFW.
We're going to do each of these commands one at a time.
You can verify that ports have been opened successfully after you setup the rest of Athena.
Enter the following in a terminal:
Create a new private repistory on Github. Let's call it altv-athena-private
Copy your URL from github.
Enter the following in a terminal:
Then you are going to mirror the bare repository to your private mirror.
Which means you will have a private copy of Athena's code base on your private github.
Enter the following in a terminal:
Delete the bare repository folder you have just created.
This is important and DO NOT SKIP THIS STEP.
Clone the new repository you created from Github.
You can find the new repository you created in your Github profile's repository section.
Enter the following in a terminal:
You need to navigate into the directory to run the next few commands.
Enter the following in a terminal:
Add the upstream of the original athena repository.
This step must be done any time you need re-clone your repository.
When you make changes to the code base you can push it by doing:
This installs all NodeJS packages and dependencies that help run the server.
From this point forward you can simply run this npm
command to update dependencies.
Hey Listen, normally you start the server through altv-server.exe but we do not do that with Athena. There are other programs that run along-side Athena that allow it to function. You will need to run one of the commands below.
Do not modify the server.cfg, yes you are reading this correctly.
Instead, you should do the following.
Open 1 of the 3 configuration(s) in the configs
folder.
You should see any of the following configurations:
dev.json
devtest.json
prod.json
Edit all of these but remember this very important rule.
Do not change 'host' because 0.0.0.0 is correct.
This is the mode you should use when you are having users connect.
Enter the following in a terminal:
Linux only supports production mode as you should be doing most of your development on Windows based computers.
Check if the ports are currently open while the server is running. Check port 7788
.
If you are running this on your local machine you should connect to 127.0.0.1:7788
.
If you are running this on an external server you should connect to the server's IP address.
A successful installation and bootup will look like the following:
Instructions pulled from .
Github has really good but they may not be entirely clear for newer developers. If you are comfortable with normal documentation give the above link a try. Make sure to select the windows
tab.
Open a Windows Terminal such as command line or powershell. The author personally recommends from the Microsoft Store.
Remember to get the client and connect.