• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux How to setup Server, Site Dos Protection + how to compile

Vnez

Server Developer
Joined
Aug 8, 2011
Messages
27
Reaction score
4
Hi, I created this tutorial to help people who are new to Linux. This tutorial has been tested on an Ubuntu 10.04 I hope this tutorial helps you and i hope you will success with your server :)

I will learn you how to setup Filezilla server, Site, Dos Protection + compile the sources


Remember to always choose yes "Y" when you install.

Lets login via ssh/putty.exe

STEP 1 some easy things

PHP:
apt-get install sudo nano

apt-get update

apt-get upgrade



STEP 2 Filezilla Server

PHP:
sudo apt-get install proftpd

sudo nano /etc/shells

write bin/false in the bottom

then press ctrl+o

then press enter (to save it)

and last ctrl+x



Here you gonna choose password too.
PHP:
adduser USERNAME

PHP:
cd /home

mkdir server

chmod 777 -R server

cd /var

mkdir www

chmod 777 -R www


Now i want you login and upload the files to the dedicated.


STEP 3 Dos Protection

How to install it?

PHP:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

wget http://www.inetbase.com/scripts/ddos/install.sh

chmod 0700 install.sh

./install.sh

If you want to see whitelist ip adresses

PHP:
sudo nano /usr/local/ddos/ignore.ip.list.

If you want to edit

PHP:
sudo nano /usr/local/ddos/ddos.conf

If you want to unistall

PHP:
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos

chmod 0700 uninstall.ddos

./uninstall.ddos


STEP 4 Setup Site

Choose StandAlone

PHP:
sudo apt-get install mysql-server apache2 php5 libapache2-mod-php5 phpmyadmin

sudo /etc/init.d/apache2 restart


PHP:
Now enter /var/www remove index.html

Enter cd /var do chmod 777 -R www

Enter cd /var/www/layouts/LAYOUTNAME

make chmod 755 -R images



STEP 5 Compile server sources

PHP:
cd /home

chmod 777 -R server

Login via filezilla

enter /home/server/yoursources

delete the file theforgottenserver

now back to ssh/putty.exe

cd /home/server/yoursources


PHP:
./autogen.sh

./configure --enable-mysql

make -j 2

Now you see a new file named theforgottenserver

move this file via ftp

move it from sources to serverfolder




Now how to start it?

PHP:
cd

screen -S servername

cd /home/server

./theforgottenserver


ctrl+D (To close the screen but it still runs)


Now how to kill it

PHP:
cd

killall -9 theforgottenserver


I hope you understand this tutorial and learn from it :p have a nice day!

This tutorial was created by Vnez
 
Last edited:
Nice! :)

You could also write "while true" thing for those who wants autorestarter :)
 
Nice! :D, but still there is no 100% protection from ddos...

I'll try that out! rep+
 
Thank you ;P if you got any dos protection as are 100% please tell me :p
 
i got a prob about the website i make my website but when some wants to go on the website they cant is there any1 who know how to fix it ??? add me on msn [email protected]
 
Back
Top