PS3 Media Server Headless on Ubuntu Server 10.10

I'm rebuilding my guests on KVM. PS3 Media Server is moving to a headless Ubuntu Magestic Meerkat guest.

Here are the steps I followed to set it up:



http://ps3mediaserver.org/forum/viewtopic.php?f=3&t=3437

sudo -s
sudo apt-get install subversion build-essential git-core checkinstall yasm libgpac-dev
sudo apt-get install build-essential checkinstall gpac libgpac-dev git-core yasm

apt-get install gawk gettext html2text intltool-debian ladspa-sdk libaa1-dev libasound2-dev libatk1.0-dev libaudio-dev libaudio2 libaudiofile-dev libavahi-client-dev libavahi-common-dev libcaca-dev libcairo2-dev libcdparanoia0-dev libcucul-dev libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdirectfb-extra libdts-dev libdv4-dev libenca-dev libenca0 libesd0-dev libexpat1-dev libfaac-dev libfaac0 libfontconfig1-dev libfreebob0 libfreetype6-dev libfribidi-dev libggi-target-x libggi2 libggi2-dev libggimisc2 libggimisc2-dev libgif-dev libgii1 libgii1-dev libgii1-target-x libgl1-mesa-dev libglib2.0-dev libglide3 libglu1-mesa-dev libglu1-xorg-dev libgtk2.0-dev libice-dev libjack-dev libjack0 libjpeg62-dev  liblzo2-2 liblzo2-dev libmad0 libmad0-dev libmail-sendmail-perl libmp3lame-dev libmp3lame0 libmpcdec-dev libncurses5-dev libogg-dev libopenal-dev libopenal1 libpango1.0-dev libpixman-1-dev libpng12-dev libpopt-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libsdl1.2-dev libslang2-dev libsm-dev libsmbclient-dev libspeex-dev libsvga1 libsvga1-dev libsys-hostname-long-perl libsysfs-dev libtheora-dev libtwolame-dev libtwolame0 libvorbis-dev libx11-dev libxau-dev libxcb-render-util0-dev libxcb-render0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev libxt-dev libxv-dev libxvidcore4 libxvidcore-dev libxvmc-dev libxvmc1 libxxf86dga-dev libxxf86vm-dev mesa-common-dev po-debconf sharutils x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev x11proto-xext-dev x11proto-xf86dga-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev libschroedinger-dev libstdc++5 libfaad-dev libgsm1-dev libdc1394-22-dev libfaad-dev libsdl1.2-dev libxvidcore-dev

cd
git clone git://git.videolan.org/x264.git
cd x264
./configure --prefix=/usr --enable-shared
make
sudo checkinstall --fstrans=no --install=yes --pakdir "$HOME/Desktop" --maintainer "$USER" --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" --backup=no --deldoc=yes --deldesc=yes --delspec=yes --gzman --default
make distclean

cd
wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
tar xvf live555-latest.tar.gz
cd live
./genMakefiles linux
make
sudo cp -r $HOME/live /usr/lib

wget http://transact.dl.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz
tar xvf opencore-amr-0.1.2.tar.gz
cd opencore-amr-0.1.2/
./configure --prefix=/usr
make
sudo checkinstall --fstrans=no --install=yes --pakdir "$HOME/Desktop" --maintainer "$USER" --pkgname="libopencore-amr" --pkgversion="0.1.2" --backup=no --deldoc=yes --deldesc=yes --delspec=yes --gzman --default
make distclean

git clone git://gitorious.org/ffmpeg/ffmpeg-mt.git
cd ffmpeg-mt/
git clone git://git.ffmpeg.org/libswscale/
./configure –-enable-pthreads
make 
sudo make install


svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd $HOME/mplayer/
cp -rf ../ffmpeg-mt/libavcodec libavcodec
cp -rf ../ffmpeg-mt/libavformat libavformat
cp -rf ../ffmpeg-mt/libavutil libavutil
sudo ./configure --confdir=/etc/mplayer
sudo make
sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/Desktop" --pkgname mplayer --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default --pkgversion "3:1.0~svn-`grep "#define VERSION" version.h | cut -d"-" -f2`"
make distclean
export LD_LIBRARY_PATH=/usr/local/lib/

sudo apt-get install ant ant-gcj ant-optional ant-optional-gcj ca-certificates-java default-jdk default-jre default-jre-headless java-common libaccess-bridge-java libgcj-bc libgcj-common libjaxp1.3-java libjaxp1.3-java-gcj libxerces2-java libxerces2-java-gcj openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib rhino ttf-bengali-fonts ttf-kannada-fonts ttf-oriya-fonts ttf-telugu-fonts ttf-wqy-zenhei tzdata-java gcj-4.5-base libgcj11-dev

cd /usr/src/
svn checkout http://ps3mediaserver.googlecode.com/svn/trunk/ ps3mediaserver-read-only

cd ps3mediaserver-read-only/ps3mediaserver
sudo ant

JAVA_HOME=/usr/lib/jvm/java-6-openjdk/jre

sudo nano /etc/init.d/PS3MediaServer

sudo chmod a+x /etc/init.d/PS3MediaServer

sudo update-rc.d PS3MediaServer defaults 90

No comments:

Post a Comment