• Home
  • Downloads
  • Contact Us
  • Report Broken Link
Friday, May 9, 2025
  • Login
lessons4you.info
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
Lessons4you.info
No Result
View All Result

Set Proxy Authentication on Linux ubuntu/debian (Using apt-get with a Proxy Server)

Install Chromium with Pepper Flash on CentOS/Red Hat/RHEL

Set Proxy Authentication on Linux CentOS Redhat (Using YUM with a Proxy Server)

by
December 11, 2021
in Uncategorized
Reading Time: 2 mins read
A A
Share on FacebookShare on Twitter

Running a Linux box and using “yum” command behind a proxy that requires authentication is really painful, you will need to make some configuration to get full internet access. Let me explain you how to get rid of it. First, Open your terminal and add these lines (given below) to the “.bashrc” file. It will set proxy for wget, http, https and ftp access.

Configuring Proxy Server Access
To enable all yum operations to use a proxy server, specify the proxy server details in /etc/yum.conf. The proxy setting must specify the proxy server as a complete URL, including the TCP port number. If your proxy server requires a username and password, specify these by adding proxy_username and proxy_password settings.

1
2
3
 
# vi /etc/yum.conf
 

1
2
3
4
5
6
7
 
# The proxy server - proxy server:port number
proxy=http://:@:
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty
 

Configuring Proxy Server Access for a Single User To enable proxy access for a specific user, add the lines in the example box below to the user’s shell profile. For the default bash shell, the profile is the file ~/.bash_profile.

1
2
3
 
$ vi ~/.bash_profile
 

1
2
3
4
5
 
# The Web proxy server used by this account
http_proxy="http://:"
export http_proxy
 

Profile Settings for Using a Proxy Server If the proxy server requires a username and password, add these to the URL. To include the username yum-user and the password qwerty, add these settings:

1
2
3
4
5
 
# The Web proxy server, with the username and password for this account
http_proxy="http://http://:@:"
export http_proxy
 

NOTE: This is really insecure as you will now have your proxy user id and password simple readable text format.

Previous Post

Set Proxy Authentication on Linux ubuntu/debian (Using apt-get with a Proxy Server)

Next Post

Install Chromium with Pepper Flash on CentOS/Red Hat/RHEL

Related Posts

How To Install The TWRP Recovery on Xiaomi Redmi 1s
Uncategorized

How To Install The TWRP Recovery on Xiaomi Redmi 1s

May 14, 2022
MIUI Collection Of Gapps (2.3.x – 5.0.x)
Uncategorized

MIUI Collection Of Gapps (2.3.x – 5.0.x)

May 14, 2022
Download Android 5.1.x Lollipop PA Gapps
Uncategorized

Download Android 5.1.x Lollipop PA Gapps

May 15, 2022
Download gapps for Android 5.1 Lollipop Cyanogemod 12.1
Uncategorized

Download gapps for Android 5.1 Lollipop Cyanogemod 12.1

May 14, 2022
Reddit AMA with OxygenOS Team OnePlus
Uncategorized

Reddit AMA with OxygenOS Team OnePlus

May 14, 2022
How to Remove Adobe Updater from OS X Menu Bar?
Uncategorized

How to Remove Adobe Updater from OS X Menu Bar?

July 19, 2023
Next Post

Install Chromium with Pepper Flash on CentOS/Red Hat/RHEL

  • Home
  • Downloads
  • Contact Us
  • Report Broken Link

© 2022 lessons4you.info

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link

© 2022 lessons4you.info