Tips: How to change the Chromium User Agent?

We already saw how to change the Firefox User Agent y Opera and now it's the turn of Chromium, which I am using regularly because Firefox 8 it's eating up my RAM.

There are Extensions that allow you to do this, but due to the restrictions that it has imposed Google (the very motherfuckers) a Cuba I can't get them so I have to do this by hand.

For this we edit the file /usr/share/applications/chromium.desktop and we look for the line that says:

Exec=/usr/bin/chromium %U

And we put it like this:

Exec=/usr/bin/chromium --user-agent="Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Debian Chromium/14.0.835.202 Safari/535.1" %U

If we open a tab and put:

chrome://version/

We can see the User Agent which more or less in my case should be like this:

--user-agent="Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1"

If you compare it with the line that I left above you will see that I added Debian and I substituted Chrome by Chromium.


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

117 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Oscar said

    Do you know what the Google extension is, I agree that they are some children of a bad mother, to simplify the work, hahahaha, and in what distribution do you already have Firefox 8?

    1.    elav <° Linux said

      Now I don't remember the name of the extension. And Firefox 8 for Debian, with the tar.gz

  2.   Tix said

    With that path (/usr/share/applications/chromium.desktop) I can't find anything, it seems that it only works for a specific distribution, the same works in LMDE in Mint 12 not and I suppose that for Ubuntu and Kubuntu either.

    1.    elav <° Linux said

      Maybe in Ubuntu it changes the name of the .desktop, but generally all the applications that appear in the menu are there. Search well, maybe it's called chrome or lake like that.

      1.    Alf said

        In ubuntu it is in the path that is specified in the post, only you right click on the icon and it will open with kwrite (my case), and you look for the line, I modified it and chromium stopped working, for that I returned the values ​​as I had them.

  3.   Tix said

    I am on Mint 12 RC.

    120MB plus 54,9mb plus 46mb plus 41mb plus 33mb make a total of 294,9mb with only 3 tabs open
    and going up according to the system monitor. So I'm abandoning Chromium and going to try another browser that is less vampire.

    I've looked right and found nothing like chromium.desktop, anyway thanks.

    1.    Jamin samuel said

      I didn't find anything either .. I'm on Linux mint 12

  4.   Oscar said

    Chromium consumes more RAM than Firefox?

    1.    hypersayan_x said

      They consume the same thing with the same number of tabs, seeing the same pages, with identical configurations and with the same or at least similar plugins.

      1.    Oscar said

        @hipersayan_x, thanks for the tip.

      2.    Aliana said

        On Kubuntu 11.10, with Firefox 14, with 74 (yes, seventy-four) tabs open, I consume the same RAM as Chromium with only 20-22… And if I open more than 25 Chromium it already becomes very slow.

        The same in Mint, Firefox beats Chromium.

        In my case at least it is NOT true that they consume the same thing with the same open tabs. If necessary, I provide captures and data.

        In other words, I prefer Firefox and its immense amount of extensions. For specific things I do use Chromium.

        It is true that I browse compulsively, I do not know anyone who opens so many tabs. If you only need 3 or 4 eyelashes, maybe Chromium will do for you.

        But we already discussed that elsewhere.

        1.    KZKG ^ Gaara said

          74 tabs, ok.

          "I don't know anyone who opens so many tabs"... hehehe, I better not say anything, sure elav (the other admin who until recently worked in the same company as me) will say something like: «Yes! this one (referring to me) opens so many tabs that it doesn't leave bandwidth for me »… or something like that HAHAHA.

          Nothing, I still open a lot of tabs, because as they open I am reading some semi-open already, and I am closing them ... while many others have not finished loading.

        2.    KZKG ^ Gaara said

          By the way (how rude I am haha) ... welcome to the blog 🙂
          I hope you find interesting things here ... although, being a KDE user, I guarantee that you will find a lot of things that you will like 😉

          regards

          1.    Aliana said

            OK, thanks to you.

            But beware, I'm a guy, aliana is an acronym.
            (Usually when I clarify this I don't know why they change the friendly tone for another neutral).

            1.    KZKG ^ Gaara said

              Oops hahahaha sorry for the misunderstanding hahahaha.
              Nothing, also a pleasure to have you here friend, and I repeat what I said ... if you like KDE, here you will find a lot of interesting things hahaha 🙂

              Greetings and welcome to the blog 😉


  5.   KZKG ^ Gaara <"Linux said

    elav you still only have Chromium v14… wow…

    1.    elav <° Linux said

      Yes, and? It works wonders for my Chromium v14. In fact, I don't see any difference from Chrome 15 except for the home tab.

  6.   sdaf2 said

    If it doesn't work for you, try changing the user agent in chrome / chromium with this quick and easy method. http://buildall.wordpress.com/2011/05/24/changing-google-chrome-user-agent-string-in-ubuntu-11-04/

    1.    Jamin samuel said

      Verroo doesn't work for me or I don't know how to do it yet: S

      1.    Jamin samuel said

        ...

  7.   Jamin samuel said

    Can this work for google chrome too?

    1.    KZKG ^ Gaara said

      Yup 😀

      1.    Jamin samuel said

        ahahaa I could never do xD

  8.   Chinese said

    Testing 😀

  9.   Jamin samuel said

    i keep trying

    1.    Jamin samuel said

      ....

  10.   Jamin samuel said

    I don't understand what happens 🙁 I put this

    /opt/google/chrome/google-chrome %U Exec=/usr/bin/chromium --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Linux Mint 12 Chrome/17.0.963.79 Safari/535.1" %U

    Please correct me if I have something wrong 🙁

    1.    KZKG ^ Gaara said

      With that, you don't even see the Mint logo on the blog banner? (Right upper corner)

      1.    Jamin samuel said

        no nothing 🙁

      2.    Jamin samuel said

        it's google chrome i'm using .. i could use a little help

        1.    KZKG ^ Gaara said

          Uff, I just tried it with Chromium (I don't have Chrome) and it worked like a charm O_O... let me investigate a bit to see what I find.

          1.    Jamin samuel said

            have before investigating .. first let us kill the doubt, lest it be that I am doing something wrong ..

            Where did you go to configure that? you opened chromium and then what did you do?

            1.    KZKG ^ Gaara said

              I opened a terminal and put this:
              chromium --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Linux Mint 12 Chrome/17.0.963.79 Safari/535.1" %U

              Nothing else 🙂

              Try that to see what result it gives you 😀


          2.    Jamin samuel said

            nothing happens .. I put that in the terminal and then a new google chrome window opened for me .. but it still does not appear in user agent

            1.    KZKG ^ Gaara said

              Fuck with these from Google ... ¬_¬
              That's why I don't use Chrome and I do use Chromium ...


          3.    Jamin samuel said

            ajajaj the strange thing is that I made the change in firefox as the other tutorial shows .. and it looks good, it shows me the linux mint logo and everything but chromium and chrome nothing at all

          4.    Jamin samuel said

            hey i put this in terminal:

            chromium –user-agent = »Mozilla / 5.0 (X11; Linux x86_64) AppleWebKit / 535.1 (KHTML, like Gecko) Linux Mint 12 Chrome / 17.0.963.79 Safari / 535.1 ″% U

            And he told me:
            chromium: order not found

            1.    KZKG ^ Gaara said

              Instead of Chromium put / usr / bin / chromium ... well, that Mint ¬_¬ ...


          5.    Jamin samuel said

            ahahaha you're going to laugh a little ... look what he tells me now:

            bash: / usr / bin / chromium: The file or directory does not exist

            1.    KZKG ^ Gaara said

              WTF !!! … Try / usr / bin / chromium-browser to see


          6.    Jamin samuel said

            Ok I put as is as you told me:

            / usr / bin / chromium-browser –user-agent = »Mozilla / 5.0 (X11; Linux x86_64) AppleWebKit / 535.1 (KHTML, like Gecko) Linux Mint 12 Chrome / 17.0.963.79 Safari / 535.1 ″%

            And see how I get the user agent

            1.    KZKG ^ Gaara said

              Ubuntu O_O…. now I do give up ...
              I don't even know what distro you use ... LOL !!
              Maybe you could put it in / etc / chromium / default or something like that ... I'm running out of ideas, in Debian it works great for me 0_0


          7.    Jamin samuel said

            HALLELUJAH!! \ O / \ Ø / \ O / \ Ø / -> I already achieved it 😀 it was that I had misspelled chromium ejejeje THANK YOU

          8.    Jamin samuel said

            Now I just need to put a photo in the avatar .. as well as the one you have.

            1.    KZKG ^ Gaara said

              Fuck at last LOL !!!
              For the avatar photo, are you already registered here on the site?


  11.   Jamin samuel said

    wait for me a little bit .. I get linux mint but when I close the terminal it goes back to me as if it was ubuntu: O

    1.    KZKG ^ Gaara said

      Of course, don't run it in a terminal but run it using [Alt] + [F2] and that's it 🙂

    2.    Jamin samuel said

      look; (close the terminal and put ubuntu .. and I'm using linux mint

  12.   Jamin samuel said

    [Alt] + [F2] then I put this:

    / usr / bin / chromium-browser –user-agent = »Mozilla / 5.0 (X11; Linux x86_64) AppleWebKit / 535.1 (KHTML, like Gecko) Linux Mint 12 Chromium / 17.0.963.79 Safari / 535.1 ″%

    it opens a new chromium window for me .. I open a tab and put this
    chrome: // version /

    and shows it is ubuntu instead of linux mint AJAJAJAJA .. my browser is demonized with canonical xD

    1.    KZKG ^ Gaara said

      Close all the Chromium you have open and do the F2 thing again

      1.    Jamin samuel said

        the same thing keeps happening .. it opens me with the linux mint logo .. but when I close it and open it again, it appears again with the ubuntu logo

      2.    Jamin samuel said

        What should I do to fix the user agent? Since if I open it through F2 or through the terminal it shows me the system I'm using but when I close the browser and open it again it shows me ubuntu

        1.    KZKG ^ Gaara said

          Well I guess to edit the file:
          /usr/share/applications/chromium.desktop

          1.    Jamin samuel said

            ok how do I edit it .. since it doesn't do anything for the terminal, it doesn't do anything for F2

  13.   Algabe said

    I have finally been able to get it to work with the help of Jhalss and with the help of the User Agent 🙂

    1.    KZKG ^ Gaara said

      Uff… fuck at the end, how did you do it at the end?

      1.    Algabe said

        Very easy in the terminal I put:

        [quote] locate chrome.desktop [/ quote]
        and edit the following.
        [quote] sudo nano /usr/local/share/applications/google-chrome.desktop[/quote]
        Look for the line "Exec = / opt / google / chrome / google-chrome" and leave it as follows.
        [quote] Exec = / opt / google / chrome / google-chrome –user-agent = »Mozilla / 5.0 (X11; Linux i686) AppleWebKit / 536.5 (KHTML, like Gecko) Fedora Chrome / 19.0.1084.52 Safari / 536.5 ″% U [/ quote]
        Restart Chrome and the User Agent works 🙂

        1.    KZKG ^ Gaara said

          AAHH !! ok ok thank you very much 😀
          I'm tweeting it right now hahahaha.

  14.   Greenux said

    testing

  15.   Greenux said

    I try again

  16.   Claudio said

    Hi, I have Debian LXDE and the distro does not recognize me. I read the previous comments but I can't configure it! In the terminal sudo nano /usr/local/share/applications/google-chrome.desktop it's empty and i don't know how to set it. A help or two?

  17.   a said

    test user agent

  18.   Pavloco said

    Testing

    1.    Pavloco said

      I already could, but I made him different.

      1.    Pavloco said

        Fuck still bad, I use Chromium

  19.   Alejandro Mora said

    Testing…..

    Thank you very much!

  20.   Daniel Rojas said

    Testing…

  21.   Aliana said

    Testing…

  22.   Aliana said

    Hey.

    Writing from Konqueror, Kubuntu 11.10.

    After following this trick my Chromium 18.0.1025.168 is not working, it tells me:

    "KDEInit could not launch" usr / bin / chromium ".

    In my case I had to edit the file

    /usr/share/applications/chromium-browser.desktop

    to follow the trick.

    I don't know if I have to change something in addition to "/ usr / bin / chromium-browser".

    And even though I've undone the trick, I still don't have Chromium.

    I hope I don't have to reinstall it, so as not to lose the sessions I had saved ...

    Any help to recover Chromium?

    1.    KZKG ^ Gaara said

      Hello
      If you can put the content of the file you modified here - » http://paste.desdelinux.net
      To be able to review it better.

      I'll compare it with mine here, and we'll see what's wrong with it.
      regards (I.e.

  23.   Aliana said

    I was going to propose that, that they share the file to see ...

    Mine now (forgot to title it):

    http://paste.desdelinux.net/4518

    But I think I already fixed it.

    I changed the Chromium version of the trick (Chromium / 14.0.835.202) for mine (Chromium / 18.0.1025.168), thank goodness that I had the precaution of writing down my version before… And it seems that I already have Chromium again… I think… I hope that when I reopen it, it continues to work ...

    But the trick does not work for me, it keeps telling me above that I have Ubuntu, as before following the trick.

    I just let it be, lest I screw it up again.

    Advice to kubunteros, don't touch anything.

    Thanks for taking care of me, admin with a strange name 🙂

    1.    KZKG ^ Gaara said

      HAHAHAHAHAHA how I laughed with that end of «strange name admin»…. LOL!!!!
      In view of the fact that my nickname is not as simple as I thought haha… nice to meet you, my name is Alejandro 🙂

      Actually, when this post was written, Chromium gave no problems for indicating that it is a different version, no idea why now it does have that detail O_O ...

      Did you put Kubuntu on the UserAgent and it tells you that you use Ubuntu? Check that, if so I will check the code again to see any bug that I have missed.

      regards

      1.    Aliana said

        You mean change "Debian Chromium /" to "Kubuntu Chromium /"?

        I'll give it a try, but I'm afraid that restarting Chromium will screw up again.

        And as I said above, I am a guy, my name also begins with A ...

      2.    elav <° Linux said

        HAHAHAHAHAHA how I laughed with that ending of "strange name admin"…. LOL!!!!
        In view of the fact that my nickname is not as simple as I thought haha ​​... Nice to meet you, my name is Alejandro

        Leave the "sauce" that Aliana is a guy xD xD

        1.    KZKG ^ Gaara said

          HAHAHA you know that I treat everyone well haha

  24.   Aliana said

    I suggest: maybe you should add to the trick that they change the v. Chromium of the code for which they have installed ...

  25.   Aliana said

    Changed "Debian Chromium /" to "Kubuntu Chromium /", and nothing. It keeps telling me that I am on Ubuntu.

    Completely removed from "Debian Chromium /" and "Kubuntu Chromium /". Nothing.

    Now I can only open Chromium from console, although that is a Kubuntu / KDE problem that I will fix when I feel like it.

    At least you know it's Chromium, something is something.

    We leave it now, we are not going to go crazy for a little detail either.

  26.   bitblu3 said

    mmmm, I'm a good firefox user, but I'm giving chromium a chance, and the truth is that I've noticed that it uses the benefits of nouveau better than firefox. Cheers

  27.   Fega said

    testing with chakra

  28.   Fega said

    I have Chakra installed with Google Chrome and I can't get the User Agent to work, can someone who has done it please help me? Grateful from now

  29.   Hyuuga_Neji said

    testing Debian + Google Chrome 15

    1.    Hyuuga_Neji said

      in / usr / share / application there is no google-chrome.desktop
      actually that file is in /opt/google/chrome/google-chrome.desktop

      1.    Hyuuga_Neji said

        my problem is in putting the line that leads to Debian since in http://www.useragentstring.com/pages/Chrome/ only the lines for Ubuntu, Windows and Macosx appear

  30.   sieg84 said

    testing.

    1.    sieg84 said

      well, in openSUSE it works without moving to anything, but I don't use chrome, it's chromium

  31.   Daniel said

    prueba

  32.   threadjack said

    nice

  33.   izzyvp said

    Good

  34.   Garbage_Killer said

    testing

  35.   Garbage_Killer said

    2 test

  36.   Dcoy said

    Test

  37.   Dcoy said

    Test2

  38.   x11tete11x said

    test

  39.   Wisp said

    it works

  40.   Wisp said

    see

  41.   Wisp said

    viewing

  42.   José said

    Testing Maxton

  43.   Wisp said

    qqw

  44.   Wisp said

    nnmnm

  45.   Wisp said

    mgn mh

  46.   mat1986 said

    Testing user agent ...

  47.   mat1986 said

    Let's see if now xD

  48.   mat1986 said

    Testing plan B ...

  49.   mat1986 said

    Testing plan C, if it recognizes LXQt

  50.   mat1986 said

    Testing user agent with maxthon ...

  51.   mat1986 said

    After the chromium update, the custom useragent was changed, so I'm testing again ...

  52.   5ull1v4n said

    Testing after an update

    1.    5ull1v4n said

      Test 2: v

      1.    5ull1v4n said

        another test

  53.   mat1986 said

    Testing user agent in qupzilla

    1.    mat1986 said

      and now?

      1.    mat1986 said

        And now yes?

  54.   mat1986 said

    Checking useragent update in qupzilla

  55.   Brutico said

    Last chance

  56.   Wisp said

    testing user agent test

  57.   Wisp said

    Test Test Test test test test

  58.   Wisp said

    umpteenth user agent test