From 40645ed7ec5185fdc38f479426a4ca3ff92b3664 Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Wed, 5 Jun 2024 14:50:53 +0200 Subject: [PATCH] Word smithing on https env variables --- ...t_practice--Connecting_Hawk_to_the_world.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/guides/Best_practice--Connecting_Hawk_to_the_world.md b/guides/Best_practice--Connecting_Hawk_to_the_world.md index 7510613..797e42e 100644 --- a/guides/Best_practice--Connecting_Hawk_to_the_world.md +++ b/guides/Best_practice--Connecting_Hawk_to_the_world.md @@ -57,8 +57,6 @@ hawk> MY_PROXY_PORT=XXXX # choose same port as above hawk> curl ifconfig.me # timeout, no connection to internet -hawk> curl --proxy socks5://localhost:$MY_PROXY_PORT # specify proxy through command line argument - hawk> export https_proxy=socks5://localhost:$MY_PROXY_PORT # set proxy environment variables hawk> export http_proxy=$https_proxy hawk> curl ifconfig.me @@ -68,6 +66,8 @@ hawk> # close terminal to close reverse tunnel when done Most of the other use cases will build on the usage of these environment variables. Therefore we recommend to set them in you `.bashrc`. ==**TODO: do we recommend this?**== +Note that some applications will not honour these environment variables. Often the proxy can be provided as a command line argument as for instance `--proxy $https_proxy`. + ## Installing Python packages with pip @@ -185,6 +185,20 @@ Again, we recommend to keep the reverse tunnel open as briefly as possible. ## SVN +~~Seems to work after setting https/http proxy variables.~~ +```bash +hawk> cat ~/.subversion/servers +[groups] +testhttps = svn.mplayerhq.hu + +[testhttps] +http-proxy-host = localhost +http-proxy-port = XXXX + +hawk> svn co https://svn.mplayerhq.hu:/ffmep/trunk +hawk> svn co svn://svn.mplayerhq.hu:/ffmep/trunk # times out +``` + ## R