Re: AIF through proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, May 22, 2010 at 11:38 AM, Dieter Plaetinck <dieter@xxxxxxxxxxxx> wrote:
> On Sat, 22 May 2010 02:04:41 +0200
> "Andre \"Osku\" Schmidt" <andre.osku.schmidt@xxxxxxxxxxxxxx> wrote:
>
>> On Fri, May 21, 2010 at 10:56 PM, Dieter Plaetinck
>> <dieter@xxxxxxxxxxxx> wrote:
>> > On Fri, 21 May 2010 22:41:12 +0200
>> > "Andre \"Osku\" Schmidt" <andre.osku.schmidt@xxxxxxxxxxxxxx> wrote:
>> >
>> >> >> just gives me the usage info, without any
>> >> >> errors... and also the "Invalid URL scheme" errors that i see in
>> >> >> tty7 are nowhere to find in /var/log/*
>> >> >
>> >> > what i would do in a case like this is just monitor the output of
>> >> > 'pstree' to see which processes is running (ie wget, pacman, ..),
>> >> > then you can debug the networking issue from there.
>> >>
>> >> oooh! you learn new things every day :)
>> >> super tip. thanks! i got something, maybe
>> >>
>> >> pstree shows (when it hangs in url scheme error)
>> >> aif /sbin/aif -p automatic -c /root/pacinst.aif -d -l
>> >>  |--pacman --root /mnt --config /tmp/pacman.conf -Sy
>> >>
>> >> and as according to some forum post (and it seems to work only with
>> >> this) i had to uncomment:
>> >> XferCommand = /usr/bin/wget ...
>> >> in /etc/pacman.conf to get pacman to work on the installer image
>> >> console. and now looking at the /tmp/pacman.conf, this option is
>> >> missing.
>> >>
>> >> but as i assumed (and test showed) the /tmp/pacman.conf gets newly
>> >> generated on every aif run. so i cant edit that.
>> >>
>> >> what file could i edit to get that xfercommand in /tmp/pacman.conf
>> >>
>> >> (this looks even closer, OMG! /me is crossing fingers... :)
>> >
>> > another tip: just grep in the aif source code and you'll see.
>> >
>> > if you grep for '/tmp/pacman.conf' you'll see there is a function
>> > target_write_pacman_conf in lib-pacman.sh, like any other function
>> > you can override this with your own.
>>
>> awesome tip! many thanks, again!
>>
>> at line 72 in /usr/lib/aif/core/libs/lib-pacman.sh i added:
>> XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
>>
>> and aif gets packets though squid! and whats even better, pacproxy.py
>> works too, YAY!
>>
>> going to bed tired and happy :)
>> .andre
>
> actually i meant you can redefine the target_write_pacman_conf in your
> profile (pacinst.aif)
>
> btw i checked pacman.conf and it seems pacman by default uses a
> built-in http thingie, which does not support proxies.
> I think for aif, it's probably better to use the wget Xfercommand so
> that proxies work, especially for the target system. i'll check this on
> the pacman-dev mailing list.
>
> (btw you forgot reply to all)
>
> Dieter
>

libfetch does support many proxy just fine, but it might be less
flexible than others.
Andre, can you show us *exactly* how you set http_proxy variable ?
In particular make sure you specified a protocol for the the URL.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux