How To Install No Ip On Ubuntu
How To Install No-ip2 On Ubuntu 12.04 LTS In Gild To Host Servers On A Dynamic IP Accost
Hosting your ain servers at home is bully, you can host your own website from dwelling house, share family photos, and stream your media to anywhere in the world. However all of this requires that yous take a location on the internet which people can find such every bit http://world wide web.mywebsitedomain.com.
This is unremarkably done by purchasing a domain name and pointing information technology to a static IP accost which isn't free.
In this how-to I volition prove you lot how to attain the same web accost outcome on a dynamic IP address by installing the free No-IP service into Ubuntu 12.04 LTS which is also the perfect host for your own websites and streaming services.
To install Ubuntu 12.04 LTS y'all need a calculator with goose egg on information technology to be the server. These days almost any old PC can be repostioned every bit a succesful Ubuntu server. Just have that old PC you were going to throw away and follow the swell guide for installing a LAMP server at http://world wide web.ubuntugeek.com/step-by-step-ubuntu-12-04-precise-lamp-server-setup.html Get all the way to the "static ip" part and stop there.
In one case you have a LAMP server running with SSH as in that example you tin can admission a terminal on that server from your normal PC using putty for example. At present you are ready to get the No-IP service running on it.
Starting time get to http://world wide web.noip.com click "sign up now" under "Free dynamic DNS"
Sign upward with a unique no-ip username and password. You will be assigned a gratuitous web site name probably something like http://<your_noip_user_name>.no-ip.biz
Click the "no cheers I'll utilize no-ip.biz" link to use the gratuitous DNS with the site y'all were assigned
I unclicked the "send me stuff" cheque box because I'1000 not a fan of being sent stuff but hey, since they are offering it all for gratuitous, y'all should do what you feel is best there.
Click "sign up" under the "free dns service" column. Of form if you lot and then chose you lot could pay for some premium services just that'southward outisde the scope of this how-to.
Now open a terminal to your server using putty for example and login with the username and countersign that yous setup during the LAMP installation.
Switch to the root user
sudo -s
When asked, enter the password for the username you installed ubuntu with
Install the software required to build the no-ip client
apt-go install build-essential checkinstall
Download the no-ip client
cd /usr/local/src/
wget http://www.no-ip.com/customer/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
dir
Notation down the directory where the client was extracted to eg: noip-ii.one.nine-ane and "cd" to it
cd noip-2.1.9-i/
Commencement the installation process
checkinstall
Click y to accept the default docs
Enter "noip" as a proper noun for the software
Hit enter three times to accept the name and descriptions for the programme
Now you lot will configure the client for your no-ip web service
When asked, enter your no-ip login name
When asked, enter the no-ip password for that username
Hit enter to accept the xxx second update rate
Hitting enter to accept N and become on without running a script on successful update (yous dont need it)
Hit enter to accept n and skip listing the included docs
Hit enter to accept y and exclude the boosted docs from the package
Note downwardly the dpkg uninstall line but DONT run it. Its for uninstalling the packet.
It will be something like: dpkg -r noip-2.1.nine
Switch back to the normal user
su <ubuntu_username>
Nosotros will make the file permission quite permissive for ease of setup and so restrict them once more afterward
sudo chmod 7777 /usr/local/etc/no-ip2.conf
Now we will write a simple outset upwardly script so the customer will start when the calculator starts.
sudo nano /etc/init.d/noip
Re-create and paste all the following lines (between the long ##### lines) into the file you have just started. (If you are using putty from within windows you can use ctrl-c to copy and then in the putty terminal either right cick or use shift-ins to paste
#######################################################
#! /bin/sh
instance "$1" in
starting time)
repeat "Starting noip2"
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2"
for i in `noip2 -Due south 2>&1 | grep Process | awk '{print $2}' | tr -d ','`
practice
noip2 -K $i
done
;;
*)
echo "Usage: $0 {start|stop}"
leave 1
esac
leave 0
#######################################################
Now get out and save. ctrl-x to leave and y to relieve.
You lot should be able to test the startup scripts with
sudo /etc/init.d/noip stop
sudo /etc/init.d/noip kickoff
Now we reset the persmissions and so only the root user (ie the organisation itself) will run the programs from within the first up procedure
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
Now we volition add the the noip starting time script to the ubuntu startup process
sudo nano /etc/rc.local
In the line above "exit 0" add together the following line
/etc/init.d/noip first
In society for the client to work yous will demand to open port 8245 through to the server. The way you do this depends on your modem/router. This is called port forwarding. If you need aid with port forwarding become to: www.portforward.com
Finally after all this your servers should exist available from everywhere at
http://<your_noip_user_name>.no-ip.biz
Obviously in addition tot he no-ip client port 8245 you will also need to open up upwardly ports for the services you lot are trying to run on your home server. Port 80 for a web server for example
If you had installed the Ubuntu LAMP server every bit described in the link I gave at the superlative you can check if its working by going to your site and you should come across the ubuntu apache default spider web page saying something similar "Its working"
Please notation that since No-IP is a free service they will prune unused ip addresses every thirty days. Yous will exist warned of this at the email address yous gave and you tin can log back into No-IP to continue the address alive. As per the No-IP website "Free hostnames must be updated every thirty days in order to keep them active. We do this to keep our network clear of unused hostnames. We send frequent notifications via email to remind you to update your hostname, or y'all tin manually update your hostname by logging in to your No-IP account and clicking the "Hosts/Redirects" tab, click "Modify" next to the hostname you would similar to update and click "Update" at the bottom right."
Suggested articles
This feature is merely bachelor to subscribers. Get your subscription here.
Source: https://www.howtoforge.com/how-to-install-no-ip2-on-ubuntu-12.04-lts-in-order-to-host-servers-on-a-dynamic-ip-address
Posted by: hucksomad1986.blogspot.com
0 Response to "How To Install No Ip On Ubuntu"
Post a Comment