Ubuntu 19 Fivem Sunucu Kurulumu
Öncelikle Fivem Sunucu hizmetiniz yok ise tıklayarak satın alabilirsiniz.
Kuruluma Başlayalım
İlk olarak işletim sistemini güncellemeniz gereklidir. Aşşağıdaki komutları kullanarak işletim sisteminizi güncelleyebilirsiniz.
sudo apt-get update
sudo apt-get upgrade
Kurulum için aşşağıdaki portlara güvenlik duvarı üzerinden izin vermeniz gereklidir.
30120TCP & UDP30110TCP & UDP
Ubuntu 19 üzerinde güvenlik duvarı olarak UFW Kullanılmaktadır, UFW ile izin vermek için aşşağıdaki komutları kullanabilirsiniz.
sudo ufw allow 30120
sudo ufw allow 30110
Kurulum
İlk olarak fivem dosyaları için bir dosya dizini oluşturmamız gereklidir.
mkdir ~/fivem_Sunucu
cd ~/fivem_Sunucu
Sonrasında https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/ adresinden size en uygun sürümü sunucunuza wget komutu ile yükleyebilirsiniz.
Dizine gerekli dosyaları indirdikten sonra
tar -xvf fx.tar.xz komutu ile tüm dosyaları unrar yapabilirsiniz.
Artık işimize yaramayacağı için fx.tar.xz dosyasını aşşağıdaki komut ile siliniz.
rm fx.tar.xz
Sonrasında cfx-Sunucu-data dosyalarını sunucu dosyaları klasörünün dışındaki bir klasöre klonlayın.
git clone https://github.com/citizenfx/cfx-Sunucu-data ~/fivem_resources
Sunucunuz yüklendi fakat şuan hazır değil.
Fivem sitesi üzerinden bir lisans almanız ve Sunucu.cfg dosyasına eklemeniz gereklidir.
nano ~/fivem_resources/Sunucu.cfg
yukarıdaki komutu kullanarak aşşağıda vereceğimiz komut satırını ilgili dosyaya yapıştırın.
# Only change the IP if you're using a Sunucu with multiple Ağ interfaces, otherwise change the port only.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
# These resources will Başlangıç by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure hardcap
ensure rconlog
ensure scoreboard
# This allows players to use scripthook-based plugins such as the legacy Lambda Menu.
# Set this to 1 to allow scripthook. Do note that this does _not_ guarantee players won't be able to use external plugins.
sv_scriptHookAllowed 0
# Uncomment this and set a password to enable RCON. Make sure to change the password - it should look like rcon_password "YOURPASSWORD"
#rcon_password ""
# A comma-separated list of tags for your Sunucu.
# For example:
# - sets tags "drifting, cars, racing"
# Or:
# - sets tags "roleplay, military, tanks"
sets tags "default"
# Set an optional Sunucu info and connecting banner image url.
# Size doesn't matter, any banner sized image will be fine.
#sets banner_detail "https://url.to/image.png"
#sets banner_connecting "https://url.to/image.png"
# Set your Sunucu's hostname
sv_hostname "FXServer, but unconfigured"
# Nested configs!
#exec Sunucu_internal.cfg
# Loading a Sunucu icon (96x96 PNG file)
#load_Sunucu_icon myLogo.png
# convars which can be used in scripts
set temp_convar "hey world!"
# Uncomment this line if you do not want your Sunucu to be listed in the Sunucu browser.
# Do not edit it if you *do* want your Sunucu listed.
#sv_master1 ""
# Add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.steam:110000100000000 group.admin # add the admin to the group
# Hide player endpoints in external log output.
sv_endpointprivacy true
# Sunucu player slot limit (must be between 1 and 32, unless using OneSync)
sv_maxclients 32
# License key for your Sunucu (https://keymaster.fivem.net)
sv_licenseKey replaceThisWithYourLicenseKey
Sunucuyu başlatmak.
Sunucuyu başlatmak için runserver.sh komutunu kullanarak fivem sunucunuza Başlangıç verebilirsiniz.