Re: [opensuse] does the "new apt" smart run with proxies?
![](https://seccdn.libravatar.org/avatar/ffcbb0f1ce7068f1fde373b35ab383f4.jpg?s=120&d=mm&r=g)
Pascal Bleser wrote:
Eberhard Moenkeberg wrote: ...
Besides all other problems, smart only sees my local repository (containing the SuSE 10.0 DVD copied to HD) but no repository on gwdg.de because of connections problems.
Yes, well, that's an issue with gwdg.de, not with smart (but that doesn't really help you) ;)
No connection problems seen at GWDG the last days. Slowness yes, errors no.
Yes, sorry, I should have meant "timeouts" ;) Smart handles that as well.
OK, I do not have problems with gwdg at all right now (besides that smart was not using my proxy and tried direct connections which are not allowed here).
I'm not 100% sure the timeout length is configurable in smart, as of now.
There are a few configuration settings that affect the file fetching algorithms in Smart, though: socket-timeout max-active-downloads
The maximum number of download retries is currently hardcoded to 30 (see MAXRETRIES in smart/fetcher.py).
BTW, you can also override the HTTP and FTP proxy in the Smart configuration: smart --option http_proxy=proxyserv:3128 install ...
Where the hell do I get this information from? I tried the FAQ and all files in the RPM containing information, but I could not find anything. So do you know a place for some documentation? I would like to play around with smart; but even a "smart config --show|grep -i proxy" did not come up with any information; so I assume not each possible configuration option is given but only the explicitly set ones.
If you want to make that option persistent, then use the following commands: smart config --set http_proxy=proxyserv:3128 smart config --set ftp_proxy=proxyserv:3128
That worked; great! Thanks BTW: Is there a way to easily migrate my apt configuration to a smart one? Andreas
![](https://seccdn.libravatar.org/avatar/7f15e26f6f6f56d85aa0ec0fc4e37c44.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kyek, Andreas, VF-DE wrote:
Pascal Bleser wrote:
...
I'm not 100% sure the timeout length is configurable in ... smart --option http_proxy=proxyserv:3128 install ...
Where the hell do I get this information from? I tried the FAQ and all files in the RPM containing information, but I could not find anything. So do you know a place for some documentation? I would like to play around with smart; but even a "smart config --show|grep -i proxy" did not come up with any information; so I assume not each possible configuration option is given but only the explicitly set ones.
Unfortunately, and as often, documentation is certainly what smart lacks most at the moment. This will definately be addresses, but smart is currently in development stage, so features and bugfixes come first, documentation comes last. If anyone wants to volunteer for writing documentation about it, I'm sure Gustavo Niemeyer would be reaaaally happy ;-) "smart config --show" doesn't show the default settings, that are in the source code. Indeed, that would help as well, at least you can almost always make yourself an idea of what an option is for when seeing the name. I mostly got that information from the source code (which is in Python).
If you want to make that option persistent, then use the following commands: smart config --set http_proxy=proxyserv:3128 smart config --set ftp_proxy=proxyserv:3128
That worked; great! Thanks
Good :)
BTW: Is there a way to easily migrate my apt configuration to a smart one?
That's a good question.
I don't think that's currently included, but a rather simple shell script should do the trick, as
the apt.sources information is to be passed "as-is" to "smart channel --add", but with a slightly
different format. Some smart data is missing though, such as the channel alias and description.
I don't know whether smart can import an apt-rpm sources.list as-is.
I'll ask the author on the next occasion (probably this evening).
I quickly hacked a small shell script that should do the trick (just did minimal testing):
http://linux01.gwdg.de/~pbleser/files/smart/apt-sources-to-smart.sh
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
participants (2)
-
Kyek, Andreas, VF-DE
-
Pascal Bleser