Page 1 of 5 123 ... LastLast
Results 1 to 10 of 47

Thread: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

  1. #1
    Join Date
    Apr 2006
    Beans
    83
    Distro
    Ubuntu 11.04 Natty Narwhal

    HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    Introduction

    My name is Erik Reckase, and I'm the current bellybutton for the flam3 rendering engine for the Electric Sheep screensaver, conceptualized and written by Scott Draves. We're in the process of getting a new client out to the masses with a lot of new features, and it struck me that I've been unable to get the old client running on my Dapper laptop.

    After trying for a few weeks, I was finally able to gather enough information about gnome-screensaver to understand exactly how to get the Electric Sheep screensaver working on Dapper without using xscreensaver. The voting keys do not currently work, but downloading and rendering work fine. Since the package in the universe is quite old, this HOWTO will compile the client from the source files. I will not detail the compilation process, but I will help with specific questions. I assume a moderate capability with respect to compiling and installing software.

    Getting Ready:
    You will need the following packages to compile the electricsheep client :
    • libc6-dev
    • libexpat1-dev
    • libice6-dev
    • libjpeg62-dev
    • libpng12-dev
    • libsm6 (not sure)
    • libx11-dev
    • libxext-dev
    • libxv-dev
    • libxml2-dev
    • zlib1g-dev
    • curl
    • xloadimage
    • libjpeg-progs


    Step 1:
    Grab the latest sources from electricsheep.org (currently 2.6.8):
    http://electricsheep.org/index.cgi?&menu=code
    Click the source tarball link, and extract the folder to your home directory.

    Step 2:
    In the electricsheep-2.6.8 directory, perform
    Code:
    ./configure
    make clean all
    Step 3:
    Edit the Makefile with a text editor. You need to remove these lines from the end of the file:
    Code:
    	test -e $(SCREENSAVER_DATADIR) && $(INSTALL) electricsheep.xml $(SCREENSAVER_DATADIR)
    	$(INSTALL) -d $(pkgdatadir)
    Delete these lines from the file and save it. These lines referred installing the xscreensaver xml file that no longer works for the gnome-screensaver. The test failed, so the install will fail unless these lines are removed.

    Step 4:
    Code:
    sudo checkinstall -D make install
    Answer all questions as per standard checkinstall procedures.

    Step 5:
    Create a folder that will hold your Sheep. Many folks use ~/.sheep for this, but it can be anything in your local area.

    Step 6:
    This is the secret sauce. As root, or using sudo, create a text file in the /usr/lib/xscreensaver directory called esheep.sh, and paste the following text into the file:
    Code:
    #!/bin/sh
    exec electricsheep --nick xxxx --root 1 --max-megabytes 2000 --zoom 1 --display-anim 1 --show-errors 0 --nrepeats 2 --frame-rate 30 --save-dir yyyy
    Replace xxxx with the nickname you would like to be known by on the server.
    Replace yyyy with the full path to the directory created in Step 5.

    Step 7:
    Code:
    sudo chmod 755 esheep.sh
    Step 8:
    As root, or using sudo, create a text file in the /usr/share/gnome-screensaver/themes directory called electricsheep.desktop, and past the following text into the file:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=ElectricSheep
    Comment=Electric Sheep is a distributed screen-saver that harnesses idle computers into a render farm with the purpose of animating and evolving artificial life-forms. This module requires a high-bandwidth, always-on connection to the internet such as DSL or cable-modem. The first time you run it, it normally takes 5 to 10 minutes before the first sheep is downloaded and displayed. After that, it should come up immediately. If you have installed the hacked xscreensaver that supports passing key-presses onto the graphics hack and this feature is enabled, then pressing the up arrow-key transmits a vote for the currently displayed sheep to the server. The votes are the basis of a fitness function for an evolutionary algorithm on the sheep genomes. Vote for the sheep you like, and they will mate, reproduce, and evolve! See http://electricsheep.org for more information. This is version 2.6.8.
    TryExec=esheep.sh
    Exec="esheep.sh"
    StartupNotify=false
    Terminal=false
    Type=Application
    Categories=Screensaver
    Step 9:
    gnome-screensaver resets every 10 minutes as part of the random selection - even if random isn't chosen. We need to change that to a larger number, otherwise nothing will render or download properly.
    Code:
    gconftool-2 --type int --set /apps/gnome-screensaver/cycle-delay 10000
    Step 10:
    System->Preferences->Power Management: Change the setting to put the display to sleep when inactive to 'Never' by dragging the bar all the way to the right. Alternatively,
    Code:
    gconftool-2 --type int --set /apps/gnome-power-manager/ac_sleep_display 0
    Step 11:
    Open the gnome-screensaver selection dialog, pick electricsheep, and enjoy. It might take some time to get a sheep, so be patient. If you want to test it, you can download individual sheep from the electricsheep website and place them in your sheep storage directory.

    Let me know how this works!
    Last edited by EReckase; February 20th, 2007 at 11:18 PM. Reason: Added gconftool code & exec in script

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

    Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    There's another guide on this topic there for those who wish a repository to install it :
    http://ubuntuforums.org/showthread.php?t=350089

  3. #3
    Join Date
    May 2005
    Beans
    366

    Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    If you're running Edgy the electricsheep package is at 2.6.8-2, so there is no need to build from source. Just create the esheep.sh and electricsheep.desktop files.

    https://bugs.launchpad.net/ubuntu/+s...heep/+bug/5823

  4. #4
    Join Date
    Feb 2007
    Location
    Canada
    Beans
    14

    Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    Hi, I'm getting the following error:

    Code:
    /electricsheep-2.6.8$ ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output file name... configure: error: C compiler cannot create executables
    See `config.log' for more details.
    /electricsheep-2.6.8$ make clean all
    make: *** No rule to make target `clean'.  Stop.
    How can I fix this?
    As you see, I'm new to Linux.

  5. #5
    Join Date
    Nov 2006
    Location
    Germany
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    I suppose that you haven't satisfied all build depencies from the first post ... I think that the deps from above, plus build-essential, checkinstall and gcc should be enough to build it... if they are all there, please post the contents of config.log.

  6. #6
    Join Date
    Apr 2006
    Beans
    83
    Distro
    Ubuntu 11.04 Natty Narwhal

    Wink Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    According to this, you might need the binutils package:

    http://www.geektimes.com/linux/troub...ecutables.html

  7. #7
    Join Date
    Jan 2007
    Location
    Chch, NZ
    Beans
    25
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    Hey, firstly i absolutely love this screensaver, but sadly i haven't been able to get it working in a screensaver state, when run as it is (no options) i get this error

    Code:
     
    X Error of failed request:  BadMatch (invalid parameter attributes)
      Major opcode of failed request:  141 (XVideo)
      Minor opcode of failed request:  19 ()
      Serial number of failed request:  106
      Current serial number in output stream:  106
    Terminated
    so i have been using the --mplayer 1 tag in initialising it for things like xwinwrap etc.. however i was quite interested in getting this to work for your guide, however i have tried following this guide to the letter (using source tarball, commenting out makefile lines, etc..) but in the end "ElectricSheep" still doesn't show up in gnome-screensaver. Any idea why this would be?

  8. #8
    Join Date
    Apr 2006
    Beans
    83
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    These instructions are only for Dapper - Edgy has a different set of rules. I'll see if I can drum up a solution for Edgy.

    Erik

  9. #9
    Join Date
    Apr 2006
    Beans
    83
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    Quote Originally Posted by Triorph View Post
    so i have been using the --mplayer 1 tag in initialising it for things like xwinwrap etc.. however i was quite interested in getting this to work for your guide, however i have tried following this guide to the letter (using source tarball, commenting out makefile lines, etc..) but in the end "ElectricSheep" still doesn't show up in gnome-screensaver. Any idea why this would be?
    Try putting the file from step 6 into /usr/share/applications/screensavers.

  10. #10
    Join Date
    Apr 2006
    Beans
    83
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: electricsheep screensaver with gnome-screensaver! (Dapper)

    I added a gconftool-2 call and a slightly different script to make this work better and not spawn multiple instances of the screensaver every 10 minutes...hope this helps.

    Erik

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