lsb_release -aThen it will print out some messages like this:
No LSB modules are available.So I has already know what Ubuntu version used in server. It is Natty. Enjoy!
Distributor ID: Ubuntu
Description: Ubuntu 11.04
ssh-keygen -f "/home/hudan/.ssh/known_hosts" -R server_ip_addressEnjoy :).
sudo apt-get updateUnfortunately, when I upgrade my Maverick to Natty, those two don't work. Then I googled it and find simpler method. Here we go:
sudo apt-get dist-upgrade
echo $http_proxy# After choosing this option, close Terminal. Then try echoing again and you will get message like this
http://username:password@proxy_ip_address:port/It means you have applied proxy system-wide option. Enjoy!