Thursday, December 26, 2013

Install compiz on LMDE, Linux Mint Debian Edition(MATE) in 4 easy steps.

In an earlier post I described how to install compiz on LMDE, Linux Mint Debian Edition, MATE desktop using the Sid repositories.  Well things have changed. Currently compiz is not maintained in any of the Debian repos.

Here, in 4 easy steps, I will walk you through the installation of compiz using an archived snapshot of Debian's Sid repositories.

The snapshot archive is a wayback machine that allows access to old packages based on dates and version numbers. It consists of all past and current packages the Debian archive provides.

I have accomplished this on an updated virtual machine, as well as on actual hardware.

Compiz was removed from Sid and experimental on 8/16/2013, so we will select a snapshot from 8/15/2013.

Step 1: We will open up a terminal and edit the sources.list using this command:

sudo nano /etc/apt/sources.list

At the bottom, paste in this snapshot repository:

deb http://snapshot.debian.org/archive/debian/20130815T034749Z/ sid main

Save and exit the text editor.


Step 2: We will now update the package repositories.


When we update the repos we'll need to add '-o Acquire::Check-Valid-Until=false' to the `apt-get update` command, otherwise it will complain about the snapshot repo's expired release file.


sudo apt-get -o Acquire::Check-Valid-Until=false update


Warning! Do not upgrade or dist-upgrade your system while this snapshot is active or you will really mess up your system.


Step 3: Open up the Synaptic Package Manager, reload, and search for "compiz". 


I selected the following for a full compiz install:


compiz
compiz-fuzion-plugins-extra
compiz-fuzion-plugins-main
compiz-fuzion-plugins-unsupported
compizconfig-settings-manager
fusion-icon

Package dependencies will get pulled in as well.

Hit apply and there you go! You now have compiz installed!

Step: 4: We will now disable/remove the snapshot repo so we don't unintentionally upgrade/dist-upgrade our Testing install to sid.

Open up the sources.list again


sudo nano /etc/apt/sources.list


Either comment out the line we inserted earlier or simply delete it. I chose the latter.


Save and exit.


Now update your repositories again:


sudo apt-get update


And we're done! You may update and upgrade your system as you normally would.


If tyou happen to open the compizconfig settings manager and there are no icons or text for the plugins here is the fix:

sudo nano /usr/lib/python2.7/dist-packages/ccm/Utils.py

Changing line:

ret = super (PrettyButton, self).do_expose_event (self, event)
to:
ret = gtk.Button.do_expose_event (self, event)

See the comments if this doesn't work for you.

If you want to install Emerald as well, use the debs provided at the bottom of this post:

http://simplylinuxtutorials.blogspot.com/2013/06/easily-install-compiz-emerald-on-lmde.html



Thanks for looking!


(Sources):

http://snapshot.debian.org/
http://snapshot.debian.org/archive/debian/?year=2013&month=8
http://forums.debian.net/viewtopic.php?f=6&t=106705&start=15

(Other Sources):
http://pkgs.org/debian-squeeze/debian-main-amd64/compizconfig-settings-manager_0.8.4-2_amd64.deb.html

http://shame.tuxfamily.org/repo/?cat=11

12 comments:

  1. https://sites.google.com/site/debininja/tutorials/ccsm-no-icons-text-fix

    is no longer existent. Can anyone help me out here? What was the fix?

    ReplyDelete
  2. sudo nano /usr/lib/python2.7/dist-packages/ccm/Utils.py

    Changing line:

    ret = super (PrettyButton, self).do_expose_event (self, event)
    to:
    ret = gtk.Button.do_expose_event (self, event)

    ReplyDelete
  3. Thanks for the reply. Unfortunately I don't have the following folder:

    /usr/lib/python2.7/dist-packages/ccm

    only

    /usr/lib/python2.7/dist-packages/...

    Compiz itself is working properly.
    Any idea how to solve the problem with the missing icons?

    ReplyDelete
  4. This worked for me:

    https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1130941

    Do you have all the compiz packages installed noted in the post?

    ReplyDelete
  5. The following line

    ret = super (PrettyButton, self).do_expose_event (self, event)

    I can find only in the file "Utils.py" in the following folders

    /usr/share/pyshared/ccm
    /usr/lib/pymodules/python2.7/ccm

    It's more or less the same file,
    changing one changes the other automatically.

    After changing the line

    ret = super (PrettyButton, self).do_expose_event (self, event)
    to
    ret = gtk.Button.do_expose_event (self, event)

    ccsm wouldn't start anymore.

    Unchanging it, brings ccsm back,
    but still without the icons :(

    ReplyDelete
    Replies
    1. I had the same problem too.

      I fixed it changing the line in one of the files you have mentioned:
      /usr/lib/pymodules/python2.7/ccm

      And then tried to start ccsm in terminal, but as you said, ccsm didn't start, and I got an error in terminal, saying me that in the python file there was an indentation problem.

      So what you have to do is to check that when you replace the line with ret = gtk.Button.do_expose_event (self, event) into the file, you have to conserve the numbers of tabs in that line.

      I don't know phyton's syntax, but I suppose indentation is very important.

      Delete
    2. This comment has been removed by the author.

      Delete
    3. Tabs are very important in python, correct. They are used for separating code blocks (scope). If you do not add a tab, then Python will think that you have exited the method already.

      Delete
  6. Finally solved!

    Walter is right. Phyton is very tab position sensitive. I made the changes in pluma (gedit). I changed the line 186 just as described above. By doing so pluma inserts a tab so that the line is shifted one tab position to the right, which you DO NOT see in pluma but in another editor, i.e. vi. After correcting the tab position of line 186 through vi, ccsm starts with all the icons loaded.

    In short: I would call it a tab position bug in pluma interpreting/editing a phyton script leading to an identation error.

    Many thanks to both of you.

    ReplyDelete
  7. Thanks guys for help keeping this post going!

    ReplyDelete
  8. Many thanks to YOU for posting how to install compiz on LMDE Mate!

    ReplyDelete
  9. I have installed it successfully once, a couple of weeks ago. Now I have a new test-release and would like to try Compiz on that. But I can't install it any longer.
    Synaptic says tree of the packets are broken:

    compiz
    compiz-fusion-plugins-main
    fusion-icon

    What can I do?

    ReplyDelete