Overview
Hello, This guide will show you how to setup your server on Linux Debian 8, if you can’t find the guide on official site, this one will help you because it’s basically the same.
Introduction
1. FileZilla
2. PuTTY
1. cd – This is command to change current directory
2. nano – This command is used to edit txt files
3. useradd and passwd – These commands are used to add and set password for account
4. wget – This command is used to download from web
5. apt-get – This command is used to download and install updates
6. screen – This command is used to create second screen with process
7. tar – This command is used to extract content of ZIP/RAR and stuff like that
8. mkdir – This command is used to make directory
Connecting to Linux and adding user
This is how window should look like:
Put your IP in and keep port on 22(You can save session for later use)
After opening session you will be asked for login like this:
Just type in root and your password(It could be admin if you just purchased VPS and you will have to change password)
After connection you will get this:
If you have that, congratz 🙂 We will work on adding user now, type in useradd [Name] after this type passwd Test and change your password for this user. If its not working or your didn’t do something right type in userdel and repeat.
You can now connect to your User using the name and password during login.
Installing Steam and getting Sven Co-op server
Before doing anything make sure your server is up to date by typing apt-get update and then install screen and lib32gcc1 by typing apt-get install screen and apt-get install lib32gcc1 (If its not working try to use apt-get update once more or restart server)
Use command mkdir /usr/servers to make folder for server and use cd /usr/servers to get in that folder.
Now we will download SteamCMD by using wget [link]
After downloading it use command tar -xf steamcmd_linux.tar.gz to extract files
Type in ls to make sure files are extracted and if everything is OK use command ./steamcmd.sh
Update should take place, you will have to wait, after update you will get this:
Type in login anonymous, you should now connect to steam. Now you will need to create folder where your sven coop server will be installed, use this command force_install_dir ./[Dir Name]/
You dont have to create it, It will be created during download.
You should be ready to download SC server now 🙂 Type in app_update 276060 validate and wait for download to complete (It will take few minutes).
After download just type in quit
Setting up Server and Starting it
First you will need to enter folder with server by using cd /[Dir Name]/svencoop/
We will edit server.cfg by typing nano server.cfg, you will get this:
Just setup your name and whatever you want to change, it’s up to you.
press CTR+X to exit and when you are asked if you want to save changes press Y and ENTER.
By using same command you can add admins, edit maps in vote menu, mapcycle or edit motd.
First of all we need to return back to folder where svends_run is by typing cd .. (With dots)
Remember how we installed Screen at the beginning of this guide ? We will use it now 🙂
Type in screen -dmS [Name of your screen] (Remember to stay in folder where svends_run while typing this command)
Then you will switch by typing: screen -r [Name of your screen], if you want to exit screen simply press CTRL + D
While in screen type this:
./svends_run -maxplayers 12 +ip [Your IP] +sv_lan 0 +map _server_start
You should get this if you did everything right:
Using Filezilla to enter FTP
Open FileZilla and search for Site Manager(in black circle on my image)
You should get this:
If you did everything step by step like me you could use /usr/servers/[Folder name]/svencoop
in Remote site, you will get this:
The End !
I hope this guide helped you ! Please, rate and comment, if you have any questions or you found mistake in any step, grammar or anything else contact me or simply leave comment ! English is not my native language so I’m sure I did many mistakes 😀
Thanks again for reading ! 🙂