
I did it because first time I played Terraria with friends through Steam, and then I created server so map can run 24/7.Īll you need to do is create ssh connection from device you store your local map. Also this wont let your Terraria process shut down because of inactivity.Īnd this part will be for people who want to transfer their local map to server. Now your screen is detached and you can use your console regardless of server.
mono-sgen TerrariaServer.exe (type it every time you want to launch the server)Īnd now, when the map created and launched, you simply press ctrl+a to start screen, and then press d.
If there is newer version, just go to their github page and copy zip file download link and paste it instead of mine.Įxecute server one time to create the map
sudo apt-get install mono-complete screen unzipĭownload latest TShock file, for me it's 4.3.25. Then add it to sudo group, so you can launch several admin commands Screen (to detach our terraria server screen)įirst we create different user, so we store Terraria files separately of root. Mono-complete (to emulate windows shell environment, so TShock can work properly) To fully operate with our system, we need to install several programs, as Then choose user and enter password, and you're in.įinally we're done with SSH and begining to setup our working environment. You can use SSH clients like Termius, you just need to create new Host with enabled SSH and put your server ip.
Process is the same as in cmd on Windows 10.
Type ssh-copy-id (Example: username type root). Type ssh-keygen (it will ask you to point the folder to extract keys, you can do it or just press enter). You will be able to access server with any other device, if you have ssh installed in cmd or terminal. After you first powered up your device and created password, we'll install SSH to make our setting up process a little bit comfy. Just make sure its minimal configuration fits Terraria Server). I used vps server from Heztner guys, but you can use any kind of tech you want (like raspberry pi or old pc with Ubuntu Server installed. So first of all, you need a dedicated server.