Create the configuration file inside the /etc/profile.d directory.
Here is the file content:
In our example, Ubuntu will use the proxy server 192.168.0.10 and its port 3128.
In our example, Ubuntu will use the usename gohan and the password mypass123 to authenticate.
When you reboot your computer the system will automatically use the Proxy configuration.
If you don't want to reboot your computer, use the source command to enable the proxy configuration.
Congratulations! You configured the Ubuntu proxy authentication successfully.