Linux chromium настройка прокси

Setting http_proxy for Chromium in shell

But it doesn’t seem to work. Also, if you only want to set the proxy on the Chromium browser — not your entire network — the command line is the only way to set the proxy just for the browser. How can one set the proxy on Chromium — using the command line — to solve this problem?

Do you only want to have the proxy for Chromium, or do you want one system-wide? That is, every application that connects to the Internet would be forced through this proxy.

I edited the question to demonstrate another problem. The Chromium GUI only changes the proxy for the entire network not just the browser. The command line allows one to override this. Thus, this question may be useful on Super User, if it can be migrated.

1 Answer 1

You have to use the —proxy-server argument.

—proxy-server==[:];.. | [:] | «direct://»
This tells Chrome to use a custom proxy configuration. You can specify a custom proxy configuration in three ways:

1) By providing a semi-colon-separated mapping of list scheme to url/port pairs.
For example, you can specify:
—proxy-server=»http=foopy:80;ftp=foopy2″
to use HTTP proxy «foopy:80» for http URLs and HTTP proxy «foopy2:80» for ftp URLs.

2) By providing a single uri with optional port to use for all URLs.
For example:
—proxy-server=»foopy:8080″
will use the proxy at foopy:8080 for all traffic.

3) By using the special «direct://» value.
—proxy-server=»direct://»
will cause all connections to not use a proxy.

Источник

Настройка прокси в chromium linux

Понадобилось мне для тестирования разработанного веб-сервиса заходить на сайт с разных ip. Я нагуглил список анонимных прокси-серверов. Потом посмотрел man chromium-browser И там увидел: —proxy-server=hostort

В общем, попробовал я несколько адресов. Не работает.
Запустил Nautilus под рутом. Пошел /usr/share/applications, открыл свойства Хромиума.
И прописал chromium-browser %U —proxy-server=»35.185.64.24:80″ При этом chromium-browser %U там уже было. Не работает. Сейчас я использую различные веб-сайты типа hidemyass. И еще поставил Browsec. Работает. Т.е. вопрос не в том, как добиться анонимности.
А вопрос в том, что я неправильно делаю с запуском из командной строки. Ну, должен же он через проксю пойти. А он айпишник не подменяет. Источник

Chromium+Proxy

qvizor
Вбил же chromium –help. И что дальше? парень все равно не запустился через прокси.

qvizor
Вбил же chromium –help. И что дальше? парень все равно не запустился через прокси.

Chrome/Chromium: прокси-сервер, разблокировка связки ключей

Разблокирование связки ключей для входа в систему. Введите пароль для разблокировки связки ключей для входа в систему. Ваша связка ключей для входа в систему не была разблокирована, когда вы зарегистрировались в компьютере. При работе Chromium в поддерживаемой среде на компьютере используются системные настройки прокси-сервера. Однако либо ваша система не поддерживается, либо возникли неполадки при запуске системной конфигурации. На такие кумарные мессаги можно напороться при использовании браузера Chrome/Chromium в ОС Linux.

Читайте также:  Показать все процессы linux

Разблокирование связки ключей для входа в систему

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

Эта шняга будет выпадать прямо на экран твоего монитора ровно столько раз, сколько имеется ключей в хранилище » Приложения — Инструменты — Пароли и ключи «: Каким боком тут » вход в систему » и » регистрация на компьютере «? И какого хера вовсе лезть в мои приватные ключи шифрования уже при самом старте? Chromium явно рамсы попутал! Так или иначе геморр имеется и он постоянно вываливается на экран, и его как-то нужно срочно лечить. Некоторые » Геи » т.е. «Гении» предлагают лечить сей недуг сбросом/удалением паролей для PGP ключей шифрования, тем самым создав условия для возникновения уже нового геморроя связанного с утечкой данных шифруемых теми самыми PGP ключами. Однако, мы в чём-то конечно может и лошары, но не до такой же бл@дь степени, чтобы сбрасывать/удалять пароли для своих PGP ключей шифрования и раздавать их на лево и на право всем желающим! Благо производитель браузера видимо сам рассчитывал иногда пользоваться своим творением и для отключения » Введите пароль для разблокировки связки ключей для входа в систему. » предусмотрел флаг —password-store=basic , встаить который можно прямо в . командную строку после имени исполняемого фала либо же в ярлык запуска, который может быть расположен по адресам:

Сей ярлык запуска можно скопировать в /home/$USER/.local/share/applications/ , где открыв его для редактирования подправить строку Exec=/usr/bin/chromium %U до такой кондиции Exec=/usr/bin/chromium —password-store=basic %U , перезапустить чудо-браузер.

Chromium и системные настройки прокси-сервера

Проблема с установкой прокси-сервера (SOCKS proxy) в Chromium: При работе Chromium в поддерживаемой среде на компьютере используются системные настройки прокси-сервера. Однако либо ваша система не поддерживается, либо возникли неполадки при запуске системной конфигурации. Но вы все же можете выполнить конфигурацию с помощью командной строки. Подробнее о флагах и переменных окружения вы можете узнать в руководстве к chromium. Как и в дредыдущем случае, для урегулирования есть свой флаг, который применяется следующим образом: Только после полного отключения блокировщика скриптов и рекламы на этом месте появится полезная подсказка/ссылка/код/пример конфигурации/etc!

Ссылки по теме

Рекомендуемый контент

А тут же ж мог быть рекомендуемый контент от гугла 🙂 Для отображения рекомендуемого контента необходимо в браузере разрешить выполнение JavaScript скриптов, включая скрипты с доменов googlesyndication.com и doubleclick.net

Вы не любите рекламу!? Напрасно!:) На нашем сайте она вовсе ненавязчивая, а потому для нашего сайта можете полностью отключить AdBlock (uBlock/uBlock Origin/NoScript) и прочие блокировщики рекламы! AdBlock/uBlock может препятствовать нормальной работе системы поиска по сайту, отображению рекомендуемого контента и прочих сервисов Google. Рекомендуем полностью отключить блокировщик рекламы и скриптов, а также разрешить фреймы (aka iframe). Источник

Читайте также:  Русский язык libreoffice linux

Configure Proxy for Chromium and Google Chrome From Command Line on Linux

In this tutorial, I will show you how to configure proxy settings of Chromium and Google Chrome browser from the command line on Linux. This little trick is very handy in some circumstances. As you may already know, the Linux version of Chromium and Google Chrome browser does not support configuring proxy in a graphical way. A Windows user can change proxy settings in Chromium and Google Chrome by going to Settings > Advanced > System and click the Change proxy settings button to configure it. However, this button on Linux is grayed out so Linux users can not change proxy in this way. Normally, users need to install extensions like Proxy SwitchyOmega in order to configure it in graphical interface. That’s Okay for most people, but it’s not convenient for those who can’t access the Chrome Web store in the first place. Google search and Chrome Web store are blocked in some countries like China. If you use Chromium or Google Chrome browser on Linux, then you can configure proxy for your browser from the command line and you don’t have to install extensions like Proxy SwitchyOmega. Note that this tutorial assumes you have a proxy server like Shadowsocks running on a remote server.

Configure Proxy From Command Line

I use Google Chrome as an example and it applies to Chromium as well. You can start Google Chrome from the command line like below

To start it with proxy, use —proxy-server option. For example, run the following command to start it with socks5 proxy. Chromium and Google Chrome support HTTP, HTTPS, socks4 and socks5 proxy. To set a HTTPS proxy, run the following command. You can also set an alias so next time you don’t have to type a long command. To create command alias, edit .bashrc file Find the alias lines in this file and add the following alias definition to it. Save this file. Now close your terminal and re-open it. Then enter google-chrome command in the terminal, you will see chromium browser is now using a proxy to connect to the Internet. Note: On Some Linux distributions such as Ubuntu, The command to start Chromium browser is chromium-browser .

Install Proxy SwitchyOmega extension

Some users can use VPN to access Chrome store and install Proxy SwitchyOmege extension, but in some area, VPN is blocked. So being able to configure proxy from the command line is very handy for those who can’t access chrome web store. Once the proxy is working, you can go to chrome Web store and install Proxy SwitchyOmega. Notice that if you are going to use SwitchOmega, then you need to remove the proxy options specified from command line. They can’t work with each other. I like Proxy SwitchyOmega because it has the ability to detect failed resources on web pages and this can really help web developers or webmasters. Chromium and Google Chrome Browser also support proxy autoconfiguration URL with the —proxy-pac-url option. For more command line usage , see the man page. To see how to set up your own Shadowsocks proxy server, check out the following post. I hope this tutorial helped you configure Google Chrome and Chromium proxy from the command line on Linux. As always, if you found this post useful, then subscribe to our free newsletter to get more tips and tricks. Take care.

Читайте также:  System ip address in linux

Источник

Network Settings

So far this design decision has worked well. The only network settings that some users ask for an alternative to system settings are proxy settings. For this we recently added some command-line options that allow you to run Chromium with custom proxy settings.

Preference service for network settings

Although the system network settings have been sufficient for our network stack, eventually there will be some configuration settings specific to our network stack, so we need to have our own preference service for those settings. See also issue 266, in which some Firefox users demand that we not use the WinInet proxy settings (the de facto system proxy settings on Windows).

Command-line options for proxy settings

Chrome supports the following proxy-related command line arguments:

—no-proxy-server

This tells Chrome not to use a Proxy. It overrides any other proxy settings provided.

—proxy-auto-detect

This tells Chrome to try and automatically detect your proxy configuration. This flag is ignored if —proxy-server is also provided.

This tells Chrome to use a custom proxy configuration. You can specify a custom proxy configuration in three ways:

For example, you can specify:

to use HTTP proxy «foopy:80» for http URLs and HTTP proxy «foopy2:80» for ftp URLs.

will use the proxy at foopy:8080 for all traffic.

—proxy-server=»direct://» will cause all connections to not use a proxy.

This tells chrome to bypass any specified proxy for the given semi-colon-separated list of hosts. This flag must be used (or rather, only has an effect) in tandem with —proxy-server.

Note that trailing-domain matching doesn’t require «.» separators so «*google.com» will match «igoogle.com» for example.

will use the proxy server «foopy» on port 8080 for all hosts except those pointing to *.google.com, those pointing to *foo.com and those pointing to localhost on port 8080.

igoogle.com requests would still be proxied. ifoo.com requests would not be proxied since *foo, not *.foo was specified.

This tells Chrome to use the PAC file at the specified URL.

will tell Chrome to resolve proxy information for URL requests using the windows.pac file.

Источник

Оцените статью
Adblock
detector