Friday, May 27, 2011

[Ubuntu] How to Launch Network Proxy Properties in Terminal

I want to bypass System*Preferences*Network Proxy by using a command line interface in Terminal. After hacking Ubuntu Alt+F2 and command completion in Terminal for a while, I found the way how to launch Network Proxy Properties in Terminal. Here is the command line:

$ gnome-network-properties


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!

Network Proxy: Apply System-Wide

In several latest version of Ubuntu, we have Network Proxy Preferences menu. In this article, I want to show the effect of Apply System-Wide option. One of this effect is when we work in Terminal.

# Before applying system-wide proxy, try echoing proxy in Terminal and it will show nothing
echo $http_proxy
# After choosing this option, close Terminal. Then try echoing again and you will get message like this
It means you have applied proxy system-wide option. Enjoy!

Thursday, May 5, 2011

Ubuntu Arabic Keyboard Layout

Just wanna share Arabic keyboard layout in Ubuntu. Maybe you want to print it or just to look at it :). Don't forget to click the image to enlarge.


How to Set Skype Proxy in Ubuntu

Hi... we are still talking about proxy :). Now, we want to play Skype and we have to set proxy first. This how-to has been tested in Ubuntu Maverick Meerkat. Here we go:

# When you launch Skype, you will get icon in your top-right panel

# Right click it and choose Options

# Change proxy ip address, username, and password as appropriate (click image to enlarge)

We are done here :). Enjoy!

Sunday, May 1, 2011

Export Proxy in Ubuntu Terminal

Before working with http proxy, you must set it first. When you are on terminal mode, here we go:

export http_proxy="http://proxy_ip_address:port"
export http_proxy_user=username
export http_proxy_passwd=password