Pages

Create server in Ubuntu

Thursday, October 24, 2013

Summary:
--------
Create your own ubuntu server

installation steps:
------------------

Step1:
-----
Open terminal, check your root password is valid.

sudo su

check the password is correct/wrong

Step2:
------
In terminal type command and get your local  ip address:

ifconfig eth0 | grep inet | awk '{ print $2 }'

Step3:
------
Now login using ssh from root

$ ssh root@123.122.34.32
$ Enter your root(server) password
$ It may ask public key credentials, type 'yes'


Step4:
------
Create a user account for the login accout

adduser rails

Step5:
------
Give all root permission for the user

$ visudo

add the following command lines after the root previllages

# User privilege specification
rails    ALL=(ALL:ALL) ALL

Type 'ctrl+x'

Save the file.

Step6:
-----
Now you can login as rails to the created server

$ ssh rails@123.122.34.32
$ enter password: ****

You can do with your server whatever requirements

No comments:

Post a Comment