The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Configuring proxy settings

asked 2014-06-09 15:43:46 +0000

okiyama gravatar image

updated 2014-06-09 16:13:14 +0000

phairland gravatar image

I use i3 on top of Linux Mint 14. When I boot into my normal Cinnamon session, I am able to access a very handy network window that lets me easily change my proxy settings. The window is the one accessed from the "Network" program when I open up the window. I tried to attach a picture, but my karma is too low.

How I could get to either that window or an equivalent one for changing which proxy server I am connecting to? If there are terminal instructions for changing my proxy settings, that would be just as good.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-06-09 16:11:59 +0000

phairland gravatar image

I have found Linux Mint to be problematic if your server uses proxy settings to get online. Ubuntu also require changes to the network settings if you use a proxy, but this only involves a simple change in the Network Settings panel. This doesn't work in Linux Mint, the settings can be entered but will not remain saved.

  • Use a terminal to open /etc/environment using a text editor as superuser. E.g. sudo gedit /etc/environment.
  • Add the following lines to the text document that appears, replacing myproxy.server.com with your proxy address.

http_proxy=http://myproxy.server.com:8080/ 
https_proxy=http://myproxy.server.com:8080/
ftp_proxy=http://myproxy.server.com:8080/
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
HTTP_PROXY=http://myproxy.server.com:8080/ 
HTTPS_PROXY=http://myproxy.server.com:8080/
FTP_PROXY=http://myproxy.server.com:8080/
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"
  • Save the file, then navigate to /etc/apt/apt.conf.d/and create a new file there named 95proxies and include the following code (remembering to add your own proxy address in place of myproxy.server.com)

Acquire::http::proxy "http://myproxy.server.com:8080/";
Acquire::ftp::proxy "ftp://myproxy.server.com:8080/";
Acquire::https::proxy "https://myproxy.server.com:8080/";

Reboot and once you have logged in you will find that your proxy settings are in place for Network Settings, apt-get and Update manager. It's a pain but it does give you an idea about using the command line in a Linux terminal.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-06-09 15:43:46 +0000

Seen: 1,333 times

Last updated: Jun 09 '14