Showing posts with label Ubuntu Proxy. Show all posts
Showing posts with label Ubuntu Proxy. Show all posts

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

Enjoy!

Monday, May 9, 2011

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
http://username:password@proxy_ip_address:port/
It means you have applied proxy system-wide option. Enjoy!

Thursday, May 5, 2011

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

Enjoy!

Wednesday, April 27, 2011

How to Tunnel SSH via HTTP Proxy

I have to access ssh server but there is http proxy when I want to go to internet. How can I tunnel ssh via http proxy? Here are the way to do it:

# Download corkscrew. It is easy tool for tunneling SSH through HTTP proxies

# Extract corkscrew then configure and install it
tar -xzvf corkscrew.tar.gz
cd corkscrew
./configure
make install
# Create ~/.ssh/proxyauth file and set authentication for http proxy server
username:password
# Open ~/.ssh/config file. Add proxy server ip address and its authentication in proxyauth file like this:
Host *
ProxyCommand corkscrew proxy_ip_address proxy_port %h %p ~/.ssh/proxyauth
# Try to access your server via ssh
ssh username@example.com
And it's all done. Enjoy!

Wednesday, April 13, 2011

How to Set Proxy in RabbitVCS Subversion Client

I use RabbitVCS as subversion client in my little Ubuntu box. Since I should work behind proxy, I have set up proxy username and password in RabbitVCS. Don't forget to be root to configure :).

# Go to /etc/subversion
cd /etc/subversion
# There are two files: servers and config. Open servers file
vi servers
# Find [global] section and set proxy host, username, and password
[global]
http-proxy-host = proxy_ip_address
http-proxy-port = proxy_port
http-proxy-username = username
http-proxy-password = password
And you're ready to version your apps. Enjoy!

Monday, April 11, 2011

How to Execute Wget Behind Proxy

Two days getting headache because of working behind proxy, here is one of the result: wget command with using proxy option enabled.
wget --proxy-user=username --proxy-passwd=password
http://example.com/file.zip

Don't forget to set your proxy first. Enjoy!

Curl Using Proxy in Linux Console

Going crazy using Linux console? Here is how to use curl in console behind proxy.
curl -x proxy_ip_address:port -U username:password http://example.com

Enjoy!