
CREATING A SERVER
USING UBUNTU 14.04
Instruction 1
Download No-IP DUC and install it on your server computer by typing in the terminal interface:
sudo -s
Type the password you use to log on to Ubuntu. Now, you have to install the software needed to build the No-IP Client. You can do this by typing this into the terminal:
apt-get install build-essential checkinstall
Now, it's time to install the No-IP DUC client. Type this into the terminal:
cd /usr/local/src/
The 'cd' prefix means 'Change Directory'. What you're doing here is selecting the directory for the installation of your No-IP DUC client. Now, enter this into the terminal – a new line means a new entry.
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
dir (Take note the directory that appears when you hit enter after typing in this command – this is where the file you just extracted is located on your hard disk.)
Now, use the 'cd' command to locate that directory. Begin the installation process by entering:
checkinstall
-
Press 'y' to accept the default documentations.
-
Enter 'noip' as the name of the software.
-
Press 'enter' three times to accept the name and default descriptions of the client.
Now, you need to configure your client for the custom domain service.
-
When you are asked, enter your No-IP username (the one with which you log in with).
-
Enter the corresponding password.
-
Press 'enter' once.
-
Press 'n', then enter. Do that twice. This skips listing the included legal and licensing documents.
-
Now, press 'y', and then 'enter' to exclude the additional documents from your installation package. You don't need them, as they are just legal information.
Now you've finished installing your No-IP, you can switch back to the regular user by typing this into the terminal:
su [your_username]
Next, you will create a script so your No-IP client starts at start-up.
sudo chmod 7777 /usr/local/etc/etc/no-iip2.conf (This command allows a regular user to edit system files)
sudo nano /etc/init.d/noip
Copy and paste the following lines of code into the document you've opened in the Terminal interface. The code can be viewed here.
Exit and save by pressing ctrl+x and then y.
Test your script by typing the following commands into the terminal interface:
sudo /etc/init.d/noip stop
sudo /etc/init.d/noip start
Now that you've finished creating the startup scripts, we'll reset the permissions so only the superuser (su) and the system can execute the commands. To do this, type:
sudo chmod 700 /usr/local/bin/noip2
sudo chown root:root /usr/local/bin/noip2
sudo chmod 700 /etc/init.d/noip
sudo chown root:root /etc/init.d/noip
sudo chmod 700 /usr/local/etc/no-ip2.conf
sudo chown root:root /usr/local/etc/no-ip2.conf
You're almost done! All you have to do now is add the no-ip startup script you just created to be part of the Ubuntu Boot process. Type into the Terminal Interface:
sudo nano /etc/rc.local
This command will open up a text document which is essential to the startup process in Ub-untu. In the line above the words 'exit 0', you need to type:
/etc/init.d/noip start
One last thing – in order for your no-ip client to work, you have to open the port 8245 in your modem/router. To do this , you need to port forward. If you need some help with port forwarding, click here.
If you've done everything correctly, users will be able to access your web or FTP server by typing in their browser address bar:
http://[your_noip_username].no-ip.biz
Making a Static IP Address
Well done, you're almost there in getting your server up and running. You've installed Ubuntu, reserved an IPv4 address and Port Forwarded. Now, all you need to do is make your dynamic IP address static. We'll be using a free program from the internet called No-IP DUC. If you're making a dedicated game server, you need an IP address for your users to connect to. On a Windows computer, go to the No-IP DUC website (http://no-ip.com) and make an account with your pre-ferred email address and use a secure password (at least 8 characters, a mixture of numbers, letters, symbols, etc.). Choose your service type and custom domain name, which will then be linked with your No-IP account.