Page 1 of 6 123 ... LastLast
Results 1 to 10 of 57

Thread: HOWTO: Separate Xgl/Compiz Session

  1. #1
    Join Date
    Sep 2005
    Beans
    1,083
    Distro
    Ubuntu 16.04 Xenial Xerus

    HOWTO: Separate Xgl/Compiz Session

    Separate Xgl/Compiz Session: Xgl/Compiz/GNOME/KDE and your lightweight WM.

    The Xgl/Compiz craze with Dapper is great, but if you install and configure it most ways found around here you will magically turn GNOME/KDE or your light-weight WM into a cpu hungry behemoth. Plus using Xgl instead of Xorg will make it difficult to play games, watch videos, etc. etc. If you would like Xgl/Compiz with GNOME/KDE then I STRONGLY suggest this link.... https://wiki.ubuntu.com/xglati It will help create a separate Xgl/Compiz session rather than having the Xgl-server completely taking over the X-server. (which will take over GNOME/KDE/your light-WM).

    I'm using a Nvidia card. I'm not sure what that means for ATI users, so I will go on with NVIDIA users in mind.

    Again, the source is taken from https://wiki.ubuntu.com/xglati, but I will be making a few alterations. My main reason for doing this is to spread the word on this wiki page! All the work goes to that author! It is great work!

    I have both GNOME and KDE on my system, and the following works for me. I am not sure if this will work if you are only using Kubuntu!

    =================================

    BEFORE YOU BEGIN
    You might find this guide to be easier!
    http://doc.gwos.org/index.php/Swich_...M_%28or_KDM%29

    =================================

    1. Add new repos to your /etc/apt/sources.list.

    Code:
    sudo gedit /etc/apt/sources.list

    add these lines...
    Code:
    deb http://xgl.compiz.info/ dapper main 
    deb http://www.beerorkid.com/compiz/ dapper main
    ...save

    Add this key...
    Code:
    wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
    Code:
    sudo apt-get update
    2. Install

    Code:
    sudo apt-get install libglitz1 libglitz-glx1 xserver-xgl libgl1-mesa libsvg libsvg-cairo compiz compiz-gnome gset-compiz cgwd
    3. Create a separate Xgl session (GNOME-based).

    First the script.

    Code:
    sudo gedit /usr/bin/xgl-gnome.sh
    Paste this in.
    Code:
    #!/bin/bash  
    
    Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:fbo & sleep 2 && DISPLAY=:1 gnome-session
    Make it executable...
    Code:
    sudo chmod 755 /usr/bin/xgl-gnome.sh
    Now create the session...
    Code:
    sudo gedit /usr/share/xsessions/xgl-gnome.desktop
    paste this in...
    Code:
    [Desktop Entry]  
    Encoding=UTF-8 
    Name=XGL-GNOME
    Exec=/usr/bin/xgl-gnome.sh 
    Icon= 
    Type=Application
    Make it executable...
    Code:
    sudo chmod 755 /usr/share/xsessions/xgl-gnome.desktop

    4. Starting it up.

    Upon starting your xgl-gnome session (you might see black and + mouse symbol--mine shows it, eventually it goes)

    You will have to run
    Code:
    cgwd
    AND
    Code:
    compiz --replace gconf

    There are some options for this:
    You can add those two statements to your session startup, use "thefuture" script seen on most Xgl/Compiz threads and add it to your panel, use some sort of "toggle" script (seen around here), or make a panel icon (of any of those things). For any problems, type "metacity --replace" to get your window titles back.

    4a. Here's a toggle script from the forums. (you can put it anywhere, I put it in my home/bin folder)

    Code:
    sudo gedit bin/toggle
    Code:
    #!/bin/bash
    if ps -A | grep -e " compiz.real$" > /dev/null; then
    	killall cgwd
    	metacity --replace &
    else
    	cgwd &
    	compiz --replace gconf &
    fi
    Code:
    sudo chmod 755 bin/toggle
    Now you have a script to use for a launcher!

    5. For KDE...

    same steps... except the following:

    use xgl-kde.sh instead of xgl-gnome.sh (to name your session)
    Change Name=XGL-GNOME to Name=XGL-KDE (or something similar)
    use startkde instead of gnome-session (in your xgl-kde script)
    use kwin instead of metacity (to get original window manager back)

    6. Additional info.

    Frodon's guide. Very similar to this with fewer steps.
    http://doc.gwos.org/index.php/Swich_...M_%28or_KDM%29
    Last edited by bluevoodoo1; August 5th, 2006 at 01:15 AM.

  2. #2
    Join Date
    Dec 2005
    Location
    Salt Lake City UT
    Beans
    143
    Distro
    Ubuntu Karmic Koala (testing)

    Re: HOWTO: Separate Xgl/Compiz Session

    Definatly works, I followed all other guides and was ready to gouge my eyes out.. After you showed me this i was in heaven.... This is the best guide i feel around because if you dont want XGL to load all of the time, you can choose your session.
    Ubuntu Guide with Lots of Usefull Information
    Offical Ubuntu Wiki
    -=- AMD Athlon(tm) 64 Processor 3200+ -=- RADEON X850 GTO -=- Kubuntu 7.10 -=-

  3. #3
    Join Date
    Apr 2006
    Location
    New Jersey (USA)
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Separate Xgl/Compiz Session

    well, with having 0 luck with Xgl on my laptop, im gona give this a go.. will post my results

  4. #4
    Join Date
    Apr 2006
    Location
    New Jersey (USA)
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Separate Xgl/Compiz Session

    well it booted xgl, so thats farther then ive mad it so far, but i have no window effects, wobbly fade cube anything.. oh well ill fiddle with it more later

  5. #5
    Join Date
    Sep 2005
    Beans
    1,083
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: HOWTO: Separate Xgl/Compiz Session

    Quote Originally Posted by joshrobinson
    well it booted xgl, so thats farther then ive mad it so far, but i have no window effects, wobbly fade cube anything.. oh well ill fiddle with it more later

    Hmmm. Did you run "gnome-window-decorator" and "compiz --replace gconf" ? What video card are you using?

  6. #6
    Join Date
    Apr 2006
    Location
    New Jersey (USA)
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Separate Xgl/Compiz Session

    Quote Originally Posted by bluevoodoo1
    Hmmm. Did you run "gnome-window-decorator" and "compiz --replace gconf" ? What video card are you using?
    an ati mobility, got open gl and all running.. with the compiz --replace gconf, does that do all the settings for all the effects? or should i do

    compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher ?

  7. #7
    Join Date
    Mar 2006
    Location
    europe/germany
    Beans
    230
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Separate Xgl/Compiz Session

    about the repos:
    Quote Originally Posted by bluevoodoo1
    1. Add new repos to your /etc/apt/sources.list.

    Code:
    sudo gedit /etc/apt/sources.list

    add these lines...
    Code:
    deb http://xgl.compiz.info/ dapper main 
    deb http://www.beerorkid.com/compiz/ dapper main
    ...save

    Code:
    sudo apt-get update
    maybe you should add you need a key:
    Quote Originally Posted by [url=http://compiz.net/viewtopic.php?id=2]QuinnStorm[/url]
    Anyhow, here's a repost of my packages' info.

    My repo's gpg key can be found at
    http://metascape.afraid.org:13666/quinn.key.asc.gz
    to import it, use
    Code:
    zcat quinn.key.asc.gz | sudo apt-key add -
    PLEASE use this mirror instead of the old repo. (it redirects you here now anyway)
    Code:
    deb http://www.beerorkid.com/compiz/ dapper main
    EDIT:
    which is actually not working anymore, pleas read next two posts....
    Last edited by Bazon; May 18th, 2006 at 09:48 AM.

  8. #8
    Join Date
    Apr 2006
    Location
    The Netherlands
    Beans
    81
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: HOWTO: Separate Xgl/Compiz Session

    If you paste a link make sure it's working.. I found the key on this (official) site:
    http://www.beerorkid.com/compiz/

  9. #9
    Join Date
    Mar 2006
    Location
    europe/germany
    Beans
    230
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Separate Xgl/Compiz Session

    Quote Originally Posted by sanone
    If you paste a link make sure it's working.. I found the key on this (official) site:
    http://www.beerorkid.com/compiz/
    Sorry!

    Although this is a bit Quinns fault, I quoted him from a sticky thread in the compiz forum....

    I'll notice him there...

    So
    Code:
    wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
    should work to get the key.

  10. #10
    Join Date
    Jun 2005
    Location
    France
    Beans
    7,100
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Separate Xgl/Compiz Session

    bluevoodoo1, i wrote something quite similar in the UDSF,if you see interesting things that you want to add to your guide feel free to do it :
    http://doc.gwos.org/index.php/Swich_...M_%28or_KDM%29

    The script include the start of compiz and the xmodmap workaround.

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •