Wednesday, June 16, 2010

Linux for Java Programmer - Install

1. Install Ubuntu in Cloud Server


Install OS is very easy in cloud server, just one click:
just select the Ubuntu 10.04 LTS (Lucid Lynx)image then everything has done for you.

For those who install Ubuntu on your local mechine, make sure you choose SSH server during installation or you can use this command to install it after:

sudo aptitude install ssh


2. Conntect Server via SSH


After you finish installation of Ubuntu image, there will be a email regarding your ip adress and root password. Now you can connect to your cloud server via SSH.
(If you install it on your computer, you already have those information).

Fire your terminal, use the following command:
ssh username@123.456.789.0
username@server ip address

You can download a SSH client, such as putty
input your server's ip address and connect.

3. Create a new user for your server


adduser --home /home/kecai --ingroup sudo kecai
create sudo user "kecai" and set "/home/kecai" as his home directory.

4. Update and upgrade


apt-get update
update package cache


apt-get upgrade
upgrade the packages on your server to keep it secure.


5. Secure copy (Upload files to sever)


scp file.txt caike@123.345.678.90:/home/caike

5. Shutdown or reboot server
sudo shutdown -h now
Shutdown server immediately.


sudo reboot
reboot server.

0 comments: