# Oracle Free Tier

## Create and configure your cloud machine

Access the [Oracle](https://oracle.com) website. Click on **View accounts**, then click on **Sign up for free Cloud Tier**.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0EH-cGDdG3G4Ah_0%2Fimage_01.png?alt=media\&token=208cc4ba-2fc7-40fb-acfd-43874b206e4d)

Click on **Start for free**, fill out the form, and create your account. Sign in with your Oracle account. If your account is under validation, wait a few minutes before proceeding with the steps. Click on **Set up a network with a wizard**. Select **Create VCN with internet Connectivity**, and click on **Start VCN Wizard**.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0K8Yx4_f31NEqQoM%2Fimage_02.png?alt=media\&token=98c0f5b8-d8b4-4dff-956b-e12759f78f4a)

Fill in **VCN name** and disable the option **Use DNS hostname in this VCN**, click on **Next**, and wait.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0MWXLRCnO5Tb3dUC%2Fimage_03.png?alt=media\&token=833e26e7-4a27-4cd7-a5e0-b2941bf182ca)

Click on **VCN name** to create rules. Select **Public-Subnet-network**, and then click on **Default Security List for network**.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0ODsqNFu63wSj5wy%2Fimage_04.png?alt=media\&token=9c76e27f-8467-4eaf-b54b-ab5da230cdbe)

Click on **Add Ingress Rules**, and create the following rules for:

* Protocol TCP
  * Port range: 80, 443, and 7777
  * Select Stateless option
* Protocol UDP
  * Port range: 80, 443, and 7777
  * Select Stateless option

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0QKj7VpyLxpi-Np7%2Fimage_05.png?alt=media\&token=286293ac-3bfc-4a51-8d5c-4466160831b5)

Go to **Homepage** and click on **Create a VM Instance**. Fill out **Computer instance name**, and click on **Edit** in the **Image and shape** group.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0T-zXbsG1zAJjiEY%2Fimage_06.png?alt=media\&token=c52da76f-cbf3-4c5b-800e-5a1890c2e0a8)

Click on **Change image**, select **Canonical Ubuntu**, OS Version **18.04**, and click on **Select Image**.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0UorWtuuXvodFT0q%2Fimage_07.png?alt=media\&token=99f6fb72-e14d-4756-98c1-f82d395cc52f)

In the **Network group**, check if the network is the one created in the previous steps.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0WkCXM-iHApyPhS1%2Fimage_08.png?alt=media\&token=c9941cba-76c3-45ac-ba64-7f92b2d53d9c)

In **Add SSH Keys**, click on **Save Private Key**. Save this in a safe place; it will be necessary to access your machine.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0ZPuKqqHQiQvGU5N%2Fimage_09.png?alt=media\&token=77e4b3d0-7e9b-4df2-b027-d2758d522899)

In Boot Volume, you can specify HD Size, or you can use your 100 GB in one machine. Click on Create and wait. Go back to Home, click on **Dashboard** > **Compute** > **Instance**, select your instance, and copy **IP Address**.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0_nhOgS_p7hIo7VR%2Fimage_10.png?alt=media\&token=b41b6c27-f0ed-4aa1-b401-b7009ada5085)

## Access your machine

Open the PowerShell editor and type the following command:

```
ssh -i [ssh_key_place] ubuntu@[machine_ip]
```

Example:

```
ssh -i c:\users\user\desktop\ssh-key-2021-09-15.key ubuntu@0.0.0.0
```

> If you get an error while trying to connect to your cloud machine, you can fix it by right-clicking on ssh-key, select properties > security > advanced > remove inheritance, and delete all other users, keeping only your Windows user.

After you connect, run the following commands to add firewall rules into Ubuntu:

```
sudo apt install firewalld
sudo firewall-cmd --zone=public --add-port=7777/tcp --permanent
sudo firewall-cmd --zone=public --add-port=7777/udp --permanent
sudo firewall-cmd --reload
```

Download FileZilla, and follow the steps below to connect to your cloud machine using your ssh-key:

<https://filezillapro.com/docs/v3/basic-usage-instructions/ssh-private-keys-for-sftp/>

## Create Build

In Unity, access **File** > **Build Settings** > **Select Linux** > **Mark Server Build**. Wait for the build to finish, and then upload your files with FileZilla.

![](https://462154250-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGmQrf2z6FL0ZpExPAn%2F-MkA-uCR8g4Hk5DQr_El%2F-MkA0e2o0Y4IKUGaOOw5%2Fimage_11.png?alt=media\&token=6cdbbad3-a6ca-4aaf-94ec-fb87053bd13a)

This tutorial uses a server folder, but this is optional.

Use the following commands:

```
ssh -i c:\users\user\desktop\ssh-key-2021-09-15.key ubuntu@0.0.0.0
cd server
chmod +x ./[your_project_name].x86_64
./[your_project_name].x86_64
```

Your server should now be running!
