X

An Oracle blog about Solaris

Using the OpenSolaris Mercurial repository

Chris Beal
Senior Principal Software Engineer


I finally decided to have a look at how you get OpenSolaris from the Mercurial repository I've been put off by the fact at the office we're behind a fire wall, so you have to pull it through a Socks proxy.



I turns out it's absolutely trivial to do (the instructions are all on the OpenSolaris WebSite.



If you're behind a firewall that requires you to have a proxy for ssh th first thing you need to do is set up ssh to use a proxy. I can't help you with that other than to say add the following line to your ssh config for opensolaris.org





$ cat ~/.ssh/config

Host \*.opensolaris.org

ProxyCommand /usr/lib/ssh/ssh-socks5-proxy-connect -h [Proxy IP address] %h %p

Compression yes



(thanks to Erik and Stephen for pointing out the compression option)

Putting in the IP address of your socks proxy.



Now you can clone the repository



$ hg clone ssh://anon@hg.opensolaris.org/hg/onnv/onnv-gate

adding changesets

adding manifests

adding file changes

added 3487 changesets with 67524 changes to 43099 files

39742 files updated, 0 files merged, 0 files removed, 0 files unresolved



It took only 37 minutes to my home machine which is much faster than a full bringover in teamware



Now to start playing with some of the build tools

Join the discussion

Comments ( 5 )
  • Erik T. Tornqvist Monday, January 22, 2007
    Mercurial turns off compression when tunneling through a SSH connection, so you might want to add 'Compression yes' to your ~/.ssh/config to bring down the time of operation even more.
  • Peter Monday, January 22, 2007
    Shouldn't there be an IP address in the ProxyCommand, to make your "substitute the IP address" instructions more clear?
  • Stephen Monday, January 22, 2007
    What Erik said. Should get you to well under 20 minutes:
    http://blogs.sun.com/sch/entry/tip%3A_mercurial_atop_ssh
    - Stephen
  • Chris Tuesday, January 23, 2007
    Thanks for the comments. I'll try compression and see how I do
  • Chris Tuesday, January 23, 2007
    Yes 20 minuntes with compression turned on, thanks
    Chris
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.