To Do List After Launching a New Linux/Unix Like Server for Development

Standard

Commands, tricks & cautions that will be used here have been tested only on a Ubuntu 12.04 VPS. Though, most of the commands should work in other Unix like system without any change.
In this lesson we will see how should a newly launched/opened server be configured for basic security & proper accessibility. Usually you get an IP address & a root password for logging in as root, as soon as you open a new cloud/vps server from rackspace/digitalocean or some others like these.

1. Connecting to the remote system through/using SSH:
SSH(Secure Shell) is a protocol used to securely loggin in to a remote system & also ssh is the tool used in Linux that connect to the remote server over the SSH protocol.

ssh root@123.45.67.890

The terminal will show a message and will prompt

....
Are you sure you want to continue connecting (yes/no)?

Type yes & press enter & then in next prompt enter your root password that was provided by that server provider while opening a VPS. So, now we are logged in to the remote system as root user.

2. Change your root user’s password:
You used the root password that was generated & provided by the server provider & the first thing is to change this password. Enter the following command on the terminal.

passwd

It will first ask the current root password & after entering the current password it will ask your desired new password twice for confirmation. Continue reading

How to setup LAMP server in Ubuntu by only one command

Standard
Here is a shortcut and easiest way of setting up LAMP server in Ubuntu.
Well, there is obviously option of installing packages separately for making ready a LAMP server in Ubuntu.
Open  terminal or Connect to remote server via it and then execute the following commad.
Only command:
sudo tasksel
Then the following window should pop-up in the terminal.

Select ([.] LAMP server) by pressing arrow key and do (OK) by pressing Tab key of keyboard. On the next screent, type your desired password for MySQL and Done!!!

If some how this command does not work then simply use the following one:


sudo apt-get install lamp-server^