LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-04-2006, 07:22 PM   #1
psycode
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
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.
 
Old 02-04-2006, 07:33 PM   #2
kyriakos
Member
 
Registered: Dec 2005
Location: Greece, Xanthi
Distribution: Red Hat 9, FreeBSD 5.4
Posts: 38

Rep: Reputation: 15
"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.
 
Old 02-04-2006, 08:05 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Most applications honor the environment variables http_proxy and ftp_proxy for proxy information.
 
Old 02-04-2006, 09:22 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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
 
Old 02-05-2006, 06:18 PM   #5
psycode
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 02-05-2006, 09:17 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
Old 02-18-2006, 04:03 PM   #7
psycode
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Original Poster
Rep: Reputation: 0
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..)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setup an internet connection from the command line Aljaber Linux - Networking 3 12-28-2003 07:48 PM
Internet Connection Problem via proxy siuku Linux - Newbie 3 11-07-2003 07:22 AM
Squid proxy/cache on a dail-up internet connection manaskb Linux - Networking 1 01-14-2003 12:55 AM
Establish connection in command-line... nutshell Linux - Networking 10 08-18-2002 04:01 AM
internet connection thru MS Proxy deepakchopra Linux - Networking 0 08-01-2001 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration