Linux‎ > ‎Software‎ > ‎

~Electric Sheep Screensaver for Fedora

                                                                                                                                                                                                                    


#################################################################


After installing the repo you may get this message saying :Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-foo. Please verify its path and try again

Yum cannot connect to the RPM Fusion servers if you get above message. That could be a problem with your local network or a problem with the MirrorManager servers from RPM Fusion. 

If it's the latter use this comment to temporary work around the problem:

su -c "sed -i 's|^#baseurl|baseurl| ; s|^mirrorlist|#mirrorlist|' /etc/yum.repos.d/rpmfusion*free*repo"

To undo the change later use this command:

su -c "sed -i 's|^baseurl|#baseurl| ; s|^#mirrorlist|mirrorlist|' /etc/yum.repos.d/rpmfusion*free*repo"

############################################################

set sudo permissions for you user:   

 UNAME             ALL=(ALL)       NOPASSWD:ALL    (Remember to uncomment this later)

####################################################


COPY THE BELOW SCRIPTS AND SAVE IT TO A FILE, make it executable and run it. OR you can download the below script from here:SCRIPT

#####################################################

What the Script Does:

  • Check that the rpmfusion repository is installed
  • Download the dependencies
  • Link ffmpeg-devel libraries for Fedora happiness
  • Grab the latest SVN sources for electricsheep and flam3
  • Change config files for Fedora
  • Install ElectricSheep

***NOTE**** If you are still running into trouble while running the script, run this command : execstack -c /usr/lib/libxvidcore.so.4.2


#########################################################
#!/bin/bash
# Electricsheep client install script for Fedora 14
#Modified By Sam Pappachan 

#This option is set so that you can see what the script is doing
set -x

# Defining Variables
ORIGDIR=`pwd`
REPOAVAIL=`sudo yum repolist | grep rpmfusion`
DATE=electricsheep-`date +%F`
echo ""
echo "Starting Install of electricsheep for Fedora"
# Check for RPMFUSION Repository
echo ""
echo "Checking for RPMFUSION repo"

if [ "$REPOAVAIL" == "" ]; then
    echo ""
    echo "ERROR:"
    echo "You do not have the rpmfusion repository installed on your machine"
    echo "This will prevent you from installing the necessary packages"
    echo "If you wish to install the repository please run the following command: "
    echo ""
    echo "sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"
    echo ""
    exit
else
    echo ""
    echo "SUCCESS:"
    echo "RPMFUSION repo installed: Continuing with script"
fi

# Install required packages

echo ""
echo "Installing Required Packages"
sudo yum install -y \
GConf2-devel \
curl \
dbus-devel \
dbus-glib-devel \
expat-devel \
ffmpeg-devel \
ffmpeg-devel.i686 \
glib \
glib-devel \
glib2-devel \
libgdbus-devel \
libglade2-devel \
libgnome-devel \
libgnomeui-devel \
libjpeg-devel \
libtool \
mplayer \
subversion

echo "Finished Installing Required Packages"

# Link ffmpeg-devel libraries for Fedora

echo ""
echo "Linking ffmpeg Libraries"
cd /usr/include
sudo ln -s /usr/include/ffmpeg/libavformat/ ./
sudo ln -s /usr/include/ffmpeg/libavcodec/ ./
sudo ln -s /usr/include/ffmpeg/libavutil/ ./
echo "Finished Linking ffmpeg Libraries"

# Create Directory Structure

echo ""
echo "Creating directory for electricsheep sources"
cd $ORIGDIR
rm -rf $DATE
mkdir $DATE
cd $DATE
echo "Finished Creating directory for electricsheep sources"

# Download Sources

echo ""
echo "Downloading Sources"
svn co https://electricsheep.svn.sourceforge.net/svnroot/electricsheep/trunk/client client
svn co https://flam3.svn.sourceforge.net/svnroot/flam3/trunk/src flam3
echo "Finished Downloading Sources"

# Compile flam3

echo ""
echo "Compiling flam3"
cd flam3
mv configure configure.old
sed "s:ac_default_prefix=/usr/local:ac_default_prefix=/usr:g" configure.old > configure
rm -rf configure.old

# NEW flam3 fixes - Nov 18 2009

mv Makefile.in Makefile.in.old
sed -e "s:\$(top_srcdir)/m4/libtool.m4:/usr/share/aclocal/libtool.m4:g" -e "s:\$(top_srcdir)/m4/ltoptions.m4:/usr/share/aclocal/ltoptions.m4:g" -e "s:\$(top_srcdir)/m4/ltsugar.m4:/usr/share/aclocal/ltsugar.m4:g" -e "s:\$(top_srcdir)/m4/ltversion.m4:/usr/share/aclocal/ltversion.m4:g" -e "s:\$(top_srcdir)/m4/lt~obsolete.m4:/usr/share/aclocal/lt~obsolete.m4:g" Makefile.in.old > Makefile.in
rm -rf Makefile.in.old
mv aclocal.m4 aclocal.m4.old
sed -e "s:m4/libtool.m4:/usr/share/aclocal/libtool.m4:g" -e "s:m4/ltoptions.m4:/usr/share/aclocal/ltoptions.m4:g" -e "s:m4/ltsugar.m4:/usr/share/aclocal/ltsugar.m4:g" -e "s:m4/ltversion.m4:/usr/share/aclocal/ltversion.m4:g" -e "s:m4/lt~obsolete.m4:/usr/share/aclocal/lt~obsolete.m4:g" aclocal.m4.old > aclocal.m4
rm -rf aclocal.m4.old
chmod +x configure
./configure
make
sudo make install
cd ..
echo "Finished Compiling flam3"

# Compile electricsheep client

echo ""
echo "Compiling ElectricSheep Client"
cd client
mv configure configure.old
sed "s:ac_default_prefix=/usr/local:ac_default_prefix=/usr:g" configure.old > configure
rm -rf configure.old
chmod +x configure
./configure
make
sudo make install
cd  ..
echo "Finished Compiling ElectricSheep Client"

# Remove ffmpeg-devel library links for Fedora

echo ""
echo "Removing ffmpeg-devel Library Links"
cd /usr/include
sudo rm -rf libavformat libavcodec libavutil
echo "Finished Removing ffmpeg-devel Library Links"
cd $ORIGDIR

echo ""
echo "Finished Install of electricsheep for Fedora"

################################################################

Expected Issues: You may get the below error while running the script.
################################################################
++ make
 cd . && /bin/sh /root/bin/electricsheep-2011-05-18/client/missing --run automake-1.11 --foreign
aclocal.m4:16: warning: this file was generated for autoconf 2.65.
You have another version of autoconf.  It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.
 cd . && /bin/sh ./config.status Makefile 
config.status: creating Makefile
################################################################

To fix this Go to :

cd current-directory/electricsheep-YYYY-MM-DD/flam3 {electric sheep creates this directory under the directory that you execute the script from)

Run =>

./configure

make install

Reboot the system, go to system=>preferences=>screensaver=>electricsheep  { enjoy your awesome screen saver  !! }

Comments