Compiz Addons: A script to install experimental plugins

Compiz related guides and FAQs

Moderators: cariboo907, howefield, Scotty

Compiz Addons: A script to install experimental plugins

Postby soreau » Thu Oct 15, 2009 7:54 am

Welcome.

This is script to install experimental plugins tailored for use with Ubuntu 9.04 - 10.10, compiz version 0.8.x. For those using any other version than 0.8 this script should not be used.

If you're not sure which version of compiz you have installed, you can use the following command to find out.

Code: Select all
compiz --version


Intrepid:
If it returns 0.7.x or previous versions, you should upgrade compiz. However, the old guides still exist: see this post.

For those who are using Ubuntu 9.04, 9.10, 10.04 or 10.10 and would like to install additional experimental plugins not provided in the official repositories, this is a script to do just that. NOTE: compiz-fusion-plugins-unsupported is no longer in the official ubuntu repos as of 9.10 release. This script includes the plugins that were provided by this package. As of 10.04, compiz-fusion-plugins-extra is not installed by default so the script installs it as well.

Here we assume that:
1) You have a fresh install of Ubuntu.
2) You have the default version of compiz working (0.8).
2) You are running in a bash shell environment.
3) You are running as user and not root.


Compiz-Fusion is installed by default in Ubuntu and will run as long as you have a video card with appropriate drivers installed and properly configured. Installing drivers is beyond the scope of this writing, but there are plenty of guides to configure your graphics card. See the Hardware page on the Compiz Wiki for more information.

New: Added icons for all plugins (thanks coz ;))

Without further ado, here is how to get and use the script:

1) Install git-core
Code: Select all
sudo apt-get install git-core


2) Download the script
Code: Select all
git clone git://anongit.compiz.org/users/soreau/scripts


3) Run it
Code: Select all
./scripts/compiz-addons-0.8


If you have already downloaded the script set but want to get the latest changes, go to the scripts directory in your terminal and update it
Code: Select all
git pull


Remember, run it as user, never use sudo or run as root. It will prompt for password for two things. 1) to install dependencies and 2) to install the icons. The plugins will be installed to ~/.compiz and the source code will be placed in ~/src/compiz/plugins but the icons must be installed to /usr/share/ccsm/icons/hicolor/scalable/apps which is owned by root. In short, run the script as user and it will prompt for password if needed. Here are a few examples of how to use it.

Use it to compile the plugins:

Examples:

Installing a plugin
Code: Select all
~/scripts/compiz-addons-0.8 install snow

Removing a plugin
Code: Select all
~/scripts/compiz-addons-0.8 uninstall atlantis

List all available
Code: Select all
~/scripts/compiz-addons-0.8 --list

Help with usage
Code: Select all
~/scripts/compiz-addons-0.8 --help

Install all plugins the script supports
Code: Select all
~/scripts/compiz-addons-0.8 install all

Remove all installed plugins
Code: Select all
~/scripts/compiz-addons-0.8 uninstall all


Alternatively you can run the script without any arguments and it will go through the list of plugins, prompting action for each in the list.

After using the script:
Restart compiz and ccsm so the plugin will be loaded internally by compiz and it will show up in ccsm. To do this:
Press Alt+F2 and in the run dialog type 'compiz --replace' without tick marks and press enter.
Restart ccsm by simply closing and restarting the ccsm window. (System>Preferences>CompizConfig Settings Manager)


If there are any problems, please ensure you have followed all instructions and typed all commands correctly. Otherwise, post any problems or suggested changes in this thread. For irc support, join #compiz on irc.freenode.net.

Enjoy
soreau
Member
 
Posts: 129
Joined: Sat Aug 04, 2007 12:50 am
Location: US

Re: Compiz Addons: A script to install experimental plugins

Postby some-guy » Thu Oct 15, 2009 11:59 pm

For the icons can you download the ones from http://code.google.com/p/compiz-fusion-icons/ ?

We've been working on these and seem to have most of the plugins done.
some-guy
 
Posts: 2673
Joined: Tue Apr 24, 2007 8:31 pm

Re: Compiz Addons: A script to install experimental plugins

Postby donpaparak » Sat Nov 21, 2009 3:21 am

Hi,

i do become an error during the installation:

tar: /tmp/icons-experimental.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: icons-experimental/plugin-cubemodel.svg: Not found in archive
tar: Exiting with failure status due to previous errors
Done.


i think i do need icons-experimental.tar.gz ?!

can you help.
thanks

best regards
donpaparak
Junior Member
 
Posts: 2
Joined: Sat Nov 21, 2009 3:19 am

Re: Compiz Addons: A script to install experimental plugins

Postby donpaparak » Sat Nov 21, 2009 3:30 am

ou i solved it.

i just went to the url
http://oreaus.googlepages.com/icons-experimental.tar.gz

and downloaded them manually.

Great Post.

Thanks
donpaparak
Junior Member
 
Posts: 2
Joined: Sat Nov 21, 2009 3:19 am

Re: Compiz Addons: A script to install experimental plugins

Postby ethnopunk » Fri Nov 27, 2009 10:07 pm

So where should the icons folder be to avoid this problem?:monkey:
ethnopunk
Junior Member
 
Posts: 2
Joined: Fri Nov 27, 2009 8:35 pm

Re: Compiz Addons: A script to install experimental plugins

Postby soctu » Sun Dec 20, 2009 3:56 pm

I would like to keep my builds up to date. How do we update compiz and the experimental plugins. :computer:
soctu
Junior Member
 
Posts: 1
Joined: Tue Sep 25, 2007 4:44 pm

Re: Compiz Addons: A script to install experimental plugins

Postby Zeniff » Tue Jan 26, 2010 8:23 pm

Why is this trying to uninstall packages that seem totally unrelated to it?

I've tried this on two PCs, and it wants to uninstall a bunch of stuff.

Here's what it tried to uninstall from this PC:
Code: Select all
  libestools1.2{u} libnspr4-dev{u} libpcmanx-core0{u} pcmanx-gtk2{u}
  stardict{u} stardict-common{u} stardict-gtk{u} stardict-plugin{u}
  stardict-plugin-espeak{u} stardict-plugin-festival{u}


The other PC tried uninstalling different packages. I'll have to list them later, since I can't get to it for now, though.

Any idea why it happens and if it's a bug? ...and how to work around it?

Thanks~ Have a great day! :)
Zeniff
Junior Member
 
Posts: 8
Joined: Wed Aug 19, 2009 3:33 pm

Re: Compiz Addons: A script to install experimental plugins

Postby soreau » Thu Jan 28, 2010 12:43 am

Zeniff wrote:Why is this trying to uninstall packages that seem totally unrelated to it?


The script only tries to install packages using the following command:
Code: Select all
sudo aptitude install compiz compiz-fusion-bcop compiz-dev compizconfig-settings-manager build-essential libtool libglu1-mesa-dev libxss-dev libcairo2-dev libdecoration0-dev libpango1.0-dev git-core

Aptitude should tell you why it's trying to remove any packages. Please post the output of the above command and which version of ubuntu you are using if it does not work.
soreau
Member
 
Posts: 129
Joined: Sat Aug 04, 2007 12:50 am
Location: US

Re: Compiz Addons: A script to install experimental plugins

Postby Zeniff » Sat Jan 30, 2010 4:14 am

Hi~ Okay, here's what I got...
Ubuntu 9.10 Gnome on both a desktop and laptop (2.6.31-17-generic #54-Ubuntu SMP 2009 i686), and both have this same problem, although the packages to be removed are different. My last post was from the laptop, and this post is from the desktop. Not fresh Ubuntu installs, but only 2-3 months old, and I don't think I changed anything much except installing stuff.

Here's the output of just the part you mentioned:
Code: Select all
$ sudo aptitude install compiz compiz-fusion-bcop compiz-dev compizconfig-settings-manager build-essential libtool libglu1-mesa-dev libxss-dev libcairo2-dev libdecoration0-dev libpango1.0-dev git-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
The following NEW packages will be installed:
  autotools-dev{a} build-essential compiz-dev cvs{a} debhelper{a} dpkg-dev{a} fakeroot{a}
  g++{a} g++-4.4{a} gettext{a} git-core html2text{a} intltool-debian{a} libcairo2-dev
  libdecoration0-dev libdigest-sha1-perl{a} libdirectfb-dev{a} libdirectfb-extra{a}
  liberror-perl{a} libexpat1-dev{a} libfontconfig1-dev{a} libfreetype6-dev{a}
  libgl1-mesa-dev{a} libglib2.0-dev{a} libglu1-mesa-dev libice-dev{a} libjpeg62-dev{a}
  libltdl-dev{a} libmail-sendmail-perl{a} libpango1.0-dev libpixman-1-dev{a} libpng12-dev{a}
  libpthread-stubs0{a} libpthread-stubs0-dev{a} libsm-dev{a} libstartup-notification0-dev{a}
  libstdc++6-4.4-dev{a} libsys-hostname-long-perl{a} libsysfs-dev{a} libtool libx11-dev{a}
  libx11-xcb-dev{a} libxau-dev{a} libxcb-render-util0-dev{a} libxcb-render0-dev{a}
  libxcb1-dev{a} libxcomposite-dev{a} libxcursor-dev{a} libxdamage-dev{a} libxdmcp-dev{a}
  libxext-dev{a} libxfixes-dev{a} libxft-dev{a} libxinerama-dev{a} libxml2-dev{a}
  libxrandr-dev{a} libxrender-dev{a} libxslt1-dev{a} libxss-dev mesa-common-dev{a} patch{a}
  po-debconf{a} x11proto-composite-dev{a} x11proto-core-dev{a} x11proto-damage-dev{a}
  x11proto-fixes-dev{a} x11proto-input-dev{a} x11proto-kb-dev{a} x11proto-randr-dev{a}
  x11proto-render-dev{a} x11proto-scrnsaver-dev{a} x11proto-xext-dev{a}
  x11proto-xinerama-dev{a} xtrans-dev{a} zlib1g-dev{a}
The following packages will be REMOVED:
  cabextract{u} libcln5{u} libnspr4-dev{u} libqalculate4{u} linux-headers-2.6.31-14{u}
  linux-headers-2.6.31-14-generic{u} xloadimage{u}
0 packages upgraded, 75 newly installed, 7 to remove and 0 not upgraded.
Need to get 29.2MB of archives. After unpacking 1,065kB will be used.
Do you want to continue? [Y/n/?] n
Abort.


If my memory serves me correctly, the first time I ever ran it successfully, it also seemed to ignore my answer to abort the installation, so I freaked out and pressed CTRL+C to stop it. I repeated it again today with the same result (also stopping it):
Code: Select all
$ ./compiz-addons install snow
Installing dependencies..
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information     
Initializing package states... Done
The following NEW packages will be installed:
  autotools-dev{a} build-essential compiz-dev cvs{a} debhelper{a} dpkg-dev{a} fakeroot{a}
  g++{a} g++-4.4{a} gettext{a} git-core html2text{a} intltool-debian{a} libcairo2-dev
  libdecoration0-dev libdigest-sha1-perl{a} libdirectfb-dev{a} libdirectfb-extra{a}
  liberror-perl{a} libexpat1-dev{a} libfontconfig1-dev{a} libfreetype6-dev{a}
  libgl1-mesa-dev{a} libglib2.0-dev{a} libglu1-mesa-dev libice-dev{a} libjpeg62-dev{a}
  libltdl-dev{a} libmail-sendmail-perl{a} libpango1.0-dev libpixman-1-dev{a} libpng12-dev{a}
  libpthread-stubs0{a} libpthread-stubs0-dev{a} libsm-dev{a} libstartup-notification0-dev{a}
  libstdc++6-4.4-dev{a} libsys-hostname-long-perl{a} libsysfs-dev{a} libtool libx11-dev{a}
  libx11-xcb-dev{a} libxau-dev{a} libxcb-render-util0-dev{a} libxcb-render0-dev{a}
  libxcb1-dev{a} libxcomposite-dev{a} libxcursor-dev{a} libxdamage-dev{a} libxdmcp-dev{a}
  libxext-dev{a} libxfixes-dev{a} libxft-dev{a} libxinerama-dev{a} libxml2-dev{a}
  libxrandr-dev{a} libxrender-dev{a} libxslt1-dev{a} libxss-dev mesa-common-dev{a} patch{a}
  po-debconf{a} x11proto-composite-dev{a} x11proto-core-dev{a} x11proto-damage-dev{a}
  x11proto-fixes-dev{a} x11proto-input-dev{a} x11proto-kb-dev{a} x11proto-randr-dev{a}
  x11proto-render-dev{a} x11proto-scrnsaver-dev{a} x11proto-xext-dev{a}
  x11proto-xinerama-dev{a} xtrans-dev{a} zlib1g-dev{a}
The following packages will be REMOVED:
  cabextract{u} libcln5{u} libnspr4-dev{u} libqalculate4{u} linux-headers-2.6.31-14{u}
  linux-headers-2.6.31-14-generic{u} xloadimage{u}
0 packages upgraded, 75 newly installed, 7 to remove and 0 not upgraded.
Need to get 29.2MB of archives. After unpacking 1,065kB will be used.
Do you want to continue? [Y/n/?] n
Abort.
./compiz-addons: line 104: git: command not found
./compiz-addons: line 113: cd: /home/zeniffubuntu/src/compiz/plugins/snow: No such file or directory
./compiz-addons: line 104: git: command not found
./compiz-addons: line 113: cd: /home/zeniffubuntu/src/compiz/plugins/snow: No such file or directory
Building snow..
make: *** No rule to make target `clean'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
Installing ..
make: *** No rule to make target `install'.  Stop.
grep: plugin.info: No such file or directory
Installing icon for snow..
--2010-01-29 20:02:00--  http://oreaus.googlepages.com/icons-experimental.tar.gz
Resolving oreaus.googlepages.com... 74.125.127.133, 74.125.127.118
Connecting to oreaus.googlepages.com|74.125.127.133|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://sites.google.com/site/oreaus/icons-experimental.tar.gz [following]
--2010-01-29 20:02:01--  http://sites.google.com/site/oreaus/icons-experimental.tar.gz
Resolving sites.google.com... 74.125.19.138, 74.125.19.102, 74.125.19.101, ...
Connecting to sites.google.com|74.125.19.138|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://sites.google.com/site/oreaus/icons-experimental.tar.gz?attredirects=0 [following]
--2010-01-29 20:02:01--  http://sites.google.com/site/oreaus/icons-experimental.tar.gz?attredirects=0
Connecting to sites.google.com|74.125.19.138|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://214567023381301459-a-1802744773732722657-s-sites.googlegroups.com/site/oreaus/icons-experimental.tar.gz?attachauth=ANoY7cqPnDhcHB4grBpIri009KL_fszaOMY5EjOQrqMKHkJReX5RBy4AqJsDknk2Tpr4Hq7xg2gTKwwzyFgVpj0pUz1Hx734CsuJiAsDtP0RUiNfGqCByM1PHTdMfOlL2Cq79BZ34-jPyVQIkjDGFYk4D9xZ3Qk9uk7pYZWChw7YPszxFw1qfpH0zGC9xd-Zb8DlmLSXx-EcjErAJ5BdYIKWWHJs0j5duA%3D%3D&attredirects=0 [following]
--2010-01-29 20:02:02--  http://214567023381301459-a-1802744773732722657-s-sites.googlegroups.com/site/oreaus/icons-experimental.tar.gz?attachauth=ANoY7cqPnDhcHB4grBpIri009KL_fszaOMY5EjOQrqMKHkJReX5RBy4AqJsDknk2Tpr4Hq7xg2gTKwwzyFgVpj0pUz1Hx734CsuJiAsDtP0RUiNfGqCByM1PHTdMfOlL2Cq79BZ34-jPyVQIkjDGFYk4D9xZ3Qk9uk7pYZWChw7YPszxFw1qfpH0zGC9xd-Zb8DlmLSXx-EcjErAJ5BdYIKWWHJs0j5duA%3D%3D&attredirects=0
Resolving 214567023381301459-a-1802744773732722657-s-sites.googlegroups.com... 74.125.19.137
Connecting to 214567023381301459-a-1802744773732722657-s-sites.googlegroups.com|74.125.19.137|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 251488 (246K) [application/octet-stream]
Saving to: `/tmp/icons-experimental.tar.gz'

47% [==========================>                                ] 118,954      140K/s              ^88% [===================================================>       ] 222,468      149K/s              ^zeniffubuntu@PinkHousePC:~/Desktop/compiz-addons$


Any ideas? Thank you for the script and sorry for the trouble~
Zeniff
Junior Member
 
Posts: 8
Joined: Wed Aug 19, 2009 3:33 pm

Re: Compiz Addons: A script to install experimental plugins

Postby soreau » Sat Jan 30, 2010 4:54 am

Does it make any difference if you use apt-get instead of aptitude? I'm not really sure what is going on there.

EDIT: The script has been updated to use apt-get.
soreau
Member
 
Posts: 129
Joined: Sat Aug 04, 2007 12:50 am
Location: US

Next

Return to Guides and FAQs

Who is online

Users browsing this forum: No registered users and 1 guest

cron