sleep1echo"done";;re
文章简介:这几天PLEX官......首先还是去下载最......cd/DataV......mvPlexMe......tar-xvfP......mkdir-p/......tar-xvfp......重启之后就是最新......========......我家里的影音环境......自从乱入这些设备......先从MyClou......MBL上可用的视......先看一下安装以后......不再多说了,直接......PS:折腾有风险......1.到PLEX的......PlexMedi......然后把这个文件拷......2.root用户......3.以此执行以下......cd/DataV......mvPlexMe......tar-xvfP......mkdir-p/......tar-xvfp......cd/opt/p......复制代码没问题的......首先创建plex......复制代码然后添加......SCRIPTPA......exportLD......exportPL......exportPL......exportLC......exportLA......exportPL....../opt/ple......chmod+x/......复制代码创建pl......vi/etc/i......###BEGIN......#Provide......#Require......#Default......#Default......#Short-D......#Descrip......#Moreinf......#Manytha......#Author:......#Rewampe......#Adapted......#Readcon......[-r/etc/......test-f"/......plex_run......if["$ple......echo"Ple......echo-n"S......su-l$PLE......if["$ple......echo"Ple......echo-n"K......#Tryingt......psax|gre......psax|gre......if["$ple......echo"Ple......echo"Its......echo"Usa......chmod+x/......update-r......5.添加各种解码......wgethttp......dpkg-deb......cp-alib/......cd/opt/p......chmodugo......ln-slibm......复制代码然后安装......apt-geti......复制代码经过漫长......最开始我是按照另......也欢迎大家提问,......下一步就是Ple......本主题由Syst......这几天PLEX官方更新插件了,只需以下几步便可以更新到最新了
首先仍是去下载最新的插件,截止今朝,最新插件是 PlexMediaServer-0.9.11.16.958-80f1748-arm7.spk
mkdir /plex
cd /DataVolume/shares/Public/
mv PlexMediaServer-0.9.11.16.958-80f1748-arm7.spk /plex/PlexMediaServer-0.9.11.16.958-80f1748-arm7.tar
cd /plex
tar -xvf PlexMediaServer-0.9.11.16.958-80f1748-arm7.tar
mkdir -p /opt/plex/Application
tar -xvf package.tgz -C /opt/plex/Application
rm -rf plex/
reboot
复制代码
重启以后就是最新的PLEX server了
http://haitao.8x6x.com:899/123/30288-102304kqqbu1st1jt5mqxf.png
==============================================================================
我家里的影音景象是Apple TV 3 + MyCloud + 1080p液晶 + OpenWRT路由。
自从乱入这些装备后就开端了折腾的不归路。
先从MyCloud的PLEX效劳开端吧。
MBL上可用的视频效劳仿佛很轻易安装,而要想安装到MyCloud上却难之又难,最少我是没弄大白。比来也是无聊,百度Google一顿查,终究肯定了我的终究处理方案:为MyCloud安装PLEX server!
先看一下安装今后的截图吧,可以看到IP是MC的地址
http://haitao.8x6x.com:899/123/24766-093329a4qz4zoj499xz9jr.png
不再多说了,间接开端教程 (原文:http://www.htpcguides.com/instal ... -on-raspberry-pi-2/)
PS:折腾有风险,请先学会如何自救!
1.到PLEX的官方网站下载(https://plex.tv/downloads)Synology 上使用的PLEX插件,ARMV7版,版本号: 0.9.11.7.803-87d0708
PlexMediaServer-0.9.11.7.803-87d0708-arm7.spk
然后把这个文件拷贝到MyCloud上,好比 Public 目录下
2. root用户SSH毗邻到MyCloud上,以下号令全数都是基于root用户。不用斟酌什么chroot用户,不大白的话就当没看到这句好了
3. 以此履行以下号令,安装PLEX server
mkdir /plex
cd /DataVolume/shares/Public/
mv PlexMediaServer-0.9.11.7.803-87d0708-arm7.spk /plex/PlexMediaServer-0.9.11.7.803-87d0708-arm7.tar
cd /plex
tar -xvf PlexMediaServer-0.9.11.7.803-87d0708-arm7.tar
mkdir -p /opt/plex/Application
tar -xvf package.tgz -C /opt/plex/Application
cd /opt/plex/Application
rm -rf /plex/
bash start.sh &
复制代码没成绩的话便可以在阅读器里看到PLEX的界面了http://MyCloudIP:32400/web/index.html
4. 设置装备摆设PLEX开机自动运转
首先成立plexmediaserver vi /usr/local/bin/plexmediaserver
复制代码然后增加以下形式,保留加入
#!/bin/sh
SCRIPTPATH=/opt/plex/Application
export LD_LIBRARY_PATH="${SCRIPTPATH}"
export PLEX_MEDIA_SERVER_HOME="${SCRIPTPATH}"
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export LC_ALL="zh_CN.UTF-8"
export LANG="zh_CN.UTF-8"
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/opt/plex/Application/Library/Application Support"
ulimit -s 3000
/opt/plex/Application/Plex\ Media\ Server
复制代码使其可履行
chmod +x /usr/local/bin/plexmediaserver
复制代码成立plexmediaserver发动项
vi /etc/init.d/plexmediaserver
复制代码增加以下形式
#!/bin/sh
### BEGIN INIT INFO
# Provides: plexmediaserver
# Required-Start: $remote_fs $syslog $networking
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Plex Media Server
# Description: Plex Media Server for Linux,
# More information at http://www.plexapp.com
# Many thanks to the great PlexApp team for their wonderfull job !
# Author: Cedric Quillevere / origin@killy.net
# Rewamped Christian Svedin / christian.svedin@gmail.com
# Adapted (cubox-i)Francis Belnger / francis.belanger@gmail.com
# Version: 1.2
### END INIT INFO
# Read configuration variable file if it is present
[ -r /etc/default/plexmediaserver ] && . /etc/default/plexmediaserver
test -f "/usr/local/bin/plexmediaserver" || exit 0
plex_running=`ps ax | grep "/opt/plex/Application/Plex Media Server" | awk '{ print $1 }' | wc -l`
case "$1" in
start)
if [ "$plex_running" -gt 1 ]; then
echo "Plex already running..."
exit 0
fi
echo -n "Starting Plex Media Server: "
su -l $PLEX_MEDIA_SERVER_USER -c "/usr/local/bin/plexmediaserver &" >/dev/null 2>&1
sleep 1
echo "done"
;;
stop)
if [ "$plex_running" -eq 1 ]; then
echo "Plex Media Server is not running (no process found)..."
exit 0
fi
echo -n "Killing Plex Media Server: "
# Trying to kill the Plex Media Server itself but also the Plug-ins
ps ax | grep "Plex Media Server" | awk '{ print $1 }' | xargs kill -9 >/dev/null 2>&1
ps ax | grep "Plex DLNA Server" | awk '{ print $1 }' | xargs kill -9 >/dev/null 2>&1
sleep 1
echo "done"
;;
restart)
sh $0 stop
sh $0 start
;;
status)
if [ "$plex_running" -gt 1 ]; then
echo "Plex Media Server process running."
else
echo "It seems that Plex Media Server isn't running (no process found)."
fi
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
exit 0
复制代码使其可履行
chmod +x /etc/init.d/plexmediaserver
复制代码增加到默许发动项里
update-rc.d plexmediaserver defaults
复制代码
5. 增加各类解码器,好比:XviD, DivX, MKV
首先更新libc6库
mkdir /tmp/libc6
cd /tmp/libc6
wget http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.19-15_armhf.deb
dpkg-deb -x libc6_2.19-15_armhf.deb ./
cp -a lib/arm-linux-gnueabihf/libm-2.19.so /opt/plex/Application
cd /opt/plex/Application
chmod ugo+x libm-2.19.so
ln -s libm-2.19.so libm.so.6
复制代码然后安装mkvtoolnix libexpat1 ffmpeg库
apt-get update
apt-get install mkvtoolnix libexpat1 ffmpeg -y
复制代码经由冗长的等候以后,大功成功!
后记:
最开端我是遵循另外一个教程来操作的,需求用到chroot,Drobo的PLEX插件。但操作起来太省事了。当时看到这个编制,复杂有用。
也接待巨匠提问,虽然我也不会什么,但说不定谁就大白,就可以给你答复了呢。
下一步就是PlexConnect了,不忙的时辰渐渐清算,不活期更新
本主题由 System 于 2015-4-25 10:00 消弭限时高亮
前幾天我也差點賣掉,不過連100塊都不給,我才沒賣。。。
有圖有真相就更好了~~http://www.8x6x.com/static/image/smiley/bobi/
這個裝了之后就不用依靠t大的服務器了么?
最開始是按照這個教程搞的https://bitbucket.org/inkubux/cubox-i/wiki/Plex%20Wheezy
折騰了快2周了,白天上班的時候抽空執行一條命令,然后過幾個小時再執行一條。期間也走了很多彎路。主要是那個教程上面沒寫明白什么時候是root什么時候是chroot用戶,遇到一個分支可能就是1天的時間浪費了。。。
再有,確實沒時間啊,一會從我電腦上截個成功以后的圖好了,嘿嘿
MyCloud功能越來越強大了,看來我沒有把外殼賣掉是個正確的選擇
是,我當時買的4T版,算是入了NAS的坑,然后入了群暉DS214Play,真心比MC強大太多,MC的硬盤都被我拆下來給214P了,然后插了一塊2T的閑置硬盤,一度打算賣掉的,后來想想算了,才一兩百塊錢,留著還能互相轉轉數據什么的。
還好這貨本來就不貴,比一塊4T紅盤也貴不了多少
是啊,我當時買的時候是1500,那時候一塊4T紅盤也是1500
啊,我的為什么會出現這種情況:
第一個情況是:
WDMyCloud:/DataVolume/shares/Public# mv PlexMediaServer-0.9.11.7.803-87d0708-arm7.spk /plex/PlexMediaServer-0.9.11.7.803-87d0708-arm7.tar
mv: preserving permissions for `/plex/PlexMediaServer-0.9.11.7.803-87d0708-arm7.tar': Operation not supported
第二個情況時:
WDMyCloud:/plex# tar -xvf PlexMediaServer-0.9.11.7.803-87d0708-arm7.tar
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
我的系統是3.04.01-230,剛剛變磚拆機重刷的系統,純干凈的。
快說……MBL 能不能玩……
页:
[1]