Setup a server on Oracle Cloud Free Tier - oldnapalm/GTACoop GitHub Wiki
Sign up at https://www.oracle.com/cloud/free/
Create a compute instance
Open the navigation menu and click Compute, then click Instances.
Click Create instance.
In the Image and shape box, click Edit.
Click Change image and select Ubuntu / Canonical Ubuntu 22.04.
In the Add SSH keys box, click Download the private key.
Click Create.
Add ingress rules
Open the navigation menu and click Networking, then click Virtual Cloud Networks.
Select the VCN you created with your compute instance.
With your VCN displayed, click the link with your subnet name.
Click the Default Security List link.
Click Add Ingress Rules.
Fill in the ingress rule as follows:
Stateless: Checked
Source Type: CIDR
Source CIDR: 0.0.0.0/0
IP Protocol: UDP
Source port range: (leave-blank)
Destination Port Range: 4499
Click Add Ingress Rules.
Connect to server
Download and install PuTTY.
Open PuTTYgen and load the private key.
Type and confirm the (new) passphrase.
Save the private key.
Open Pageant, add the private key and type the passphrase.
Open PuTTY and type the public IP address in Host Name.
Under Connection / Data, type ubuntu
in Auto-login username.
Back to Session, type a name in Saved Sessions and click Save.
Double click the saved session to connect.
Update firewall rules
sudo iptables -I INPUT 6 -m state --state NEW -p udp --dport 4499 -j ACCEPT
sudo netfilter-persistent save
Install GTA Coop server
mkdir gtacoop
cd gtacoop
wget https://github.com/oldnapalm/GTACoop/releases/download/v0.9.4.7/server-0.9.4.7-linux-x64.zip
unzip server-0.9.4.7-linux-x64.zip
chmod +x gtaserver.core
./gtaserver.core
Press Ctrl + C
Download and install WinSCP.
Click New Site.
Select SCP in File protocol.
Type the public IP address in Host name.
Type ubuntu
in User name and leave Password blank (it will use private key from Pageant).
Click Save and Login.
Navigate to gtacoop/Configuration
.
Right click serverSettings.xml
and Edit.
Add GTA Coop as system service
wget https://github.com/oldnapalm/GTACoop/releases/download/v0.9.4/gtacoop.service
sudo mv gtacoop.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable gtacoop.service
sudo systemctl start gtacoop.service
Restart GTA Coop (if you change settings)
sudo systemctl restart gtacoop.service