ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Pavel S. Khmelinsky" <hmepas@yauza.ru>
To: community@altlinux.ru
Subject: Re: [Comm] apt-get dist-upgrade through proxy
Date: Thu, 01 Apr 2004 12:45:34 +0400
Message-ID: <406BD6AE.5060807@yauza.ru> (raw)
In-Reply-To: <406BCEFC.5050605@syktsu.ru>

crux wrote:
> Pavel S. Khmelinsky пишет:
> 
>> Тут в личку кинули совет прописать
>> export http_proxy="http://user:password@proxy:port/"
>> export ftp_proxy="http://user:password@proxy:port/"
>> в /root/.bashrc
>> Как ни странно заработало. Т.е. похоже дело было в кавычках. Тогда 
>> вопрос почему компактовый инсталлер в /etc/profile.d/proxy.sh прописывает
>> $ cat proxy.sh
>> http_proxy=http://192.168.2.1:3128
>> ftp_proxy=ftp://192.168.2.1:3128
>> все это без кавычек?
> 
> 
> дело не в кавычках. кавычки нужны если в строке есть пробелы.
> дело в том, что:
> во-первых мало присвоить значение переменной надо ещё экспортировать её, 
> чтобы она висела в переменных окружения.
> во-вторых. очевидно используется squid (порт 3128), а это http-proxy, 
> т.е. он понимает http-запросы. Таким образом, если указать 
> ftp_proxy=ftp://... - он не сможет работать с клиентом, т.к. протокол 
> ftp, если указать ftp_proxy=http://.. - то это уже другое дело.
Я этот файл привел как элюстрацию работы инсталлера компакта (как 
сейчас понял напрасно ибо дело было в руках) на машине которая 
должна обновлятся через сквид в /etc/profile.d/proxy.sh стоит все 
как надо:
ftp_proxy=ftp://192.168.2.1:3128

А вопрос снят: добавил в ~/.zshrc строки
export ftp_proxy
export http_proxy
Все заработало как надо. Действительно экспорта не хватало. Меня 
вводило в заблуждение то что echo эти переменный выводило -- 
думал что из /etc/profile.d/proxy.sh все и так экспортированно.

Теперь все ок. Спасибо за наводку.

-- 
Pavel S. Khmelinsky <hmepas@yauza.ru>
System Administrator,
ISP Yauza Telecom
http://www.yauza.ru


      reply	other threads:[~2004-04-01  8:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-31 19:40 Pavel S. Khmelinsky
2004-04-01  2:33 ` Evgeny Yugov
2004-04-01  3:38   ` Gosha
2004-04-01  8:03   ` Pavel S. Khmelinsky
2004-04-01  8:12     ` crux
2004-04-01  8:45       ` Pavel S. Khmelinsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=406BD6AE.5060807@yauza.ru \
    --to=hmepas@yauza.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git