Skip to main content

Posts

Showing posts with the label proxy settings

Ubuntu: Proxy settings for Maven

Recently I faced problem using maven under a proxy network and by little research, found this solution. Temporary solution : Add the following options along with your maven command -DproxySet=true -DproxyHost=myproxy.com -DproxyPort=3128 For example, to run "mvn package": mvn -DproxySet=true -DproxyHost= my.proxy.host -DproxyPort= 3128 package Permanent solution : To add the proxy settings permanently, goto {M2_HOME}/conf/settings.xml and find the <proxies> section. Un-comment the required sections and configure accordingly. To set proxy without password protection, change it as follows: <proxies>    <proxy>       <id>optional</id>       <active>true</active>       <protocol>http</protocol>       <host> proxy.host.net </host>       <port> 80 </port>  ...

Ubuntu: Set Network proxy system-wide including Terminal

Set the proxy in "Network Proxy" setings and click "apply system-wide", and also at the following locations. Some terminal applications need them. sudo gedit /etc/apt/apt.conf.d/95proxies Acquire::http::proxy "http://username:passwd@proxy:port/"; Acquire::ftp::proxy "ftp://username:passwd@proxy:port/"; Acquire::https::proxy "https://username:passwd@proxy:port/"; sudo gedit .bashrc export http_proxy=http://username:passwd@proxy:port export https_proxy=http://username:passwd@proxy:port export HTTP_PROXY=http://username:passwd@proxy:port export HTTPS_PROXY=http://username:passwd@proxy:port Requires both CAPITALS and small ones. Some applications accepts only CAPITALS.

SVN Error: "OPTIONS of 'https://…' could not connect to server (…)"

Today when I tried to download source-code of an application from a repository on googlecode, an error saying "could not connect to server xxxx.googlecode.com" occurred. I thought the repository might have been down and not available for download. Then I tried the same URL in web browser and it worked. On searching for a while, I found that this problem is created by proxy settings. SVN needs the proxy settings, apart from that you applied system-wide settings. Then I came to know a solution which worked perfectly. Here it is: svn --config-option servers:global:http-proxy-host=MY_PROXY_HOST --config-option servers:global:http-proxy-port=MY_PROXY_PORT checkout http://xxxx.googlecode.com/yyyyy/ If the proxy server needs authentication, then try this: svn --config-option servers:global:http-proxy-host=MY_PROXY_HOST --config-option servers:global:http-proxy-port=MY_PROXY_PORT --config-option servers:global:http-proxy-username=USERNAME --config-option servers:global:http...