KDE, Linux, OpenSuse, Uncategorized

Compiz works great with KDE 5

Compiz was pretty much “the thing” that got me started with Linux. Whenever it comes up on online forums, there are usually a few people who say the same thing. When KDE 5 and Gnome 3 made their own compositors and window managers a lot the Compiz functionality was replaced. Most people seem to be content with this and Compiz was regarded as a thing of the past. When KDE 5 and Gnome 3 first came out Compiz was completely incompatible. Now it is possible to get Compiz running on both.

I’ve always felt that Compiz offered a lot more and was generally more useful than the KDE effects. Today I found out, it really isn’t that hard to get Compiz working in KDE 5 with Plasma.

I’m using Open SUSE but you should be able to find these packages in whatever distribution you are using.

Compiz is the window manager, Emerald is the window decorator, Compizconfig Settings Manager is the configuration tool, and Fusion Icon sets everything up.

You’ll want to disable KDE’s desktop effects. Search “Compositor” in your application menu and disable “Enable compositor on startup”.

Search “Autostart” in your application menu. Add fusion-icon to run on startup. Run fusion-icon from a terminal or the applications menu, and you should be able to change your window manager to Compiz. Right click the Fusion icon and choose “Select Window Manager”. Once that is set, it will replace your window manager on startup. From the Fusion Icon, you can set your Emerald Theme and Compiz settings.

If you log back in and you don’t have a desktop, or your desktop is blank, this is easy to fix. The blank desktop issue seems to happen if Compiz loads too fast. Replacing the autostart fusion-icon command with a script with the contents sleep 5; fusion-icon seems to give KDE enough time to load the desktop before Compiz loads. Compiz still starts while KDE is loading, so you don’t see a hacky switch in window managers 5 seconds into your desktop session.

If you want to use the “Windows Previews” plugin in Compiz, you may see two window previews when you hover over your task manager if KDE’s window previews are turned on. To disable this, right click your task manager, click “Task Manager Settings” and uncheck “Show Previews”.

So why even use Compiz? One of the main features for me is, just by holding down shift while switching desktops, I can bring the window with me while moving to different sides of the cube. I’ve never been able to find a way to do this in KDE. There are also a lot more features, plugins, and themes.

A lot of it seems frozen in time. A lot of the Emerald themes I remember from 10 years ago. But they still work fine

I think Compiz was good for the Linux community. It got a lot of people talking about Linux and a lot of people using Linux. It is kind of unfortunate that it was shut out by the big two desktop environments. When Compiz was popular, I remember seeing new plugins in the Compiz settings manager every few weeks. It has been years since KDE 5 was released and there are hardly any plugins for it’s “Desktop Effects”.

I know a lot of Linux users dismiss Compiz as pointless “bling”. Even if this was true, people were sharing Compiz videos and people were trying Linux just for Compiz. I think it would of been better if Gnome and KDE didn’t shut Compiz out.

Whatever the issue was with KDE 5, it seems to be fixed. With Gnome, even though most online posts say it is impossible to run Compiz, it has been reported to work if you start Gnome in “fallback mode”.

KDE, Linux, OpenSuse

Installing KDE5 on OpenSUSE 13.2 as the only desktop enviorment

If you’re looking for a way to install KDE5 during the OpenSUSE OS installation there is a way. It takes a few steps but it works. I’ll explain how to do it below. As of this writing it will install KDE 5.1 on OpenSUSE 13.2.

Make sure you have a network connection during the install because the options you need don’t appear unless you add repos before installation. Fortunately the OpenSUSE installer now has you set up a network connection before you do anything else.

On this screen make sure you have “Add Online Repositories” checked off.

The default repos are all you need.

On this screen do not select any of the default desktop environments. Select “Minimal X Window”.

On this screen click software.

Check off Plasma 5 base on the left. Here you should also search for NetworkManager and install it as well. You might also want to check off some other packages such as image viewers and PDF readers. Everything you need to have a working OpenSUSE system with KDE 5.1 is selected already though.

Once you boot up you’ll have you’ll have a very minimal graphical interface. Log in as Root. You will need to go into Yast and then click the /etc/sysconfig editor.

Go to Desktop > Display Manager > DISPLAY_MANAGER and set it to kdm.
Then go to Desktop > Window Manager > DEFAULT_WM and set it to plasma5.

That’s it. Restart your system and you’ll have OpenSUSE KDE5 without the bulk of two full featured desktop environments.

You can try setting sddm as the display manager but as of now there is no easy way to get it running. Here is just one of several people I’ve heard feedback from:

From personal experience, sddm in openSUSE is very buggy. It does not allow a proper logout yet (display manager hangs during logout/restart/shutdown).

eeickmeyer (reddit.com)

KDE, Linux, OpenSuse

BIR – Linux GUI Batch Image Resizer

Images from your digital camera tend to be big. Really big. Even with our broadband connections having a slideshow of 5mb images does not make a lot of sense. If you want to email images you probably want to resize them all before you send them. There are also situations where you have images of many different sizes and you want to resize them uniformly. With a quick Google search I couldn’t find any way to do this that didn’t involve a command line. I set out to create a batch image resizer with a GUI similar to the ones I’ve used on Windows.

Its called BIR for Batch Image Resizer. It came out looking like this:

Linux batch image resizer
BIR – The Linux batch image resizer

Along with resizing it will also rotate your images and crop them. It has plenty of options for fine tuning. It can resize a directory recursively and preserve your directory structure in the destination folder. I coded this so it looks at all the images and finds the first parent folder that all of the files share. Alternatively, you can also set it so all of the resized files end up on the same folder with no subdirectories. I’ve tested it with hundreds of files and it seems to work fine no matter how much you throw at it.

It can resize almost any type of file you would need to resize. The list of formates are:

  • BMP Windows Bitmap
  • JPG Joint Photographic Experts Group
  • JPEG Joint Photographic Experts Group
  • PNG Portable Network Graphics
  • PPM Portable Pixmap
  • TIFF Tagged Image File Format
  • XBM X11 Bitmap
  • XPM X11 Pixmap

Thanks to some helpful people on Reddit people have tested it and helped me iron out any issues they discovered

The source code is available here:

Here you can find packages for OpenSuse, Fedora, RedHat, and CentOS.

Here you can find the package on the OpenSuse Build Service.

Version 2.0 fixes some issues with Ubuntu and all the code is updated for Qt5. If you need to compile it you use the same exact steps you used for qt4 except the qmake command might be qmake-qt5.

Compiling the Batch Image Resizer
If you rather not deal with resolving dependencies yourself you can download Qt from the Qt website. You can also download Qt-Creator which is the IDE I used to create this program.

If there are no precompiled release for your distro you can compile a release very easy. You just need the dependencies for Qt5. The development package will probably have a suffix like -dev. With a command like this you can search for packages with the letters “qt5” in them that also has the string “-dev”. This works for Ubuntu.

sudo apt-cache search qt5 | grep "dev"

So anyways, once you get the sources and dependencies compiling and installing is very easy.

$ mkdir build
$ cd BIR/build
$ qmake-qt5 ../  
$ make
$ sudo make install

Thats all there is to it. The program should appear in whatever launcher you use.

Linux, OpenSuse

Fixing Netflix on OpenSuse with Silverlight upgrade error

It seems that the Ubuntu users have a relatively easy fix for this. They simply delete a directory and they are back in business. I haven’t found a way to fix the old Netflix package. I was able to get Netflix working again on Opensuse using Pipelight. I actually think this is a better way to run Netflix on Opensuse. This lets you run it in Firefox without using the Windows version of Firefox in Wine.

Fist add the repo for Pipelight:
openSUSE 12.2:
zypper ar --refresh http://download.opensuse.org/repositories/home:/DarkPlayer:/Pipelight/openSUSE_12.2/home:DarkPlayer:Pipelight.repo

openSUSE 12.3:
zypper ar --refresh http://download.opensuse.org/repositories/home:/DarkPlayer:/Pipelight/openSUSE_12.3/home:DarkPlayer:Pipelight.repo

openSUSE 13.1:
zypper ar --refresh http://download.opensuse.org/repositories/home:/DarkPlayer:/Pipelight/openSUSE_13.1/home:DarkPlayer:Pipelight.repo

openSUSE Factory:
zypper ar --refresh http://download.opensuse.org/repositories/home:/DarkPlayer:/Pipelight/openSUSE_Factory/home:DarkPlayer:Pipelight.repo

openSUSE Tumbleweed:
zypper ar --refresh http://download.opensuse.org/repositories/home:/DarkPlayer:/Pipelight/openSUSE_Tumbleweed/home:DarkPlayer:Pipelight.repo

Install it (run as root):
zypper ref
zypper install pipelight
pipelight-plugin --update
pipelight-plugin --enable silverlight

Now you just need Firefox to be able to tell Netflix you are running Windows.

Install the User Agent Overrider. You can see how to enable it in the screenshots on that page. Switch it to Firefox for Windows. Browse to Netflix and you should be all set.


Flash not Working on Chromium with OpenSuse 13.1? Here is the solution.

For months and perhaps even years I’ve been living without Flash on Chromium. When the need arose I would simply open up Firefox. The provided installers failed to work and no matter how many times I ran through the steps Flash was not installed. I don’t know how prevalent this issue is but I think other people might run into the same issue. Here is how to fix it.

First, the Adobe supplied packages will not work. Not the RPMs. Not the tar.gz. It seems Chromium is now using a common framework for plugins called Pepper. This is not accounted for in the normal Flash package. You’ll need to install a package that can be found in the Packman repo.

Add the packman repo if you do not already have it:
zypper ar -f http://packman.inode.at/suse/openSUSE_13.1/ packman

Install the missing package:
zypper in chromium-pepper-flash

Edit: Check if Flash is working now in Chromium. It seems like they may have fixed it. If not the files are being placed in the wrong location inside OpenSuse. If it works you’re done. Otherwise continue reading.

Even after installing this package Flash still won’t work. It put the files in the wrong location. Copy them to the right location with this command:
cp /usr/lib64/chromium/PepperFlash/libpepflashplayer.so /opt/google/chrome/pepper/

Restart Chromium. You may need to navigate to about://plugins to enable it. It should all be working.