Codes from my life

Posts tagged ‘proxy setting’

using GIT behind proxy

GIT is another software used for version control as SVN or CVS. Today when I was at gym Shreyank requested me to find out a possible solution for using GIT as he saw what I had posted earlier to use SVN and Pidgin. He was really very happy to see Pidgin working.

I came back then I thought I should give it a try too. I visited the LDTP site. There I saw a link for using git behind proxy. I dont know how it worked for me. I simply noticed that there was a simple change of protocols while using proxy, git:// was changed to http://.This is what I used to download the source of LDTP

$git clone http://anongit.freedesktop.org/git/ldtp/ldtp.git

I tried and bang! it was working for me. I had done only the usual proxy setting form yast, it sets up the http_proxy Environment variable. Check if it is set for you.

$echo $http_proxy

If the output is not “http://10.0.0.1:3128″ then the proxy setting is not done for you. Do this

$export http_proxy=”http://10.0.0.1:3128”

It should work for you also.

Cheers 🙂

Advertisements

Using SVN and Pidgin via(or behind) proxy

As our college has installed new proxy server, it has become difficult for people to use Linux. So I spent some time and then found out ways to resolve some problems.

SVN can be easily configured to work behind proxy. In your home directory search for the .subversion directory. If the directory does not exist, open a terminal type svn and hit enter the default configuration files will be created. As the name suggests it is a hidden directory. Inside it and there is a file name “servers”. All the proxy settings can be done here. Now notice the string “[global]”  which is at the last. Here you can do the necessary changes. Remove the hash “#” in front of http-proxy-host and http-proxy-port and align it to left, I mean delete any space because it looks for the settings from the first column. Now add the 10.0.0.1 and 3128 port no. After editing it should look like this

———————————————————–

## leave the lines above it untouched, it is always better to back up a configuration file before editing

[global]
# http-proxy-exceptions = *.exception.com, http://www.internal-site.org
http-proxy-host = 10.0.0.1
http-proxy-port = 3128
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword
# http-compression = no
# http-auth-types = basic;digest;negotiate
# No http-timeout, so just use the builtin default.
# No neon-debug-mask, so neon debugging is disabled.
# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem
——————————————————–

Now it is done. Check if it works, it worked for me. If it still doesnot work set the http_proxy variable.

$export http_proxy=http://10.0.0.1:3128

Now check it.

$echo $http_proxy

It should show ‘http://10.0.0.1:3128’ .

Pidgin can be very easily configured for GTalk likewise,

Go to manage accounts, and select the account then go to the advanced tab. Check “Force old (port 5223) SSL. Then change the Connect port to 443. Now go to proxy options and then select HTTP and then set Host as 10.0.0.1 and port as 3128. You are now done. Enjoy. 🙂