LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2004, 12:32 PM   #1
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
proxy setting in lynx


how to setup proxy setting in text based browser such as lynx

#cat /etc/lynx-site.cfg
PROTOCOL_proxy="http://a.b.c.dort/"
where a, b,c , d are the values for ip address and port is contians the value for port

# lynx www.yahoo.com

Looking up www.yahoo.com first
Looking up www.yahoo.com.com, guessing...
Looking up www.yahoo.com.edu, guessing...
Looking up www.yahoo.com.net, guessing...
Looking up www.yahoo.com.org, guessing...
Can't Access `file://localhost/root/www.yahoo.com'
Alert!: Unable to access document.

lynx: Can't access startfile
 
Old 09-13-2004, 06:14 PM   #2
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 16
try,

http_proxy="http://a.b.c.d:port/"


The http_proxy environment variable is also used by 'wget'. it might be better to export it in your profile, rather than just place it in the lynx config.

Last edited by angrybeaver; 09-13-2004 at 06:16 PM.
 
Old 09-13-2004, 09:19 PM   #3
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanks,

what export commands does, it sets the value of a variable or .....
 
Old 09-13-2004, 09:26 PM   #4
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 16
yep, it sets the value of a variable. You can do this a number of ways,

1) from the command line, type 'export http_proxy= blah blah'

2) in your own profile (assuming bash), edit ~/.bash_profile and add the above export line. Log out and log back in to apply your
new profile setting.

3) to affect all user profiles, you can edit /etc/profile, and add the line mentioned.

just typing 'export' from the command line will show you a list of active environment variables. Use this command to confirm that your variable has been set correctly.

if all else fails, consult 'man bash' and check out the 'export' built in command

hope that helped.

Last edited by angrybeaver; 09-13-2004 at 09:28 PM.
 
Old 09-13-2004, 10:46 PM   #5
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanks
 
Old 02-19-2010, 06:00 AM   #6
lipun4u
Member
 
Registered: Sep 2008
Location: Mumbai, india
Distribution: ubuntu and hp-unix
Posts: 118

Rep: Reputation: 15
try this....

Code:
[asit ~] $ export http_proxy=http://10.1.68.253:3128 && lynx http://www.cplusplus.com/
 
  


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
lynx proxy setting zamurad77 Linux - Software 1 08-17-2004 03:43 AM
lynx proxy salahuddin_66 Linux - Software 0 06-02-2004 02:03 AM
lynx through proxy? Zokaban Linux - Software 4 01-22-2004 09:53 AM
lynx and a proxy c0c0deuz Linux - Software 1 07-28-2003 10:00 AM
lynx and proxy Cubiq Linux - Networking 5 08-03-2002 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration