PDA

View Full Version : how to install compiz on Kali 1.0.4 No sid repo!



Devil_D
2013-09-05, 16:42
Hello to all! I noticed with regret that in Kali1.0.4 and 1.0.5 it is impossible to install compiz, and sid repo no longer work.
To solve this problem created my personal solution, sprero helpful to those who love me as graphical effects compiz :)(warning only works with the operating system installed is not tested on persistent usb or virtual machines tested on kali 1.0.4 32bit kali 1.0.5 32bit )
we start
1. Install gdebi

apt-get install gdebi
2. Download the necessary packages:
. python-compizconfig_0.8.4-2_i386.deb

wget http://ftp.us.debian.org/debian/pool/main/c/compizconfig-python/python-compizconfig_0.8.4-2_i386.deb
. compiz-gtk_0.8.4-4_i386.deb

wget http://ftp.us.debian.org/debian/pool/main/c/compiz/compiz-gtk_0.8.4-4_i386.deb
. libgnome-desktop-2-17_2.30.2-2_i386.deb

wget mirror.pnl.gov/ubuntu//pool/main/g/gnome-desktop/libgnome-desktop-2-17_2.30.2-0ubuntu1_i386.deb
. libgnome-window-settings1_2.30.0-0ubuntu4_i386.deb

wget mirror.pnl.gov/ubuntu//pool/main/g/gnome-control-center/libgnome-window-settings1_2.30.0-0ubuntu4_i386.deb
3. Create the following directories:

mkdir /root/rep/

mkdir /root/rep/compiz-gtk_0.8.4-4_i386/
4. Extract the package compiz-gtk_0.8.4-4_i386 into the created directory

dpkg-deb -x compiz-gtk_0.8.4-4_i386.deb /root/rep/compiz-gtk_0.8.4-4_i386/

dpkg-deb -e compiz-gtk_0.8.4-4_i386.deb /root/rep/compiz-gtk_0.8.4-4_i386/DEBIAN/
. Edit the control file

leafpad /root/rep/compiz-gtk_0.8.4-4_i386/DEBIAN/control
. Find in text libmetacity-private0 (>= 1:2.26.0) delete and replace with libmetacity-private0a
. Save and exit
. Edit pack

dpkg-deb -b /root/rep/compiz-gtk_0.8.4-4_i386 /root/rep/compiz-gtk_0.8.4-4_i386.deb
5. Created directory

mkdir /root/rep/python-compizconfig_0.8.4-2_i386/
6. Extract the package python-compizconfig_0.8.4-2_i386 into the created directory

dpkg-deb -x python-compizconfig_0.8.4-2_i386.deb /root/rep/python-compizconfig_0.8.4-2_i386/

dpkg-deb -e python-compizconfig_0.8.4-2_i386.deb /root/rep/python-compizconfig_0.8.4-2_i386//DEBIAN/
. Edit the control file

leafpad /root/rep/python-compizconfig_0.8.4-2_i386//DEBIAN/control
. Find in text python (<< 2.7) delete and replace with python (<< 3.0)
. Save and exit
. Modify python-compizconfig.public

leafpad /root/rep/python-compizconfig_0.8.4-2_i386/usr/share/python-support/python-compizconfig.public
. Delete all copy and paste this text

pyversions=2.5,2.6,2.7

/usr/lib/pyshared/python2.5/compizconfig.so
/usr/lib/pyshared/python2.6/compizconfig.so
/usr/lib/pyshared/python2.7/compizconfig.so
. Create directory python2.7 in /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared

mkdir /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared/python2.7
. Copy compizconfig.so python2.6 in /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared/python2.7

cp /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared/python2.6/compizconfig.so /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared/python2.7
. Edit pack

dpkg-deb -b /root/rep/python-compizconfig_0.8.4-2_i386 /root/rep/python-compizconfig_0.8.4-2_i386.deb

7. Install the dependencies that are needed

gdebi /root/libgnome-desktop-2-17_2.30.2-0ubuntu1_i386.deb

gdebi /root/libgnome-window-settings1_2.30.0-0ubuntu4_i386.deb
8. Edit your sources.list adding deb http://ftp.us.debian.org/debian squeeze main

leafpad /etc/apt/sources.list
.My sources.list

#
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://ftp.us.debian.org/debian squeeze main
. Save and exit
9. Update system

apt-get update
10. Install compiz

apt-get install libdecoration0 libdecoration0-dev compiz-core libcompizconfig0 libcompizconfig-dev compizconfig-backend-gconf compiz-fusion-bcop compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-fusion-plugins-unsupported
compiz-plugins
11. Install compiz-gtk_0.8.4-4_i386 previously edited

gdebi /root/rep/compiz-gtk_0.8.4-4_i386.deb
12. Install python-compizconfig_0.8.4-2_i386.deb

gdebi /root/rep/python-compizconfig_0.8.4-2_i386.deb
13. Install other dependencies

apt-get install compiz-gnome compizconfig-settings-manager compiz-dev compiz
14. Reboot

reboot
15. After restarting
. Go on application>system tools>preferences>compiz setting
. Edit your preferences
. Run command

compiz --replace
. My results
133
134
135
16. Edit your sources.list remove deb http://ftp.it.debian.org/debian squeeze main

leafpad /etc/apt/sources.list
tutorial (next i update video quality)

https://vimeo.com/74484738
Save and exit
enjoy Free is nice :)
P.S
Warning to those who copy and paste post on the various sites remember to mention the sources
Free is nice :)
P.P.S
Excuse me for my English really to eat spagetti;) if there are errors is the fault of goole translate or is mine? I do not know English well

17. optional to be performed only if the launcher does not work
. in case of failure of the launcher reinstall python-compizconfig_0.8.4-2_i386.deb

gdebi /root/rep/python-compizconfig_0.8.4-2_i386.deb
. if the problem is not resolved install kernel headers

apt-get install -y linux-headers-$(uname -r)
and reinstall python-compizconfig_0.8.4-2_i386.deb

gdebi /root/rep/python-compizconfig_0.8.4-2_i386.deb

if it does not work unformatted simply uninstall the packages

Hitman
2013-09-12, 18:39
No working dear i have seen your this post on some other site as well

snarp
2013-09-12, 22:10
Agreed. Not working. Had to do complete reinstall on my test box. Steps 11 and steps 12 seem to fail.

Devil_D
2013-09-13, 14:01
No working dear i have seen your this post on some other site as well
so sorry guides operate the mistake I did reposytory wrong and I corrected immediately tested and works fine now and ok in the short posterior the video to ensure the safety of guide I apologize very much to err is human and driving up correctly
thanks for making me notice the error

Devil_D
2013-09-13, 20:23
The guide has been, properly tested and personally I added the video of the test (tested on clean install of Kali linux 1.0.5) now works perfectly again I apologize for the problems arising from my mistake

Hitman
2013-09-15, 16:30
Define the restore process for all steps taken till step 11 & 12 for those who reached there and stuck d in the middle so that they can do a clean installation of compiz again. I did not tested your new modifications yet after testing i will give you my feedback.

Hitman
2013-09-15, 20:44
Finally working buddy u did it well done for your hard work :-)

jubei
2013-09-15, 22:29
im sorry but jesus what a nightmare to install compiz 0.84 !!!, im running compiz 1:0.9.10+13.10.20130828.2-0ubuntu1 from saucy, easily possible by adding ubuntu repos. Just dont use compiz-gtk, compile emerald 9.5 and use that instead.
If using kali straight try compiz from quantal or raring, if like me you are running a kali/jessie box run the compiz from saucy, i know it works, am typing on it now :)
And dont be using synaptic or anything stupid like that, you need controll over your box on a per-package baisis, use aptitude and examin every package you install, eg when insalling compiz you only need 1 lib from ubuntu, and the compiz binaries, use aptitude to make sure you dont pull in half of ubuntu :) This is critical also if your upgrading to jessie and want to keep all your kali goodies unbroken

Devil_D
2013-09-16, 14:55
im sorry but jesus what a nightmare to install compiz 0.84 !!!, im running compiz 1:0.9.10+13.10.20130828.2-0ubuntu1 from saucy, easily possible by adding ubuntu repos. Just dont use compiz-gtk, compile emerald 9.5 and use that instead.
If using kali straight try compiz from quantal or raring, if like me you are running a kali/jessie box run the compiz from saucy, i know it works, am typing on it now :)
And dont be using synaptic or anything stupid like that, you need controll over your box on a per-package baisis, use aptitude and examin every package you install, eg when insalling compiz you only need 1 lib from ubuntu, and the compiz binaries, use aptitude to make sure you dont pull in half of ubuntu :) This is critical also if your upgrading to jessie and want to keep all your kali goodies unbroken

I tried to install compiz from ubuntu honestly I'm trying to change the installer of 9.10 but I miss some library will soon be ready to change. The question is how did you implement in the library libx11-6 l 'XCB? I'm trying to do it in an experimental but I'm afraid we can generate some break, then I have another small block the **** unity (which I love) and the dependence of gnome gnome control center with my basic goal is not the simplicity of installation more than anything else is not to create any failure of the system and the use of external libraries not possible :) email if you want your results i would be curious to know which packages and libraries you used could be useful also for other users interested in the topic

jubei
2013-09-16, 19:37
Well you need to start with a jessie base if trying to go for 9.10 , all the libs from jessie are up to date with those needed for compiz 9.10.
Ok to be a bit more specific,
1) add jessie repo, use aptitude to update your box to jessie, !!!! REMEMBER, FIRST tHING TO DO IS DISABLE AUTOMATIC INSTALLATION OF RECOMENDS, ITS IN THE TOP MENU......... DONOT UPDATE ANYTHING WITH kali IN THE PACKAGE NAME, also do not update any PERL or related packages, also avoid updating anything related to networking,databases, or anything yoursuspicious of........... DO update gnome ( complete, excluding gvfs+related , udisks and upower, also keep blutooth at 3.4 cos its broken in jessie ) the entire x11 stack, messa stack, all the dev stuff uncluding gcc etc, trust me youl mess up a few times till you get the hang of it :)
1a) Make sure you have a aceelerated graphics card and have the appropriate drivers loaded and working ( tested on a nvidia 470 )
2) add saucy to your sources.list and fetch the signing key ( get the entries from http://repogen.simplylinux.ch/ , add them to sources.list, apt-get update, then note the number of the key your missing, then apt-key adv --keyserver keyserver.ubuntu.com --recv-keys < your number > , apt-update again )
2a) alternativly you can download the debs from ubuntu and gdebi them in, but thats a MUCH inferior method, with aptitude you can check EVERY package you change before they go in, thats essential.
3) use apitude to install compiz-core etc NOT compiz ( the meta package ) or compiz-gnome or compiz-gconf-backend, you should only be pulling in the compiz binaries, you will not be pulling in any ubuntu libs ( well untill you have to build emerald )
4) now you have compiz installed ( and all the plugins, compiz-config, obviously ) you need a decorator, the ubuntu gtk decorator brings in half of ubuntu with it, so you need emerald which is a lot better anyway, you will need libdecoration0-dev from ubuntu, but apart from that follow this http://askubuntu.com/questions/287056/how-to-compile-install-emerald-window-manager-in-ubuntu-13-04-64bit it works flawlesly with 9.10
5) download some emerald themes http://gnome-look.org/?xcontentmode=103 and load em in with the theme manager
6) use compiz config to set up compiz ( while still in your gnome-fallback session ) set your window decorator path to /usr/bin/emerald, use sane defaults to start off with :)
7) test with compiz --replace, if something is fu##ed you have missed updating a lib, go though aptitude and check
8) Ok i am running xinit, and using the alternatives system to decide window manager, so use alterantives-configurator to create a new x-window-manager alternative, point it to /usr/bin/compiz, if your using a display manager create a new session file etc ( google )
9) enjoy bleeding edge compiz :)
10) no real bugs to speak of, i am using it for everyday stuff, all the plugins seem to work, but there is one small bug with emerald, the mix of libs when compiling is the prob, i want as few of the ubuntu libs as possible so ended up using libwnck from jessie, think should have used the ubunu one :), but since its only 1 bug on 1 type of window am not getting to it yet

If you want bleeding edge cinnamon, you can do a similar trick , and use the ubuntu daily build cinammon ppa https://launchpad.net/~gwendal-lebihan-dev/+archive/cinnamon-nightly,
use th followin script to add ppas


#!/bin/bash
if [ $# -eq 2 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
ppa_name=`echo "$2" | cut -d":" -f2 -s`
if [ -z "$ppa_name" ]
then
echo "PPA name not found"
echo "Utility to add PPA repositories in your debian machine"
echo "$0 ubunturelease ppa:user/ppa-name"
else
echo "$ppa_name"
echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu $1 main" >> /etc/apt/sources.list
apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
rm -rf /tmp/${NAME}_apt_add_key.txt
fi
else
echo "Utility to add PPA repositories in your debian machine"
echo "$0 ubunturelease ppa:user/ppa-name"
fi



also if you are going to be messing wth ubuntu packages you will need this script to modify deps ( ubuntu is increasingly renaming their package versions, i think to stop people like us )



#!/bin/bash

if [[ -z "$1" ]]; then
echo "Syntax: $0 debfile"
exit 1
fi

DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb

if [[ -e "$OUTPUT" ]]; then
echo "$OUTPUT exists."
rm -r "$TMPDIR"
exit 1
fi

dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN

if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
echo DEBIAN/control not found.

rm -r "$TMPDIR"
exit 1
fi

CONTROL="$TMPDIR"/DEBIAN/control

MOD=`stat -c "%y" "$CONTROL"`
nano "$CONTROL"

if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
echo Not modfied.
else
echo Building new deb...
dpkg -b "$TMPDIR" "$OUTPUT"
fi

rm -r "$TMPDIR"

Devil_D
2013-09-17, 11:56
I thank you very much for the guide more simplified and test it soon 'll let you know the results, however, hats off :) but you have tested on cuda driver ??

jubei
2013-09-17, 17:43
yes BUT cuda is broken on kali, both kali ( v4.something ) and jessie ( v5) versions place bin2c in /usr/bin which conflics with bin2c from winexe, i have hade to tempory uninstall winexe and pass-the-hash to fit the toolkit in, this is very annoying :) I had a look at the winexe source on the kali git, but to tell truth its a mess, the source isnt even gnu complient, (not even a makefile in sight ) it uses some wierd compile system. When i get to it will fix it with a alternatives symlink, but to be sure should really get the kali devs to rename bin2c in winexe, or even contact the upstream devs and get them to do it.

Mukhamatdin
2013-10-20, 09:51
after install compiz and rebooting the system I can not load my kali linux system menu. after selecting kali on the grub the message like this come out "Kali GNU/Linux 1.0 debina tty6". add asking the root and password. I have wrote root and password and after the following "root@debain# " what to write
only black screen no menu no terminal only black screen with command line root@debain# _____________
tried update upgrade donest work. please need help

Devil_D
2013-10-20, 12:51
after install compiz and rebooting the system I can not load my kali linux system menu. after selecting kali on the grub the message like this come out "Kali GNU/Linux 1.0 debina tty6". add asking the root and password. I have wrote root and password and after the following "root@debain# " what to write
only black screen no menu no terminal only black screen with command line root@debain# _____________
tried update upgrade donest work. please need help
which guide you followed the two in the post? I'll help you if you explain better


if you want to start the graphical write (there is terminal )

service gdm3 restart

Mukhamatdin
2013-10-21, 03:22
First of all thank you for your reply. Ok Sir, I will try explain fully, cause already how many days I can not find the solution. I have dual botting kali and windows7. Kali was working just perfect, install several tools and worked just fine, even installed MS Office, everything just fine, Recently I have installed compiz following the instruction and after reboot the system, big screen come out asked me to write the root and after asked to write the password and after that procedure still big terminal, I dont know what to write further, tried all startx, apt-get update, nothing doesnt work. some guys says that problem is with the video driver etc. no update no upgrade nothing works, please help me please,thanks in advance

Devil_D
2013-10-21, 11:02
First of all thank you for your reply. Ok Sir, I will try explain fully, cause already how many days I can not find the solution. I have dual botting kali and windows7. Kali was working just perfect, install several tools and worked just fine, even installed MS Office, everything just fine, Recently I have installed compiz following the instruction and after reboot the system, big screen come out asked me to write the root and after asked to write the password and after that procedure still big terminal, I dont know what to write further, tried all startx, apt-get update, nothing doesnt work. some guys says that problem is with the video driver etc. no update no upgrade nothing works, please help me please,thanks in advance
but your kali and gnome? or kde??And what version you use sorry ???(the guide I have tested only on gnome)
start kali enter user and password and try removing all installed packages


apt-get purge compiz*

and reboot system


reboot

I hope it is of help

if possible can you tell me the technical features of your computer video card processor etc. please?

Mukhamatdin
2013-10-21, 15:27
thanks for your reply but it does not work. It says that nothing to delete compiz did not installed. I am used Kali Gnome.I think I have to delete the system and again to install but any way try to find the solution I can send you the video, how you think

Mukhamatdin
2013-10-21, 15:28
the technical features of my lat top is installed video card, dual core

Devil_D
2013-10-22, 16:01
the technical features of my lat top is installed video card, dual core


I'm sorry but the commands in the terminal work?? when by some command runs it? I find it strange? I installed compiz on every version and it always worked, try booting in safe mode and the commands that you've posted and what videocard you have intel nvidia amd ,I think it's something that went wrong in the installation
I do not think it's the fault of compiz I think the problem is generated by something else
before installing compiz you have installed any program?

cyberly
2013-11-01, 09:23
Very worked for me bro, thank you very much.. :)

injector
2014-04-08, 23:49
nice tut and thanks for share bt not working for me and maybe its a tut for last year

Kagemaru
2014-05-23, 05:53
Finnally my problem is solved.

i add these
deb http://ftp.us.debian.org/debian/ sid main non-free contrib in my sources.list and everything is going well. it's work !
Thank you

Varyzx
2014-12-15, 11:17
Thanks, Working. :D

Mendax47
2017-03-25, 02:41
Is It Still Working With Kali 2016.2..?

Devil_D
2017-04-03, 08:20
Is It Still Working With Kali 2016.2..?

no is too old guide

Mendax47
2017-04-04, 00:35
no is too old guide

I Successfully Install The Compiz And The Emerald Theme Manager In Kali Linux 2017 W14 (Weekly Build) However When I Replace Compiz -- replace The Entire Desktop Gone Black Even The Wallpaper Doesn't Show The Menu Bar Doesn't Show... Do You Know Why (Enabled Window Decoration win Emerald Theme Manager)..? Any Solution..?