* [Comm] Приучаем Synaptic работать через Proxy
@ 2007-11-14 10:47 Vyacheslav A. Brunev
2007-11-14 10:50 ` Дмитрий
0 siblings, 1 reply; 11+ messages in thread
From: Vyacheslav A. Brunev @ 2007-11-14 10:47 UTC (permalink / raw)
To: ALT discussions
Доброго времени суток!
Возникла необходимость работы через прокси-сервер. И никак не удаётся
заставить synaptic работать через этот самый прокси.
В /etc/bashrc прописал строчки:
http_proxy="http://proxy:3128"
ftp_proxy="ftp://proxy:3178"
export http_proxy ftp_proxy
В /root/.bashrc тоже точно такиеже строчки, а также в .bashrc пользователя под
которым я работаю.
В настройках самого synaptic-а указал также этот самый прокси и ничего не
получается, при попытке получить списки пакетов слышна ругань на каждую из
дирректорий репозитория:
"A proxy server was specified but no login script, Acquire::ftp::ProxyLogin is
empty."
Вопрос - какого рожна ему надо? Какой такой логин-скрипт ему подавай?
--
С уважением,
Брунёв Вячеслав.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-14 10:47 [Comm] Приучаем Synaptic работать через Proxy Vyacheslav A. Brunev
@ 2007-11-14 10:50 ` Дмитрий
2007-11-14 11:49 ` A.Kitouwaykin
2007-11-15 2:08 ` Vyacheslav A. Brunev
0 siblings, 2 replies; 11+ messages in thread
From: Дмитрий @ 2007-11-14 10:50 UTC (permalink / raw)
To: bv, ALT Linux Community general discussions
Vyacheslav A. Brunev пишет:
> Доброго времени суток!
>
> Возникла необходимость работы через прокси-сервер. И никак не удаётся
> заставить synaptic работать через этот самый прокси.
> В /etc/bashrc прописал строчки:
> http_proxy="http://proxy:3128"
> ftp_proxy="ftp://proxy:3178"
> export http_proxy ftp_proxy
> В /root/.bashrc тоже точно такиеже строчки, а также в .bashrc пользователя под
> которым я работаю.
> В настройках самого synaptic-а указал также этот самый прокси и ничего не
> получается, при попытке получить списки пакетов слышна ругань на каждую из
> дирректорий репозитория:
> "A proxy server was specified but no login script, Acquire::ftp::ProxyLogin is
> empty."
>
> Вопрос - какого рожна ему надо? Какой такой логин-скрипт ему подавай?
>
>
ftp_proxy="ftp://proxy:3178" это нормально? может нужно ftp_proxy="ftp://proxy:3128".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-14 10:50 ` Дмитрий
@ 2007-11-14 11:49 ` A.Kitouwaykin
2007-11-15 2:17 ` Vyacheslav A. Brunev
2007-11-15 2:08 ` Vyacheslav A. Brunev
1 sibling, 1 reply; 11+ messages in thread
From: A.Kitouwaykin @ 2007-11-14 11:49 UTC (permalink / raw)
To: community
On Wed, 14 Nov 2007 15:50:45 +0500
Дмитрий wrote:
> > Вопрос - какого рожна ему надо? Какой такой логин-скрипт ему подавай?
> >
> >
>
> ftp_proxy="ftp://proxy:3178" это нормально? может нужно ftp_proxy="ftp://proxy:3128".
Или даже ftp_proxy="http://proxy:3128"
--
Китайкин Анатолий Константинович
ОАО "Радиоавионика", СПб
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-14 11:49 ` A.Kitouwaykin
@ 2007-11-15 2:17 ` Vyacheslav A. Brunev
2007-11-15 3:14 ` Igor Solovyov
0 siblings, 1 reply; 11+ messages in thread
From: Vyacheslav A. Brunev @ 2007-11-15 2:17 UTC (permalink / raw)
To: ALT Linux Community general discussions
В сообщении от Wednesday 14 November 2007 17:49:54 A.Kitouwaykin написал(а):
> On Wed, 14 Nov 2007 15:50:45 +0500
>
> Дмитрий wrote:
> > > Вопрос - какого рожна ему надо? Какой такой логин-скрипт ему подавай?
> >
> > ftp_proxy="ftp://proxy:3178" это нормально? может нужно
> > ftp_proxy="ftp://proxy:3128".
>
> Или даже ftp_proxy="http://proxy:3128"
Так я тоже пробовал, хотя прокся для ftp настроена на порт 3178, но при
указании в bashrc:
ftp_proxy="http://proxy:3128"
Synaptic наглухо виснет т.е. ошибку не выдает но задумывается пока его в
грубой форме не выключишь :(. В тоже время в консоле всё отлично работает
т.е. apt-get update корректно отрабатывает без ошибок и ругани.
--
С уважением,
Брунёв Вячеслав.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-15 2:17 ` Vyacheslav A. Brunev
@ 2007-11-15 3:14 ` Igor Solovyov
2007-11-15 3:49 ` Vyacheslav A. Brunev
0 siblings, 1 reply; 11+ messages in thread
From: Igor Solovyov @ 2007-11-15 3:14 UTC (permalink / raw)
To: community
Hi!
On Thu, 15 Nov 2007 08:17:37 +0600
"Vyacheslav A. Brunev" <bv@gres.tomske.elektra.ru> wrote:
> > Или даже ftp_proxy="http://proxy:3128"
именно так и должно быть, если у Вас только не ftp-прокси установлен,
а если все-таки http-прокси, то только так.
> Так я тоже пробовал, хотя прокся для ftp настроена на порт 3178, но
> при указании в bashrc:
> ftp_proxy="http://proxy:3128"
> Synaptic наглухо виснет т.е. ошибку не выдает но задумывается пока
а может export ftp_proxy="http://proxy:3128" попробуете прописать?
:-D
--
Best Regars!
Igor Solovyov
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-15 3:14 ` Igor Solovyov
@ 2007-11-15 3:49 ` Vyacheslav A. Brunev
2007-11-15 4:00 ` Igor Solovyov
0 siblings, 1 reply; 11+ messages in thread
From: Vyacheslav A. Brunev @ 2007-11-15 3:49 UTC (permalink / raw)
To: ALT Linux Community general discussions
В сообщении от Thursday 15 November 2007 09:14:52 Igor Solovyov написал(а):
> Hi!
> On Thu, 15 Nov 2007 08:17:37 +0600
>
> "Vyacheslav A. Brunev" <bv@gres.tomske.elektra.ru> wrote:
> > > Или даже ftp_proxy="http://proxy:3128"
>
> именно так и должно быть, если у Вас только не ftp-прокси установлен,
> а если все-таки http-прокси, то только так.
>
> > Так я тоже пробовал, хотя прокся для ftp настроена на порт 3178, но
> > при указании в bashrc:
> > ftp_proxy="http://proxy:3128"
> > Synaptic наглухо виснет т.е. ошибку не выдает но задумывается пока
>
> а может export ftp_proxy="http://proxy:3128" попробуете прописать?
>
> :-D
Это ничего не меняет. Так нужно делать, если в bashrc нет вышеуказанных
записей.
Как оказалось bash и synaptic по непонятной для меня причине не хотят работать
с ftp-прокси если им указать в настройках так:
ftp_proxy="ftp://proxy:3178"
в тоже время KDE, krusader и иже с ними нормально работают с такими
настройками по 3178 порту.
Я пока выкручиваюсь скриптиком для запуска synaptic-а следующего вида:
#!/bin/sh
LANG="ru_RU.koi8-r" \
ftp_proxy=http://proxy:3128 \
synaptic \
2>&1 > /var/log/synaptic.log
Та всё работает, но это дюже не удобно, хотелось бы разобраться в данной
проблеме с Вашим непосредственным участием.
--
С уважением,
Брунёв Вячеслав.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-15 3:49 ` Vyacheslav A. Brunev
@ 2007-11-15 4:00 ` Igor Solovyov
2007-11-15 4:36 ` Vyacheslav A. Brunev
0 siblings, 1 reply; 11+ messages in thread
From: Igor Solovyov @ 2007-11-15 4:00 UTC (permalink / raw)
To: community
Hi!
On Thu, 15 Nov 2007 09:49:04 +0600
"Vyacheslav A. Brunev" <bv@gres.tomske.elektra.ru> wrote:
> > а может export ftp_proxy="http://proxy:3128" попробуете прописать?
> >
> Это ничего не меняет. Так нужно делать, если в bashrc нет
> вышеуказанных записей.
Именно так и нужно в bashrc прописать. IMHO.
> Как оказалось bash и synaptic по непонятной для меня причине не хотят
> работать с ftp-прокси если им указать в настройках так:
> ftp_proxy="ftp://proxy:3178"
ftp_proxy="ftp:..." нужно писать если у вас именно ftp-прокси
используется, а если, к примеру squid (а он все-таки http-прокси),
следует указывать именно ftp_proxy="http://proxy:port"
попробуйте запустить консоль, в ней сделать
export ftp_proxy="http://proxy:port"
а затем из консоли же запустить synaptic
если работает, то в ~/.bashrc прописать
export ftp_proxy="http://proxy:port"
вместо просто ftp_proxy="http://proxy:port",
зает перелогиниться и все.
--
Best Regars!
Igor Solovyov
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-15 4:00 ` Igor Solovyov
@ 2007-11-15 4:36 ` Vyacheslav A. Brunev
2007-11-15 4:52 ` Gennadiy Redko
2007-11-15 20:37 ` Вадим Илларионов
0 siblings, 2 replies; 11+ messages in thread
From: Vyacheslav A. Brunev @ 2007-11-15 4:36 UTC (permalink / raw)
To: ALT Linux Community general discussions
В сообщении от Thursday 15 November 2007 10:00:59 Igor Solovyov написал(а):
> Hi!
> On Thu, 15 Nov 2007 09:49:04 +0600
>
> "Vyacheslav A. Brunev" <bv@gres.tomske.elektra.ru> wrote:
> > > а может export ftp_proxy="http://proxy:3128" попробуете прописать?
> >
> > Это ничего не меняет. Так нужно делать, если в bashrc нет
> > вышеуказанных записей.
>
> Именно так и нужно в bashrc прописать. IMHO.
>
> > Как оказалось bash и synaptic по непонятной для меня причине не хотят
> > работать с ftp-прокси если им указать в настройках так:
> > ftp_proxy="ftp://proxy:3178"
>
> ftp_proxy="ftp:..." нужно писать если у вас именно ftp-прокси
> используется, а если, к примеру squid (а он все-таки http-прокси),
> следует указывать именно ftp_proxy="http://proxy:port"
>
> попробуйте запустить консоль, в ней сделать
> export ftp_proxy="http://proxy:port"
> а затем из консоли же запустить synaptic
> если работает, то в ~/.bashrc прописать
> export ftp_proxy="http://proxy:port"
> вместо просто ftp_proxy="http://proxy:port",
> зает перелогиниться и все.
Вот и именно что не всё. Из рутовой консоли всё работает, НО! если я запускаю
synaptic и ввожу пароль рута, то он при попытке получить сведения о пакетах
не может их получить всё останавливается в таком положении и только
killall -TERM synaptic его выводит из анабиоза и так на всех машинах - под
рутом из консоли всё ОК, а вот под юзером фик.
--
С уважением,
Брунёв Вячеслав.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-15 4:36 ` Vyacheslav A. Brunev
@ 2007-11-15 4:52 ` Gennadiy Redko
2007-11-15 20:37 ` Вадим Илларионов
1 sibling, 0 replies; 11+ messages in thread
From: Gennadiy Redko @ 2007-11-15 4:52 UTC (permalink / raw)
To: ALT Linux Community general discussions
Vyacheslav A. Brunev пишет:
> Вот и именно что не всё. Из рутовой консоли всё работает, НО! если я запускаю
> synaptic и ввожу пароль рута, то он при попытке получить сведения о пакетах
> не может их получить всё останавливается в таком положении и только
> killall -TERM synaptic его выводит из анабиоза и так на всех машинах - под
> рутом из консоли всё ОК, а вот под юзером фик.
>
Вы не это обсуждаете:
https://bugzilla.altlinux.org/show_bug.cgi?id=5691
?
Если да, то может быть в bugzilla продОлжите?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-15 4:36 ` Vyacheslav A. Brunev
2007-11-15 4:52 ` Gennadiy Redko
@ 2007-11-15 20:37 ` Вадим Илларионов
1 sibling, 0 replies; 11+ messages in thread
From: Вадим Илларионов @ 2007-11-15 20:37 UTC (permalink / raw)
To: community
Vyacheslav A. Brunev wrote:
> Вот и именно что не всё. Из рутовой консоли всё работает, НО! если я
> запускаю synaptic и ввожу пароль рута, то он при попытке получить сведения
> о пакетах не может их получить всё останавливается в таком положении и
> только killall -TERM synaptic его выводит из анабиоза и так на всех
> машинах - под рутом из консоли всё ОК, а вот под юзером фик.
>
[root@server profile.d]# cat /etc/profile.d/proxy.sh
#!/bin/sh
RSYNC_PROXY="172.23.10.254:8080"
http_proxy="http://$RSYNC_PROXY"
https_proxy=$http_proxy
ftp_proxy=$http_proxy
no_proxy="172.23.0.0/16"
export RSYNC_PROXY http_proxy https_proxy ftp_proxy no_proxy
И будет работать для любого юзера.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Comm] Приучаем Synaptic работать через Proxy
2007-11-14 10:50 ` Дмитрий
2007-11-14 11:49 ` A.Kitouwaykin
@ 2007-11-15 2:08 ` Vyacheslav A. Brunev
1 sibling, 0 replies; 11+ messages in thread
From: Vyacheslav A. Brunev @ 2007-11-15 2:08 UTC (permalink / raw)
To: Дмитрий, ALT discussions
В сообщении от Wednesday 14 November 2007 16:50:45 вы написали:
> Vyacheslav A. Brunev пишет:
> > Доброго времени суток!
> >
> > Возникла необходимость работы через прокси-сервер. И никак не удаётся
> > заставить synaptic работать через этот самый прокси.
> > В /etc/bashrc прописал строчки:
> > http_proxy="http://proxy:3128"
> > ftp_proxy="ftp://proxy:3178"
> > export http_proxy ftp_proxy
> > В /root/.bashrc тоже точно такиеже строчки, а также в .bashrc
> > пользователя под которым я работаю.
> > В настройках самого synaptic-а указал также этот самый прокси и ничего не
> > получается, при попытке получить списки пакетов слышна ругань на каждую
> > из дирректорий репозитория:
> > "A proxy server was specified but no login script,
> > Acquire::ftp::ProxyLogin is empty."
> >
> > Вопрос - какого рожна ему надо? Какой такой логин-скрипт ему подавай?
>
> ftp_proxy="ftp://proxy:3178" это нормально? может нужно
> ftp_proxy="ftp://proxy:3128".
Это нормально, ftp-прокси висит на другом порту просто вот и всё.
--
С уважением, Брунёв Вячеслав.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-11-15 20:37 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14 10:47 [Comm] Приучаем Synaptic работать через Proxy Vyacheslav A. Brunev
2007-11-14 10:50 ` Дмитрий
2007-11-14 11:49 ` A.Kitouwaykin
2007-11-15 2:17 ` Vyacheslav A. Brunev
2007-11-15 3:14 ` Igor Solovyov
2007-11-15 3:49 ` Vyacheslav A. Brunev
2007-11-15 4:00 ` Igor Solovyov
2007-11-15 4:36 ` Vyacheslav A. Brunev
2007-11-15 4:52 ` Gennadiy Redko
2007-11-15 20:37 ` Вадим Илларионов
2007-11-15 2:08 ` Vyacheslav A. Brunev
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