Topic: Compiz-Fusion Standalone on #!

Before I start with the guide, I wanted to let the mods know that I'm aware of the fact that there already are topics about this on the boards. Since those are old and follow a different way than I do, I thought I should make a new topic. If I'm wrong, feel free to merge it smile

DarthWound on the French Crunchbang forums has recently set up his Compiz standalone session and wrote a guide on how to do so. I used a Compiz standalone session on Arch too, and now that I'm back on #! I'm using it here too. Since I did it different than DarthWound, I wrote a how-to on how I did it to add to it. I figured I might as well post it here smile

"Unia's CFS (Compiz-Fusion Standalone) Guide wrote:

A screenshot to show you what it looks like:
http://ompldr.org/tOXJwbQ

Check for a compiz-capable computer
Prior to starting, it is a wise choice to check if your computer is capable of running Compiz. To do this, you'll need the compiz-check script:

$ wget http://blogage.de/files/70708/download -O compiz-check
$ chmod +x compiz-check
$ ./compiz-check

If the output is all positive, you can safely continue with this guide.

Installing the base packages
Now you can safely install the necessary basic Compiz packages:

$ sudo apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-main compiz-fusion-plugins-extra

There's also compiz-fusion-plugins-unsupported, but I don't use those and find them unnecessary.

Next up, you need decorators. I myself prefer (the deprecated) emerald. You can't currently find them in the Debian repo's, so you'll have to grab the relevant packages from somewhere else:

+ 32 bit:

$ wget http://boisson.homeip.net/debian/pool/squeeze/i386/libemeraldengine0_0.8.4_i386.deb
$ wget http://boisson.homeip.net/debian/pool/squeeze/i386/emerald_0.8.4_i386.deb

+ 64 bit:

$ wget http://boisson.homeip.net/debian/pool/squeeze/amd64/libemeraldengine0_0.8.4_amd64.deb
$ wget http://boisson.homeip.net/debian/pool/squeeze/amd64/emerald_0.8.4_amd64.deb

To install them, either use gdebi-gtk or run

$ sudo dpkg -i libemeraldengine0_0.8.4_<arch>.deb
$ sudo dpkg -i emerald_0.8.4_<arch>.deb

Setting up the session
Now we need to set up our session, and this is where my part differs from DarthWound's. I use compiz-alone-utils for this. This is a set of scripts that makes starting Compiz identical to starting Openbox. I packaged all scripts in a .deb file for you, so you can easily install compiz-alone-utils. EDIT: I should probably add that using this way, you can just select the Compiz session from GDM like any other session.

Our very own omns has offered me to host the .debs! Thanks again, mate wink
You can get them this way:

$ wget http://omnsproject.org/crunchbang/unia/compiz-alone-utils_1.0_all.deb

Once you got the .deb, either install it with gdebi-gtk or run

$ sudo dpkg -i compiz-alone-utils_1.0_all.deb

Now you have to make ~/.config/compiz and copy the autostart.sh file from /etc/xdg/compiz/autostart.sh:

$ mkdir -p ~/.config/compiz/
$ cp /etc/xdg/compiz/autostart.sh ~/.config/compiz

The menu
Again, I took a different way than DarthWound. I picked Compiz-Boxmenu. This is a fork of Compiz-Deskmenu (used by DarthWound), which has extensive icon support, pipeitems (viewport list, window list, filebrowser (never used that one though)) and more. It also has its own graphical editor, but you can of course edit the file manually too. Again, I packaged everything into a .deb file for convenience.

Again, grab the .deb from omns's website:

$ wget http://omnsproject.org/crunchbang/unia/compiz-boxmenu_1.0_all.deb

To install compiz-boxmenu: again, either with gdebi-gtk or

$ sudo dpkg -i compiz-boxmenu_1.0_all.deb

To be able to edit it, and I'm sure you want to, you have to copy the menu.xml to your .config directory:

$ mkdir -p ~/.config/compiz/boxmenu
$ cp /etc/xdg/compiz/boxmenu/menu.xml ~/.config/compiz/boxmenu/

Now that you have it installed, you have to tweak some settings in compizconfig-settings-manager/ccsm to have it open when you right-click on the desktop only. Firstly, enable the Commands by clicking on the box. Now, follow these steps (all the commands without the quotes " "):

  • General Options > Commands > Commands > Command line X to "compiz-boxmenu"

  • General Options > Commands > Key bindings > Run command X to "<Control>space" Optional

  • Viewport Switcher > Desktop-based Viewport Switching > Plugin for initiate action to "commands"

  • Viewport Switcher > Desktop-based Viewport Switching > Action name for initiate to "run_commandX_key"

  • Viewport Switcher > Desktop-based Viewport Switching > Initiate Plugin Action to "button 3" (this can be another button, for example button 2 for middle-click)

Closure
I think that's it! As you can see, with the .deb files, it's actually quite easy and fast to set up a CFS session on Debian. I'll have to find a host for the .debs though, so if you have any tips for me, please, tell me! Also, if you have found any errors (have only tested the .debs on my (amd64) system), please PM me!

Have fun with your Compiz!

PS: To shutdown / reboot, I use a modified oblogout script. If there's any interest I will post it here as well. (or I could include it in the compiz-alone-utils.deb)

Last edited by Unia (2011-09-20 16:45:23)

Let's do it and don't screw it.
      Github || Deviantart

Re: Compiz-Fusion Standalone on #!

It was a nice collaborative work tongue

If somebody wants, there is the link of my topic, with an english quick translation and some complements from me and Unia.

http://crunchbanglinux-fr.org/forum/vie … php?id=929

Re: Compiz-Fusion Standalone on #!

Oh, I forgot to link. Nice work, partner wink

I have some further good news: ShadowKyogre wants to host the .debs on his/her website! I'll email them tomorrow and they should be online not much later. I'll post a link and edit the guide when it's up!

Let's do it and don't screw it.
      Github || Deviantart

Re: Compiz-Fusion Standalone on #!

Nice !

Re: Compiz-Fusion Standalone on #!

Unia wrote:

Oh, I forgot to link. Nice work, partner wink

I have some further good news: ShadowKyogre wants to host the .debs on his/her website! I'll email them tomorrow and they should be online not much later. I'll post a link and edit the guide when it's up!


Ever get the debs/link setup?

Re: Compiz-Fusion Standalone on #!

VastOne wrote:
Unia wrote:

Oh, I forgot to link. Nice work, partner wink

I have some further good news: ShadowKyogre wants to host the .debs on his/her website! I'll email them tomorrow and they should be online not much later. I'll post a link and edit the guide when it's up!


Ever get the debs/link setup?

Sorry I didn't notice this post. ShadowKyogre still has to reply to me, I did send the .debs but haven't heard of her since then. If you need the .debs, just PM me your email or email me and I'll send them smile

Let's do it and don't screw it.
      Github || Deviantart

Re: Compiz-Fusion Standalone on #!

I got the deb files from Unia and will set it up and report success/issues

Thanks

Re: Compiz-Fusion Standalone on #!

Progress report

This step should be added to the How To

$ sudo dpkg -i compiz-boxmenu_1.0_all.deb

Question - When you get to the tweak the compizconfig-settings-manager/ccsm section, should that be done in your current DE or should you login to the new Compiz DE to do it?

Last - Logging into the Compiz Standalone,  I have no desktop, just a black screen after following these steps.. I have not done the ccsm tweaks yet, but I do not think that will be relevant...

Finally, I think it may be good to number your steps in this How To, but that is just me...

Re: Compiz-Fusion Standalone on #!

Now that you have it installed, you have to tweak some settings in compizconfig-settings-manager/ccsm to have it open when you right-click on the desktop only:

General Options > Commands > Commands > Command line X to "compiz-boxmenu"

      Should this include the  "   " or just be compiz-boxmenu?

General Options > Commands > Key bindings > Run command X to "<Control>space" Optional

Done - Need to stress to Enable Commands box is ticked

Viewport Switcher > Desktop-based Viewport Switching > Plugin for initiate action to "commands"

    Viewport Switcher > Desktop-based Viewport Switching > Action name for initiate to "run_commandX_key"

    Viewport Switcher > Desktop-based Viewport Switching > Initiate Plugin Action to "button 3" (this can be another button, for example button 2 for middle-click)

Same question and request..  Are the quotes "   "  needed and make sure that Enable Viewport Switcher is ticked

Last edited by VastOne (2011-08-16 19:14:45)

Re: Compiz-Fusion Standalone on #!

Everything done in ccsm, made sure everything was followed exactly, and I have no desktop... just a black screen and a mouse..  no right click, nada..

I have to tty1 and kill gdm to restart...

Willing to assist in whatever is needed..

Re: Compiz-Fusion Standalone on #!

One thing I want to note is that I just got compiz working on LMDE using an nvidia card.  It required an older driver (173.xxx.xxx) in order to run.

Last edited by hinto (2011-08-16 19:17:47)

"When any government, or church for that matter, undertakes to say to it's subjects, this you may not read, this you must not see, this you are forbidden to know the end result is tyranny and oppression, no matter how holy the motive."
-Robert A. Heinlein

Re: Compiz-Fusion Standalone on #!

hinto wrote:

One thing I want to note is that I just got compiz working on LMDE using an nvidia card.  It required an older driver (173.xxx.xxx) in order to run.


Interesting...  I am nVidia too but with the latest stable drivers.. 280.13

If this requires me to downgrade to 173.xxx series, that is a show stopper

Re: Compiz-Fusion Standalone on #!

I'm tracking testing with Linux Mint DE, but sid with #!.  #! is using Intel, not NVidia.
Not sure why downgrading to 173 is a showstopper.  It's easily installable.
-H

"When any government, or church for that matter, undertakes to say to it's subjects, this you may not read, this you must not see, this you are forbidden to know the end result is tyranny and oppression, no matter how holy the motive."
-Robert A. Heinlein

Re: Compiz-Fusion Standalone on #!

VastOne wrote:

Progress report

This step should be added to the How To

$ sudo dpkg -i compiz-boxmenu_1.0_all.deb

That part is still to be edited, since the .debs aren't hosted yet. I'll edit it after your problems are solved.

VastOnce wrote:

Question - When you get to the tweak the compizconfig-settings-manager/ccsm section, should that be done in your current DE or should you login to the new Compiz DE to do it?

Last - Logging into the Compiz Standalone,  I have no desktop, just a black screen after following these steps.. I have not done the ccsm tweaks yet, but I do not think that will be relevant...

You can do that either way. I think most users who follow this guide will prefer doing it from whatever DE they have going at the moment. If you decide to do it from Compiz, be sure to add ccsm, a panel, gmrun and perhaps a terminal in the autostart file so you have something to start with. If you don't do this, you'll be greeted by just a black screen and a mouse pointer. I'll get to that below..

VastOne wrote:

Finally, I think it may be good to number your steps in this How To, but that is just me...

I can do that, but isn't it clear enough at the moment?

------------------------------------------------------

VastOne wrote:

Now that you have it installed, you have to tweak some settings in compizconfig-settings-manager/ccsm to have it open when you right-click on the desktop only:

General Options > Commands > Commands > Command line X to "compiz-boxmenu"

      Should this include the  "   " or just be compiz-boxmenu?

I don't follow you here...? You just have to type compiz-boxmenu on a random command line - I prefer the last one.

VastOne wrote:

General Options > Commands > Key bindings > Run command X to "<Control>space" Optional

Done - Need to stress to Enable Commands box is ticked

I'll edit the guide!

VastOne wrote:

Viewport Switcher > Desktop-based Viewport Switching > Plugin for initiate action to "commands"

    Viewport Switcher > Desktop-based Viewport Switching > Action name for initiate to "run_commandX_key"

    Viewport Switcher > Desktop-based Viewport Switching > Initiate Plugin Action to "button 3" (this can be another button, for example button 2 for middle-click)

Same question and request..  Are the quotes "   "  needed and make sure that Enable Viewport Switcher is ticked

Oooh.. you meant the quotes! No, no quotes are needed to do this!

------------------------------------------------------

VastOne wrote:

Everything done in ccsm, made sure everything was followed exactly, and I have no desktop... just a black screen and a mouse..  no right click, nada..

I have to tty1 and kill gdm to restart...

Willing to assist in whatever is needed..

Firstly, did you run the compiz-check script? What was the outcome?

Secondly, can you check if you have the relevant files installed in the correct directories?

  • /usr/bin/compiz-alone-session

  • /usr/bin/xdg-autostart

  • /usr/share/xsessions/compiz-alone.desktop

Also, did you copy the autostart script from /etc/xdg/compiz/autostart.sh to ~/.config/compiz/autostart.sh? Did you make it executable? Did you add your own applications to it?

Last thing to check: What does your /usr/bin/compiz-alone-session look like? Please post the file here so I can check it for errors.

Last edited by Unia (2011-08-16 20:19:25)

Let's do it and don't screw it.
      Github || Deviantart

Re: Compiz-Fusion Standalone on #!

Unia wrote:
VastOne wrote:

Progress report

This step should be added to the How To

$ sudo dpkg -i compiz-boxmenu_1.0_all.deb

That part is still to be edited, since the .debs aren't hosted yet. I'll edit it after your problems are solved.

VastOnce wrote:

Question - When you get to the tweak the compizconfig-settings-manager/ccsm section, should that be done in your current DE or should you login to the new Compiz DE to do it?

Last - Logging into the Compiz Standalone,  I have no desktop, just a black screen after following these steps.. I have not done the ccsm tweaks yet, but I do not think that will be relevant...

You can do that either way. I think most users who follow this guide will prefer doing it from whatever DE they have going at the moment. If you decide to do it from Compiz, be sure to add ccsm, a panel, gmrun and perhaps a terminator in the autostart file so you have something to start with. If you don't do this, you'll be greeted by just a black screen and a mouse pointer. I'll get to that below..

VastOne wrote:

Finally, I think it may be good to number your steps in this How To, but that is just me...

I can do that, but isn't it clear enough at the moment?

------------------------------------------------------

VastOne wrote:

Now that you have it installed, you have to tweak some settings in compizconfig-settings-manager/ccsm to have it open when you right-click on the desktop only:

General Options > Commands > Commands > Command line X to "compiz-boxmenu"

      Should this include the  "   " or just be compiz-boxmenu?

I don't follow you here...? You just have to type compiz-boxmenu on a random command line - I prefer the last one.

VastOne wrote:

General Options > Commands > Key bindings > Run command X to "<Control>space" Optional

Done - Need to stress to Enable Commands box is ticked

I'll edit the guide!

VastOne wrote:

Viewport Switcher > Desktop-based Viewport Switching > Plugin for initiate action to "commands"

    Viewport Switcher > Desktop-based Viewport Switching > Action name for initiate to "run_commandX_key"

    Viewport Switcher > Desktop-based Viewport Switching > Initiate Plugin Action to "button 3" (this can be another button, for example button 2 for middle-click)

Same question and request..  Are the quotes "   "  needed and make sure that Enable Viewport Switcher is ticked

Oooh.. you meant the quotes! No, no quotes are needed to do this!

------------------------------------------------------

VastOne wrote:

Everything done in ccsm, made sure everything was followed exactly, and I have no desktop... just a black screen and a mouse..  no right click, nada..

I have to tty1 and kill gdm to restart...

Willing to assist in whatever is needed..

Firstly, did you run the compiz-check script? What was the outcome?

Secondly, can you check if you have the relevant files installed in the correct directories?

  • /usr/bin/compiz-alone-session

  • /usr/bin/xdg-autostart

  • /usr/share/xsessions/compiz-alone.desktop

Also, did you copy the autostart script from /etc/xdg/compiz/autostart.sh to ~/.config/compiz/autostart.sh? Did you make it executable? Did you add your own applications to it?

Last thing to check: What does your /usr/bin/compiz-alone-session look like? Please post the file here so I can check it for errors.


compiz-check was all Aces.. Good to go... All Green

All files accounted for

I did copy the autostart.sh script, it is in the correct place and it is exectuable...  I did not add anything to it

compiz-alone-session file

#!/bin/sh

# Clean up after GDM
xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
      -remove _NET_DESKTOP_NAMES \
      -remove _NET_CURRENT_DESKTOP 2> /dev/null

AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/compiz/autostart.sh"
GLOBALAUTOSTART="/etc/xdg/compiz/autostart.sh"

if test -r $AUTOSTART; then
    . $AUTOSTART
else
    . $GLOBALAUTOSTART
fi

exec /usr/bin/compiz "$@" ccp

#if test -r /usr/bin/fusion-icon; then
#    exec /usr/bin/fusion-icon
#elif test -r /usr/bin/compiz-decorator; then
#    exec /usr/bin/compiz-decorator "$@" ccp
#elif test -r /usr/bin/compiz; then
#    exec /usr/bin/compiz "$@" ccp
#elif test -r /usr/bin/compiz-09; then
#    exec /usr/bin/compiz-09 "$@" ccp
#elif test -r /usr/bin/compiz-git;then
#    exec /usr/bin/compiz-git "$@" ccp
#else
#    echo "Error: No compiz executables found."
#    exit 1
#fi

Re: Compiz-Fusion Standalone on #!

VastOne wrote:

compiz-check was all Aces.. Good to go... All Green

All files accounted for

Ok, good. Let's continue then smile

VastOne wrote:

I did copy the autostart.sh script, it is in the correct place and it is exectuable...  I did not add anything to it

So you aren't autostarting any applications, thus having just a black screen with a mouse pointer. Try adding a panel, a terminal, file manager... whatever you can think off and try again. For reference, here's my autostart.sh:

# This shell script is run before Compiz launches.
# Environment variables set here are passed to the Compiz session.

# Set a background color
#BG=""
#if which hsetroot >/dev/null 2>&1; then
#    BG=hsetroot
#else
#    if which esetroot >/dev/null 2>&1; then
#    BG=esetroot
#    else
#    if which xsetroot >/dev/null 2>&1; then
#        BG=xsetroot
#    fi
#    fi
#fi
#test -z $BG || $BG -solid "#202020"

# D-bus
#if which dbus-launch >/dev/null 2>&1 && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
#    eval `dbus-launch --sh-syntax --exit-with-session`
#fi

# Run XDG autostart things.  By default don't run anything desktop-specific. See xdg-autostart --help more info
#DESKTOP_ENV="COMPIZ"
#if which /usr/bin/xdg-autostart >/dev/null 2>&1 ; then
#  /usr/bin/xdg-autostart $DESKTOP_ENV
#fi

# Set Background
nitrogen --restore &

# Start Conky
conky -c ~/.conky/conky &

# Start Networkmanager Applet
nm-applet &

# Start AWN after a slight delay
(sleep 2 && avant-window-navigator) &

# Start battery monitor
batti &

# Other stuff
xfce4-volumed &
sudo /etc/rc.d/acpid restart &>/dev/null &
nautilus --no-default-window &

VastOne wrote:

compiz-alone-session file

#!/bin/sh

# Clean up after GDM
xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
      -remove _NET_DESKTOP_NAMES \
      -remove _NET_CURRENT_DESKTOP 2> /dev/null

AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/compiz/autostart.sh"
GLOBALAUTOSTART="/etc/xdg/compiz/autostart.sh"

if test -r $AUTOSTART; then
    . $AUTOSTART
else
    . $GLOBALAUTOSTART
fi

exec /usr/bin/compiz "$@" ccp

#if test -r /usr/bin/fusion-icon; then
#    exec /usr/bin/fusion-icon
#elif test -r /usr/bin/compiz-decorator; then
#    exec /usr/bin/compiz-decorator "$@" ccp
#elif test -r /usr/bin/compiz; then
#    exec /usr/bin/compiz "$@" ccp
#elif test -r /usr/bin/compiz-09; then
#    exec /usr/bin/compiz-09 "$@" ccp
#elif test -r /usr/bin/compiz-git;then
#    exec /usr/bin/compiz-git "$@" ccp
#else
#    echo "Error: No compiz executables found."
#    exit 1
#fi

Looks good too. I think it was your autostart.sh - I'll edit the guide to let you know you have to add some things to it!

Let's do it and don't screw it.
      Github || Deviantart

Re: Compiz-Fusion Standalone on #!

I notice you have every thing commented out of the original autostart.sh

I have edited mine now and did the same thing and added what starts in my openbox session...

Will let you know

Re: Compiz-Fusion Standalone on #!

VastOne wrote:

I notice you have every thing commented out of the original autostart.sh

I have edited mine now and did the same thing and added what starts in my openbox session...

Will let you know

I have everything commented out, because I
1) set my background with nitrogen, so I don't need the xsetroot,
2) launch my session from slim, with ck-launch-session and dbus-launch in there, so I don't need to start dbus from my autostart again.

Let's hope it works!

Let's do it and don't screw it.
      Github || Deviantart

Re: Compiz-Fusion Standalone on #!

Sitting now in a compiz-standalone session...

I need now to go back through and figure out this right click to get it to work, I have nothing for a right click or a ctrl space which is what I thought I setup

Re: Compiz-Fusion Standalone on #!

Glad you got the session going smile

Now, for the menu. Instead of using X, I'll use command line 20 instead. Remember, all without " " quotes!

  • General Options > Commands > Commands > Command line 20 to "compiz-boxmenu"

  • General Options > Commands > Key bindings > Run command 20 to "<Control>space" Optional

  • Viewport Switcher > Desktop-based Viewport Switching > Plugin for initiate action to "commands"

  • Viewport Switcher > Desktop-based Viewport Switching > Action name for initiate to "run_command20_key"

  • Viewport Switcher > Desktop-based Viewport Switching > Initiate Plugin Action to "button 3" (this can be another button, for example button 2 for middle-click)

Let's do it and don't screw it.
      Github || Deviantart

Re: Compiz-Fusion Standalone on #!

Unia wrote:

Glad you got the session going smile

Now, for the menu. Instead of using X, I'll use command line 20 instead. Remember, all without " " quotes!

  • General Options > Commands > Commands > Command line 20 to "compiz-boxmenu"

  • General Options > Commands > Key bindings > Run command 20 to "<Control>space" Optional

  • Viewport Switcher > Desktop-based Viewport Switching > Plugin for initiate action to "commands"

  • Viewport Switcher > Desktop-based Viewport Switching > Action name for initiate to "run_command20_key"

  • Viewport Switcher > Desktop-based Viewport Switching > Initiate Plugin Action to "button 3" (this can be another button, for example button 2 for middle-click)

Mine is setup this same way, only using session0 instead of 20...  I will change it to 20 just for the heck of it...

And I knew there was no need for " "  I was just making sure it was in the How To and answered.!!  smile

Let you know....

Re: Compiz-Fusion Standalone on #!

No go on the compiz-boxmenu

I can run it from terminal, so it is functional...

There must be something else in ccsm that is not functioning or I do not have turned on

Re: Compiz-Fusion Standalone on #!

VastOne wrote:

No go on the compiz-boxmenu

I can run it from terminal, so it is functional...

There must be something else in ccsm that is not functioning or I do not have turned on

Do you have the commands and viewport switcher plugins enabled? Could you perhaps post screenshots of the relevant parts from CCSM?

Let's do it and don't screw it.
      Github || Deviantart

Re: Compiz-Fusion Standalone on #!

Unia wrote:
VastOne wrote:

No go on the compiz-boxmenu

I can run it from terminal, so it is functional...

There must be something else in ccsm that is not functioning or I do not have turned on

Do you have the commands and viewport switcher plugins enabled? Could you perhaps post screenshots of the relevant parts from CCSM?

Yes I have them enabled and here are the relevant screenshots

http://www.zimagez.com/miniature/screenshot-08162011-041536pm.png

http://www.zimagez.com/miniature/screenshot-08162011-041657pm.png

http://www.zimagez.com/miniature/screenshot-08162011-041811pm.png

Re: Compiz-Fusion Standalone on #!

That's strange... and it does work when you run it from terminal? Just a shot in the dark: you gotta click on the desktop. Maybe try a reboot?

Let's do it and don't screw it.
      Github || Deviantart