Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: HOWTO: Build beryl from source, gnome

  1. #1
    Join Date
    Jun 2006
    Location
    uk
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    HOWTO: Build beryl from source, gnome

    This guide was created as there are currently no beryl repositories for amd64 dapper that I am aware of. It involves compiling beryl from source.
    All the ATI sections of this guide are untested by me and from the following two guides
    http://www.ubuntuforums.org/showthre...ighlight=fglrx
    http://forum.beryl-project.org/viewtopic.php?id=389
    If you own an x series radeon and have problems with lockups, read this post:
    http://ubuntuforums.org/showthread.php?t=150854
    This guide has been tested by me using a nvidia graphics card and the amd64 version of dapper.

    1) Add repos

    Open your sources list
    Code:
    sudo gedit /etc/apt/sources.list
    and add the following lines to it
    Code:
    deb http://www.beerorkid.com/compiz dapper main main-amd64
    deb-src http://www.beerorkid.com/compiz dapper main main-amd64
    If your sources list already contains these repos you dont need to add them again

    2) install graphics drivers

    For nvidia
    run
    Code:
    sudo aptitude update
    sudo aptitude dist-upgrade
    sudo aptitude install nvidia-glx
    For Ati
    follow this guide to instal fglx
    run
    Code:
    glxinfo
    if it shows direct rendering: yes , then you are good to go.

    3) edit xorg.conf

    first back it up
    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
    Nvidia only; xorg configuration is included in fglx guide above
    Then edit it
    Code:
    sudo gedit /etc/X11/xorg.conf
    look for Section "Module" if this section contains Load "dri" or Load "glcore" comment them out like this
    Code:
    #	Load	"dri"
    #	Load	"glcore"
    Then ensure that this section contains
    Code:
     	Load	"glx"
    Scroll down to Section "Device" and ensure that the driver is nvidia and there is the renderaccel option so that this section will look a bit like this
    Code:
    Section "Device"
    	Identifier	"NVIDIA Corporation NV41.0"
    	Driver		"nvidia"
    	BusID		"PCI:1:0:0"
            Option "RenderAccel" "true"
    EndSection
    don't change the identifier or the BusID. The one above is only an example.

    end nvidia only

    4) Now install xgl
    Code:
    sudo aptitude install xserver-xgl libgl1-mesa libglitz-glx1
    There are two ways to run xgl (only do one)

    Method 1, run as part of regular session
    edit gdm.conf-custom
    Code:
    sudo gedit /etc/gdm/gdm.conf-custom
    At the bottom (in the servers bit) add this
    For nvidia
    Code:
    [servers]
    0=Xgl 
    
    [server-Xgl]
    name=Xgl server 
    command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:pbuffer
    flexible=true
    For ATI
    Code:
     [servers]
    # Override display 1 to use Xgl (DISPLAY 1 IMPORTANT FOR ATI FGLRX). 
    1=Xgl 
    
    [server-Xgl] 
    name=Xgl server 
    command=/usr/bin/Xgl :1 -fullscreen -ac -accel glx:pbuffer -accel xv:pbuffer
    flexible=true
    ATI only
    Modify /etc/gdm/gdm.conf
    Code:
    sudo gedit /etc/gdm/gdm.conf
    And change
    Code:
    #0=Standard
    1=Standard
    Go to line 198 and change GdmXserverTimeout=10 to (this one is very important!!!)
    Code:
    GdmXserverTimeout=50
    End ati only

    Method 2, run as a separate session (from http://www.ubuntuforums.org/showthread.php?t=260452 , untested by me)

    create a script to start xgl
    Code:
    sudo gedit /usr/bin/startxgl.sh
    and paste this in then save and exit
    For nvidia
    Code:
    #!/bin/sh 
    Xgl :1 -fullscreen -ac -accel xv:fbo -accel glx:pbuffer &
    DISPLAY=:1
    exec gnome-session
    For ATI
    Code:
    Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer & sleep 2 && DISPLAY=:1 
    # Start GNOME
    exec gnome-session
    For Both
    make the script executable
    Code:
    sudo chmod +x /usr/bin/startxgl.sh
    Then add the script to sessions
    Code:
    sudo gedit /usr/share/xsessions/xgl.desktop
    paste this in then save and exit
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Xgl
    Comment=Start an Xgl Session
    Exec=/usr/bin/startxgl.sh
    Icon=
    Type=Application
    5) Installing beryl from source not recommended for people that have repositories for beryl. Beryl is still in development and could cause kittens to die, nukes to go off and your computer to crash, you've been warned (as far as i know there are no repositories for amd64 dapper, if anybody knows of one please tell me).

    First remove compiz
    Code:
    sudo aptitude remove compiz-core compiz-gnome cgwd csm
    Run the following one line at a time so that you can identify any errors.
    Pay particular attention when you type ./autogen.sh --prefix=/usr as you may be informed of unmet dependencies. If you get informed of one install it (sudo aptitude install package) then go back to the last make clean line and carry on.
    Please post the unmet dependency up here so that I can add it to this guide.

    The following should be done in order.
    Either build release 0.1.2 or the trunk release not both
    Code:
    sudo aptitude update
    sudo aptitude dist-upgrade
    sudo apt-get update
    sudo apt-get build-dep compiz
    sudo aptitude install fakeroot libtool automake1.9 librsvg2-dev x11proto-gl-dev subversion libneon25-dev libapr0-dev libsvn0-dev
    sudo update-alternatives --config automake
    svn co svn://svn.beryl-project.org/beryl/tags/release-0.1.4/
    
    ln -s ~/release-0.1.4/distro-specific-build-files/bdock/debian ~/release-0.1.4/bdock/
    ln -s ~/release-0.1.4/distro-specific-build-files/beryl-core/debian ~/release-0.1.4/beryl-core/
    ln -s ~/release-0.1.4/distro-specific-build-files/beryl-plugins/debian ~/release-0.1.4/beryl-plugins/
    ln -s ~/release-0.1.4/distro-specific-build-files/beryl-dbus/debian ~/release-0.1.4/beryl-dbus/
    ln -s ~/release-0.1.4/distro-specific-build-files/beryl-manager/debian ~/release-0.1.4/beryl-manager/
    ln -s ~/release-0.1.4/distro-specific-build-files/beryl-settings/debian ~/release-0.1.4/beryl-settings/
    ln -s ~/release-0.1.4/distro-specific-build-files/emerald/debian ~/release-0.1.4/emerald/
    ln -s ~/release-0.1.4/distro-specific-build-files/emerald-themes/debian ~/release-0.1.4/emerald-themes/
    ln -s ~/release-0.1.4/distro-specific-build-files/heliodor/debian ~/release-0.1.4/heliodor/
    
    cd ~/release-0.1.4/beryl-core
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-core*.deb beryl-dev*.deb
    
    cd beryl-plugins
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-plugins-data*.deb beryl-plugins*.deb
    
    cd emerald
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i emerald*.deb
    
    cd emerald-themes
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i emerald-themes*.deb
    
    cd beryl-settings
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-settings*.deb
    
    cd beryl-manager
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-manager*.deb *.deb
    Beryl should now be installed

    To build Trunk release (latest version from repository), not remotely stable. If you use this method please bug report http://bugs.beryl-project.org.Includes extra packages not needed for general running of beryl.
    Code:
    sudo aptitude update
    sudo aptitude dist-upgrade
    sudo apt-get update
    sudo apt-get build-dep compiz
    sudo aptitude install fakeroot libtool automake1.9 librsvg2-dev x11proto-gl-dev subversion libneon25-dev libapr0-dev libsvn0-dev
    sudo update-alternatives --config automake
    svn co svn://svn.beryl-project.org/beryl/trunk/
    
    ln -s ~/trunk/distro-specific-build-files/bdock/debian ~/trunk/bdock/
    ln -s ~/trunk/distro-specific-build-files/beryl-core/debian ~/trunk/beryl-core/
    ln -s ~/trunk/distro-specific-build-files/beryl-plugins/debian ~/trunk/beryl-plugins/
    ln -s ~/trunk/distro-specific-build-files/beryl-dbus/debian ~/trunk/beryl-dbus/
    ln -s ~/trunk/distro-specific-build-files/beryl-manager/debian ~/trunk/beryl-manager/
    ln -s ~/trunk/distro-specific-build-files/beryl-settings/debian ~/trunk/beryl-settings/
    ln -s ~/trunk/distro-specific-build-files/emerald/debian ~/trunk/emerald/
    ln -s ~/trunk/distro-specific-build-files/emerald-themes/debian ~/trunk/emerald-themes/
    ln -s ~/trunk/distro-specific-build-files/heliodor/debian ~/trunk/heliodor/
    
    cd trunk/beryl-core
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-core*.deb beryl-dev*.deb libberylsettings*.deb
    
    cd beryl-plugins
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-plugins-data*.deb beryl-plugins*.deb
    
    cd emerald
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i emerald*.deb libemeraldengine*.deb
    
    cd emerald-themes
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i emerald-themes*.deb
    
    cd beryl-settings
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-settings*.deb
    
    cd beryl-manager
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-manager*.deb beryl*.deb
    
    cd beryl-dbus
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i beryl-dbus*.deb
    
    cd bdock
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i bdock*.deb
    
    cd heliodor
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    cd ..
    sudo dpkg -i heliodor*.deb


    6)Add beryl to startup programs
    System > Preferences > Sessions > Startup Programs
    Add beryl-manager

    7) restart x

    Important, If x fails to start do step 8

    press <ctrl><alt><back>
    login and enjoy beryl

    8. only do if x fails to start
    go to terminal
    <ctrl><alt><f1>
    login
    type
    Code:
    sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
    sudo reboot

    Edit 1, changed svn to http://svn.beryl-project.org/tags/release-0.1.1/
    Edit 2
    changed svn to svn://svn.beryl-project.org/beryl/tags/release-0.1.2/
    Added links to debian build files. Added method to build trunk.
    Last edited by killkoy; January 13th, 2007 at 05:17 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    Phoenix, AZ
    Beans
    124
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Build beryl from source, gnome

    An excellent how to!! Thanks for helping me get Beryl up and running on my 64 bit system!!
    Laptop: Debian Testing - Gnome/Fluxbox
    Laptop II: Windows 7 / Karmic - Gnome
    Desktop: Vista Ultimate 64bit / Karmic - Gnome

  3. #3
    Join Date
    Dec 2005
    Location
    Utah, USA
    Beans
    255
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO: Build beryl from source, gnome

    when I run :
    Code:
    cd release-0.1.1/beryl-core
    make clean
    ./autogen.sh --prefix=/usr
    fakeroot dpkg-buildpackage
    I get this error :
    Code:
    make[1]: Entering directory `/home/alokshenoy/Misc./release-0.1.1/beryl-core'
    make[2]: Entering directory `/home/alokshenoy/Misc./release-0.1.1/beryl-core'
    cd . && autoheader
    make[2]: Leaving directory `/home/alokshenoy/Misc./release-0.1.1/beryl-core'
    cd . \
              && CONFIG_FILES= CONFIG_HEADERS=[config.h] \
                 /bin/sh ./config.status
    config.status: creating [config.h]
    config.status: error: cannot find input file: [config.h].in
    make[1]: *** [stamp-h] Error 1
    make[1]: Leaving directory `/home/alokshenoy/Misc./release-0.1.1/beryl-core'
    make: *** [build-stamp] Error 2
    whats is going wrong?
    “Computers in the future may weigh no more than 1.5 tons.” –Popular Mechanics,1949
    __________________________________________________ _______________________

  4. #4
    Join Date
    Jun 2006
    Location
    uk
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Build beryl from source, gnome

    run the following bits one line at a time and paste the entire output separatly for each command here.
    Code:
    cd release-0.1.1/beryl-core
    
    make clean
    
    ./autogen.sh --prefix=/usr

  5. #5
    Join Date
    Jun 2006
    Beans
    1

    Re: HOWTO: Build beryl from source, gnome

    thanks for the guide, i finally got it working ;]

    i added beryl-manager to startup programs but i have to reload the beryl window manager after i log in to get it to work; any ideas why? there is an entry for "gnome-window-decorator" in startup programs, should it be removed?
    Last edited by myk.ism; October 24th, 2006 at 06:19 AM.

  6. #6
    Join Date
    Oct 2006
    Location
    PA
    Beans
    13
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Build beryl from source, gnome

    I followed the how to verbatim and Beryl runs and works great but I have two problems. 1. I can't switch themes at all and 2. I have no window decorations at all. I can swithc back and forth between Beryl and Metacity with no problems but as soon as I go to Beryl my window decorations vanish. Any help or ideas as to what's causing this? I have and ATI card and using fglrx.

  7. #7
    Join Date
    Jun 2006
    Location
    uk
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Build beryl from source, gnome

    Quote Originally Posted by myk.ism
    there is an entry for "gnome-window-decorator" in startup programs, should it be removed?
    Yes it should be fine to remove gnome-window-decorator.
    Quote Originally Posted by h0ser81
    I followed the how to verbatim and Beryl runs and works great but I have two problems. 1. I can't switch themes at all and 2. I have no window decorations at all. I can swithc back and forth between Beryl and Metacity with no problems but as soon as I go to Beryl my window decorations vanish. Any help or ideas as to what's causing this? I have and ATI card and using fglrx.
    I think you need to check that emerald is installed (search for it in synaptic)

  8. #8
    Join Date
    Oct 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO: Build beryl from source, gnome

    Same problem here, no window decorations, emerald and emerald-themes -packages installed from synaptic. I have to run beryl-manager from terminal to get it running, and it prints out:
    Code:
    user@host:~$ beryl-manager
    user@host:~$ XGL Present
    beryl-xgl: Plugin 'settings' already active
    beryl-xgl: No GLXFBConfig for depth 32
    beryl-xgl: No GLXFBConfig for depth 32
    beryl-xgl: No GLXFBConfig for depth 32
    Initiating splash
    beryl-xgl: No GLXFBConfig for depth 32
    beryl-xgl: No GLXFBConfig for depth 32
    beryl-xgl: No GLXFBConfig for depth 32

  9. #9
    Join Date
    Oct 2006
    Location
    PA
    Beans
    13
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Build beryl from source, gnome

    I get the same error when running it from a terminal too. Also get this when trying to run emerald from a terminal. emerald: Screen 0 on display ":1.0" already has a decoration manager; try using the --replace option to replace the current decoration manager. When I run it with the --replace option I still have no window decorations.

  10. #10
    Join Date
    Jun 2006
    Location
    uk
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Build beryl from source, gnome

    You could try using an older or newer version of beryl.
    To use 0.1.0 change the svn line and the one after to the following
    Code:
    svn co http://svn.beryl-project.org/tags/release-0.1.0/
    
    cd release-0.1.0/beryl-core
    To use trunk version (being developed) change the svn line and the one after to the following
    Code:
    svn co http://svn.beryl-project.org/trunk/
    
    
    cd trunk/beryl-core
    Last edited by killkoy; November 30th, 2006 at 09:01 PM.

Page 1 of 3 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
  •