+ Post New Thread
Results 1 to 1 of 1
CLEO Thread, [guide]Git (through GitHub) and RubyGems through the Proxy in Regional Broadband Consortiums (RBC); After reporting these faults to the westfield they have now been resolved! But getting them through the proxy requires a ...
  1. #1
    Arcath's Avatar
    Join Date
    Feb 2009
    Thank Post
    Thanked 116 Times in 101 Posts
    Rep Power

    [guide]Git (through GitHub) and RubyGems through the Proxy

    After reporting these faults to the westfield they have now been resolved! But getting them through the proxy requires a couple of little tweaks that its probably useful to have recorded somewhere.

    First off git, by default this uses ssh which of course is blocked, but the good people at github have made it possible to clone repos through a standard http request. There are 2 http versions of a given repo, a HTTP read only version and a HTTPS R/W version.

    The HTTP version is very easy to setup, first off you need to make sure the proxy environment variable is set, do this by issuing this command:

    echo $http_proxy
    if it returns an empty line you will need to set the proxy by issuing this command:

    export http_proxy="http://proxy.lancsngfl.ac.uk:8080"
    Once the proxy has been set you can clone a repo by issuing this command

    git clone http://github.com/<USER>/<REPO>.git
    Where <USER> is the repo owner and <REPO> is the repository name.

    But what if you are the repo owner or a comiter? then you probably want the ability to commit from within school, this is in-theory capable with the HTTPS version of the repo but i havent got it working on any of my machines but I will edit this post when I do.

    RubyGems works entirely over HTTP but unlike git it doesn't use the environment variable for the proxy. instead you have to define it on the run line

    gem install --http-proxy http://proxy.lancsngfl.ac.uk:8080 <GEM>
    This method doesn't work to well when you need to authenticate to use the proxy server, in this case see section 2.3 here

    if you get this error:

    ERROR: While executing gem ... (Zlib:ataError)
    incorrect header check
    Simply re-issue the command, it can take a few tries but it will work

    That about covers it, i was able to install rails + a few other gems and then use the http url to clone a repo to the local machine.
    Last edited by Arcath; 22nd June 2010 at 09:33 AM. Reason: adding an error

+ Post New Thread

Similar Threads

  1. Replies: 22
    Last Post: 2nd March 2011, 02:49 PM
  2. Proxy On Proxy Off App
    By craigg in forum Scripts
    Replies: 40
    Last Post: 28th May 2010, 03:46 PM
  3. Proxy switch "proxy on" & " proxy off" software
    By GavRob in forum Network and Classroom Management
    Replies: 20
    Last Post: 30th July 2007, 10:05 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts