Web Projects Outsourcing

Latest conky with images support enabled in Fedora

This has always been a question to have a quality conky installation on your desktop supporting images and other goodies.

To get it, you have to create your own rpm from the latest source.

Disclaimer
BE CAREFUL IF USING VIDEO DRIVERS OTHER THAN NVIDIA! DO NOT FOLLOW THE INSTRUCTIONS BELOW!

Install dependencies:

sudo yum -y install bmpx-devel libXft-devel libXt-devel libXdamage-devel libXext-devel audacious-devel dbus-glib-devel libXNVCtrl-devel curl-devel wireless-tools-devel tolua++-devel

bmpx will not work, however …

Get conky from the home web site. Get my spec file and place to ~/rpmbuild/SPECS/conky.spec

conky.spec

%bcond_without audacious
%bcond_with moc
%bcond_without mpd
%bcond_with nvidia
%bcond_without rss
%bcond_without ibm
%bcond_without wlan

Name:           conky
Version:        1.7.2
Release:        1%{?dist}_alec
Summary:        A system monitor for X

Group:          User Interface/X
License:        GPLv3+
URL:            //conky.sf.net/
Source0:        //downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  libXft-devel
BuildRequires:  libXt-devel
BuildRequires:  libXdamage-devel
BuildRequires:  libXext-devel
BuildRequires:  bmpx-devel
%if %{with audacious}
BuildRequires:  audacious-devel
BuildRequires:  dbus-glib-devel
%endif
%{?with_nvidia:BuildRequires: libXNVCtrl-devel}
%{?with_rss:BuildRequires: curl-devel}
%{?with_wlan:BuildRequires: wireless-tools-devel}

%description
A system monitor for X originally based on the torsmo code. but more kickass.
It just keeps on given’er. Yeah.

%prep
%setup -q

for i in AUTHORS; do
iconv -f iso8859-1 -t utf8 -o ${i}{_,} && touch -r ${i}{,_} && mv -f ${i}{_,}
done

%build
%configure \
–enable-audacious=yes \
–enable-ibm \
–enable-iostats \
–enable-curl \
–enable-eve \
–enable-rss \
–enable-weather-metar \
–enable-weather-xoap \
–enable-imlib2 \
–enable-lua-imlib2 \
–enable-lua \
–enable-lua-cairo \
–enable-wlan \
–enable-nvidia \
;

make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING TODO README NEWS extras/* doc/docs.html
%dir %{_sysconfdir}/conky
%config %{_sysconfdir}/conky/conky.conf
%{_bindir}/*
%{_mandir}/man1/*
/etc/conky/conky_no_x11.conf
/usr/lib64/conky/libcairo.a
/usr/lib64/conky/libcairo.la
/usr/lib64/conky/libcairo.so
/usr/lib64/conky/libcairo.so.0
/usr/lib64/conky/libcairo.so.0.0.0
/usr/lib64/conky/libimlib2.a
/usr/lib64/conky/libimlib2.la
/usr/lib64/conky/libimlib2.so
/usr/lib64/conky/libimlib2.so.0
/usr/lib64/conky/libimlib2.so.0.0.0

I do not guarantee that the below and the above will work for you. You should watch the console output of everything you type in.

Build and install the rpm:

sudo rpmbuild -ba ~/rpmbuild/SPECS/conky.spec
sudo yum -y localinstall --nogpgcheck ~/rpmbuild/RPMS/x86_64/conky-1.7.2-1.fc11_alec.x86_64.rpm

Some nice urls related to conky functions:

As a result, I get something like the below (still under construction but rss, weather and images support is already there):

conky on Fedora

conky on Fedora

More configs, scripts and tricks to follow. Beware, conky is very addictive… I will open registration in my blog so that people can post comments and/or ask questions, everybody is welcome.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.