You are not logged in.

#1 2004-05-08 20:19:04

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

proxy!!!

Our network get's internet through a proxy server, I can only browse the internet with firefox(or other browser that let's me specify the proxy).
Even if I use export http_proxy="proxy:port", links can not browse the web (connection timed out).
This is very bad because I can't use pacman.
Can anyone help sad  ?

Thank you!!!


Forever newbie !!!

Offline

#2 2004-05-08 23:10:50

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: proxy!!!

export http_proxy="http://10.0.0.1:4480"
export ftp_proxy="http://10.0.0.1:4480"

worked for me. If you want to use Pacman then you need to use the XferCommand option in pacman.conf. I use for instance:

XferCommand = /usr/bin/wget --passive-ftp --limit-rate=35k -T 200 -t 3 -c -O %o %u

Offline

#3 2004-05-09 06:37:16

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

Re: proxy!!!

if I use export .... links is not able to browse the web, although in fedora is working just fine.


Forever newbie !!!

Offline

#4 2004-05-09 09:58:31

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: proxy!!!

Does wget work, or anything else than links?

Offline

#5 2004-05-09 11:23:40

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

Re: proxy!!!

wget works!!
tracepath does not, but I guess it is available what you wrote early!!!!
Where should I write in /etc/pacman.conf :
XferCommand = /usr/bin/wget --passive-ftp --limit-rate=35k -T 200 -t 3 -c -O %o %u

if I write on the last line pacman gives an error and points to the line in pacman.conf where this written


Forever newbie !!!

Offline

#6 2004-05-09 12:00:43

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

Re: proxy!!!

I've placed the XferCommand below the [options] line so this error doen not appear any longer.
I've also placed there
ProxyServer = http://proxy_adress
and 
ProxyPort = http://proxy_port


but now when I use :
pacman -S gdm

it sais:
error: could not sync database : extra
           have you used --refresh yet ?

so then followed
   pacman --refresh
and thn again
   pacman -S gdm
and the same error occured.

in the pacman.conf the [extra] section was not commented and neither were it's Server lines.
I'm so close but yet so far.
Please saveme  :oops:  !!!


Forever newbie !!!

Offline

#7 2004-05-09 13:58:17

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: proxy!!!

Don't use the --limit-rate=35k option, I only use it because I share the connection with another pc and don't want to use all bandwidth with pacman. Also the -O %o option is only supported by the newest pacman, so if you have an older one don't use it. Try something like:

XferCommand = /usr/bin/wget --passive-ftp -c %u

But if you pacman.conf doesn't have it commented out somewhere at the top, then you probably have an older pacman that doesn't support the XferCommand (see Arch news page for which versions supports it). Try to upgrade pacman first.

Pacman with wget worked for me through proxy without setting the ProxyServer and Port settings, because wget uses the environment variables. I don't know why links doesn't work, maybe it want a http_proxy with or without "http://".

Offline

#8 2004-05-09 15:42:30

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

Re: proxy!!!

it works, thank you very much!!! 8)


Forever newbie !!!

Offline

#9 2004-07-07 19:06:32

GGO
Member
From: Kona, Hawaii
Registered: 2004-05-20
Posts: 48
Website

Re: proxy!!!

Ok, I just upgraded to pacman 2.7.4, and I uncommented the XferCommand line. When I run pacman, it outputs

config: line 26: syntax error

Whats going on here? And just for reference i'm using arch .6, with kernel 2.4, and i'm using a proxy, also wget works, as well as links.

Offline

#10 2004-07-08 00:27:45

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

Re: proxy!!!

install pacman 2.8


Forever newbie !!!

Offline

#11 2004-07-08 16:12:59

GGO
Member
From: Kona, Hawaii
Registered: 2004-05-20
Posts: 48
Website

Re: proxy!!!

lol, ok. i figured i would go with the stable version, but i guess i was wrong on that count.

edit: ok, i just tried the latest version, same problem. and apparently i was using pacman 2.8, its just when you use pacman -V it tells you that it is 2.7.4. so does anyone have any thoughts on why XferCommand is being regarded as a syntax error?

Offline

#12 2004-07-09 01:18:44

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: proxy!!!

[jchu@aries jchu]$ pacman -V

 .--.                  Pacman v2.8
/ _.-' .-.  .-.  .-.   Copyright (C) 2002-2004 Judd Vinet <jvinet@zeroflux.org>
  '-. '-'  '-'  '-'  
 '--'                  This program may be freely redistributed under
                       the terms of the GNU General Public License

I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#13 2004-07-09 15:44:42

GGO
Member
From: Kona, Hawaii
Registered: 2004-05-20
Posts: 48
Website

Re: proxy!!!

fair enough. . .

I downloaded my copy off the front page and compiled it, if that means anything. I would love to update pacman using pacman, but I wouldn't need to upgrade it in the first place if it worked  roll, is there anything I can do at this point? I'm about to scream and throw my machine out the window.

Offline

#14 2004-07-15 09:09:04

onami
Member
From: Romania
Registered: 2004-05-05
Posts: 197

Re: proxy!!!

download pacman from current
pacman -U  <pathname to where you have downloaded pacman >

to use a proxy, just uncomment XFercommand, and each time you use pacman, if your network uses a proxy do an export ftp_proxy="your.proxy:proxy_port", or add in /root/.bashrc thIs:

export ftp_proxy="your.proxy:proxy_port"
it should work


Forever newbie !!!

Offline

#15 2004-07-18 08:41:03

GGO
Member
From: Kona, Hawaii
Registered: 2004-05-20
Posts: 48
Website

Re: proxy!!!

I was't using the pacman I compiled properly. As in I was using the old version with the one I compiled's conf file. I ended up going to a friends house, install the base 2.6 kernel packages, then updating with his beautiful routed connection that I wish I had. Works like a charm, I am now back at home typing this on my sexy linux box, contemplating playing another game of ut2k3. But thanks for the help!

Offline

#16 2004-11-09 16:42:09

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: proxy!!!

I am behind a proxy with user login and filtering, and would really be glad if pacman will learn to use proxy user accounts, saving the proxy user settings inside an encrypted file, ore otherwise, asking for passwords. Then I could use weaker proxy user accounts for daily surfing, and give pacman stronger accounts to update the system.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#17 2005-06-14 20:01:07

soffcore
Member
Registered: 2004-04-27
Posts: 42

Re: proxy!!!

Pink Chick wrote:

I am behind a proxy with user login and filtering, and would really be glad if pacman will learn to use proxy user accounts, saving the proxy user settings inside an encrypted file, ore otherwise, asking for passwords. Then I could use weaker proxy user accounts for daily surfing, and give pacman stronger accounts to update the system.

You can use the --proxy-user=username --proxy-passwd=password options with wget as well and slap that inside the pacman.conf file wink (after you add the export ftp_proxy inside the /root/.bashrc file

Offline

#18 2005-06-14 21:33:10

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: proxy!!!

yes, meanwhile. Not in 2004.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#19 2005-06-14 21:34:09

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: proxy!!!

lol

Offline

Board footer

Powered by FluxBB