LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-24-2012, 05:26 PM   #1
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Chromium cannot connect to Internet when using custom useragent string


When setting a custom useragent in chromium via the command-line, I cannot connect to the internet. Chromium tells me that it is unable to contact the proxy server. I am not using a proxy server of any kind, however. Here is the full message:

Quote:

Unable to connect to the proxy server
A proxy server is a server that acts as an intermediary between your computer and other servers. Right now, your system is configured to use a proxy, but Chromium can't connect to it.
Here are some suggestions:
If you use a proxy server, check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server, adjust your proxy settings: Go to the wrench menu > Settings > Show advanced settings... > Change proxy settings... and make sure your configuration is set to "no proxy" or "direct."
Error 130 (net::ERR_PROXY_CONNECTION_FAILED): Proxy server connection failed.
Here is how I launch Chromium:

Code:
chromium --user-agent="Arch/Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.81 Safari/537.1"
Furthermore, I get this error on the command-line every time I launch Chromium.

Code:
[16516:16527:22661126624:ERROR:object_proxy.cc(495)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/NetworkManager: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Any help is appreciated.

Alex Brinister
 
Old 08-24-2012, 05:52 PM   #2
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
Have you tried while privoxy and Tor are stopped?
 
Old 08-24-2012, 05:57 PM   #3
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
As I mentioned in my post, I am not running any proxy (including Tor or Privoxy).

Alex Brinister
 
Old 08-24-2012, 06:03 PM   #4
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
Quote:
Originally Posted by abrinister View Post
As I mentioned in my post, I am not running any proxy (including Tor or Privoxy).
Just wanted to make sure that regardless of use, they weren't running. Do you have any extensions?
 
Old 08-24-2012, 06:11 PM   #5
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
No. I barely use Chromium, thus don't have any fancy stuff installed. Just straight up Chromium.

Alex Brinister
 
Old 08-24-2012, 06:17 PM   #6
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
Try installing Proxy SwitchySharp. It will let you view and configure proxy settings even if Chrome says that it doesn't support your system.
 
Old 08-24-2012, 06:21 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2350Reputation: 2350Reputation: 2350Reputation: 2350Reputation: 2350Reputation: 2350Reputation: 2350Reputation: 2350Reputation: 2350Reputation: 2350Reputation: 2350
Have you tried other user agent strings? Just wondering if it's something in the formatting giving an irrelevant error message for some reason.
 
Old 08-24-2012, 06:31 PM   #8
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
I've tried this one:

Code:
"Arch Linux/Mozilla/5.0 (X11; Linux x86_64; rv:2.0) Gecko/20100101 Firefox/14.0.1"
@byannoni No dice with Proxy SwitchySharp

Alex Brinister
 
Old 08-26-2012, 01:50 PM   #9
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
This issue only occurs when chromium is launched from a terminal. Creating a desktop shortcut to this command seems to fix it:
Code:
chromium %U --user-agent="Arch/Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.81 Safari/537.1"
 
Old 08-26-2012, 06:28 PM   #10
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
Thanks! This worked! However, I am still puzzled as to why it does not work on the command line... I'll look into this a bit more before marking it solved as it is not entirely solved.

Alex Brinister
 
Old 08-26-2012, 06:30 PM   #11
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
Try starting Tor and running with:
Code:
--proxy-server=127.0.0.1:8118
to see if you can replace the proxy that it's trying to use.
 
Old 08-26-2012, 06:33 PM   #12
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
That's weird. It worked. Thanks... But I wonder why Chromium thinks I have a proxy on when I don't...

Alex Brinister
 
Old 08-26-2012, 06:41 PM   #13
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
What if you launch a different browser from a terminal?
 
Old 08-26-2012, 06:47 PM   #14
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
Both Firefox and Opera work....

Alex Brinister
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Remove Linux Mint custom search in Chromium LXer Syndicated Linux News 0 07-10-2012 10:32 PM
[SOLVED] Anyone know what the user agent string for Debian in Chromium is? barnac1e Debian 4 06-16-2012 08:24 AM
[SOLVED] Can someone post Firefox useragent string? Amdx2_x64 Linux - Software 9 12-19-2011 12:55 PM
Assigning custom string to std::string in C++ jh7777 Programming 4 10-13-2009 12:02 AM
Questions about custom C++ string class. lowpro2k3 Programming 1 08-23-2005 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration