LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2011, 01:38 PM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Slackware-logo in LQ-posts with Google-Chrome


Hello together,

has anyone tried to change the useragent or whatever is needed for this purpose. I've installed Google-Chrome and now my posts here in this forum are missing the Slackware-logo.

There is an addon for Chrome which can change the useragent, but I don't know if this is necessary. And if it's necessary, how to change the useragent in order to have the logo back?

Markus
 
Old 04-12-2011, 02:31 PM   #2
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Just start google-chrome form CLI as follows:

Code:
$ google-chrome --user-agent=Slackware
or, as I do

Code:
$ google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16"
I have also edited my google-chrome.desktop on /opt/google/chrome to whenever I launch it, this is already present. That extra info came from about:version.

Edit: Oops, I've recently updated my Google Chrome and forgot to what I just said. :-P

Last edited by rfernandez; 04-12-2011 at 02:34 PM.
 
1 members found this post helpful.
Old 04-12-2011, 02:46 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Original Poster
Rep: Reputation: Disabled
Well, I have checked this with the sites http://www.useragentstring.com/ and http://whatsmyuseragent.com/ but did not see any changes to the default useragent-settings.

But now having all Chrome Windows closed I hope it works.

Markus
 
Old 04-12-2011, 02:50 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Original Poster
Rep: Reputation: Disabled
Hello rfernandez,

thank you very much.

Obviously it's working now, but I've to find out, how to start Chrome with the icon in the controlbar and give it the useragent as an argument.

Markus
 
Old 04-12-2011, 07:15 PM   #5
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Here is patch that could automatically do what rfernandez have forgot

Code:
--- google-chrome.SlackBuild.orig       2011-04-13 08:13:46.266000570 +0800
+++ google-chrome.SlackBuild    2011-04-13 08:08:06.038000406 +0800
@@ -99,6 +99,7 @@
 
 # Install a .desktop launcher:
 sed -i -e "s#Icon=google-chrome#Icon=/opt/google/chrome/product_logo_256.png#" \
+       -e "s#Exec=/opt/google/chrome/google-chrome %U#Exec=/opt/google/chrome/google-chrome --user-agent=\"Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/$VERSION\" %U#" \
   $PKG/opt/google/chrome/google-chrome.desktop
 mkdir -p $PKG/usr/share/applications
 ln -s /opt/google/chrome/google-chrome.desktop \

Last edited by grissiom; 04-12-2011 at 07:55 PM. Reason: set the VERSION correctly. I hope the webkit version won't make difference in most of the times...
 
3 members found this post helpful.
Old 04-13-2011, 01:41 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Original Poster
Rep: Reputation: Disabled
Hello grissiom,

thank you very much, this works for me.

The next thing which doesn't work is, if I launch Chrome out of Thunderbird (i.e. opening a link in an email) I don't have the useragent with Slackware.

I'm also wondering if how I can change the menulanguage in Chrome to german.

Markus
 
Old 04-29-2011, 09:59 PM   #7
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Just a test............

Didn't work adding --user-agent=Slackware
 
Old 04-29-2011, 11:38 PM   #8
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by SqdnGuns View Post
Just a test............

Didn't work adding --user-agent=Slackware
Rebuilding with the patch from post #5 works for me.

Additionally, editing the exec line in the shell script ( i.e.- /usr/lib64/chromium-browser/chromium-launcher.sh )
also worked for me in gentoo with chromium

Code:
#exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins "$@"
exec -a "chromium-browser" "$PROGDIR/chrome" --user-agent="Mozilla/5.0 Gentoo (X11; U; Linux x86_64; en-US) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24" --extra-plugin-dir=/usr/lib/nsbrowser/plugins "$@"

Last edited by andrewthomas; 05-01-2011 at 11:09 AM. Reason: added alternative info
 
Old 07-13-2011, 06:44 AM   #9
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Another test, Chrome UA Spoofer

Edit: Failed
 
Old 07-13-2011, 07:12 AM   #10
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Trying it with rebuilt package and the above patch.

EDIT: I give up..............for now.
 
Old 07-13-2011, 08:19 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Please use the thread ' Testing thread about nothing (I'm trying to diagnose an LQ-related Firefox issue)' for testing useragent changes.

That way you will not clutter a thread with testing.
 
0 members found this post helpful.
Old 07-13-2011, 03:00 PM   #12
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by onebuck View Post
Hi,

Please use the thread ' Testing thread about nothing (I'm trying to diagnose an LQ-related Firefox issue)' for testing useragent changes.

That way you will not clutter a thread with testing.
Thanks onebuck, will do.
 
Old 07-13-2011, 03:51 PM   #13
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
Got it working by editing my google-chrome.desktop and modifying Exec to Exec=/opt/google/chrome/google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16"
 
1 members found this post helpful.
Old 07-13-2011, 04:12 PM   #14
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by SeRi@lDiE View Post
Got it working by editing my google-chrome.desktop and modifying Exec to Exec=/opt/google/chrome/google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16"
I have done the same thing, even rebuilt the package with the above patch. <scratches head>

After reading your post I edited both of these:

Code:
/opt/google/chrome/google-chrome.desktop
/home/sqdnguns/.local/share/xfce4/helpers/google-chrome.desktop
with this:

Code:
Exec=/opt/google/chrome/google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/12.0.742.124 Safari/534.16"
 
Old 07-13-2011, 04:17 PM   #15
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
Quote:
Originally Posted by SqdnGuns View Post
I have done the same thing, even rebuilt the package with the above patch. <scratches head>

After reading your post I edited both of these:

Code:
/opt/google/chrome/google-chrome.desktop
/home/sqdnguns/.local/share/xfce4/helpers/google-chrome.desktop
with this:

Code:
Exec=/opt/google/chrome/google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/12.0.742.124 Safari/534.16"
I edited /usr/share/applications/google-chrome.desktop

here is how it looks...

Code:
root@oscuridad:/usr/share/applications# cat google-chrome.desktop 
[Desktop Entry]
Version=1.0
Name=Google Chrome
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Web Browser
GenericName[ar]=ÙتصÙØ* اÙشبÙØ©
GenericName[bg]=Уеб бÑаÑзÑÑ
GenericName[ca]=Navegador web
GenericName[cs]=WWW prohlÃ*žeÄ
GenericName[da]=Browser
GenericName[de]=Web-Browser
GenericName[el]=Î*εÏιηγηÏÎ®Ï Î¹ÏÏοÏ
GenericName[en_GB]=Web Browser
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gu]=વà«àª¬ બà«àª°àª¾àªàªàª°
GenericName[he]=×פ××¤× ×××*×ר×*×
GenericName[hi]=वà¥à¤¬ बà¥à¤°à¤¾à¤à¤à¤¼à¤°
GenericName[hu]=WebböngészÅ
GenericName[it]=Browser Web
GenericName[ja]=ã¦ã§ããã©ã¦ã¶
GenericName[kn]=à²à²¾à²² ವà³à²à³à²·à²
GenericName[ko]=ì ë¸ë¼ì°ì*
GenericName[lt]=Žiniatinklio narÅ¡yklÄ
GenericName[lv]=TÄ«mekļa pÄrlÅ«ks
GenericName[ml]=à´µàµà´¬àµ à´¬àµà´°àµà´¸à´°àµâ
GenericName[mr]=वà¥à¤¬ बà¥à¤°à¤¾à¤à¤à¤°
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[pl]=PrzeglÄdarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador da Internet
GenericName[ro]=Navigator de Internet
GenericName[ru]=Ðеб-бÑаÑзеÑ
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[ta]=à®à®£à¯à®¯ à®à®²à®¾à®µà®¿
GenericName[th]=à¹à¸§à¹à¸à¹à¸à¸£à¸²à¸§à¹à¹à¸à¸*รà¹
GenericName[tr]=Web Tarayıcı
GenericName[uk]=ÐавÑгаÑÐ¾Ñ Ð¢ÐµÐ½ÐµÑ
GenericName[zh_CN]=ç½é¡µæµè§å¨
GenericName[zh_HK]=網é*ç覽å¨
GenericName[zh_TW]=網é*ç覽å¨
# Not translated in KDE, from Epiphany 2.26.1-0ubuntu1.
GenericName[bn]=à¦à§à§à¦¬ বà§à¦°à¦¾à¦à¦à¦¾à¦°
GenericName[fil]=Web Browser
GenericName[hr]=Web preglednik
GenericName[id]=Browser Web
GenericName[or]=à¬à*ବà*ବ ବà*ରାà¬à¬à¬°
GenericName[sk]=WWW prehliadaÄ
GenericName[sr]=ÐнÑеÑÐ½ÐµÑ Ð¿Ñегледник
GenericName[te]=మహాతల à°à°¨à±à°µà±à°·à°¿
GenericName[vi]=Bá» duyá»t Web
# Gnome and KDE 3 uses Comment.
Comment=Access the Internet
Comment[ar]=اÙدخÙ٠إÙ٠اÙØ¥ÙترÙت
Comment[bg]=ÐоÑÑÑп до инÑеÑнеÑ
Comment[bn]=à¦à¦¨à§à¦à¦¾à¦°à¦¨à§à¦à¦à¦¿ à¦à§à¦¯à¦¾à¦à§à¦¸à§à¦¸ à¦à¦°à§à¦¨
Comment[ca]=Accedeix a Internet
Comment[cs]=PÅÃ*stup k internetu
Comment[da]=FÃ¥ adgang til internettet
Comment[de]=Internetzugriff
Comment[el]=Î*ÏÏÏβαÏη ÏÏο ÎιαδίκÏÏο
Comment[en_GB]=Access the Internet
Comment[es]=Accede a Internet.
Comment[et]=Pääs Internetti
Comment[fi]=Käytä internetiä
Comment[fil]=I-access ang Internet
Comment[fr]=Accéder Ã* Internet
Comment[gu]=àªàªàªàª°àª¨à«àª àªàªà«àª¸à«àª¸ àªàª°à«
Comment[he]=×××©× ×× ××××*×ר×*×
Comment[hi]=à¤à¤à¤à¤°à¤¨à¥à¤ तठपहà¥à¤à¤ सà¥à¤¥à¤¾à¤ªà¤¿à¤¤ à¤à¤°à¥à¤
Comment[hr]=Pristup Internetu
Comment[hu]=Internetelérés
Comment[id]=Akses Internet
Comment[it]=Accesso a Internet
Comment[ja]=ã¤ã³ã¿ã¼ãããã«ã¢ã¯ã»ã¹
Comment[kn]=à²à²à²à²°à³à²¨à³à²à³ à²à²¨à³à²¨à³ ಪà³à²°à²µà³à²¶à²¿à²¸à²¿
Comment[ko]=ì¸í°ë· ì°ê²°
Comment[lt]=Interneto prieiga
Comment[lv]=Piekļūt internetam
Comment[ml]=à´à´¨àµà´±à´°àµââà´¨àµà´±àµà´±àµ à´à´àµâസസൠà´àµà´¯àµà´¯àµà´
Comment[mr]=à¤à¤à¤à¤°à¤¨à¥à¤à¤®à¤§à¥à¤¯à¥ पà¥à¤°à¤µà¥à¤¶ à¤à¤°à¤¾
Comment[nb]=GÃ¥ til Internett
Comment[nl]=Verbinding maken met internet
Comment[or]=à¬à¬£à*à¬à¬°à*ନà*à¬à* ପà*ରବà*ଶ à¬à¬°à¬¨à*ତà*
Comment[pl]=Skorzystaj z internetu
Comment[pt]=Aceder Ã* Internet
Comment[pt_BR]=Acessar a internet
Comment[ro]=Accesaţi Internetul
Comment[ru]=ÐоÑÑÑп в ÐнÑеÑнеÑ
Comment[sk]=PrÃ*stup do siete Internet
Comment[sl]=Dostop do interneta
Comment[sr]=ÐÑиÑÑÑпиÑе ÐнÑеÑнеÑÑ
Comment[sv]=Gå ut på Internet
Comment[ta]=à®à®£à¯à®¯à®¤à¯à®¤à¯ à®à®£à¯à®à¯à®¤à®²à¯
Comment[te]=à°à°à°à°°à±à°¨à±à°à±âనౠà°à°à±à°¸à±à°¸à± à°à±à°¯à±à°¯à°à°¡à°¿
Comment[th]=à¹à¸à¹à¸²à¸à¸¶à¸à¸*ิà¸à¹à¸à¸*รà¹à¹à¸à¹à¸
Comment[tr]=Ä°nternet'e eriÅin
Comment[uk]=ÐоÑÑÑп до ÐнÑеÑнеÑÑ
Comment[vi]=Truy cáº*p Internet
Comment[zh_CN]=访é®äºèç½
Comment[zh_HK]=é£ç·å°ç¶²é¶²è·¯
Comment[zh_TW]=é£ç·å°ç¶²é¶²è·¯
Exec=/opt/google/chrome/google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16"
Terminal=false
Icon=/opt/google/chrome/product_logo_256.png
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
root@oscuridad:/usr/share/applications#
 
2 members found this post helpful.
  


Reply



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
[SOLVED] This there a Slackware version of Google Chromium Browser? (not Google Chrome) Robert.Thompson Slackware 6 01-13-2011 05:27 AM
google chrome is not running on Slackware 13.0 64 bit igxz Slackware 6 08-06-2010 05:49 PM
I can't install google-chrome on Slackware 13.1 for x86_64 alculquicondor Slackware 6 07-18-2010 01:09 AM
Installing Google Chrome on Slackware goossen Linux - Software 6 04-14-2010 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:09 PM.

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