Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.
us-central1 (Iowa)and the zone
f1-microfor machine type
10gb standard persistent diskwith
Debian GNU/Linux 9 (stretch)for this tutorial.
Note: The monthly estimate should be shown at the top right next to
Management, security, disks, networking, solo tenancysection, then click on the
mirror-demoas the tag
defaultand it will bring up a config menu
Create IP address
note tcp and port 7777 is default settings for telepathy, if you are using a different transport you will need to find out what settings that uses.If KCP is on your NetworkManager, unblock UDP, not TCP.
screenallows you to have multiple terminals, allows you do do other stuff while your game is running
unzipunzips can be used to extract files from a ZIP file after you upload it to the instance
Linuxand Server Build ticked
Note: the destination will be
/home/usernamewhere username should be the cloud account you are logged into.
screen -d -mwill create the new terminal in detached mode
-S mirrorServername of the screen
./mirror-demo.x86_64your game server file
-logfile ~/server.logunity argument for log file location, this will create a log file in the home directory
-Swhen creating the screen, for this tutorial it was
CTRL A + D
CTRL + Cto stop the process, this will stop your game and close the screen
-logfile ~/path/to/log.logargument for Unity when starting your game server. This will cause the logs to be written to a file instead of to the terminal. This will means recent logs wont show up in
tailcommand to view the the end of the log file
-nargument to set how many lines to show
-fargument follow the end of the file stream showing you any new logs that are written to the file in real time. You will need to press
CTRL + Cto exit follow mode