Tuesday, May 10, 2011

How to Check Ubuntu Version in Terminal

I just curious about how to check Ubuntu version via Terminal. Since I often remote a server and I don't know what version is. Here is the command:
lsb_release -a
Then it will print out some messages like this:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
So I has already know what Ubuntu version used in server. It is Natty. Enjoy!

Warning: Remote Host Identification has Changed!

When we remote a server using ssh, sometimes we get a warning message like this:

Warning: Remote Host Identification has Changed!

What should we do? Just follow a command below the warning.
ssh-keygen -f "/home/hudan/.ssh/known_hosts" -R server_ip_address
Enjoy :).

Monday, May 9, 2011

How to Upgrade to Natty

Usually, I upgrade my Ubuntu box by first changing source list file. Then issuing this two simple command in Terminal:
sudo apt-get update
sudo apt-get dist-upgrade
Unfortunately, when I upgrade my Maverick to Natty, those two don't work. Then I googled it and find simpler method. Here we go:

# Look for Update Manager menu. Then click Install Update button (it is located in bottom left of dialog box).

# Wait for approximately three hours (this is based on your internet speed)

# Restart your PC.

Welcome to the new look of Natty. Enjoy!