Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/08/2007, à 15:16

holodad

Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

Salut a tous,

Voici ma petite découverte qui va vous faciliter la vie!
Ce script permet l'installation de Compiz Fusion via les git (pré-requis XCB)ou alors, via la version stable 0.5.2(XCB non requis)
Dans le cas de la "méthode git", ce script installera tout le nécessaire pour que Compiz fonctionne correctement et ce, sans aucun problèmes. Il vous installera également le support XCB sans casser Java ou autres.... Je suis très content de ce script car l'administration de Compiz s'en trouve facilité....
Utilisez le de toute urgence et vous verrez!!
Note: Le dernière version git de Compiz-Fusion pose problèmes... Il n'est pas possible de le démarrer....
Donc, utilisez le script normalement pour installer toutes les dernières releases Git et essayez de démarrer Compiz. Si vous êtes dans le même cas que moi ou CF ne démarre pas, il suffira simplement de remplacer la dernière version de CF par celle de ci dessous... Bien sur, tout ceci sera corrigé dans une next release de CF...
http://gitweb.opencompositing.org/?p=compiz;a=snapshot;h=4d4afa2af26c67fe9c5b52abd75a6d752b750c6c


Utilisation du script:

Copiez/Collez le texte ci dessous (désolé je sais pas faire un déroulant)dans un fichier texte que vous appellerez "ce_que_vous_voulez.sh"
Changez les permissions de votre fichier .sh par la commande suivante:
sudo chmod +x "ce_que_vous_voulez.sh" et lancez le fichier par la commande ./"ce_que_vous_voulez.sh"
Suivez les instructions et c'est parti!!!

#!/bin/bash

downdir=~/compiz        #choose download directory - make sure that the path you enter exists, as the sript can only create the final directory (download directory)
gitpluginsall="3d addhelper animation atlantis bench colorfilter compiz-scheme crashhandler cubecaps cubereflex expo extrawm ezoom fadedesktop fakeargb firepaint gears group jpeg mblur mswitch neg opacify put reflex resizeinfo ring scaleaddon scalefilter screencasting shift showdesktop snap snow splash text thumbnail tile trailfocus vpswitch wall wallpaper widget winrules workarounds"

clear
echo -e "\033[7mWelcome to CF Installer-Updater version 3.0\033[0m"
echo
echo -e "\033[1mReminder: You must have Main, Universe and Multiverse repositories enabled in order this script to work properly (otherwise not everything needed will be able to be downloaded).\033[0m"
echo
echo -e "\033[1mWarning: If you get an error about libcairo.so.2 uninstall Mono and it will be solved (the version which is pre-installed in Ubuntu should not cause any problems).\033[0m"

echo
echo -e "\033[1mDo you use Gnome or KDE?(g/k):\033[0m" ; read answer
if [ $answer = g ] ; then
    opdeskenv=kde
elif [ $answer = k ] ; then
    opdeskenv=gnome
else
    echo -e "\033[1mInvalid answer\033[0m"
    exit
fi
echo
echo -e "\033[1mDo you want to (un)install Compiz Fusion or update it?(i/u):\033[0m" ; read answer
if [ $answer = i ] ; then
    echo
    echo -e "\033[1mDo you want to install or uninstall Compiz Fusion?(i/u):\033[0m" ; read answer
    if [ $answer = i ] ; then
        {
            echo
            echo -e "\033[1mInstalling required dependencies to build...\033[0m"
            sudo apt-get install git-core automake build-essential intltool libtool python python-pyrex python-gtk2 python2.5-dev
           
            echo
            if [ $opdeskenv = kde ] ; then
                echo -e "\033[1mDo you have any KDE libraries installed?(y/n):\033[0m" ; read answer
                if [ $answer = y ] ; then
                    echo -e "\033[1mInsalling Compiz Fusion 's dependencies...\033[0m"
                    sudo apt-get install autoconf automake1.7 autotools-dev build-essential debhelper dpkg-dev g++ g++-4.1 html2text intltool libart-2.0-dev libatk1.0-dev libaudiofile-dev libavahi-client-dev libavahi-common-dev libavahi-glib-dev libbonobo2-dev libbonoboui2-dev libc6-dev libcairo2-dev libdbus-1-dev libdbus-glib-1-dev libesd0-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgconf2-dev libgcrypt11-dev libgl1-mesa-dev libglade2-dev libglib2.0-dev libgnome-desktop-dev libgnome-keyring-dev libgnome-window-settings-dev libgnome2-dev libgnomecanvas2-dev libgnomeui-dev libgnomevfs2-dev libgnutls-dev libgpg-error-dev libgtk2.0-dev libice-dev libidl-dev libjpeg62-dev liblzo-dev libopencdk8-dev liborbit2-dev libpango1.0-dev libpng12-dev libpopt-dev libselinux1-dev libsepol1-dev libsm-dev libstartup-notification0-dev libstdc++6-4.1-dev libtasn1-3-dev libwnck-dev libx11-dev libxau-dev libxcomposite-dev libxcomposite1 libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-dev libxrandr-dev libxrender-dev libxres-dev libxt-dev linux-libc-dev m4 mesa-common-dev x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-resource-dev x11proto-xext-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev
                elif [ $answer = n ] ; then
                    echo -e "\033[1mInsalling Compiz Fusion 's dependencies...\033[0m"
                    sudo apt-get build-dep compiz
                else
                    echo -e "\033[1mInvalid answer\033[0m"
                    exit
                fi
            elif [ $opdeskenv = gnome ] ; then
                echo -e "\033[1mDo you have any Gnome libraries installed?(y/n):\033[0m" ; read answer
                if [ $answer = y ] ; then
                    echo -e "\033[1mInsalling Compiz Fusion 's dependencies...\033[0m"
                    sudo apt-get install autotools-dev binutils build-essential capplets-data cpp cpp-4.0 debconf-utils debhelper desktop-file-utils dpkg-dev g++ g++-4.0 gcc gcc-4.0 gconf2 gconf2-common gnome-control-center gnome-desktop-data gnome-icon-theme gnome-keyring gnome-menus gnome-mime-data html2text libart-2.0-dev libatk1.0-0 libatk1.0-dev libaudio-dev libaudiofile-dev libavahi-client-dev libavahi-common-dev libavahi-glib-dev libavahi-glib1 libbonobo2-0 libbonobo2-common libbonobo2-dev libbonoboui2-0 libbonoboui2-common libbonoboui2-dev libc6-dev libcairo2-dev libcamel1.2-8 libcroco3 libdbus-1-dev libebook1.2-5 libedataserver1.2-7 libegroupwise1.2-9 libesd0-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgconf2-4 libgconf2-dev libgcrypt11-dev libgl1-mesa-dev libglade2-0 libglade2-dev libglib2.0-dev libglu1-mesa-dev libgnome-desktop-2 libgnome-desktop-dev libgnome-keyring-dev libgnome-keyring0 libgnome-menu2 libgnome2-0 libgnome2-common libgnome2-dev libgnomecanvas2-0 libgnomecanvas2-common libgnomecanvas2-dev libgnomeui-0 libgnomeui-common libgnomeui-dev libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-dev libgnutls-dev libgpg-error-dev libgsf-1-113 libgsf-1-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtk2.0-dev libice-dev libidl-dev libjpeg62-dev liblcms1-dev libmetacity0 libmng-dev libnautilus-extension1 libopencdk8-dev liborbit2-dev libpango1.0-0 libpango1.0-common libpango1.0-dev libpng12-dev libpopt-dev libqt4-core libqt4-dev libqt4-gui libqt4-qt3support libqt4-sql librsvg2-2 librsvg2-common libsm-dev libsoup2.2-8 libstartup-notification0-dev libstdc++6-4.0-dev libtasn1-2-dev libwnck-common libwnck-dev libwnck18 libx11-dev libxau-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxklavier10 libxml2-dev libxmu-dev libxmu-headers libxrandr-dev libxrender-dev libxres-dev libxres1 libxt-dev linux-kernel-headers make mesa-common-dev pkg-config python-gmenu shared-mime-info x-dev x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-resource-dev x11proto-xext-dev x11proto-xinerama-dev zlib1g-dev libavahi-client3 libavahi-common3 libc6 libc6-i686 libdbus-1-2 libfreetype6 libglib2.0-0 libgnutls12 libpng12-0 libpq4 libx11-6
                elif [ $answer = n ] ; then
                    echo -e "\033[1mInsalling Compiz Fusion 's dependencies...\033[0m"
                    sudo apt-get build-dep compiz
                else
                    echo -e "\033[1mInvalid answer\033[0m"
                    exit
                fi
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
            echo
            echo -e "\033[1mDo you want to uninstall any previous versions of Emerald, Compiz, Compiz Fusion and Beryl (Furthermore, Desktop Effects will be removed)? Doing so is highly reccomended, as they may interfere and cause problems(y/n):\033[0m" ;  read answer
            if [ $answer = y ] ; then
                sudo apt-get remove emerald
                sudo apt-get remove emerald-*
                sudo apt-get remove emerald*
                sudo apt-get remove compiz
                sudo apt-get remove compiz-*
                sudo apt-get remove compiz*
                sudo apt-get remove beryl
                sudo apt-get remove beryl-*
                sudo apt-get remove beryl*
                sudo apt-get remove desktop-effects
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            mkdir $downdir
           
            echo
            echo -e "\033[1mWould you like to install Compiz Fusion?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                echo -e "\033[1mWould you like to install latest Compiz Fusion revision from git or install version 0.5.2? You may want to install version 0.5.2 as if you choose to install it from git,libX11 will be compiled with xcb support as it is required by latest Compiz Fusion revisions. This is considered not a wise choise as it may cause problems on your system like braking java (didn't happened at any of my tests). Also, in case you cannot manage to get installing from git working, you might wanna try installing the stable version (0.5.2) (git/stable):\033[0m" ; read answer
                if [ $answer = git ] ; then
                    echo -e "\033[1mCompiling libX11 compiled with xcb support...\033[0m"
                    wget http://ftp.debian.org/debian/pool/main/libx/libx11/libx11_1.1.3.orig.tar.gz
                    wget http://ftp.debian.org/debian/pool/main/libx/libx11/libx11_1.1.3-1.diff.gz
                    sudo apt-get build-dep libx11-6
                    tar xvf libx11_1.1.3.orig.tar.gz
                    cd libX11-1.1.3
                    gunzip -c ../libx11_1.1.3-1.diff.gz | patch -p1
                    chmod +x debian/rules
                    sudo debian/rules binary
                    cd ..
                    sudo dpkg -i libx11*deb
                    sudo rm libx11*deb
                    rm libx11_1.1.3.orig.tar.gz
                    rm libx11_1.1.3-1.diff.gz
                    sudo rm -rf libX11-1.1.3
                    cd $downdir
                    echo -e "\033[1mDownloading Compiz Fusion...\033[0m"
                    git clone git://git.freedesktop.org/git/xorg/app/compiz
                    cd $downdir/compiz
                    echo -e "\033[1mInstalling Compiz Fusion...\033[0m"
                    ./autogen.sh --disable-$opdeskenv && make && sudo make install
                elif [ $answer = stable ] ; then
                    cd $downdir
                    echo -e "\033[1mDownloading Compiz Fusion...\033[0m"
                    wget http://xorg.freedesktop.org/archive/individual/app/compiz-0.5.2.tar.gz
                    tar xf compiz-0.5.2.tar.gz
                    cd $downdir/compiz-0.5.2
                    echo -e "\033[1mInstalling Compiz Fusion...\033[0m"
                    ./configure --disable-$opdeskenv && make && sudo make install
                else
                    echo -e "\033[1mInvalid answer\033[0m"
                    exit
                fi
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mWould you like to install Compiz Fusion Option Code Generator?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                cd $downdir
                echo -e "\033[1mDownloading Compiz Fusion Option Code Generator...\033[0m"
                git clone git://anongit.opencompositing.org/fusion/libraries/bcop
                cd $downdir/bcop
                echo -e "\033[1mInstalling Compiz Fusion Option Code Generator...\033[0m"
                ./autogen.sh && make && sudo make install
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mWould you like to install the Settings Library for Plugins?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                cd $downdir
                echo -e "\033[1mDownloading the Settings Library for Plugins...\033[0m"
                git clone git://anongit.opencompositing.org/fusion/compizconfig/libcompizconfig
                cd $downdir/libcompizconfig
                echo -e "\033[1mInstalling the Settings Library for Plugins...\033[0m"
                ./autogen.sh && make && sudo make install
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mWould you like to install CompizConfig-Python?(y/n):\033[0m" ;read answer
            if [ $answer = y ] ; then
                cd $downdir
                echo -e "\033[1mDownloading CompizConfig-Python...\033[0m"
                git clone git://anongit.opencompositing.org/fusion/compizconfig/compizconfig-python
                cd $downdir/compizconfig-python
                echo -e "\033[1mInstalling CompizConfig-Python...\033[0m"
                ./autogen.sh && make && sudo make install
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mWould you like to install CompizConfig Settings Manager?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                cd $downdir
                echo -e "\033[1mDownloading CompizConfig Settings Manager...\033[0m"
                git clone git://anongit.opencompositing.org/fusion/compizconfig/ccsm
                cd $downdir/ccsm
                echo -e "\033[1mInstalling CompizConfig Settings Manager...\033[0m"
                sudo python setup.py install
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mWould you like to install all the currently available plugins for Compiz Fusion or choose which to install according to where they are classified?(all/choose):\033[0m" ; read answer
            if [ $answer = all ] ; then
                echo -e "\033[1mDownloading and Installing all available Compiz Fusion Plugins...\033[0m"
                for i in $gitpluginsall ; do
                    mkdir $downdir/plugins
                    cd $downdir/plugins
                    git clone git://anongit.opencompositing.org/fusion/plugins/$i
                    cd $downdir/plugins/$i
                    sudo make install
                done
            elif [ $answer = choose ] ; then
                echo
                echo -e "\033[1mWould you like to install Compiz Fusion Plugins - Main?(y/n):\033[0m" ; read answer
                if [ $answer = y ] ; then
                    cd $downdir
                    echo -e "\033[1mDownloading Compiz Fusion Plugins - Main...\033[0m"
                    git clone git://anongit.opencompositing.org/fusion/plugins-main
                    cd $downdir/plugins-main
                    echo -e "\033[1mInstalling Compiz Fusion Plugins - Main...\033[0m"
                    ./autogen.sh && make && sudo make install
                elif [ $answer = n ] ; then
                    echo -e "\033[1mSkipping...\033[0m"
                else
                    echo -e "\033[1mInvalid answer\033[0m"
                    exit
                fi
               
                echo
                echo -e "\033[1mWould you like to install Compiz Fusion Plugins - Extra?(y/n):\033[0m" ; read answer
                if [ $answer = y ] ; then
                    cd $downdir
                    echo -e "\033[1mDownloading Compiz Fusion Plugins - Extra...\033[0m"
                    git clone git://anongit.opencompositing.org/fusion/plugins-extra
                    cd $downdir/plugins-extra
                    echo -e "\033[1mInstalling Compiz Fusion Plugins - Extra...\033[0m"
                    ./autogen.sh && make && sudo make install
                elif [ $answer = n ] ; then
                    echo -e "\033[1mSkipping...\033[0m"
                else
                    echo -e "\033[1mInvalid answer\033[0m"
                    exit
                fi
               
                echo
                echo -e "\033[1mWould you like to install Compiz Fusion Plugins - Unsupported?(y/n):\033[0m" ; read answer
                if [ $answer = y ] ; then
                    cd $downdir
                    echo -e "\033[1mDownloading Compiz Fusion Plugins - Unsupported...\033[0m"
                    git clone git://anongit.opencompositing.org/fusion/plugins-unsupported
                    cd $downdir/plugins-unsupported
                    echo -e "\033[1mInstalling Compiz Fusion Plugins - Unsupported...\033[0m"
                    ./autogen.sh && make && sudo make install
                elif [ $answer = n ] ; then
                    echo -e "\033[1mSkipping...\033[0m"
                else
                    echo -e "\033[1mInvalid answer\033[0m"
                    exit
                fi
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mWould you like to install Emerald?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                cd $downdir
                echo -e "\033[1mDownloading Emerald...\033[0m"
                git clone git://anongit.opencompositing.org/fusion/decorators/emerald
                cd $downdir/emerald
                echo -e "\033[1mInstalling Emerald...\033[0m"
                ./autogen.sh && make && sudo make install
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mWould you like to install a Package of Themes for Emerald?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                cd $downdir
                echo -e "\033[1mDownloading a Package of Themes for Emerald...\033[0m"
                git clone git://anongit.opencompositing.org/fusion/decorators/emerald-themes
                cd $downdir/emerald-themes
                echo -e "\033[1mInstalling a Package of Themes for Emerald...\033[0m"
                ./autogen.sh && make && sudo make install
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mWould you like to install Compiz Fusion Icon?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                cd $downdir
                echo -e "\033[1mDownloading Compiz Fusion Icon...\033[0m"
                git clone git://anongit.opencompositing.org/users/crdlb/fusion-icon
                cd $downdir/fusion-icon
                echo -e "\033[1mInstalling Compiz Fusion Icon...\033[0m"
                make
                sudo make install
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
   
            echo
            echo -e "\033[1mDo you have a NVidia graphics card?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                sudo nvidia-xconfig --add-argb-glx-visuals -d 24
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo
            echo -e "\033[1mInstallation Completed\033[0m"
            echo
            echo -e "\033[1mWarning: Do not delete the files that this script downloaded to your home folder. If you do so, update will not be possible.\033[0m"
            echo
            echo -e "\033[1mTip: In order to launch Compiz Fusion and everything else needed, launch Compiz Fusion Icon, if you installed it (it is located at Applications-->System Tools).\033[0m"
            echo
            echo -e "\033[1mTip: In order to launch Compiz Fusion during startup go to System-->Preferences-->Sessios and at the startup tab click new. At the name field add whatever you want (ex. Compiz Fusion Icon) and at the command field add fusion-icon (if you installed Compiz Fusion Icon)\033[0m"
        }
    elif [ $answer = u ] ; then
        {
            echo
            echo -e "\033[1mUninstalling Compiz Fusion Option Code Generator...\033[0m"
            cd $downdir/bcop
            sudo make uninstall
           
            echo -e "\033[1mUninstalling CompizConfig Settings Manager...\033[0m"
            cd $downdir/ccsm
            sudo python setup.py uninstall
           
            echo -e "\033[1mHave you instaled Compiz Fusion version 0.5.2 or the latest one from git?(git/stable):\033[0m" ; read answer
            if [ $answer = git ] ; then
                echo -e "\033[1mUninstalling Compiz Fusion...\033[0m"
                cd $downdir/compiz-0.5.2
                sudo make uninstall
            elif [ $answer = stable ] ; then
                echo -e "\033[1mUninstalling Compiz Fusion...\033[0m"
                cd $downdir/compiz
                sudo make uninstall
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo -e "\033[1mUninstalling CompizConfig-Python...\033[0m"
            cd $downdir/compizconfig-python
            sudo make uninstall
           
            echo -e "\033[1mUninstalling Emerald...\033[0m"
            cd $downdir/emerald
            sudo make uninstall
           
            echo -e "\033[1mUninstalling the Package of Themes for Emerald...\033[0m"
            cd $downdir/emerald-themes
            sudo make uninstall
           
            echo -e "\033[1mUninstalling Compiz Fusion Icon...\033[0m"
            cd $downdir/fusion-icon
            sudo make uninstall
           
            echo -e "\033[1mUninstalling the Settings Library for Plugins...\033[0m"
            cd $downdir/libcompizconfig
            sudo make uninstall
           
            echo -e "\033[1mHave you installed all the available plugins for Compiz Fusion or you have chosen which according to where they are classified?(all/choose):\033[0m" ; read answer
            if [ $answer = all ] ; then
                echo -e "\033[1mUninstalling all Compiz Fusion Plugins...\033[0m"
                for i in $gitpluginsall ; do
                    cd $downdir/plugins/$i
                    sudo make uninstall
                done
            elif [ $answer = choose ] ; then
                echo -e "\033[1mUninstalling Compiz Fusion Plugins - Extra...\033[0m"
                cd $downdir/plugins-extra
                sudo make uninstall
               
                echo -e "\033[1mUninstalling Compiz Fusion Plugins - Main...\033[0m"
                cd $downdir/plugins-main
                sudo make uninstall
               
                echo -e "\033[1mUninstalling Compiz Fusion Plugins - Unsupported...\033[0m"
                cd $downdir/plugins-unsupported
                sudo make uninstall
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
           
            echo -e "\033[1mWould you like to delete everything that this script has downloaded?(y/n):\033[0m" ; read answer
            if [ $answer = y ] ; then
                sudo rm -rf $downdir
            elif [ $answer = n ] ; then
                echo -e "\033[1mSkipping...\033[0m"
            else
                echo -e "\033[1mInvalid answer\033[0m"
                exit
            fi
        }
    else
        {
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        }
    fi
elif [ $answer = u ] ; then
    {
        cd $downdir/compiz
        git-pull
        echo -e "\033[1mWould you like to update Compiz Fusion (ignore it if you didn't installed it from git) ?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            ./autogen.sh --disable-$opdeskenv && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/bcop
        git-pull
        echo -e "\033[1mWould you like to update Compiz Fusion Option Code Generator?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            ./autogen.sh && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/ccsm
        git-pull
        echo -e "\033[1mWould you like to update CompizConfig Settings Manager?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            sudo python setup.py install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/compizconfig-python
        git-pull
        echo -e "\033[1mWould you like to update CompizConfig-Python?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            ./autogen.sh && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/emerald
        git-pull
        echo -e "\033[1mWould you like to update Emerald?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            ./autogen.sh && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/emerald-themes
        git-pull
        echo -e "\033[1mWould you like to update the Package of Themes for Emerald?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            ./autogen.sh && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/libcompizconfig
        git-pull
        echo -e "\033[1mWould you like to update the Settings Library for Plugins?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            ./autogen.sh && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/plugins-main
        git-pull
        echo -e "\033[1mWould you like to update Compiz Fusion Plugins - Main?(y/n):\033[0m" ;read answer
        if [ $answer = y ] ; then
            ./autogen.sh && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/plugins-extra
        git-pull
        echo -e "\033[1mWould you like to update Compiz Fusion Plugins - Extra?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            ./autogen.sh && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/plugins-unsupported
        git-pull
        echo -e "\033[1mWould you like to update Compiz Fusion Plugins - Unsupported?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            ./autogen.sh && make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
       
        cd $downdir/fusion-icon
        git-pull
        echo -e "\033[1mWould you like to update Compiz Fusion Icon?(y/n):\033[0m" ; read answer
        if [ $answer = y ] ; then
            make && sudo make install
        elif [ $answer = n ] ; then
            echo -e "\033[1mSkipping...\033[0m"
        else
            echo -e "\033[1mInvalid answer\033[0m"
            exit
        fi
    }
else
    {   
        echo -e "\033[1mInvalid answer\033[0m"
        exit
    }
fi
echo
echo -e "\033[1mLicensed under a Creative Commons Attribution-Noncommercial 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/\033[0m"
echo -e "\033[1mCreated by ElemonGW. For more visit http://elemongw.awardspace.com/\033[0m"

Hors ligne

#2 Le 29/08/2007, à 22:53

pluviotor

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

c'est carrement bien ce script! cool
content!!
J'ai juste cette erreur maintenant quand je lance le manager:
Au moins j'ai les bordures de mes fenêtres smile

Traceback (most recent call last):
  File "/usr/local/bin/ccsm", line 43, in <module>
    mainWin = ccm.MainWin(context)
  File "/usr/local/lib/python2.5/site-packages/ccm/Window.py", line 88, in __init__
    self.ResetMainWidgets()
  File "/usr/local/lib/python2.5/site-packages/ccm/Window.py", line 193, in ResetMainWidgets
    self.BuildTable(pluginsVPort)
  File "/usr/local/lib/python2.5/site-packages/ccm/Window.py", line 255, in BuildTable
    pluginEnable.set_sensitive(self.Context.AutoSort)
AttributeError: 'compizconfig.Context' object has no attribute 'AutoSort'

Edit j'ai commenté la ligne en question maintenant j'ai:

 File "/usr/local/bin/ccsm", line 44, in <module>
    idle = ccm.IdleSettingsParser(context)
  File "/usr/local/lib/python2.5/site-packages/ccm/Utils.py", line 155, in __init__
    self.Context.Plugins.items ())
  File "/usr/local/lib/python2.5/site-packages/ccm/Utils.py", line 154, in <lambda>
    self.PluginList = filter (lambda p: FilterPlugin (p[1]),
  File "/usr/local/lib/python2.5/site-packages/ccm/Utils.py", line 151, in FilterPlugin
    return not p.Initialized and p.Enabled

j'ai viré le

not p.Initialized and

ca réagis bizarrement lol uniquement pour le manager

Dernière modification par pluviotor (Le 29/08/2007, à 23:01)

Hors ligne

#3 Le 30/08/2007, à 21:20

Melierax

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

Salut,
Tout d'abord merci de penser aux débutants qui se galèrent, c'est cool de trouver des scripts de ce genre.
Malheuresement qd je tente de lancer CF (en faisant ccsm ou ccsm &) j'ai ça:
Info: No sexy-python package found, don't worry it's optional.
Traceback (most recent call last):
  File "/usr/local/bin/ccsm", line 37, in <module>
    import compizconfig
ImportError: No module named compizconfig

Du coup j'ai cru que c'était le plantage dont tu parlais alors j'ai télécharger le compiz qu'il y a sur le lien. Dans l'install, ils disent de lancer $ autogen.sh. Ca c'est ok big_smile
Mais après ils disent:After that, standard build procedures apply:

    $ make
    # make install
Et là je suis paumé sad

Un ptit chouilla d'aide suplémentaire serait bien venue...
Merci d'avance

Hors ligne

#4 Le 31/08/2007, à 14:00

holodad

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

Melierax a écrit :

Salut,
Tout d'abord merci de penser aux débutants qui se galèrent, c'est cool de trouver des scripts de ce genre.
Malheuresement qd je tente de lancer CF (en faisant ccsm ou ccsm &) j'ai ça:
Info: No sexy-python package found, don't worry it's optional.
Traceback (most recent call last):
  File "/usr/local/bin/ccsm", line 37, in <module>
    import compizconfig
ImportError: No module named compizconfig

Du coup j'ai cru que c'était le plantage dont tu parlais alors j'ai télécharger le compiz qu'il y a sur le lien. Dans l'install, ils disent de lancer $ autogen.sh. Ca c'est ok big_smile
Mais après ils disent:After that, standard build procedures apply:

    $ make
    # make install
Et là je suis paumé sad

Un ptit chouilla d'aide suplémentaire serait bien venue...
Merci d'avance

Lances la commande:
./autogen --disable-kde && make && sudo make install
Si cela marche pas, vérfier bien que vous avez installé les packages: bcop, libcompizconfig, compizconfig-python avant de tenter l'installation du pkg compiz.
Pour finir, si cela ne marche toujours pas, vérifier bien que le build-dep(qui comprends tout le necessaire a la compilation de compiz) est bien installé. Faites un sudo apt-get build-dep compiz ou alors, sudo apt-get install  sudo apt-get install autoconf automake1.7 autotools-dev build-e
ssential debhelper dpkg-dev g++ g++-4.1 html2text intltool libart-2.0-dev libatk1.0-dev libaudiofile-de
v libavahi-client-dev libavahi-common-dev libavahi-glib-dev libbonobo2-dev libbonoboui2-dev libc6-dev l
ibcairo2-dev libdbus-1-dev libdbus-glib-1-dev libesd0-dev libexpat1-dev libfontconfig1-dev libfreetype6
-dev libgconf2-dev libgcrypt11-dev libgl1-mesa-dev libglade2-dev libglib2.0-dev libgnome-desktop-dev li
bgnome-keyring-dev libgnome-window-settings-dev libgnome2-dev libgnomecanvas2-dev libgnomeui-dev libgno
mevfs2-dev libgnutls-dev libgpg-error-dev libgtk2.0-dev libice-dev libidl-dev libjpeg62-dev liblzo-dev
libopencdk8-dev liborbit2-dev libpango1.0-dev libpng12-dev libpopt-dev libselinux1-dev libsepol1-dev li
bsm-dev libstartup-notification0-dev libstdc++6-4.1-dev libtasn1-3-dev libwnck-dev libx11-dev libxau-de
v libxcomposite-dev libxcomposite1 libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
libxft-dev libxi-dev libxinerama-dev libxml2-dev libxrandr-dev libxrender-dev libxres-dev libxt-dev li
nux-libc-dev m4 mesa-common-dev x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-f
ixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11p
roto-resource-dev x11proto-xext-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev

@pluviotor. As tu bien installé l'icone compiz fusion qui permet de lancer compiz??? Tu vois l'icone bleu compiz?
Relances le script et choisis l'installation de l'icone et lances l'icone via cette commande: fusion-icon

A+

Hors ligne

#5 Le 31/08/2007, à 18:42

Melierax

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

OK,
Maintenant j'ai l'icone de CF et le CF config manager mais que je lance l'un ou l'autre rien....
Alors la question est: une fois que j'ai fait l'autogen, que doit-je faire avec les "$ make"
et " # make install"?.?? J'ai tapé ça dans le terminal et il me dit commande introuvable.
T'in j'adore ubuntu mais après windobe, l'adaptation est dure...

Hors ligne

#6 Le 01/09/2007, à 05:03

holodad

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

Melierax a écrit :

OK,
Maintenant j'ai l'icone de CF et le CF config manager mais que je lance l'un ou l'autre rien....
Alors la question est: une fois que j'ai fait l'autogen, que doit-je faire avec les "$ make"
et " # make install"?.?? J'ai tapé ça dans le terminal et il me dit commande introuvable.
T'in j'adore ubuntu mais après windobe, l'adaptation est dure...

Je te l'ai deja dit. Tu te met dans le répertoire que tu veux installer et tu lances:
./autogen.sh --disable-kde && make && sudo make install
Ex: Tu te met dans le répértoire compiz et tu lances la commande

Hors ligne

#7 Le 05/09/2007, à 07:49

pluviotor

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

Oui j'avais fais tout ça, en effet j'ai toujours l'erreur sous une forme différente...
J'ai le cube pourtant.
Une question as tu accès au plugin gears 3D dans le ccsm?
car au tout début que j'executais j'avais ccsm mais sans tout celà.
j'ai donc fait des updates avec le script "from git"....

Mais lors de l'execution de ce script même si ça s'execute à la fin, j'ai des soucis ça me met

No package 'compiz' found

Donc je fais ce que tu nous préconise:

./autogen.sh --disable-kde && make && sudo make install

et là:

No package 'x11-xcb' found

j'ai refait la manip plusieurs fois, tu n'a rien fait holodad pour avoir ce package au préalable?

Dernière modification par pluviotor (Le 05/09/2007, à 07:52)

Hors ligne

#8 Le 05/09/2007, à 23:59

pluviotor

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

j'ai relancé le script après une uninstall en fait au tout début il recherche sur http://ftp.debian.org/debian/pool/main/ une libX11 avec support xcb et à priori ... introuvable

Edit1 : En fait la dernière version de ce script  est là :
http://elemongw.awardspace.com/?q=down_cf_i-u

En cours d'install pour le X11 avec xcb ca à l'air d'être mieux je vous tiens au jus....

Edit2: pas mieux en fait...

Dernière modification par pluviotor (Le 06/09/2007, à 00:08)

Hors ligne

#9 Le 09/09/2007, à 14:26

pluviotor

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

pour le xcb il faut :
sudo apt-get install libxcb-xlib0 libxcb-xlib0-dev

git-clone git://anongit.freedesktop.org/git/xorg/lib/libX11
cd libX11
./autogen.sh --with-xcb
make
sudo make install

Dernière modification par pluviotor (Le 09/09/2007, à 14:47)

Hors ligne

#10 Le 09/09/2007, à 15:49

Zenigata

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

update : En fait j'ai plus de message d'erreur, juste plus de bordures et pas d'effets et l'impression qu'Xgl ne marche pas

Salut,

Depuis que j'ai essayé ce script, je n'arrive plus à avoir Xgl qui marche correctement.

Normalement depuis la dernière mise à jour de Xgl il doit se lancer sur une session gnome normale, mais depuis que j'ai éssay ce script pour mettre C-F git, la session plante au tout début (avec un message disant qu'elle a duré moins de 10 secondes et des trucs qui me disent "le processus n° tant à essayé de faire setgid ou je sais plus quoi ce qui n'est pas supporté par GTK+. Utilisez une application helper"

(Désolé pour la pauvre retranscription du message)

bon ensuite que j'essaye la git avec le script, ou avec l'archive, j'ai toujours un message d'erreur au démarrage de compiz, ccsm ou fusion-icon, qui basiquement ressemble à ceci :

Traceback (most recent call last):
  File "/usr/local/bin/ccsm", line 37, in <module>
    import compizconfig
ImportError: libcompizconfig.so.0: cannot open shared object file: No such file or directory

avec des petites variantes suivant ce que j'essaye de lancer (compiz, ccsm ou fusion-icon)

J'ai essayé de revenir en arrière (i.e. dire au script de tout virer et revenir à mon Xgl et compiz-fusion de gutsy, mais même en purgeant tout et remettant tout, la session plante au démarrage (sauf à relancer une session Xgl (mais normalement elle est censé être "likely not working" depuis la mise à jour de Xgl), mais là j'arrive à rien (pas de décorateur, même après du compiz --replace  ou emerald --replace) et voila.

Bon donc si quelqu'un a une idée d'où cela pourrait venir, je suis prneuer.

Merci

--
Zenig

Dernière modification par Zenigata (Le 09/09/2007, à 16:16)

Hors ligne

#11 Le 10/09/2007, à 09:38

pluviotor

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

Pub: j'ai fait mon script ici pour installer fusion smile:
http://forum.ubuntu-fr.org/viewtopic.php?id=146533

Hors ligne

#12 Le 20/10/2007, à 16:40

Neuro

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

pluviotor a écrit :

Pub: j'ai fait mon script ici pour installer fusion smile:
http://forum.ubuntu-fr.org/viewtopic.php?id=146533

Comment ça marche ? j' ai télécharger l' archive, décompressé dans un nouveau dossier sur le bureau. Et aprés ??? Comment on le met en route ???

riquet@localhost:~/Desktop/66019-scm-pluviotor-0.3$ sudo java -cp scm-pluviotor-0.3.jar ScmManagerByPluviotor
Exception in thread "main" java.lang.UnsupportedClassVersionError: ScmManagerByPluviotor (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
riquet@localhost:~/Desktop/66019-scm-pluviotor-0.3$

Dernière modification par Neuro (Le 20/10/2007, à 16:45)


Pour demander a devenir membre actif du Parti Pirate, rendez-vous sur la page d'adhésions et suivez les instructions.

Hors ligne

#13 Le 20/10/2007, à 17:13

Neuro

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

Il faut mettre quel réponse à ce stade ? :

Would you like to install Compiz Fusion?(y/n):
y
Would you like to install latest Compiz Fusion revision from git or install version 0.5.2? You may want to install version 0.5.2 as if you choose to install it from git,libX11 will be compiled with xcb support as it is required by latest Compiz Fusion revisions. This is considered not a wise choise as it may cause problems on your system like braking java (didn't happened at any of my tests). Also, in case you cannot manage to get installing from git working, you might wanna try installing the stable version (0.5.2) (git/stable):

Dernière modification par Neuro (Le 20/10/2007, à 17:14)


Pour demander a devenir membre actif du Parti Pirate, rendez-vous sur la page d'adhésions et suivez les instructions.

Hors ligne

#14 Le 21/10/2007, à 12:32

pluviotor

Re : Script Install Compiz-Fusion "Git" ou "Stable" avec support XCB OK!!

Salut Neuro,
pour ton 1er post ce serai mieux d'en parler sur le topic qui en parle (en précisant le résultat d'un

java -version

.

Pour le deuxième (qui concerne ce topic), c'est à toi de voir si tu veux la toute dernière version ou une version qui date de deux mois en stable.

Dernière modification par pluviotor (Le 21/10/2007, à 12:38)

Hors ligne