-
-
Save YuriFontella/709754f20bfaaaf6a807 to your computer and use it in GitHub Desktop.
last ride with compiz: build it on debian jessie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://wiki.compiz.org/C%2B%2BCompiling | |
# This is basically a script version of the official documentation above | |
# with a few fix needed to successfully compile on debian jessie | |
wget https://launchpad.net/compiz/0.9.12/0.9.12.2/+download/compiz-0.9.12.2.tar.bz2 | |
tar -xf compiz-0.9.12.2.tar.bz2 | |
rm compiz-0.9.12.2.tar.bz2 | |
cd compiz-0.9.12.2/ | |
mkdir build | |
cd build | |
# if in /opt or any other place without full write perms remember to: | |
# chown -R fra:fra compiz-0.9.10.0/ | |
# or make will fail | |
dependencies=( | |
build-essential | |
cmake | |
libcairo2-dev | |
librsvg2-dev | |
libglib2.0-dev | |
libpng12-dev | |
libdbus-1-dev | |
libboost-dev | |
libboost-serialization-dev | |
libxml2-dev | |
libgl1-mesa-dev | |
libglu1-mesa-dev | |
libwnck-dev | |
libgconf2-dev | |
libx11-xcb-dev | |
libxslt1-dev | |
libnotify-dev | |
libmetacity-dev | |
python-gtk2-dev | |
libgnome-desktop-dev | |
gnome-control-center-dev | |
intltool | |
cython | |
python2.7-dev | |
libglibmm-2.4-dev | |
libprotobuf-dev | |
python-pyrex | |
xsltproc | |
) | |
sudo apt-get install ${dependencies[@]} | |
cmake ../ | |
make | |
# if make fails with something like: No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so' | |
# just check where the .so file is on ur system, and replace eventual broken symlink like: | |
# sudo rm /usr/lib/x86_64-linux-gnu/libGL.so | |
# sudo ln -s /usr/lib/libGL.so /usr/lib/x86_64-linux-gnu/libGL.so | |
# should happens just with nvidia driver though | |
sudo make install | |
sudo make findcompiz_install | |
sudo make findcompizconfig_install | |
# https://bugs.launchpad.net/compiz/+bug/1136011 | |
sudo ln -s /usr/local/lib/python2.7/site-packages/compizconfig.so /usr/local/lib/python2.7/dist-packages/compizconfig.so | |
# check if you have /usr/local/lib in your /etc/ld.so.conf.d/libc.conf and add the path if needed | |
# so that you don't have to deal with export LD_LIBRARY_PATH every time | |
sudo ldconfig | |
# now for the first run start ccsm before compiz, enable the window decorator plugin and configure it with gtk-window-decorator or whatever u like | |
# enable resizing, dragging and basic functions of the windows, and u're ready to go: | |
# compiz --replace ccp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment