Linux mint proxy setting

Tech Tidbits

I’ve been building several new boxes based on linux variants and flavors lately at work (Centos6x, RHEL6.5, Ubuntu12.04-14.04Server/Desktop, SLES, etc) and always have to deal with the proxy settings. For the web, it’s a simple matter of changing the proxy settings in firefox. For APT, it’s a different matter. Doing a websearch yields varied results, some of which are temporary or partial fixes. Yes, that includes attempting to set them in network settings via gui.

What has consistently worked for LinuxMint (including v16 and v17rc), Ubuntu and others of that variant is to change the settings system-wide in a few areas, all of which need to be changed as root:

  1. apt-get setting
  2. environment variables
  3. settings for GTK3 based programs (Gnome desktop)

Apt-Get

and add the following (edited for your proxy of course)

If you need to authenticate, change the lines to read similar to:

Environment

add/change to: (Some apps use case sensitivity, therefore it’s duplicated here to catch it either way)

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”

open a terminal window, change to root (sudo su) and enter/paste the following:

gsettings set org.gnome.system.proxy mode ‘manual’
gsettings set org.gnome.system.proxy.http host ‘yourproxy.server.com’
gsettings set org.gnome.system.proxy.http port 8080

When done, Reboot. I’ve noticed that you do not need to reboot if you’re in a terminal running apt-get update but the gui Software Manager and others will not work until you do reboot.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

Setting proxy for Chrome et. al

Setting proxy for Chrome et. al

Post by mintuser32123 » Fri Feb 28, 2014 7:29 am

Just got convinced to install Mint 16 (Petra / Cinammon) at work. It’ll be fun they said. Liars .

Where / how do I set a system wide http proxy ?

It seems like a lot of stuff doesn’t care about what is set under Preferences — Network — Network proxy, including
at least some of the many software/package installers that come with mint (which kinda blows my mind). In addition
it seems like these settings actually aren’t persisted as the on/off switch always defaults back to ‘off’ if the panel is closed, altough
running ‘export’ actually reflects whatever feeble attempts I just attempted to get out on the interwebz. I’ll just assume this is some
sort of avant garde UI design choice, and it seems to work for some things.

Now with some random clicking around in combination with a few hours of text file editing based on what seems to be a near infinite
possibiliites for setting up what proxy is used for what package manager being used I now have Chrome installed. The issue with Chrome
seems to be that my platform isn’t supported. Or so Chrome tells me at least, with the ad-hoc suggestion that there might a problem
launching my system configuration when I hit Settings — Proxy Configration. I think Chrome is onto something here since the whole network
configuration system seems to be thrown together during a drunkfest of epic proportions. I have nothing against a good party now and then, but
I try to refrain from submitting code while intoxicated beyound certain levels. Please send an invite to the next boozefest.

Читайте также:  Картридж для стоек киа

Any hints on how I get pass this before I simply impale my laptop with a spear, quit my job and run for the hills in despair (or just install
some OS that lets me do my job instead of getting lost in the inards of it) ?

Now I realize that this posting might sounds a little . harsh .. but I actully would like to get it to work so if you need any info (I assume so)
and want to help a desperate man out, it would be greatly appreciated.

List of failed attempts:

* Exporting http_proxy in the following locations:
/etc/.profile
/etc/.bashrc
/etc/profile.d/proxy.sh

* Setting the proxy using Menu — Preferences — Networking — Network proxy — Proxy
— Some urban myths talks about a ‘set global proxy’ option on this panel. That is a lie (for mint 16/cinammon at least).

* Praying to multiple deites (some of them made up especially for this ocassion)

Источник

Linux mint proxy setting

To share internet connection from your linux to windows/linux with squid3 proxy server and dhcp3 server

just follow the steps bellow:

1. First install squid3 and dhcp3-server

sudo apt-get install squid3

sudo apt-get install dhcp3-server (or install isc-dhcp-server from synaptic)

2.Suppose that the LAN connected network card is eth0 and the internet connected one is eth1

3.sudo gedit /etc/network/interfaces

Delete all the text and paste this text in your interfaces file:

#interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

post-up iptables-restore Change proxy settings on other computers (windows\linux) to your ip address i.e 192.168.1.1 & port 3128

On windows end:

in windows go to the control panel-internet options-connections(tab).click ‘Lan settings’. check ‘use a proxy server for your lan. ‘ option. below it, put the host ip (192.168.1.1 in this case) and the port no. 3128. this is the system proxy for windows.

if you can set proxy seetings for google chrome then do it . it will do the same as above.

firefox may not detect the system proxy. in this case, options- advance- network (tab) -settings, then check maual proxy and put the ip and port. check ‘use this proxy for all protocols’

This method is tested on linux mint 14.1 cinnamon and ubuntu 12.04 LTS
I think it will work on every linux mint and ubuntu version

You may want to skip the steps 8 and 9. This may not affect anything.

If you have another ip range, change the above ip informations carefully.

Be careful that the internet connected device used here is eth1. This may not happen all the time.
Change it according to your network devices

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

[SOLVED] Setting up a System-Wide proxy

[SOLVED] Setting up a System-Wide proxy

Post by Danko8321 » Fri Sep 30, 2011 5:52 pm

Re: Setting up a System-Wide proxy

Post by istrandi » Fri Sep 30, 2011 6:05 pm

I don’t have access to my mint box right now. However, what works in ubuntu should work in mint (assuming you are using the main version). So. you could try:

Читайте также:  Linux как посмотреть ram

and see if this does what you want.

What restrictions do you want to bypass? If its stuff like content based upon country restrictions, then just google around for proxy’s in the relevant countries.

Also, if you are after privacy/anonimity, and its just for basic web browsing i.e. in firefox, then you could consider TOR (https://www.torproject.org/). Note: If watching videos etc. you cannot use their bundled broswer.

When your problem is solved, add to the title of your first post [Solved].
———————————————————————————————
I use: linux mint 11 main, mac osx 10.6, windows 7, ubuntu server

Scientia Vires Est.

Re: Setting up a System-Wide proxy

Post by remoulder » Fri Sep 30, 2011 6:16 pm

[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.

Re: Setting up a System-Wide proxy

Post by Danko8321 » Fri Sep 30, 2011 6:59 pm

Yes, I already Knew that; in fact, thats how I got the idea, but, as I said, I’m a TOTAL Newbie, so i would like something a little more explicit, and, if possible, the basic structure of a proxy address (IF there is one), what should and shouldn’t I do when I want to configure my own (I tried to do it but failed, so I was looking for something a little more «Idiotproof» than the things I found through google); Maybe I used a wrong Proxy Address, I don’t know, but you might, so that is the nature of my request.

PD: I’m using the main version of Linux Mint 11; that means, Gnome desktop, and very alike to Ubuntu, but I still Can’t make it work

Re: Setting up a System-Wide proxy

Post by istrandi » Fri Sep 30, 2011 9:16 pm

Ok. for a list of free proxy’s try here:

not that I actually trust this but hey.

I grabbed one of theirs at random and put it in. Screenshot attached.

This should work.

I’m posting this through the proxy, and then I’m reverting.

Have fun with the proxy.

When your problem is solved, add to the title of your first post [Solved].
———————————————————————————————
I use: linux mint 11 main, mac osx 10.6, windows 7, ubuntu server

Scientia Vires Est.

Re: Setting up a System-Wide proxy

Post by Danko8321 » Sat Oct 01, 2011 4:01 pm

istrandi wrote: Ok. for a list of free proxy’s try here:

not that I actually trust this but hey.

I grabbed one of theirs at random and put it in. Screenshot attached.

This should work.

I’m posting this through the proxy, and then I’m reverting.

Have fun with the proxy.

Re: Setting up a System-Wide proxy

Post by istrandi » Sat Oct 01, 2011 6:30 pm

Ok, using the settings I used, it should AUTOMATICALLY work with firefox. Haven’t tried with chrome/chromium.

Did you remember to hit apply system wide?

BTW port = the port that the proxy specified. If in doubt try port 80 (default http).

When your problem is solved, add to the title of your first post [Solved].
———————————————————————————————
I use: linux mint 11 main, mac osx 10.6, windows 7, ubuntu server

Scientia Vires Est.

Re: Setting up a System-Wide proxy

Post by Danko8321 » Sat Oct 01, 2011 9:44 pm

istrandi wrote: Ok, using the settings I used, it should AUTOMATICALLY work with firefox. Haven’t tried with chrome/chromium.

Читайте также:  Sql on delete cascade postgresql

Did you remember to hit apply system wide?

BTW port = the port that the proxy specified. If in doubt try port 80 (default http).

Ok,I tried it, but I don»t know where does it say the port number (may it be the 4 number after the colon?), I’ve been trying with both Chrome and Firefox, but i can’t get it right no matter what; I’ve also tried to connect using the default port (port 80), but it doesn’t work either. Any other Ideas?

PD: thank you for your help, I see this is a very friendly community, and it’s very pleasant to know I can count with your help (not like provider client service, where all they make sure is that it isn’t their fault and then they hung up on you)

Re: Setting up a System-Wide proxy

Post by istrandi » Sat Oct 01, 2011 11:33 pm

Ok, I’ll give you step by step instructions as to what I did to make this work.

1. Close firefox.

2. Open Network Proxy Preferences.

3. Select Manual Proxy Configuration

4. Check the box «use the same proxy for all protocols»

5. Enter the url of the proxy and the port i.e. url: 81.200.10.38 and port: 3128

6. a. Click apply system wide
b. Enter your password in each of the popups

7. Click close on network preferences

9. Select, Edit, Prefernces, Advanced, Network, Connection Settings.

10. Select Use system proxy settings

Try that. If this still doesn’t work, I’ll walk you through configuring just firefox/chrome

When your problem is solved, add to the title of your first post [Solved].
———————————————————————————————
I use: linux mint 11 main, mac osx 10.6, windows 7, ubuntu server

Scientia Vires Est.

Re: Setting up a System-Wide proxy

Post by Danko8321 » Sun Oct 02, 2011 1:06 am

istrandi wrote: Ok, I’ll give you step by step instructions as to what I did to make this work.

1. Close firefox.

2. Open Network Proxy Preferences.

3. Select Manual Proxy Configuration

4. Check the box «use the same proxy for all protocols»

5. Enter the url of the proxy and the port i.e. url: 81.200.10.38 and port: 3128

6. a. Click apply system wide
b. Enter your password in each of the popups

7. Click close on network preferences

9. Select, Edit, Prefernces, Advanced, Network, Connection Settings.

10. Select Use system proxy settings

Try that. If this still doesn’t work, I’ll walk you through configuring just firefox/chrome

Источник

Nix Daily

Обзоры Linux программ, решения и эксперименты.

воскресенье, 24 октября 2010 г.

Прокси в Linux Mint (Debian/Ubuntu)


Встала задача настроить систему на использование прокси-сервера для выхода в интернет, но стандартная гномовская утилита насторойки прокси сервера лишь прописала настройку в инвайромент. В итоге немного порывшись в конфигах был достигнут желаемый результат.

прописываем соответственно:
Acquire::http::Proxy «http://domain\domainuser:password@192.168.1.150:8080»;
Acquire::ftp::Proxy «http://domain\domainuser:password@192.168.1.150:8080»;
Acquire. Proxy «true»;

2. Настройка wget

раскоментируем строчки и прописываем нужное:
https_proxy = http://192.168.1.150:8080/
http_proxy = http://192.168.1.150:8080/
ftp_proxy = http://192.168.1.150:8080/

3. Настройка enviroment

прописываем нужное :
http_proxy=»http:/192.168.1.150:8080″
ftp_proxy=»http://192.168.1.150:8080″

4. Настройка mintUpdate и Synaptic

1) В самом синаптике через gui настройте использование прокси сервера
(Настройки>Параметры>Сеть)
2) В mintUpdate (Правка>Параметры>Прокси) настройте прокси следующим образом:
прокси http://192.168.1.150 порт 8080

1 коммент.:

А стоило бы вместе с добавлением галочки system wide proxy ещё и заимплементить установку этого прокси в приведенных конфигах. А иначе зачем эта галочка появилась в проксиустановляторе?

Источник

Поделиться с друзьями
КомпСовет
Adblock
detector