Skip to main content

Posts

Showing posts with the label ubuntu proxy

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.

Setting up / Working with Android Source code

1. Install Ubuntu 10.04, as the Android root is built on it. 2. Update the system - Run Update manager and install new packages 3. Update the system settings: Proxy (IF REQUIRED) Adding Repository 4. Install sun java 6 Install java Change the default version . 5. Installing required packages: sudo apt-get install git-core gnupg flex bison gperf build-essential \zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \libxml2-utils xsltproc 6. Upgrade git 7. Installing Repo: mkdir ~/bin PATH=~/bin:$PATH curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo chmod a+x ~/bin/repo 8. Initialising a Repo client: mkdir WORKING_DIRECTORY cd WORKING_DIRECTORY repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 If any error saying "HTTP request failed", open file "~/bin/...