Server Install linux

From UnrealAdminWiki

(Difference between revisions)
Revision as of 07:36, 24 March 2009
2399Skillz ( | contribs)

← Previous diff
Revision as of 02:23, 25 March 2009
Azura ( | contribs)

Next diff →
Line 128: Line 128:
I will update this tutorial later with better formatting and more options. This should get the average user who doesn't know anything about Linux up and running. I will update this tutorial later with better formatting and more options. This should get the average user who doesn't know anything about Linux up and running.
 +
 +== Discussion ==
 +--[[profile:2184|Azura]] 02:23, 25 March 2009 (GMT) Thanks for this tutorial Skillz. It'll come in handy if I need to get a server running on a dedicated server. Hmmm, have you ever heard of chrooting ? Is this something that should/can be done with a game server ?
[[Category:UT]] [[Category:UT]]

Revision as of 02:23, 25 March 2009

This guide will show you step by step how to install Unreal Tournament on a Linux box.

First and foremost, you need to create a regular user. **DO NOT** use ROOT to run the game server!!

If you know the root password and you need to setup a user, then use this command.

useradd [username]

To give it a password, type this:

passwd [username]

It will then ask you to enter a password, then confirm it.

Once that is done, login with that user. Easiest way to do this without logging out is to use the su command.

su [username]

(It will ask you to enter the users password, unless you are in root.)

Ok so now that we have our user, we need to change directory to it's home directory. So lets do that. Simply type cd

cd

This will bring you to the home directory of the user you are logged in with. Now we need to download the server packages, we will use wget for this.

wget http://ut-files.com/Entire_Server_Download/ut-server-436.tar.gz

This will download the 436 patched dedicated Unreal Tournament Linux Server. Once it completes, you'll then want to extract it. We'll use this command to do that.

tar -zxvf ut-server-436.tar.gz

This may take a moment depending on how fast the server you're installing this on is. Once this is done, you'll want to change directory to the server install. Simply use cd.

cd ut-server

Now that we are in here, you can do an ls command to display the contents of the directory.

ls

Now it's time to get the server started. There are multiple startup lines you can use, there are also more than one way to start the server. I'm going to install abfackelns Server Utilities (ASU) to start/stop/restart the server, as well as set the startup line. It's very simple. First we need to download asu.

wget http://ut-files.com/Entire_Server_Download/server_scripts/asu-0.6.tar.gz

Now we need to extract it, see if you can remember how to do this. If not, then here.

tar -zxvf asu-0.6.tar.gz

This will extract the archive. Shouldn't take too long, it's relatively small.

Now we need to make it executable. To do this, simply type this.

chmod +x asu.sh

This should make it executable. Now we need to run it.

./asu.sh

This should open a texted based menu. Just to get the server started, we're only going to focus on setting up the startup script. So press

I

It will tell you something about running as root or regular user, regardless of what it says. Do not run it as root. It will ask you what user will be running the script, enter the user name of the user you created earlier.

[username]

Now it will ask you to enter an IP. You only need to do this if there are more than one IPs on the server. If in doubt, then enter the IP you use to connect to the server.

[the server ip]

Now it will ask you what game type you want to run, if you do not see the game type you plan on running, don't worry. Just select DM for now.

[enter the number then press enter]

Now it will ask you what map you want to start with. Just choose one of the maps shown. Doesn't matter, can be changed later.

[type the map name then press enter]

If you plan to run mutators, then enter them now. Only enter one, then press enter. It'll keep asking this question till you submit a blank answer. If you don't want to run any mutators, then just press enter.

[type the mutator or just press enter to skip]

Depending on how many mutators you wanted to enter, this could take some time. If you don't see your mutator listed, don't worry. We'll add it later.

Once you are done with that, it should show you the configs/setup you just entered. Review it to make sure it looks right.

[press x to exit, then press enter]

Now you should be back in the directory. Type out ls to list the contents of the directory, you should see a new file called ucc.init.

ls

If you want to setup a custom startup command, then you can edit this file manually. Depending on what editor you use, open the file. I use pico.

pico ucc.init

It should show a bunch of stuff. What you are focusing on, if you want to change anything are the first few lines.

MYGAME=Botpack.DeathMatchPlus MYMAP=DM-Barricade MYUSERID=unreal MYDIR=/home/unreal/ut-server/. MYIP= MYMODS= MYINI=/home/unreal/ut-server/./System/UnrealTournament.ini MYUSER=User.ini

Change them to your desire, separating mutators with commas.

If all is well, then you can go ahead and skip that step and just start the server using this command.

./ucc.init restart

I prefer to use restart, just because it makes sure the process isn't already running, if it is it will kill it, then restart it.

If you need to stop the server then type this

./ucc.init stop

Please note. You will have to be in the main directory the server is installed in. If you get an error, then simply type this

cd cd ut-server

This will bring you back to your home directory, then to the ut-server directory assuming you followed this guide step by step.


I will update this tutorial later with better formatting and more options. This should get the average user who doesn't know anything about Linux up and running.


Discussion

--Azura 02:23, 25 March 2009 (GMT) Thanks for this tutorial Skillz. It'll come in handy if I need to get a server running on a dedicated server. Hmmm, have you ever heard of chrooting ? Is this something that should/can be done with a game server ?

the UnrealAdmin Page
History
  • Server In…all linux