Wednesday, 11 January 2017

Fix GTK fonts in KDE - A Better Way

Recently I managed to setup KDE to make fonts in a few of my non-KDE programs at least readable.  But it was a hit and miss approach.  Since then I have found a much cleaner solution that is in the Linux Mint repository and might be in most other repos.  Unlike my previous effort, this method is pretty consistent across my various GTK programs.

If you are running KDE4.x Plasma, either search in Synaptic for kde-gtk-config, and install it, or open a terminal and:

sudo apt-get install kde-gtk-config

Open:
System Settings > Application Appearance.

In the left pane choose GTK.

Among other things you can adjust the font.
Mine was some weird Ubutu font with a size of 14.  Changing it to the font and same size I use in my KDE-qt Programs worked perfectly and seems to stick across things like Synaptic, Chrome, GIMP  and Geeqie among others.

If you modified things according to my previous post you might also have to go to Fonts while you are in System Settings and drop Force Fonts DPI back to 96 or turn it off.

If you did sudo systemsettings and made the changes as root you will have to go back there and turn off Force fonts DPI or at least reduce it to the default (96).



Friday, 16 December 2016

no public key available for the following key IDs: 1397BC53640DB551 Mint 17.3 2016 December 16

 I have had a problem trying to refresh Mint Update and finally some searching has shown that apparently it was caused by some stupidity by Google.  Stupidity seems to be a regular feature of both Google and Facebook these days, but luckily people manage to find ways to fix their stuff ups from time to time.

In this case the refresh was throwing up an error message:
no public key available for the following key IDs:
1397BC53640DB551.

The fix appears to be to open a terminal and run the following command:

wget -qO- https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Then do a refresh.


Friday, 18 November 2016

KDE - Easily FIX tiny fonts in Synaptic Package Manager

NOTE  This post has been updated with a better method on 11th January 2017.  The new method will work with KDE4.x, but requires installing a package that might not be in your repositories.  If it is, it makes life much simpler.

KDE is a lovely desktop to work with.  Correction, KDE 4.x is a lovely desktop to work with.  Plasma 5.x is so screwed up that all we can hope for is that someone decides to fork Plasma 4.x and maintain it.

In the mean time, for users of Mint 17.x KDE, one frustration is that as soon as we go into a non KDE program we end up with tiny little fonts on the screen.  In the image above, Synaptic Package Manager is showing with a Font Size of 9, and no amount of fiddling with font settings in KDE System Settigns, > Application Settings > Appearance > Fonts, will fix it.  Likewise, changing the settings in preferences in Synaptic makes no difference at all.

There are lots of posts from frustrated KDE users wanting a way to get Synaptic to have fonts consistent with the rest of their KDE desktop.  And despite all the weird and wonderful config file suggestions and deleting and reinstalling components, on my system one thing worked perfectly.  changing the fonts as ROOT.

Open a Terminal and use the command:     kdesudo  systemsettings

That will open the settings dialog.  In my case, as ROOT, the fonts were all Size 9.  My normal system fonts are about size 14 or 16 on my large LED monitors.



Find 'Fonts' in the left pane and choose Adjust All Fonts, and select a suitable size.  I chose Size 16 to be compatible with the screen I am using.



Choose Apply, and check the difference in Synaptic.
If Synaptic displays lines overlapping each other vertically, go back and put a tick in 'Force Fonts DPI', then Apply and restart Synaptic.  That should fix it.

Here's the Before and After - Font Size 9 as default, and Font Size 16 after.  Much nicer to work with.



Since posting this I have found a partial solution to some font problems in a few other non-KDE programs.

if you have a hidden file in yoiur home folder called        .gtkrc-2.0      you can edit it.  If it is not there. create it and make sure the settings below are in it.  Adjust the font size from 12 to whatever works for you.  Reboot the system then open some non KDE programs and see if it works.


# Configs for GTK2 programs

include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"
style "user-font"
{
        font_name="Ubuntu Regular"
}
widget_class "*" style "user-font"
gtk-font-name="Ubuntu Regular 12"
gtk-theme-name="oxygen-gtk"
gtk-icon-theme-name="oxygen"
gtk-fallback-icon-theme="unity-webapps"
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-menu-images=0
gtk-button-images=0

.

Tuesday, 18 October 2016

Linux Mint KDE is Dead. Plasma 5 killed it.

One of the things I have enjoyed about Linux since I got my first copy on 3.5 inch Floppy Disk is that it can be configured to suit almost anybody's taste.  And my favourite desktop environment is KDE because it has always allowed me a wonderful flexibility in configuring my desktop to suit my work habits.

One of the greatest features of Linux has been the ability to have multiple work spaces (desktops), something that is beginning to find its way into Windows after about 20 years.  It is like having a collection of monitors on a single computer, so it is easy to have different desktops for separate tasks.   Something the KDE 'Plasma' desktop management has allowed us to do is have a different desktop wallpaper on each work space.  Not only that, but on different work spaces on different monitors.

That might sound a little like overkill, but having different wallpapers means I can tell at a glance which work space I am on by simply looking at the wallpaper.  Or I could until today!

I installed the latest Mint 18 KDE which uses Plasma 5.  And discovered that it is broken.  Not only is Plasma 5 broken, but the development team do not plan to fix the most important problem.  This is not a Mint team problem, it is a KDE Plasma problem.  So many things were wrong with Plasma 5 when I booted after the installation that I was shocked.  For a start, the interface is ugly.  Secondly it didn't work properly on my two monitor system.  And it will not allow me to set a separate work space wallpaper.  The drop down menu would not allow me to resize it, something that is simple to do in KDE 4.x.

A little hunting around on Google shows that people have been pleading with the team developing Plasma 5 to fix this issue and that the team has put it in the too hard basket.  They have simply broken something that worked perfectly and given us junk.  And not only junk.  It is ugly junk!

So if you currently use Mint 17.x KDE and are thinking about the move to Mint 18 KDE, all I can suggest is DON'T.

Download the Mint 18 Sarah KDE ISO, make a bootable USB and run it from there while you check out all the horrible new failures.  Try simple things like making a separate wallpaper on each desktop.  Check the ghastly things it can do to your fonts and menu system.  And look at the ugly window decorations.  If you use Activities, try switching activities on the activity pager and see if your monitors flicker like crazy.

If you are very lucky and the basics work, you'l just be missing the nice useful things like different wallpapers.  Despite the Plasma team saying they will not fix the broken wallpaper problem, there's a possibility they might eventually.  If they don;t - well - it simply means KDE as we know it, it dead...

Monday, 22 August 2016

ImageMagick collages

One of my pet projects is combining bash scripts with some graphic masks to create these using Imagemagick.






Thursday, 18 August 2016

Linux Mint Ubuntu FB Messenger App

Sometimes all I need is an easier way to type in Facebook Messenger than to use my phone.  If I am on the computer I can open my Facebook page, but then I am distracted by all the stuff happening there.  And there doesn;t seem to be a decent Facebook Messenger App for the LINUX desktop that actually works.

The simple way around it is to open www.messenger.com in a browser, then tear off the tab and move it to another desktop.  But I found another option that suits me better.

Most of us have a few browsers installed.  And I sometimes have a standalone browser that can be run from a folder.  Something light and quick.  Something like https://www.palemoon.org/

What I did was downloaded palemoon, opened www.messenger.com, logged in and set that to my home page.

Then as I am in Mint KDE, I resized the window and positioned it where I want it, then right clicked the Title Bar and chose  More Actions > Special Application Settings.

In there I checked the boxes for Position and Size and set both to 'Apply Initially'.
A few other tweaks in 'VIEW' got rid of the various tool bars and the status bar, making a nice clean Facebook Messenger App with very little effort.

And I should be able to just copy my PaleMoon folder to another computer and it 'Should' be ready to use there also.

Last, I dragged the    palemoon.bin file from the folder created when I extracted the Palemoon download file to my panel and changed the settings to show the FB Messenger Icon.

Somtething I noticed is that I am getting the message notification sounds even if this is on another work space.  So that's nice.

Now when I click the icon it already has my login details saved and is the size, shape and position I want.   And it does not interfere with my normal browsers!  Obviously I blurred the details.  But this is how it looks.



A little follow up.  The palemoon Messenger thing is working great.   It is the best way I have found to use FaceBook Messenger on a Linux desktop.  All notifications and stickers are working and it is actually better to use than using messenger on my phone or tables and far better than trying to use it inside my FB page.

I think I discovered the reason some of the FB Messenger Apps for Linux Desktop haven't been working.  I followed some basic python instructions to make a very simple App using Python 3 and Qt5.  And there was a package I needed that was not included in PyQt5 by default.

I ended up writing a simple browser to do the same thing as the PaleMoon idea above using PyQt5, and it worked more or less, but without sound notifications and every now and again it simply locked.  I couldn't find the missing libraries for this App either, which on my Mint 17 KDE simply hangs,  https://messengerfordesktop.com/ 

So for now, the solution above is simple, works really well and seems pretty well bulletproof.

I will do a few simple tweaks and update.  I can't see any reason PaleMoon can't be used to provide an up to date Skype interface too.

UPDATE !!!
I found another couple of advantages to using PaleMoon to run as as FaceBook Messenger App.
The most important one is that it is possible to use CTRL + and CTRL -  or CTRL and mousewheel to scroll the size of the messenger.  Not a big deal unless as I am right now, you are using the TV across the room as a computer monitor.

Monday, 8 August 2016

Slimjet Browser and Searching GOOGLE with No Personalized results

One of the problems with designing websites for people has always been getting their pages to rank well on search engines.  After 35 years of creating web sites I've mostly got that figured out.

But it is still necessary to test the pages we design to see how well they are listing.  And the most popular search engine is still Google.  And Google has a design feature which uses your past searches to optimize your current search.

Now, the easiest ways to stop this are probably to log out of Google  each time I want to test and search from there, or to go into Private Mode on my browser.

Another way is to add a new browser in settings and make sure the drop down box for search engines is enabled,  There's a neat little piece of code that can be added to the end of the URL to turn off Personalized Search Results.

http://www.google.com/search?pws=0&q=%s

Now, I use Flashpeak Slimjet as my default browser, and I make use of Speed Dial a lot in various browsers.
Simply entering the above URL in any Speed Dial in any browser will allow me to immediately open a Google Search page with the Personalized results turned OFF.

That means my results should be based on a 'clean' search with no bias towards my previous search history.