Using the OpenSolaris Mercurial repository


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-AT-hg.opensolaris-DOT-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
Comments:

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.

Posted by Erik T. Tornqvist on January 22, 2007 at 11:51 AM GMT #

Shouldn't there be an IP address in the ProxyCommand, to make your "substitute the IP address" instructions more clear?

Posted by Peter on January 22, 2007 at 04:08 PM GMT #

What Erik said. Should get you to well under 20 minutes: http://blogs.sun.com/sch/entry/tip%3A_mercurial_atop_ssh - Stephen

Posted by Stephen on January 22, 2007 at 05:32 PM GMT #

Thanks for the comments. I'll try compression and see how I do

Posted by Chris on January 23, 2007 at 02:08 AM GMT #

Yes 20 minuntes with compression turned on, thanks Chris

Posted by Chris on January 23, 2007 at 08:12 AM GMT #

Post a Comment:
Comments are closed for this entry.
About

Chris W Beal

Search

Archives
« July 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today