LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-31-2005, 07:35 AM   #1
Padmakiran
LQ Newbie
 
Registered: Dec 2004
Location: India
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
slapt-get, howto pass username and passwd for http requests to our proxy !!


Hi all,

How to pass username and password for authentication while using slapt-get for any of the http requests to our proxy server ??

We have the --http-user=XXX and --http-passwd=yyy on our wget. Do we have any thing similar in slapt-get ??

thanx,
Padmakiran.
 
Old 03-31-2005, 10:12 AM   #2
cavalier
Member
 
Registered: Feb 2005
Location: Denver, CO
Distribution: Slack 12, tweaked just so (though I'm also a fan of Ubuntu)
Posts: 198
Blog Entries: 1

Rep: Reputation: 30
I haven't tried this yet, but does slapt-get honor .netrc configuration?
 
Old 03-31-2005, 11:38 AM   #3
Padmakiran
LQ Newbie
 
Registered: Dec 2004
Location: India
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
I'm sorry but i haven't used .netrc. Can we pass username & password to our http proxy server using this ?

Is there any other way like in wget to convey the username & password to the proxy ?

Are there any other tools in slackware which are like apt-get of debian ?
 
Old 03-31-2005, 01:07 PM   #4
davatar
Member
 
Registered: Dec 2004
Location: Washington State
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
I don't know very much about environment variables, or linux yet for that matter, but when I'm at school I have to manually set the http_proxy=x.x.x.x:xx and ftp_proxy= env. variables if accessing the net from the console. Is there perhaps a variable for proxy username/pass?

Does your proxy server accept the "http://username@pass:ipaddress: port/" format? (no space between : and port at the end there, I added one so the dumb smiley face would go away.) If it supports it, you could probably enter that as the http_proxy variable. (I don't know if proxy's can do that, but a lot of websites will if you are attempting to directly access a user-ony area.)

Last edited by davatar; 03-31-2005 at 01:09 PM.
 
Old 03-31-2005, 01:11 PM   #5
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
You may have better luck with

http://user:password@host:port
 
Old 03-31-2005, 01:21 PM   #6
davatar
Member
 
Registered: Dec 2004
Location: Washington State
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
Oh woops, my bad. Keefaz posted the correct format.
 
Old 04-01-2005, 03:58 AM   #7
Padmakiran
LQ Newbie
 
Registered: Dec 2004
Location: India
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
Nope http://userassword@hostort still doesn't work !!

I even tried this way http://userassword@host/<url>

Any other way to do the proxy authentication properly ?
 
Old 04-01-2005, 04:01 AM   #8
Padmakiran
LQ Newbie
 
Registered: Dec 2004
Location: India
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
Nope http://user: password@host: port still doesn't work !!

I even tried this way http://user: password@host/<url>

Any other way to do the proxy authentication properly ?
 
Old 04-01-2005, 04:02 AM   #9
Padmakiran
LQ Newbie
 
Registered: Dec 2004
Location: India
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
Nope http://user: password@host: port still doesn't work !!

I even tried this way http://user: password@host/<url>

Any other way to do the proxy authentication properly ?

i'm sorry there is no space between colon and p. Didn't know it represents a smiley !
 
Old 04-01-2005, 05:01 AM   #10
dunric
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 479

Rep: Reputation: 89
It should work but maybe your proxy accept uses nonstandard authentication.
Are you able to get through proxy with a web-browser ? If you do, which browser and what settings do you use ?
 
Old 04-01-2005, 05:10 AM   #11
Padmakiran
LQ Newbie
 
Registered: Dec 2004
Location: India
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
I'm able to access http requests from my browser. Currently i'm using mozilla 1.7 on my slack 10.0 box.
Are u able to authenticate u'r self using slapt-get by setting the user name & passwd in your http url ?
 
Old 04-01-2005, 02:32 PM   #12
davatar
Member
 
Registered: Dec 2004
Location: Washington State
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
Perhaps you could ask the administrator of the network/proxy to allow authentication in the username@password:host: port format?

Otherwise do some searching about environment variables and proxy settings.
 
Old 07-25-2005, 01:25 PM   #13
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
Lightbulb

do this export on console and you'll be able to use text browsers and connect to slapt-get to!
Code:
export http_proxy=username:password@proxy_server:port

Last edited by frandalla; 07-25-2005 at 01:26 PM.
 
Old 05-05-2010, 10:05 AM   #14
kynder
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Wink I've got it!

I have been trying to use proxy authentication through slapt-get for a while, but now it works perfectly.

what did I do ? Nothing! Just add the ' like the example:

export http_proxy='username: password@proxy_server: port'

or with domain

export http_proxy='domain\username: password@proxy_server: port'

;P

Last edited by kynder; 05-05-2010 at 10:07 AM.
 
  


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
howto use slapt-get with a proxy changcheh VectorLinux 2 08-18-2005 10:57 PM
pass blank username in lynx PlatinumRik Linux - Software 1 07-07-2005 10:43 AM
Forgot modem username/pass... help! Trinity22 Linux - Hardware 4 06-03-2005 08:30 PM
Help! (I'm getting flooded with http requests) rknoesel Mandriva 6 11-14-2004 06:57 PM
root passwd and username latika.gk Linux - Newbie 3 05-26-2003 07:24 AM


All times are GMT -5. The time now is 08:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration