New Offline/Proxied Install Documentation

2 views
Skip to first unread message

Krys

unread,
Sep 13, 2006, 12:47:17 AM9/13/06
to TurboGears
Hi all,

I just wanted to tell everyone that I have created a new wiki page:

http://docs.turbogears.org/1.0/OfflineInstall

It explains how to install setuptools and TurboGears without needing
easy_install to access the internet. This is useful when you are
behind a highly restrictive proxy or firewall or when you want to
download TG and do an "offline" install on one or more machines.

I have seen this question come up a number of times on this list and
it's something that I have to deal with myself.

Well, after some gentle prodding (thanks gasolin!) :-), I finally wrote
something up!

(See this thread for all the gory details, if you care:)

http://groups.google.com/group/turbogears/browse_thread/thread/54e70ff3389a72f6/677e4c3de9fa484d?lnk=gst&q=1.0b1&rnum=1#677e4c3de9fa484d

This is my first real contribution to any open-source project, so
please go easy on me. :-) If anyone sees any problems with it or want
to see if improved, please post here, or better yet, edit it directly!
It's a wiki after all.

One final note: I added a reference to Ed Singleton's 1.0b1 tarball
(mentioned in other thread, see above). I don't want to volumteer you,
Ed, for anyting so if you (or anyone) thinks that should not be there,
just say so.

Anyway, I hope people find this information usefull.

Thanks to everyone that has made TG a reality! You rock!

Krys

cow133

unread,
Sep 13, 2006, 8:27:12 AM9/13/06
to TurboGears
I've just managed to update my Windows PC to the latest TurboGears from
behind our firewall. In case it's useful:

Download aps098.zip from
http://sourceforge.net/project/showfiles.php?group_id=69259

Modify server.cfg; in the [GENERAL] section set PARENT_PROXY:and
PARENT_PROXY_PORT:to match the values in Internet Explorer | Tools |
Internet Options | Connections | LAN settings | Proxy settings. Leave
the LISTEN_PORT at 5865.

In the [NTLM_AUTH] section, set the NT_DOMAIN to your domain, USER to
your login ID and clear the PASSWORD field so you will be asked for it
in the next step (I would not advise saving your password in this text
file).

Open A DOS command window, change to the APS folder, do runserver.bat.
This should ask for your password.

Open another DOS command window.

Redirect python through your APS proxy:
set HTTP_PROXY=http://127.0.0.1:5865

Change to the python scripts folder (on my PC its python24\scripts).
This is to allow you to use the Python easy_install script rather than
the exe, which causes an error (on my Windows PC at least).

Finally:
C:\Python24\Scripts>easy_install-script.py -Uf
http://www.turbogears.org/download/index.html TurboGears

Karl Guertin

unread,
Sep 13, 2006, 9:03:51 AM9/13/06
to turbo...@googlegroups.com
On 9/13/06, Krys <krysw...@gmail.com> wrote:
> This is my first real contribution to any open-source project, so
> please go easy on me. :-) If anyone sees any problems with it or want
> to see if improved, please post here, or better yet, edit it directly!
> It's a wiki after all.

Thanks for writing that up. I've been holding off on writing the doc
because I'm expecting an official set of platform-dependent zips,
which addresses the problem more directly. In the meantime, it'll save
people some time, so I'll link it up from the index.

Jorge Vargas

unread,
Sep 13, 2006, 9:57:46 AM9/13/06
to turbo...@googlegroups.com
On 9/13/06, cow133 <cow...@gmail.com> wrote:
>
> I've just managed to update my Windows PC to the latest TurboGears from
> behind our firewall. In case it's useful:
>
did you try http://trac.turbogears.org/turbogears/wiki/InstallBehindProxy
that works on my company without problems.

Jorge Vargas

unread,
Sep 13, 2006, 10:22:30 AM9/13/06
to turbo...@googlegroups.com
On 9/13/06, Krys <krysw...@gmail.com> wrote:
>
> Hi all,
>
> I just wanted to tell everyone that I have created a new wiki page:
>
> http://docs.turbogears.org/1.0/OfflineInstall
>
Nice reading. Some comments below

> It explains how to install setuptools and TurboGears without needing
> easy_install to access the internet. This is useful when you are
> behind a highly restrictive proxy or firewall or when you want to
> download TG and do an "offline" install on one or more machines.
>

I reply to cow133 on a small doc I wrote to make setuptools work
behind a proxy, maybe adding that as an option before getting all the
files manually could be an option.

Also I made a small correction about ConfigObj

Krys

unread,
Sep 13, 2006, 5:16:34 PM9/13/06
to TurboGears
cow133 wrote:
> I've just managed to update my Windows PC to the latest TurboGears from
> behind our firewall. In case it's useful:
>
> Download aps098.zip from
> http://sourceforge.net/project/showfiles.php?group_id=69259

That is actually the way that the setuptools docs recomend, and I
always keep it handy, but I dislike the idea of setting up a proxy
everytime I want to install/upgrade packages, and in my case there is
still the issue of our corporate NetShield filtering things.

I wonder if I should add a blurb about it to the wiki page, even though
the current solution is more general.

Thoughts anyone?

Thanks,
Krys

Krys

unread,
Sep 13, 2006, 5:20:22 PM9/13/06
to TurboGears

Karl Guertin wrote:
> Thanks for writing that up. I've been holding off on writing the doc
> because I'm expecting an official set of platform-dependent zips,
> which addresses the problem more directly. In the meantime, it'll save
> people some time, so I'll link it up from the index.

Cool! :-)

Krys

Krys

unread,
Sep 13, 2006, 5:24:13 PM9/13/06
to TurboGears

The problem is that python cannot handle NTLM authentication (M$
proprietary protocol) by default so the built-in proxy support won't
work (it supports standards!) :-(. APS is designed specifically to
talk NTLM.

If you are lucky enough to not live behind MS Proxy Server, then you
don't need APS. (Lucky you!) :-)

Krys

Krys

unread,
Sep 13, 2006, 5:33:29 PM9/13/06
to TurboGears
Karl Guertin wrote:
> Thanks for writing that up. I've been holding off on writing the doc
> because I'm expecting an official set of platform-dependent zips,
> which addresses the problem more directly. In the meantime, it'll save
> people some time, so I'll link it up from the index.

I just noticed your edit.

Actually I meant "platform-INdependant", as I want to make the
distinction when there is a choice. The platform-dependant info, I
think, is well explained, but in at least one case there is the choice
of TG-x-y-z.egg and TG-x-y-z.tag.gz and I wanted to make the preference
clear.

Maybe it was not so clear. :-)

Anyway, I put the IN back, but if you think it should be edited, please
feel free or let me know and I will.

Thanks!
Krys

Krys

unread,
Sep 13, 2006, 5:37:12 PM9/13/06
to TurboGears
Jorge Vargas wrote:
> Nice reading. Some comments below
>

Thanks!

> I reply to cow133 on a small doc I wrote to make setuptools work
> behind a proxy, maybe adding that as an option before getting all the
> files manually could be an option.

Yeah, I think I will put in a blurb about it.

> Also I made a small correction about ConfigObj

That's more generic = better. Thanks! :-)

Krys

Karl Guertin

unread,
Sep 13, 2006, 5:42:27 PM9/13/06
to turbo...@googlegroups.com
On 9/13/06, Krys <krysw...@gmail.com> wrote:
> Actually I meant "platform-INdependant", as I want to make the
> distinction when there is a choice. The platform-dependant info, I
> think, is well explained, but in at least one case there is the choice
> of TG-x-y-z.egg and TG-x-y-z.tag.gz and I wanted to make the preference
> clear.

Eh, I was just reading through and it looked like a typo. If you like,
you can just say that eggs are generally preferable over .tar.gz files
without mentioning platform specific/independant.

Krys

unread,
Sep 13, 2006, 6:42:55 PM9/13/06
to TurboGears
cow133 wrote:
> I've just managed to update my Windows PC to the latest TurboGears from
> behind our firewall. In case it's useful:
>
> Download aps098.zip from
> http://sourceforge.net/project/showfiles.php?group_id=69259

Okay, at Jorge Vargas' suggestion, I have added a section on using APS.

I basically just copied your instructions, cow133, as they were well
written. I hope you don't mind. :-)

If anyone sees any mistakes or things that need clarifying, please say
so (or do the edit directly.)

Thanks cow133 for the well written APS instructions.

Krys

cow133

unread,
Sep 14, 2006, 3:44:58 PM9/14/06
to TurboGears
I'm blushing, Krys. Glad to be useful - about time I gave something
back! Now I've got tg set up I'd better try doing something with it . .
.

BTW, any other old punks on the list remember what TG stood for 20
years ago? 20 Jazz Funk Greats I believe.

Krys

unread,
Sep 14, 2006, 5:23:40 PM9/14/06
to TurboGears
Karl Guertin wrote:
> Eh, I was just reading through and it looked like a typo. If you like,
> you can just say that eggs are generally preferable over .tar.gz files
> without mentioning platform specific/independant.

Done. :-)

gasolin

unread,
Sep 14, 2006, 11:46:32 PM9/14/06
to TurboGears
Krys:

Cool , you did a good job :-D

Kevin Horn

unread,
Sep 15, 2006, 12:50:49 AM9/15/06
to turbo...@googlegroups.com
Very nice.  Clear, thorough, but without being totally boring.  Very good job!

Kevin H
Reply all
Reply to author
Forward
0 new messages