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

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://.. - то это уже другое дело.

-- 
С уважением, Леттиев Владимир aka crux <crux@altlinux.ru>




  reply	other threads:[~2004-04-01  8:12 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 [this message]
2004-04-01  8:45       ` Pavel S. Khmelinsky

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=406BCEFC.5050605@syktsu.ru \
    --to=crux@syktsu.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