credit - Plex team and gewalker for the source code
dlasher for 99% of the prerequisites and fixes to git init
I take no credit for anything here other than making a small change to the prerequisite for 12.10 and this simplified writeup
prerequisites:
sudo apt-get install git build-essential autoconf autopoint libtool libboost1.49-all-dev libx11-dev libgl1-mesa-dev libxrender-dev portaudio19-dev libavcodec-dev libavformat-dev libswscale-dev libavdevice-dev libglew1.6-dev libmad0-dev libsamplerate-dev libogg-dev libvorbis-dev libbz2-1.0 libbz2-dev libwavpack-dev libmpeg2-4-dev libfribidi-dev libsqlite3-dev libpng-dev libpcre3-dev libcdio-dev libmysqlclient-dev libmodplug-dev libfaad-dev libflac-dev libsmbclient-dev libsdl-mixer1.2-dev libxt-dev libxtst-dev libxmu-dev libxinerama-dev libcurl4-gnutls-dev libdbus-1-dev libhal-storage-dev libhal-dev libpulse-dev libavahi-common-dev libavahi-client-dev libxrandr-dev libavcodec-dev libavformat-dev libavutil-dev libpostproc-dev libswscale-dev liba52-dev libdts-dev libfaad-dev libmpeg2-4-dev libass-dev libflac-dev libwavpack-dev python-dev gawk gperf nasm libbluetooth-dev zlib1g-dev libmms-dev libsmbclient-dev libtiff4-dev libiso9660-dev libssl-dev libmicrohttpd-dev libmodplug-dev libssh-dev libsdl-image1.2-dev cmake libmysqlclient-dev libsmbclient-dev libxrandr-dev mesa-utils liblzo2-dev libjasper-dev unzip zip libvdpau-dev
clone plex repo:
cd ~/<br />
git clone https://github.com/gewalker/plex-linux.git
initiate secondary repos:
cd plex-linux<br />
git submodule init
Now we need to fix a few things before we can move along:
gedit .git/config
if you don't have gedit use nano
nano .git/config
change
[submodule "addons/skin.mediastream"]<br />
<br />
url = git@github.com:gewalker/plex-mediastream.git<br />
<br />
[submodule "xbmc/cores/dvdplayer/Codecs/ffmpeg"]<br />
<br />
url = git@github.com:gewalker/plex-ffmpeg-linux
to
[submodule "addons/skin.mediastream"]<br />
<br />
url = https://github.com/gewalker/plex-mediastream.git<br />
<br />
[submodule "xbmc/cores/dvdplayer/Codecs/ffmpeg"]<br />
<br />
url = https://github.com/gewalker/plex-ffmpeg-linux.git
now:
git submodule update
Time to build: *(each of these steps can take time some up to an hour or two depending on your CPU*)
./bootstrap<br />
<br />
./configure<br />
<br />
make -j <the number of cpu cores you have or want to use><br />
<br />
sudo make install
Okay still one more thing to do in order to get video playback working
sudo gedit /usr/local/bin/pmc
look for
export PLEX_HOME="/usr/local/share/xbmc"
and add this line directly underneath it
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libbz2.so:/usr/lib/x86_64-linux-gnu/libfaad.so"
save and close..
Congratulations if you made it! You should now have a fully functional Plex Media Client on Ubuntu :D
To run type:
/usr/local/lib/xbmc/xbmc.bin
or just reboot and you should have the menu/launcher icon

