Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
09-05-2014, 08:24 AM
|
#1
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
Display Slackware logo when posting from a Slackware machine?
Hi,
Looks like I'm missing some vital piece of information here. How can I display the Slackware logo in an LQ message when I post from a Slackware PC? All I get is a little penguin with a question mark in it.
Cheers,
Niki
|
|
|
09-05-2014, 08:30 AM
|
#2
|
Senior Member
Registered: Dec 2005
Distribution: Slackware
Posts: 1,135
|
|
|
|
09-05-2014, 08:32 AM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
In Firefox, go to about:config (no clue if this link will work - it doesn't, I'm removing the url tags) and right click to create a new string called general.useragent.extra.distro. The text should just be simply Slackware to change the icon.
Apparently this functionality was removed from Firefox and it now requires full editing of the UserAgent rather than appending something to the end in about :config. See my next post for the likely way to get the logo to show.
https://bugzilla.mozilla.org/show_bug.cgi?id=581008
Last edited by bassmadrigal; 09-05-2014 at 09:10 AM.
Reason: First time 'round didn't work.
|
|
|
09-05-2014, 08:55 AM
|
#4
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
Original Poster
|
Thank you very much !
Edit: doesn't work.
Last edited by kikinovak; 09-05-2014 at 08:57 AM.
|
|
|
09-05-2014, 09:15 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
Well, after more research, it seem my previous post is no longer valid due to Mozilla removing the ability to add strings to the end of your UserAgent.
You should just be able to take your current UserAgent string and then just add [b]Slackware[/b[ before Linux x86(_64) (or in other words, modify it so instead of Linux, it shows Slackware Linux). You can do this with various UserAgent extensions or by overriding it in your prefs.js under .mozilla/firefox/*.default/prefs.js (this file needs to be modified while Firefox is not open... otherwise the changes won't be saved when you exit Firefox). Keep in mind, by modifying the UserAgent, it will not reflect any changes when you update Firefox. You will need to redo the versioning (might be easier to remove the modification, get the new string, and then modify the new UserAgent) every time you update Firefox.
user_pref("general.useragent.override", "Mozilla/5.0 (X11; Slackware Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0");
|
|
|
09-05-2014, 09:16 AM
|
#6
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Think post #2, by tronayne, in the thread linked to by mrclisdue is correct. Let's see...?
Yes. Had to refresh the page.
In ~/.mozilla/firefox/*.default/prefs.js, in my case:
Code:
user_pref("general.useragent.override", "Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 Slackware Linux");
Last edited by brianL; 09-05-2014 at 09:22 AM.
|
|
1 members found this post helpful.
|
09-05-2014, 09:23 AM
|
#7
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
Original Poster
|
Quote:
Originally Posted by brianL
Think post #2, by tronayne, in the thread linked to by mrclisdue is correct. Let's see...?
Yes. Had to refresh the page.
In ~/.mozilla/firefox/*.default/prefs.js, in my case:
Code:
user_pref("general.useragent.override", "Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 Slackware Linux");
|
Giving this a spin.
(...)
Nope.
|
|
|
09-05-2014, 09:26 AM
|
#8
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Nope?
|
|
|
09-05-2014, 09:30 AM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
Quote:
Originally Posted by kikinovak
Giving this a spin.
(...)
Nope.
|
You have to edit the file while Firefox is closed and then start it back up. It only loads the preferences when Firefox starts, and anything that was set while Firefox was open is lost when you exit Firefox.
|
|
|
09-05-2014, 09:34 AM
|
#10
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Got my user agent string from here:
http://www.whatsmyuseragent.com/
|
|
|
09-05-2014, 11:39 AM
|
#11
|
LQ Newbie
Registered: Aug 2002
Location: Skåne
Distribution: *Bsd,Slackware
Posts: 27
Rep:
|
Yes, there is.
Hopefully there is a Slackware logo now.
Last edited by hegobald; 09-05-2014 at 11:41 AM.
Reason: to check if it worked
|
|
|
09-05-2014, 12:00 PM
|
#12
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
This appeared to work for me. (The changing the user agent part in Firefox, that is.)
Last edited by Richard Cranium; 09-05-2014 at 12:03 PM.
|
|
|
09-05-2014, 12:09 PM
|
#13
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
That method used to work for me, editing about:config. But then, with one of the past firefox releases, that entry kept disappearing. That's when someone posted the solution of putting it in prefs.js.
|
|
|
09-06-2014, 04:22 AM
|
#14
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Edited prefs.js on my laptop, and the Slack logo wasn't appearing. Try disabling the (Firefox) Classic Theme Restorer, see if that works.
|
|
|
09-06-2014, 04:28 AM
|
#15
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Well?
No. WTF???
|
|
|
All times are GMT -5. The time now is 03:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|