Skip to content

Instantly share code, notes, and snippets.

@rishirdua
Last active June 2, 2023 05:35
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save rishirdua/b958b049ceb22588f5a4 to your computer and use it in GitHub Desktop.
Save rishirdua/b958b049ceb22588f5a4 to your computer and use it in GitHub Desktop.
Configuring Ubuntu for using IITD internet

##Configuring Ubuntu for using IIT Delhi internet

For details http://www.cc.iitd.ernet.in/ and http://mirror.iitd.ernet.in

Thanks Vibhav Sinha for helping in compiling this

###Contents:

  1. Setting environment variables
  2. Using software repository
  3. Configuring GitHub to work behind proxy
  4. Using FTP, SSH from hostels
  5. Using Skype
  6. Using LAN (oDC)
  7. Mounting homespace (CSC folders) on Nautilus

###Setting environment variables

  1. Select an appropriate proxy server.

This example uses 10.10.78.62:3128 for Dual Proxy, replace it by the appropriate proxy server

10.10.78.22:3128 (btech) 10.10.78.62:3128 (dual) 10.10.78.21:3128 (msc) 10.10.78.61:3128 (phd) 10.10.78.82:3128 (faculty) 10.10.78.21:3128 (visitor)

  1. Append these lines to ~/.bashrc
export http_proxy=http://proxy62.iitd.ernet.in:3128
export https_proxy=http://proxy62.iitd.ernet.in:3128
export HTTP_PROXY=http://proxy62.iitd.ernet.in:3128
export HTTPS_PROXY=http://proxy62.iitd.ernet.in:3128

###Using software repository

  1. Download the appropriate sources.list file from http://mirror.iitd.ernet.in/

http://mirror.iitd.ernet.in/iusers/trusty/sources.list (trusty - Trusty Tahr - 14.04 LTS) http://mirror.iitd.ernet.in/iusers/saucy/sources.list (saucy - Saucy Salamander - 13.10) http://mirror.iitd.ernet.in/iusers/raring/sources.list (raring - Raring Ringtail - 13.04) http://mirror.iitd.ernet.in/iusers/quantal/sources.list (quantal - Quantal Quetzal - 12.10) http://mirror.iitd.ernet.in/iusers/precise/sources.list (precise - Precise Pangolin - 12.04) http://mirror.iitd.ernet.in/iusers/oneiric/sources.list (oneiric - Oneiric Ocelot - 11.10) http://mirror.iitd.ernet.in/iusers/natty/sources.list (natty - Natty Narhwal - 11.04) http://mirror.iitd.ernet.in/iusers/maverick/sources.list (maverick - Maverick Meerkat - 10.10) http://mirror.iitd.ernet.in/iusers/lucid/sources.list (lucid - Lucid Lynx - 10.04) http://mirror.iitd.ernet.in/iusers/karmic/sources.list (karmic - Karmic Koala - 9.10)

  1. Edit /etc/apt/sources.list and replace the contents of the file by the downloaded sources.list It is advisable to backup the original sources.list file to use when outside IIT campus.

e.g.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo wget http://mirror.iitd.ernet.in/iusers/trusty/sources.list --no-proxy -O /etc/apt/sources.list

###Configuring GitHub to work behind proxy

1 Append these lines to ~/.gitconfig Note: On Ubuntu 11.10 or older, if you get an error "warning: remote HEAD refers to nonexistent ref, unable to checkout" you need to update the curl package

[url "https://github.com/"]
    insteadOf = git://github.com/
    insteadOf = ssh://git@github.com:
    insteadOf = git@github.com:

###Using FTP, SSH from hostels

Thanks Vibhav https://github.com/vibhavsinha for helping with this

Since these ports are blocked, you can only tunnel over these ports if you have a connection to an external server. I use Amazon EC2 as it gives free trial for an year.

  1. Open an incoming port on your remote server using 8443 as an example, feel free to use any other unused port for tunneling
  • Login to https://console.aws.amazon.com
  • Go to security groups, click on edit inbound rules and add a new rule Type: custom TCP rule Protocol: TCP Port range: 8443
  1. Create an ssh key pair
  • Create RSA key pair on local computer ssh-keygen -t rsa
  • Copy the contents of id_rsa.pub to ~/.ssh/authorized_keys on the remote server
  1. Set up port forwarding Replace the host, user, port, ip address and identity file chosen in step 1 and append these lines to .ssh/config file

host 54.68.91.204 user ubuntu port 8443 proxycommand corkscrew proxy62.iitd.ac.in 3128 %h %p identityfile /path-to-your-key-file/amazon.pem

###Using Skype

  1. Press Ctrl + O and enter proxy settings there. Apparently they don't have any menu for login screen
  2. Skype continues to work even if you logout once you start calling. Saves a lot of proxy if you make a lot of calls

###Using LAN for file sharing

  1. Install Valknut: sudo apt-get install valknut

###Mounting homespace on Nautilus

  1. Select an appropriate server:

filer01.iitd.ernet.in for users under dcs cas, cbme, ces, chemistry, civil, cse, hss, ird, library, physics, polymers filer02.iitd.ernet.in for users under admin, am, bioschool, care, cc, chemical, dbeb, dbst, dms, ee, iddc, itmmec, maths, mech, rdat

  1. Go to 'Files/Places' -> 'Connect to Server' and enter the following: Type: Windows share Domain: ACAD Server: filer{01,02}.iitd.ernet.in Username: kerberos user id Password: kerberos password

  2. Navigate to homes/dept/kerberosid/ Example: homes/ee/ee5100557

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment