Linux Client Instructions

If you have Ubuntu 10.04 or Debian Sid, then you can just use the package manager or type "sudo apt-get install electricsheep", although that will get you an old version, it should work fine.

Otherwise, the preferred way to install it is from source.

  1. sudo apt-get install subversion autoconf libtool libgtk2.0-dev libgl1-mesa-dev libavcodec-dev libavformat-dev libswscale-dev liblua5.1-0-dev libcurl4-openssl-dev libxml2-dev libjpeg8-dev libgtop2-dev libboost-dev libboost-filesystem-dev libboost-thread-dev libtinyxml-dev freeglut3-dev glee-dev
  2. install from source the latest wxWidgets 2.9.x (autogen.sh; ./configure; make ; sudo make install) and flam3 (./configure; make; sudo make install), and then:
  3. Checkout client source and then ./autogen.sh; ./configure; make; sudo make install

It should configure itself to be your screensaver, but you can also run it from the command line just by typing "electricsheep". You can also use "electricsheep-preferences" to configure it.

 

Electricsheep Debian installation

Electricsheep screensaver installation on Debian was very difficult for me a few months ago, but I got it installed. I accidently deleted my certficate and I lost my Electricsheep screensaver. I've been trying to re-install it, but I am having great difficulty. I don't want o go thru the rigamarow again! Any quick and easy installation instructions would be greatly appreciated. Please post. Thanks.

2.7b33 on Gentoo / missing types.h (curl >= 7.21.7)

Hi!

I get stale mplayer processes on electricsheep 2.7_beta11 on Gentoo (which is the newest one on Gentoo). I tried compiling 2.7_beta33, but it fails, because newer curl (7.21.7 and onwards) don't have curl/types.h.

One could downgrade curl, but in my situation, currently installed LibreOffice depends on newer version, and I need libreoffice... I could simply downgrade LibreOffice, as that is the only ebuild depending on the newer curl, but that's a huge compile, and I just don't want to do that because of electricsheep. And, also eventually electricsheep needs to support the new curl (missing types.h).

I will look into this myself, when I have the time... but in the meantime, has anyone compiled electricsheep against a newer curl on any distribution?

Not about curl.... maybe boost?

Ok,

This seems not to be a curl problem after all (reading some curl discussion, types.h has been empty since 2004, it's include could probably be just removed / a version check added in the sources).

I read the compile failing log too fast... it seems like a boost issue. On Gentoo, the latest stable is dev-libs/boost-1.46.1-r1.

This is the first error on the log:

electricsheepguiMyDialog2.cpp:190: error: no matching function for call to 'boost::filesystem3::path::path(wxCStrData)'

Here's the whole log: http://pastebin.com/FfnKDrrP

the source distribution

the source distribution includes its own version of boost (http://code.google.com/p/electricsheep/source/browse/#svn%2Ftrunk%2Fclie...)

so it seems the C flags are out of whack.

have you had any luck

have you had any luck tracking down what cflags are broken? I can't get the 2.7b11 ebuild to work on my system, either (and I'm not sure where to find a live ebuild to add to the overlay)

It seems there's a working external ebuild now...

Hi.

After a long while - Just FYI, in case you haven't noticed - the live ebuild in Gentoos Bugzilla has been updated: https://bugs.gentoo.org/show_bug.cgi?id=339463

Works for me! =D

Gentoo ebuild outdated...

Sratch that. The live ebuild in the bug report above uses the sourceforge SVN, which seems outdated (2.7b11 -ish).

But - I've just managed to build on Gentoo from Google Code SVN. I'll see if it also works, and maybe update the ebuild to the bug report, once I have the time!

Cheers!

thanks!  indeed we switched

thanks!  indeed we switched to a unified code base, and the linux version has needed some help since.  anything you can provide would be much appreciated.

Can't access script

I just tried to access the makesheep.sh script and got informed that I don't have permission to access it on this server.

the script is on hiatus and

the script is on hiatus and will return shortly.  in the meantime just follow the directions.

How to install?

Linux newb here, trying to install 2.7b30 (which I found on http://code.google.com/p/electricsheep/downloads/list) in my karmic koala 9.10...   the old versions I've tried (from Ubuntu software center) haven't worked, and I couldn't get the script listed here to work.

Can anyone help me install from the downloaded archive? I'm very new to the shell and all, so please be very explicit and patient. Thanks!

OK, I can walk you through

OK, I can walk you through it. First, you should delete that tarball because we have fixed problems since then.  Get the latest code with the instructions at http://code.google.com/p/electricsheep/source/checkout

then go into that folder and issue these commands: ./autogen.sh ; ./configure ; make ; sudo make install

 

SUCCESS!

Thanks again for the help Scott. What I ended up doing after not finding any really clear ways to get the source code from the link you shared was realizing that all I needed was in the makesheep.sh script. Even if I couldn't run it as a script (I believe because I'm in Karmic Koala, or just don't know what I'm doing) I could open the script as a text file, and then just copy and paste all the lines one by one into the terminal. This ended up working very well! Highly recommended if you can't get the script to run as per the directions. Now I just need to figure out where exactly to put my sheep megapack, and all will be well with the screen-world.

As an aside, this little project was a great way to learn my way around linux, something I've been meaning to do for a while. Thanks again for the great software.

For DPMS to work, download SVN mplayer

As of yesterday, the bug in mplayer that prevented monitors from DPMS-sleeping (e.g., turning *off* after so many minutes of inactivity) during electricsheep was fixed. So update your mplayer to at least SVN r34074 to get the fix. Electricsheep appears to call mplayer with the correct "nostop-xscreensaver" option, and so all should be well after you update your mplayer.

If you don't want to download the latest mplayer and build it yourself (and it takes a long while for your Linux distro to update), then you can try a hack like this:

http://links.tedpavlic.com/shell_scripts/electricsheep-wrapper

which is documented a bit at:

http://phaseportrait.blogspot.com/2011/08/electric-sheep-on-kde-465-with...

Now your computer can go into "deep sleep" and turn the monitors off after enough dreaming. :)

Blank screen problem

I'm using Bohdi Linux v 1.1 and i've installed both from the script and sudo apt-get command. I get the blank screen from both of the installs. I have tried all of the values that needed to be passed to mplayer and X server is set to default, and I still get just a blank screen.

 

any suggestions?

i do not get electricsheep in gnome or x screensaver

i used the script to install but for life of me cannot get the screen saver working?

Same problem here

suggestions?

sheep freezes

I have about 2gb installed sheeps. The screensaver starts and after a while it freezes. I tried changing the video driver from the settings but still nothing...Any hints?

makesheep.sh v2.7b12

I installed ES via Synaptic a few days ago and it's great, except for the fact that I don't seem to be able to vote, even when running it windowed.

I read on the forums somewhere that the voting facility is disabled in v2.7b12, which is what I got from Synaptic, so I tried running the makesheep.sh script, as suggested.

Everything appeared to work and I now have a folder in my home folder named electricsheep-2001-05-28 which contains the client and flam3, but it looks like it's v2.7b12 again!

I didn't uninstall the existing copy first, thinking (hoping!) that makesheep.sh would upgrade it.

So now I have two(-ish) questions:

Do I need to keep the electricsheep-2001-05-28 folder or can I just delete it ?

What do I need to do to get a more up-to-date version (I think v2.7b28 is the latest) ?

I'm using Ubuntu 10.04 and I'm not terribly Linux-literate :)

Thanks, in anticipation.

Thanks, glad you like it.

Thanks, glad you like it. You can get the current source from: http://code.google.com/p/electricsheep/source/checkout But as you can see below there are some tweeks required to compile it. We are looking for a Linux maintainer to install patches and fix linux-specific bugs, configuration etc.

That version has voting when you run it as an app, but not as a screensaver because that's just not supported by gnome.

you can delete the folder after it's been installed.

Thanks for the link

Thanks for the link. I think I'll leave it for the moment - like I say, not very Linux-literate - but I've bookmarked it for later.

I looked at this and at Apophysis a couple of years back when I was still using (gasp) Windows!

This time round I've even got as far adding a couple of sheep to the flock :)

Installing v2.7b28

I'm trying to build and install electricsheep v2.7b28.

I've downloaded and extracted the source files (in /usr/local/src), built and installed the latest version of wxWidgets, fixed the wxWidgets version bug in my copy of the configure file, installed libswscale-dev (I already had libswscale installed) installed lua5.1 and... configure is still complaining that I don't have lua5.1 installed!

I've tried installing it both through Synaptic Package Manager and using sudo apt-get install lua5.1 and the lua5.1 and luac5.1 programs are definitely present in /usr/bin.

There are a number of other packages listed in Synaptic when I search for lua5.1, including several liblua5.1-***-dev packages so I'm wondering whether I should be installing one of these as well.

Any suggestions ?

Lua packages

Yes, IIRC you need the liblua dev package as well.

thank you salsaman (who fyi

thank you salsaman (who fyi worked on the linux port). for ubuntu 11.04 it would be liblua5.1-0-dev.

here's a more complete

here's a more complete list:

libswscale-dev, libavformat-dev, libavcodec-dev, libavutil-dev libgtop-dev libboost-thread-dev libboost-filesystem-dev libcurl4-gnutls-dev liblua5.1-dev libtinyxml-dev glee-dev libglut3-dev flam3 libswscale0 libpng12-dev libxrender-dev.

Trying again with 2.7b33

Ok, so I'm trying again with v2.7b33.

I've checked out the source code from the svn and put the electricsheep-read-only folder into /usr/local/src.

I've run autogen.sh to generate the configure file.

I've edited the configure file with the fix to get it to register the wx-config version correctly:

WX_MAJOR=${WX_VERSION%%.*};
WX_MINOR=${WX_VERSION#*.};
WX_MINOR=${WX_MINOR%%.*};
WX_MICRO=${WX_VERSION##*.};

and run ./configure successfully.

Unfortunately, the make step fails (with a whole raft of error messages).

The only thing I can see is the message elsewhere in this thread about setting the CXXFLAGS and LDFLAGS to get configure to look in the right place for the wx components. i.e.

CXXFLAGS="`wx-config --cxxflags`" LDFLAGS="`wx-config --libs all`" ./configure

but then configure fails with

checking whether we are cross compiling... configure: error: in `/usr/local/src/electricsheep-read-only/client_generic':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

I can't see anything obvious in config.log (though I note it refers in several places to 2.7b28). Since I don't know what "cross compiling" is, I don't know if that's what I'm trying to do!

If any helpful person could tell me what to try next, I'd be much obliged.

i am confused why you have to

i am confused why you have to edit that file, as that change is already in the source (see http://code.google.com/p/electricsheep/source/browse/trunk/client_generic/configure.ac)

are you sure you have the most recent version from svn (and not the outdated tarball)?

I'm confused too!

I'm confused too!

I definitely used the svn checkout command given at http://code.google.com/p/electricsheep/source/checkout to get the source code but from the looks of it I just got the 2.7b28 code again.

If I look at the configure.ac file using the link you give it has AC_INIT(electricsheep,2.7b28-svn... at line 7 and the wx version checking still has the old problem.

The checkout page has a comment about "Non-members". Do I need to be a member or something to get the latest version ?

Alternatively, do Google have a mirror site for the UK that might not be in synch ?

Clutching at straws here!

what OS version are you

what OS version are you building on?  still 11.04?

what is the first error?

I'm on Ubuntu 10.04. The

I'm on Ubuntu 10.04.

The first message from make (if I don't override CXXFLAGS and LDFLAGS) is

config.h:11:23: error: wx/bitmap.h: No such file or directory

and they all appear to be to do with wx.

You need to have the correct

You need to have the correct version of wxWidgets installed, including development libraries.

If you don't have the correct version, you need to build and install the included wxWidgets before compiling electricsheep.

The config file should detect whether you have the right version or not.

 

Most of the problems are caused by the fact that a) wxWidgets has its own special config file (wx-config), rather than using the pkg-config system, and b) electricsheep needs a version of wxWidgets which is not yet in the ubuntu repositories.

If in doubt, remove all wxWidget packages, and rebuild and install it from the included source.

 

 

Linux Compile: Segment Fault

So I compiled from the latest source at the Google project page and did all the hacks to the code to get it to compile; which it did finally. Problem I have is that when I run Electricsheep it bombs with a segment fault. The preferences come up fine and I can edit them all good like. So anyone got any recommendations for me on getting Electricsheep to compile on Linux? I compiled it on a fresh install of 10.10 Ubuntu and 11.04, 11.04 is what I would want to run it on. Hey and by the way thanks to everyone for the awesome info and debugging info. This project and everyone who touches it rocks in my book.

configure ok, now make fails

Thanks for your help. I've added the suggested packages and ./configure now goes through successfully.

However, when I try to run make it fails almost immediately with the following:

config.cpp:8:20: error: config.h: No such file or directory
config.cpp:11:41: error: ../../Runtime/sheep_logo2.xpm: No such file or directory
config.cpp:16: error: ‘MyDialog2’ has not been declared
config.cpp:16: error: expected constructor, destructor, or type conversion before ‘(’ token
make[1]: *** [config.o] Error 1
make[1]: Leaving directory `/usr/local/src/electricsheep-2.7b28-svn/MSVC/SettingsGUI'
make: *** [all-recursive] Error 1

Any suggestions ?

I get the same exact error. 

I get the same exact error.  I used to run ES on Windows, but I switched to Linux recently.  I got the repo version running fine on my 4:3 laptop, but when I tried running it on my 16:9 laptop, it would never go fullscreen.  After searching through forum posts that led to no help, I thought I would try the newer version from source.  I have always loved ES, but am very frustrated with what a pain in the ass it is to get it either installed correctly or working correctly.  And the lack of support really sucks too.  It's open source, so I guess I gotta just suck it up and quit complaining; it's not like I have any other options...

Changes Needed to compile in Linux - [SOLVED]

To solve the Glee trouble you should also download the libGlee source from:
http://elf-stone.com/glee.php

compile and install;

Copy the GLee.h and GLee.c (from extacted sources) to {your_dir}\DisplayOutput\OpenGL\ and to {your_dir}\Client

CXXFLAGS="`wx-config --cxxflags`" LDFLAGS="`wx-config --libs all`" ./configure

make

sudo make install


Cheers

thanks! Here's some more

thanks! Here's some more information: http://r3dux.org/2010/09/how-to-install-glee-in-ubuntu/

It actually recommends using GLEW instead, should we switch?

Switch to glew

I think it might be better to switch as glee is no more hosted in gentoo repos and I think it's something like flag it as deprecated. Glad to be helpful ^_^

+1 on the GLEW

I too agree that an effort to use GLEW would be good. However if you have to have GLee in Gentoo then add the jensp overlay and you'll get Glee. I had to also modify client_generic/ContentDecoder/ContentDecoder.cpp to replace the remaining occurrence of CODEC_TYPE_* with AVMEDIA_TYPE* as I'm running a newer ffmpeg. Still had to make the modifications to the ./configure script to fix the WX_MICRO error. Can someone update the svn repo? With all of that I'm back to running ES! Thanks everyone for your help!

wish i had time -- but we

wish i had time -- but we need a linux maintainer. any volunteers?

linux maintainer....

Well.. Not sure what the "job" requirements are, but I'd be willing to entertain it. let me know what I'd need to do.

the main requirements are you

the main requirements are you be dedicated, trustworthy, and good with programming and linux, including the automake stuff and packaging. most of the work is done in the platform independent code by cd81, so what we need is just someone who will 1) make the fixes discussed here so it compiles and runs cleanly and 2) keep it that way.

please send me email and we'll talk about it. include a link to your home page or resume or something so i know who you are.

windowed

ok ... i re-installed it and everything is great, it worked a couple times no problem. but now every time the screensaver comes on its "windowed", or only in the middle of the screen with a giant black border around it.... any idea here ? EDIT:::: nevermind again ... i fixed it...i put "GL" in the graphic driver spot in the preferences and everything is fine

i am using Ubuntu 10.04 LTS

i am using Ubuntu 10.04 LTS and just installed Electric Sheep on it, all i get when the screensaver runs is a blank screen, same in the preview panel in screensaver preferences... this is my graphics card: Intel(R) 82865G Graphics Controller any suggestions ?

how did you install it?

how did you install it?

i installed it through

i installed it through Synaptic EDIT: if this helps ... because of my graphics card i had to add "i915.modeset=0" to my GRUB ... that may be part of the problem i am having

ooops ... nevermind ... i

ooops ... nevermind ... i removed it and reinstalled it through the script listed here and it works just fine now ... sorry for not reading first .... and thanks again for this awesome screensaver

Found bug in configure determinig wrong version of wxWidgets

When determining version the right code should be:
if test x$WX_CONFIG != xno; then
WX_VERSION=`wx-config --version`

WX_MAJOR=${WX_VERSION%%.*};
WX_MINOR=${WX_VERSION#*.};
WX_MICRO=${WX_MINOR##*.};
WX_MINOR=${WX_MINOR%%.*};



Cheers

thanks, unfortunately the

thanks, unfortunately the linux version is in need of a maintainer now, but i'll try to get this fix in.

That worked for me. Still

That worked for me. Still have the GLee issues, but the ./configure runs without error now. Thanks.

building on linux depends on GLee

Greetings! I grabbed the latest svn from googlecode and am having difficulties getting to to build. I've made the recommended changes to the configure script and am building with "CXXFLAGS="`wx-config --cxxflags`" LDFLAGS="`wx-config --libs all`" ./configure" and them make. Make dies here: Player.cpp:16:18: fatal error: GLee.h: No such file or directory I looked into the results from the ./configure and it correctly indicates that I don't have GLee and continues. However Player.cpp has deps on GLee.h and so does OpenGL/glx.h... Not sure where to go from there. any help is appreciated.

User login