Thursday, 20 August 2015
Wednesday, 19 August 2015
How to set proxy in Ubuntu using Command Line Interface(CLI)?
Servers such as Ubuntu Server, Fedora Server, VM based servers etc. run without GUI. If the edge of the network requires proxy connection to establish Internet, it has to be done from the CLI. Here are the basic commands to set proxy for Ubuntu.
1. To Check whether proxy is already set:
$echo $http_proxy (For http proxy)
$echo $https_proxy (For https proxy)
$echo $ftp_proxy (For ftp proxy)
2. To set proxy:
$export http_proxy="http://proxyuser:proxypwd@proxy.server.com:port_number/"
$export https_proxy="https://proxyuser:proxypwd@proxy.server.com:port_number/"
$export ftp_proxy="ftp://proxyuser:proxypwd@proxy.server.com:port_number/"
change proxyuser to your proxy user
change proxypwd to your proxy password
change proxy.server.com to the URL of your proxy server
change port_number to the proxy port configured on your proxy server
Note:
Ubuntu command apt-get does not work after the above setting also. For this, the following steps have to follow:
1. Create a file name 40proxy inside /etc/apt/apt.conf.d/2. write the following lines(according to the requirement) :
Acquire::http::proxy "http://proxyuser:proxypwd@proxy.server.com:port_number/";
Acquire::https::proxy "https://proxyuser:proxypwd@proxy.server.com:port_number/";
Acquire::ftp::proxy "ftp://proxyuser:proxypwd@proxy.server.com:port_number/";
Tuesday, 18 August 2015
Set Proxy in Git Application
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Any Git user can upload projects source code to the Git server and share with others. It also allows users to update and synchronous from the local machine. Generally, Git comes with Command Line Interface(CLI) exceptionally few 3rd party GUI applications.
Git does not use normal system proxy and to connect, proxy has to be explicitly set for this application. If you are trying to connect Github from behind the proxy server, it will not work unless the proxy is set.
How to set proxy from the CLI? Here are the few steps :
1.Check whether proxy is set :
git config --global --get https.proxy
2. Set proxy :
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
change proxyuser to your proxy user
change proxypwd to your proxy password
change proxy.server.com to the URL of your proxy server
change 8080 to the proxy port configured on your proxy server
3. To reset this proxy and work without (no proxy):
git config --global --unset http.proxy
git config --global --unset https.proxy
Current Position
Hi,
I am currently working as an Assistant Professor (Contractual) at Computer Science & Engineering department, NIT Silchar. NIT Silchar is one of 30 NITs under the Government of India(GoI) and It has been designated as Institute of National Importance(INI) under the National Institutes of Technology Act, 2007.
However in parallel with teaching, my ongoing research field are Mobile Cloud Computing, Software Defined Networking.
-Arif
Monday, 17 August 2015
Introduction
Hi Everyone,
Cheers,
Arif
I am Arif Ahmed, INDIAN, from Silchar, Assam. I completed graduation(Information technology) from Assam University, INDIA in 2012, and post graduation(Computer Science & Engineering) from National Institute of Technology, Silchar in 2014.
Here, I will post ideas related to my activities i.e. Research, Teaching etc.
Cheers,
Arif
Subscribe to:
Posts (Atom)