|
Plex server on Pogoplug E02 and Debian? January 15, 2016 05:07AM |
Registered: 10 years ago Posts: 169 |
|
Re: Plex server on Pogoplug E02 and Debian? January 15, 2016 10:02PM |
Registered: 10 years ago Posts: 162 |
|
Re: Plex server on Pogoplug E02 and Debian? January 28, 2016 01:25PM |
Registered: 9 years ago Posts: 1,516 |
|
Re: Plex server on Pogoplug E02 and Debian? January 29, 2016 01:28AM |
Registered: 10 years ago Posts: 162 |
|
Re: Plex server on Pogoplug E02 and Debian? January 30, 2016 02:27PM |
Registered: 8 years ago Posts: 73 |
|
Re: Plex server on Pogoplug E02 and Debian? January 30, 2016 05:18PM |
Registered: 10 years ago Posts: 162 |
|
Re: Plex server on Pogoplug E02 and Debian? January 31, 2016 06:54AM |
Registered: 8 years ago Posts: 73 |
|
Re: Plex server on Pogoplug E02 and Debian? January 31, 2016 10:45AM |
Registered: 10 years ago Posts: 162 |
|
cdlenfert2
Re: Plex server on Pogoplug E02 and Debian? February 24, 2017 05:17PM |
|
Re: Plex server on Pogoplug E02 and Debian? February 24, 2017 05:23PM |
Registered: 10 years ago Posts: 162 |
|
Cdlenfert2
Re: Plex server on Pogoplug E02 and Debian? February 24, 2017 07:11PM |
|
Re: Plex server on Pogoplug E02 and Debian? February 26, 2017 01:27AM |
Registered: 10 years ago Posts: 162 |
|
a
Re: Plex server on Pogoplug E02 and Debian? February 26, 2017 05:29PM |
|
Re: Plex server on Pogoplug E02 and Debian? February 26, 2017 05:43PM |
Registered: 10 years ago Posts: 162 |
|
Re: Plex server on Pogoplug E02 and Debian? February 26, 2017 05:50PM |
Registered: 10 years ago Posts: 162 |
dpkg -i plex*
nano /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 # Version: 1.2 ### END INIT INFO # Read configuration variable file if it is present [ -r /etc/default/plexmediaserver ] && . /etc/default/plexmediaserver test -f "/usr/lib/plexmediaserver/start.sh" || exit 0 plex_running=`ps ax | grep "\./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/sbin/start_pms &" >/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 ps ax | grep "Plex Plug-in" | 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
nano /etc/default/plexmediaserver
# default script for Plex Media Server
# the number of plugins that can run at the same time
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=2
# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
# where the mediaserver should store the transcodes
PLEX_MEDIA_SERVER_TMPDIR=/tmp
# uncomment to set it to something else
# PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support"
# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library
PLEX_MEDIA_SERVER_USER=root
ln -s '/mnt/usb/PlexData' '/root/Library/Application Support/Plex Media Server'or if it doesn't work
ln -s '/mnt/usb/PlexData' '/root/Library/Application Support/Plex\ Media\ Server/'
#!/bin/bash
service cron stop
OIFS="$IFS"
IFS=$'\n'
for f in $(/usr/bin/find /mnt/usb/movies -type f -name '*.mkv'); do
AC3=`/usr/bin/mkvinfo "$f" | /bin/grep AC3` #check if it's AC3 audio
if [ -z "$AC3" ]; then
/usr/bin/avconv -i "$f" -codec copy "${f%.mkv}.mp4"
fi
if [ -f "${f%.mkv}.mp4" ];
then
/bin/rm "$f"
fi
done
service cron start
IFS="$OIFS"
service plexmediaserver startPlex will be available on its default port 32400 which can be accessed at http://ip.address:32400/web
|
Re: Plex server on Pogoplug E02 and Debian? February 26, 2017 06:02PM |
Admin Registered: 13 years ago Posts: 18,564 |
Quote
Media Streaming
OpenMediaVault
Streaming music from Kirkwood plugs to IOS devices via WiFi
Create Your Own In-Home Radio Station Using a Pogoplug Mobile
Install Logitech Media Server on Debian wheezy
Install Logitech Media Server on Debian jessie
Install Logitech Media Server with nightly build (WIP)
|
Re: Plex server on Pogoplug E02 and Debian? February 26, 2017 09:31PM |
Registered: 10 years ago Posts: 162 |
|
Re: Plex server on Pogoplug E02 and Debian? February 26, 2017 11:29PM |
Admin Registered: 13 years ago Posts: 18,564 |
Quote
Media Streaming
OpenMediaVault
Streaming music from Kirkwood plugs to IOS devices via WiFi
Create Your Own In-Home Radio Station Using a Pogoplug Mobile
Install Logitech Media Server on Debian wheezy
Install Logitech Media Server on Debian jessie
Install Logitech Media Server with nightly build (WIP)
Plex media server on PogoPlug
|
Cdlenfert2
Re: Plex server on Pogoplug E02 and Debian? February 28, 2017 09:52PM |
|
Re: Plex server on Pogoplug E02 and Debian? February 28, 2017 10:57PM |
Admin Registered: 13 years ago Posts: 18,564 |
|
Re: Plex server on Pogoplug E02 and Debian? March 01, 2017 01:59AM |
Registered: 10 years ago Posts: 162 |
|
Re: Plex server on Pogoplug E02 and Debian? March 02, 2017 09:16AM |
Registered: 7 years ago Posts: 156 |
|
Re: Plex server on Pogoplug E02 and Debian? August 03, 2017 05:46PM |
Registered: 7 years ago Posts: 156 |
|
Re: Plex server on Pogoplug E02 and Debian? August 03, 2017 06:32PM |
Admin Registered: 13 years ago Posts: 18,564 |
|
Re: Plex server on Pogoplug E02 and Debian? August 05, 2017 10:18PM |
Registered: 7 years ago Posts: 156 |
Disk /dev/sdb: 521 MB, 521142272 bytes 255 heads, 63 sectors/track, 63 cylinders, total 1017856 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 63 1017827 508882+ b W95 FAT32
mkfs.ext4 -L "IOMEGA512" /dev/sdb1
|
Re: Plex server on Pogoplug E02 and Debian? August 05, 2017 11:31PM |
Admin Registered: 13 years ago Posts: 18,564 |
> mkfs.ext4 -L "IOMEGA512" /dev/sdb1But this is not right, it should show Linux partition 83.
/dev/sdb1 63 1017827 508882+ b W95 FAT32
zswap.enabled=1
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) zswap.enabled=1
[ 10.046110] zswap: loaded using pool lzo/zbud
vmstat 5 300
|
Re: Plex server on Pogoplug E02 and Debian? August 06, 2017 07:25AM |
Registered: 7 years ago Posts: 156 |
root@DebianPlugPro:/# mkfs.ext4 -L "IOMEGA512" /dev/sdb1
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=IOMEGA512
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
127512 inodes, 508880 blocks
25444 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
63 block groups
8192 blocks per group, 8192 fragments per group
2024 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
root@DebianPlugPro:/# fdisk -l
Disk /dev/mtdblock0: 14 MB, 14680064 bytes
171 heads, 42 sectors/track, 3 cylinders, total 28672 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaaaaaaaa
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/mtdblock0p1 ? 2863311530 1431655763 1431655765 aa Unknown
/dev/mtdblock0p2 ? 2863311530 1431655763 1431655765 aa Unknown
/dev/mtdblock0p3 ? 2863311530 21843 715838805 aa Unknown
/dev/mtdblock0p4 ? 2863311530 1426085203 1428870485 aa Unknown
Disk /dev/mtdblock1: 119 MB, 119537664 bytes
255 heads, 63 sectors/track, 14 cylinders, total 233472 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mtdblock1 doesn't contain a valid partition table
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 3932 MB, 3932160000 bytes
255 heads, 63 sectors/track, 478 cylinders, total 7680000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x66222bc1
Device Boot Start End Blocks Id System
/dev/sda1 63 7679069 3839503+ 83 Linux
Disk /dev/sdb: 521 MB, 521142272 bytes
255 heads, 63 sectors/track, 63 cylinders, total 1017856 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 63 1017827 508882+ b W95 FAT32
root@DebianPlugPro:/#
|
Re: Plex server on Pogoplug E02 and Debian? August 06, 2017 08:47AM |
Registered: 7 years ago Posts: 156 |
Disk /dev/sdb: 521 MB, 521142272 bytes 92 heads, 28 sectors/track, 395 cylinders, total 1017856 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xc74fc307 Device Boot Start End Blocks Id System /dev/sdb1 2048 1017855 507904 83 Linux
|
Re: Plex server on Pogoplug E02 and Debian? August 06, 2017 05:02PM |
Registered: 7 years ago Posts: 156 |
console=ttyS0,115200 root=/dev/sda1 rootdelay=10
[5828804.972889] Adding 368k swap on /media/usb0/swapfile.img. Priority:-1 extents:3 across:876k [5831057.495173] Adding 383940k swap on /media/usb0/swapfile.img. Priority:-1 extents:13 across:432876k
[5570413.454773] 0 pages swap cached [5570413.458071] [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name [5570413.467468] [ 273] 0 273 688 82 5 0 -1000 udevd [5570413.475665] [ 1544] 0 1544 1231 428 5 0 0 dhclient [5570413.484067] [ 1589] 0 1589 1489 98 6 0 0 wpa_supplicant [5570413.493573] [ 1638] 0 1638 1231 431 6 0 0 dhclient [5570413.501964] [ 1737] 0 1737 591 53 5 0 0 rpcbind [5570413.510192] [ 1769] 105 1769 671 101 5 0 0 rpc.statd [5570413.519270] [ 1781] 0 1781 738 52 5 0 0 rpc.idmapd [5570413.527874] [ 1946] 0 1946 581 35 4 0 0 klogd [5570413.536135] [ 1947] 0 1947 613 48 5 0 0 syslogd [5570413.544578] [ 1976] 102 1976 806 57 5 0 0 dbus-daemon [5570413.553246] [ 2098] 103 2098 921 140 5 0 0 avahi-daemon [5570413.563182] [ 2101] 103 2101 855 54 5 0 0 avahi-daemon [5570413.571947] [ 2125] 0 2125 1567 105 6 0 -1000 sshd [5570413.579960] [ 2188] 0 2188 519 30 5 0 0 getty [5570413.588088] [ 4953] 0 4953 12654 411 14 0 0 shairport-sync [5570413.597089] [14669] 0 14669 687 83 5 0 -1000 udevd [5570413.605232] [ 2424] 0 2424 440 16 4 0 0 start_pms [5570413.613795] [ 2427] 0 2427 94012 7167 94 0 0 Plex Media Serv [5570413.622778] [ 2474] 0 2474 47707 1881 48 0 0 Plex DLNA Serve [5570413.632153] [ 3571] 0 3571 49572 5181 43 0 0 python [5570413.640353] [ 3701] 0 3701 29908 4136 28 0 0 python [5570413.648660] [ 3725] 0 3725 24779 3144 24 0 0 python [5570413.657144] [ 3745] 0 3745 5562 2362 14 0 0 python [5570413.665374] Out of memory: Kill process 2427 (Plex Media Serv) score 233 or sacrifice child [5570413.673953] Killed process 3571 (python) total-vm:198288kB, anon-rss:20724kB, file-rss:0kB
|
Re: Plex server on Pogoplug E02 and Debian? August 06, 2017 05:39PM |
Admin Registered: 13 years ago Posts: 18,564 |
> console=ttyS0,115200 root=/dev/sda1 rootdelay=10 >>
custom_params=zswap.enabled=1