Installing an Enemy Territory server

Hello.

Ever wanted to install an Enemy Territory (NOT Quake Wars) server, for a LAN event or just want your own server online?

Here’s what you do.

adduser etserver

“etserver” can be changed to whatever you want. I will be using etserver through this guide.

When you have added this user, log in as it.

Download the file(s) you need to install your server.

wget http://et.viperi.us/linux/et-linux-2.60.x86.run

When this is done, make sure you can execute the file. You also might want to add a directory called bin.

chmod 775 et-linux-2.60.x86.run

mkdir /home/etserver/bin

When this is done, you can run the file et-linux-2.60.x86.run. You might have to run it as root.

Change the path you want to install the game to. The game to /home/etserver/enemy-territory and symbolic link path to /home/etserver/bin.

When this is done, you can edit the server config as much as you like. It is located in /home/etserver/enemy-territory/etmain.

nano /home/etserver/enemy-territory/etmain/server.cfg

You now have a basic server setup, and is ready to start. If you are doing this remote, with PuTTY or any other program, you might want to close it after you have started the server. To be able to do that, and not close down the server, you can use something called screen.

apt-get install screen

To start screen, just enter screen. Then you can start the server with the command

(./)etded +set vm_game 0 +set sv_pure 1 +set sv_punkbuster 1 +exec server.cfg

You don’t want to run a default Enemy Territory server, simply because it is rubbish. Close the server with Ctrl+C.

Now, there are a lot of modifications for Enemy Territory, such as etpro, jaymod, noquarter, and probably many more.

I will tell you how to install etpro and run it.

cd /home/etserver/enemy-territory

wget http://et.viperi.us/linux/etpro-3_2_6.zip

unzip etpro-3_2_6.zip

You are now ready to run it with etpro.

etded +set vm_game 0 +set fs_game etpro +set sv_pure 1 +set sv_punkbuster 1 +exec server.cfg

To close the screen without closing the server, hold down ctrl, and click a, then d. To re-open the screen session, type screen -r.

You might want to run a custom campaign with custom maps. In order for people to connect quickly to your server, set up a http redirect (as an Enemy Territory server is about 15kb/s max).

set sv_wwwDownload "1"
set sv_wwwBaseURL "http://www.your-webserver.com/etfiles"
set sv_wwwCheckPath ""
set sv_wwwDLDisconnected "0"
set sv_wwwFallbackURL ""

In the /etfiles directory you link to (can be anything), you put the maps in a sub-directory called etmain, and the etpro pk3 file in a sub-directory called etpro.

To easily create a custom campaign, you might want to use this program. It is simple and good.

If you wish to play the game on a windows machine, download the ET Ultimate Installer and connect to servers! Feel free to try out my server. Open the console (~) and enter /connect viperi.us

See you on the battlefield!

Posted in Viperi.us | Tagged , , , , , , | Leave a comment

Installing Apache2, PHP5, and MySQL

Hello.

A webserver is a handy thing to have. It might also be handy to install PHP5 together with a webserver, so you can publich generic websites. You can also make use of WordPress and similar websites.

First we need the webserver, Apache2

apt-get install apache2 apache2-mpm-prefork

When this is done, we want to install PHP5.

apt-get install php5

You can now publish generic websites with PHP on your webserver. Something that is quite handy to use together with PHP is an SQL database. We will install MySQL.

apt-get install mysql-server php5-mysql

You will be asked to enter a password. Remember this, as you will need it to log in to the SQL server.

Next, we wish to install a very good tool for administrating the SQL database.

apt-get install phpmyadmin

During the installation of phpMyAdmin, you will be asked to select which webserver you have installed. To select, hit space. If you have done what I have done, select apache2.

You can now administrate your SQL database by going to http://yourwebsite/phpmyadmin, and log in as root and use the password you set earlier.

If you wish to change /phpmyadmin to something else (this address is popular with spambots etc), go to /etc/apache2/conf.d and edit phpmyadmin.conf

You will see, at the very top, a line beginning with Alias. Change the first one (/phpmyadmin) to whatever you want. If you set it to /thisisveryprivate, you open phpMyAdmin in your browser by writing http://yourwebsite/thisisveryprivate.

Posted in Viperi.us | Tagged , , , | Leave a comment

Installing proftpd (FTP server)

Hello.

If you have a webserver / fileserver, an FTP would be handy.

One FTP server you can use is the one called proftpd.

Installation:

apt-get install proftpd

If my memory serves me right, you get one question. Select “standalone“. When this is done, you can edit the config file.

nano /etc/proftpd/proftpd.conf

Change ServerName if you want that. If you have different users for different tasks / websites, you might want to “jail” them to their home folder. You do this by removing # from the line where Default Root ~ is written.

If the user is only meant for FTP use, you might wish to enable /bin/false (no shell access). You do this by removing # from the line just below, where RequireValidShell off is written.

If you wish to change the port number, that is located just below this again. 21 is default. :)

 

Posted in Viperi.us | Leave a comment

Max upload size in PHP

Hello.

The default upload size (max) for PHP is set to 2MB. “Most people” might want to change this.

To change this, you can edit php.ini, which is located in /etc/php5/apache2 by default.

To edit the file:

nano /etc/php5/apache2/php.ini

nano can be changed to your favourite text editor. However, nano is simple, and is what I will use to explain the next steps.

Hit ctrl+w, which opens the search. Write upload, and hit enter. Then you just need to browse a few lines down, until you find upload_max_filesize. Writing that “word” in the search string will most likely get you there quicker.

Change 2M to the size you feel is good.

You should also add post_max_size to the same value.

Close nano with ctrl+x, accept the changes and name.

This can also be done with .htaccess if you only want to enable the feature in certain directories/websites.

Posted in Viperi.us | Leave a comment

phpSysInfo on Debian Squeeze

Hello.

Installing phpSysInfo on Debian is quite simple. However it’s not as simple as I would have wanted. At least it wasn’t that for me.

Downloading and installing the package.

apt-get install phpsysinfo

Quite straight forward. When this is done, you would expect it to work by entering http://your-ip/phpsysinfo, but no. That wasn’t the case for me. You might be lucky and it works. Test.

Didn’t work? Keep reading.

What you have to do is write whereis phpsysinfo. You will most likely get the path /usr/share/phpsysinfo.

Open that path, and write

cp -rf * /var/www/website/phpsysinfo

The latest, bold, text can be changed to whatever you want.

Then open it in your browser. Voila! :)

Posted in Viperi.us | Leave a comment

Hello

Welcome to Viperi.us.

This is my new server. I am not quite sure what’s going to happen on this website yet, but I am guessing stuff related to websites and linux servers, so please check in later. :)

Posted in Viperi.us | Leave a comment