LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   internet connection through proxy (command line) (https://www.linuxquestions.org/questions/slackware-14/internet-connection-through-proxy-command-line-411724/)

psycode 02-04-2006 07:22 PM

internet connection through proxy (command line)
 
hi all,
i have configured my 10.2 distro to connect to the internet through a proxy on the lan (XP, spoon proxy) It works great however, I used konkeror to specify proxy settings and I dont seem to have any connectivity on the command line which is a bit of a problem since I'm trying to test slapt-get. is there a config file I can edit or something? I know it's a stupid newbie question but thats what us stupid newbies do: ask dumb questions :)

thanx in adv.

kyriakos 02-04-2006 07:33 PM

"I dont seem to have any connectivity on the command line"
what do you mean? try ping www.google.com does it respont?
if you cannot slapt-get then you should see the settings of slapt-get for proxy.

Matir 02-04-2006 08:05 PM

Most applications honor the environment variables http_proxy and ftp_proxy for proxy information.

gbonvehi 02-04-2006 09:22 PM

As Matir said, you can configure slapt-get (which uses libcurl to handle connections) to use a proxy by setting http_proxy and ftp_proxy, it's detailed here: http://software.jaos.org/BUILD/slapt....html#slgFAQ24

psycode 02-05-2006 06:18 PM

thanx all,

I tried "export http_proxy=http://192.168.0.1:8080"
where 192.168.0.1 is my proxy address and 8080 the http service port.
I also tried "export http_proxy=192.168.0.1:8080"
nothing. heres an example of what i get:

webmail.co.za: Temporary failure in name resolution
webmail.co.za: Host name lookup failure

do i have to restart a particular service? Like I say I'm connected right now (Duh) so it's just a matter of getting the command line to recognize the proxy settings.

regards
psycode

Matir 02-05-2006 09:17 PM

Nope, http_proxy should apply to all processes launched from that shell.

On another note, those errors seem to be with respect to DNS, not http. DNS is unaffected by the http_proxy setting.

psycode 02-18-2006 04:03 PM

got it...
 
funny, i booted up one day and bam..it worked...welcome to the wacky world of bash (bashed against the head more like..)


All times are GMT -5. The time now is 11:56 AM.