Install Fuppes (0.661+) on Ubuntu 9.10 Karmic x64

Install Fuppes (0.661+) on Ubuntu 9.10 Karmic x64

Jan 19

I was having a tough time finding thorough, up to date instructions not requiring any compiler hacks on setting up a good well rounded fuppes media server with transcoding/thumbnailing support for my PS3.

What you see here are corrected instructions put together from various forums and web posts and the Fuppes wiki (links to follow)

FUPPES .661+ INSTALL INSTRUCTIONS FOR UBUNTU (Debian) 9.10 Karmic 64 bit

1. become root

su

2. remove build tools

apt-get remove autoconf automake gettext
apt-get update

3. install latest build tools

apt-get install autoconf automake gettext

4. install dependencies

apt-get install build-essential libpcre3-dev libpcre++-dev libpcre-ocaml libpcre-ocaml-dev libxml2-dev sqlite3 libuuid-perl libuuidm-ocaml-dev libuuidm-ocaml-dev libtaglib-ocaml-dev libiconv-hook-dev imagemagick libavutil-dev libavformat-dev libavcodec-dev libfaad-dev libgsm1-dev libogg-dev libschroedinger-dev libspeex-dev libtheora-dev libvorbis-dev libx11-dev libxext-dev libraw1394-dev libdc1394-22-dev libmpeg4ip-dev libmp3lame-dev libtwolame-dev libmpcdec-dev libflac-dev libmp4v2-dev libmad0-dev libmad-ocaml-dev ffmpeg libswscale-dev libffmpegthumbnailer-dev libsqlite3-dev uuid-dev libpanel-applet2-dev libpanelappletmm-2.6-dev libnotify-dev libmagick++-dev libsvn1 subversion libtool

5. get latest Fuppes source from subversion repository

svn co https://fuppes.svn.sourceforge.net/svnroot/fuppes/trunk fuppes

6. go to Fuppes directory

cd fuppes

7.a. create configuration

autoreconf -vfi

7.b. configure the fuppes install (this will enable transcoding and all plugins/codecs)

./configure --prefix=/usr --enable-transcoder-ffmpeg --enable-lame --enable-twolame --enable-vorbis --enable-ImageMagick --enable-mad --enable-faad

7.c. summary should show as below (Once you have ran the above command, the output should be similar to the summary below. If you are missing any codecs or plugins simply re run the autoreconf -vfi command, then re run ./configure command using the –enable-plugin/codec option. For instance ./configure –enable-twolame):

CONFIGURATION SUMMARY

audio transcoding plugins
encoder:
lame : yes
twolame : yes
pcm/wav : yes
decoder:
vorbis : yes (libvorbisfile)
mpc : yes
flac : yes
faad : yes (aac/mp4/m4a)
mad : yes (mpeg Layer I, II & III)

video transcoding plugins
ffmpeg : enabled

image conversion/rescaling plugins
ImageMagick : enabled (Wand C-API)

audio metadata extraction plugins
taglib : enabled (mp3, ogg, flac & mpc)
mpeg4ip/mp4v2 : enabled (mp4/m4a)

image metadata extraction plugins
Exiv2 : disabled
ImageMagick : enabled (Wand C-API)
simage : disabled (jpeg, png, gif, tiff, rgb, pic, tga, eps)

video metadata extraction plugins
libavformat : enabled
ffmpegthumbnailer : enabled

miscellaneous
iconv : enabled (charset conversion)
uuid : enabled
inotify : enabled

8. Make/Install into Ubuntu 9.10 Karmic server/desktop

make
make install
ldconfig
make distclean

9.a. start fuppes (currently as root) to initially generate the db and configuration files

fuppes

9.b. will show:

FUPPES – 0.646

the Free UPnP Entertainment Service

http://fuppes.ulrich-voelkel.de

== lib/ContentDirectory/VirtualContainerMgr.cpp (56) :: Mon Nov 2 14:35:40 2009 ==
no vfolder.cfg file available

webinterface: http://10.0.0.1:53938
r = rebuild database
u = update database
i = print system info
h = print help

press ctrl-c or q to quit

Press CTRL + C to stop Fuppes.

10. see: http://server-servers.com/ubuntu-9-10-karmic-configure-and-tweak-fuppes-media-server for customizing the config, edit the config files — this configuration will enable PS3 and XBOX usage, and present the web GUI on port 9137 at whatever IP Address is assigned to the eth0 interface

nano /root/.fuppes/fuppes.cfg

see sample contents (my config)

nano /root/.fuppes/vfolder.cfg

see sample contents (my config)
11.a. prepare the permanent configuration dir for the fuppes daemon and copy the configs to it

mkdir /etc/fuppes
mkdir /var/lib/fuppes
cp ~/.fuppes/fuppes.cfg /etc/fuppes
cp ~/.fuppes/vfolder.cfg /etc/fuppes
cp ~/.fuppes/fuppes.db /var/lib/fuppes

11.b. prepare security settings for the daemon (don’t run as root), create “fuppes” user and group and take ownership of the config dirs

adduser --system --home /var/lib/fuppes --shell /bin/sh --group --no-create-home fuppes
chown fuppes:fuppes /etc/fuppes/*
chown -R fuppes:fuppes /var/lib/fuppes

12.a. set up the daemon startup (http://server-servers.com/Source-Code/Fuppes-Ubuntu-Linux/fuppesd.txt from the Fuppes wiki http://fuppes.ulrich-voelkel.de/wiki/index.php?title=Startup_with_Init.d)

nano /etc/init.d/fuppesd

12.b. initialize the startup daemon

chmod +x /etc/init.d/fuppesd
update-rc.d fuppesd defaults 60
/etc/init.d/fuppesd stop
/etc/init.d/fuppesd start

TO UPGRADE FUPPES, simply run:

su
cd fuppes/
svn update
make
make install

(if adding more dependencies/codecs/plugins, need to autoreconfigure, and set the ./configure parameters again (from earlier PLUS any new ones)

LINKS:

Ubuntu Forums – HOWTO (accurate but not complete for my needs)

Server Servers blog – HOWTO (complete options but outdated and some corrections)

Fuppes Wiki (base compile instructions, not complete for my needs)

UPDATE: note sure if this works the same in Ubuntu Lucid…