Tutorial:Server Setup - Linux

From alt:V / Wiki
Jump to navigation Jump to search

Setup alt:V server for Linux

You can run alt:V server at least on Debian 10 or Ubuntu 18.04.

If you want use JavaScript for server-side you should install NodeJS firstly, same thing for C# .NET Core and .NET Core SDK If you want to develop them by yourself.

Preparing

As a preparing to install I recommend you use altv-serverupdater to have easy downloaded server-files (and in future updated). Remember that you need to have installed dependencies on your linux for that updater (coreutils, wget, >=jq_1.4).

apt-get install libc-bin #(debian only)
mkdir server && cd server
curl 'RAW_LINK_UPDATE_SH' > update.sh
chmod +x ./update.sh
./update.sh
chmod +x ./start.sh && chmod +x ./altv-server

Creating a config file

Make a new file in server root folder named server.cfg and paste this:

name: 'alt:V Server'
host: 0.0.0.0
port: 7788
players: 128
#password: ultra-password
announce: false
#token: YOUR_TOKEN
gamemode: Freeroam
website: example.com
language: en
description: 'alt:V Sample Server'
modules: [ node-module ]
resources: [
  
]


Starting a server

Now you have ready all server files that you need. Let's try to start server with start.sh

./start.sh

If you get error about libatomic library just install it via your linux package manager.

apt-get update
apt-get install libatomic1

Done. :)